godot-nim
godot-nim copied to clipboard
Api generation fails
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.
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?
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
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.
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.
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