Skip to content
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

Api generation fails #62

Open
HugoP707 opened this issue Jul 12, 2020 · 5 comments
Open

Api generation fails #62

HugoP707 opened this issue Jul 12, 2020 · 5 comments

Comments

@HugoP707
Copy link

After following the instructions to build godot nim-stub, i get the following error:

NimRL\src\fpscounter.nim(5, 17) Error: cannot open file: godotapi/engine Tip: 4 messages have been suppressed, use --verbose to show them. Error: Execution failed with exit code 1 ... Command: "C:\Program Files\nim-1.2.2\bin\nim.exe" c --noNimblePath -d:NimblePkgVersion=0.1.0 --path:"C:\Users\porra\.nimble\pkgs\godot-0.8.0" --path:"C:\Users\porra\.nimble\pkgs\compiler-1.2.2" "-o:..\_dlls\nim_64.dll" "..\src\stub"

I dont know what else to do.

@endragor
Copy link
Member

Are you sure this is the API generation that fails? Does the godotapi/engine.nim file not exist? What happens if you delete the api.json and godotapi folder and try to rebuild? Are there errors during API generation?

@HugoP707
Copy link
Author

HugoP707 commented Jul 13, 2020

no other file exists in godotapi apart from api.json

i dont think there are any clear errors.
first time i run nake build
i get this:

El sistema no puede encontrar la ruta especificada. (System couldnt find the specified route)
El sistema no puede encontrar la ruta especificada. (System couldnt find the specified route)
Godot Engine v3.2.2.stable.official - https://godotengine.org
OpenGL ES 3.0 Renderer: GeForce GTX 1050/PCIe/SSE2

Godot opens and closes, which i guess its expected

the second time i run nake build i get the error of my first comment

@Riku5543
Copy link

Heya. I'm using Godot 3.2.2-stable as well, and I'm getting the same issue. The godotapi folder is completely empty, and it says this.

[develon@DevOS Nim Stub]$ GODOT_BIN="/usr/bin/godot" ~/.nimble/bin/nake build
Godot Engine v3.2.2.stable.official - https://godotengine.org
OpenGL ES 3.0 Renderer: Radeon RX 570 Series (POLARIS10, DRM 3.37.0, 5.7.10-arch1-1, LLVM 10.0.0)
 
Failed to generate api.json

I just thought I'd mention it, because I'd really enjoy using this api.

@Riku5543
Copy link

Sorry about that. I went to the stub repository and downloaded the source archive, and then compiled that. It seems to be fine now. I should mention that the documentation says to use --depth=1, and I think that may be what caused this.

@HugoP707
Copy link
Author

tried using godot-nim after all this time, tried without --depth=1, and after manually generating api.json and the godotapi (for some reason nake cannot do it)
It works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants