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

Can't build examples if cloning nonrecursive #2

Closed
AlbertShown opened this issue Mar 14, 2023 · 1 comment · Fixed by #3
Closed

Can't build examples if cloning nonrecursive #2

AlbertShown opened this issue Mar 14, 2023 · 1 comment · Fixed by #3
Labels
wontfix This will not be worked on

Comments

@AlbertShown
Copy link

When I tried to test the examples, I manually cloned this repo, but because of nim.cfg, the compiling failed.

C:\Users\...\webui-main\examples>nim c -d:useWebviewStaticLib call_nim_from_js.nim
Hint: used config file 'C:\Nim\config\nim.cfg' [Conf]
Hint: used config file 'C:\Nim\config\config.nims' [Conf]
Hint: used config file 'C:\Users\...\webui-main\examples\nim.cfg' [Conf]
............................................................................................
C:\Users\...\webui-main\webui\bindings.nim(76, 12) Error: cannot find: ./webui/src/mongoose.c

Copying the example folder outside of the repo folder will work. Also, just removing nim.cfg works too.

Regular cloning (nonrecursive) tries to rebuild webui.c instead of using the already installed one.

@neroist
Copy link
Contributor

neroist commented Mar 15, 2023

This is because of the --path:".." line in nim.cfg. I don't think I'll fix this, its not that hard to put --recursive when cloning. I'll put a note in the readme to clone recursively though when trying to run examples.

@neroist neroist added the wontfix This will not be worked on label Mar 15, 2023
@neroist neroist mentioned this issue Mar 15, 2023
@neroist neroist linked a pull request Mar 15, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants