-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nake Build Error #111
Comments
This is happening because godot can't write the Try editing If none of this helps, please post more info about your environment (os, location of project, location of godot) and I'll try to help you sort things out. |
Well this was kinda hard and I gave up, since I am a beginner in such stuff~ Windows, Godot is in C:\Users\Public\Godot |
I don't specifically know that spaces in the path are a problem, it's just the sort of thing that can cause trouble. Your error is because Godot can't write the Assuming you're using Change: if not fileExists(jsonFile) or
godotBin.getLastModificationTime() > jsonFile.getLastModificationTime():
direShell(godotBin, "--gdnative-generate-json-api", getCurrentDir()/jsonFile) To: if not fileExists(jsonFile) or
godotBin.getLastModificationTime() > jsonFile.getLastModificationTime():
# print path to api.json:
echo "api file: ", getCurrentDir()/jsonFile
direShell(godotBin, "--gdnative-generate-json-api", getCurrentDir()/jsonFile) Then look at what path it prints out and see if it makes sense. Verify that you can write to the file. I'm not a windows user, but assuming the path it printed out was If all of that looks good, you could try launching your command prompt using "Run as administrator". There could be something up with file permissions. |
I also had a issue with nake build. I enter your code: and I got the result: C:\Users\randa\Documents\Code\godot-nim-stub>nake build This is with windows 10, C:\Users\randa\Documents\Code\godot-nim-stub, |
It looks like you added the code block to the end of the file, which isn’t going to work. You should be adding You could be having an entirely different issue though. Is your build also failing when Godot is trying to write |
I deleted the whole file and reclone. With a new nake build. When i get off
of work ill post the results for you with code. Since this could help
window user like me. I dont mind help finding the issue. Like the other
person I am still new to nim but im able figure things out.
…On Sat, Oct 30, 2021, 9:57 AM Scott Wadden ***@***.***> wrote:
It looks like you added the code block to the end of the file, which isn’t
going to work. You should be adding echo "api file: ",
getCurrentDir()/jsonFile before the call to direShell. This isn’t going
to fix anything, it’s just printing the path to api file it’s trying to
generate so we can try to figure out why it can’t be written.
You could be having an entirely different issue though. Is your build also
failing when Godot is trying to write api.json?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#111 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATFV5BPMUWOCHNDD4XSCV2LUJQBWRANCNFSM5GFQFR7A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
C:\Users\randa\Documents\Code\godot-nim-stub>nake build This is what I get. After I reCloned and added the new code. const targetDir = "src"/"godotapi"
After rereading everything it seems like it's messing up writing the .dll in the _dll folder. |
so, im sorry the last days where thought.. Ill set up an new user Account and try it there :/ nvm seems like I did something wrong.. At: modules/gdnative/nativescript/nativescript.cpp:1083 thats the output seems it really cant somehow acces.. and with admin right: Failed to generate api.json yes I can run notepad C:\Users\Rage Quit\Documents\nim\godot-nim-stub\src\godotapi\api.json even without admin right~ |
so i tried it again with my double username account to acces a acc with a normal username, didnt worked, tried it on the account itself kinda worked.. C:\Users\digital\Documents\nim\godot-nim-stub>nake build and it seems like at the end it always still accessed
|
@Asarmir it looks like you're using a 32 bit Nim install, but https://github.com/pragmagic/godot-nim-stub/blob/master/src/config.nims#L40 is ensuring that a 64 bit nim is being used. It's possible that if you delete that assertion things will work, but you're probably better off switching to 64 bit if you can. Also, if you're using Nim 1.6.0, you'll need to change https://github.com/pragmagic/godot-nim-stub/blob/master/src/stub.nimble#L6 to something like Finally, if you're not using |
@DigitalNXZ I just tested under windows and there's is an issue running from a directory with spaces in the path. Wrapping the path in double quotes by changing https://github.com/pragmagic/godot-nim-stub/blob/master/nakefile.nim#L21 to Your current issue is something else. It looks like nimble is trying to find nim system libraries in the home directory of another user, but can't access them either because they're not there, or it doesn't have permission to read them. I'd suggest either switching back to your "Rage Quit" user and applying the fix above, or reinstalling nim with your new user and verifying that you don't have "C:\Users\Rage Quit" on your path. |
verifying that you don't have "C:\Users\Rage Quit" on your path. where do I need to change https://github.com/pragmagic/godot-nim-stub/blob/master/nakefile.nim#L21 with diresehll(godotB...? |
Thank you. That seems to have worked. ChooseNim did a 32 bit install and so after correcting that. Plus all the suggestion it worked. I did get a small error that import fpscounter, import mainpanel weren't used. But it said it was still successful. Commenting them out also made it successful with no error msg. $src\stub.nim |
Sadly the Stub looks inactive..
When I make Nake Build in Stub or Godot Nim it returns:
and idk what to do :(?
already tried to reinstall it, with depth and without etc like in (#62)..
I even tried it with an older Godot version..
The text was updated successfully, but these errors were encountered: