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

`nim js -d:nodejs main.nim` gives: `system.nim(1443, 7) Error: cannot 'importc' variable at compile time` with a config.nims #9153

Closed
timotheecour opened this issue Oct 2, 2018 · 2 comments

Comments

Projects
None yet
4 participants
@timotheecour
Copy link
Contributor

commented Oct 2, 2018

nim js -d:nodejs bugs/js/t01_nodejs.nim

(from https://nim-lang.org/docs/backends.html)

gives:
system.nim(1443, 7) Error: cannot 'importc' variable at compile time`

even for empty nim file

@skilchen

This comment has been minimized.

Copy link
Contributor

commented Oct 2, 2018

its the presence of the config.nims again ...

@timotheecour

This comment has been minimized.

Copy link
Contributor Author

commented Oct 2, 2018

no error with
nim js --skipParentCfg --skipUserCfg -d:nodejs bugs/js/t01_nodejs.nim
so indeed, looks like having a config.nims causes issues.
#9120 could be related

@timotheecour timotheecour changed the title `nim js -d:nodejs main.nim` gives: `system.nim(1443, 7) Error: cannot 'importc' variable at compile time` `nim js -d:nodejs main.nim` gives: `system.nim(1443, 7) Error: cannot 'importc' variable at compile time` with a config.nims Oct 2, 2018

@andreaferretti andreaferretti added the JS label Oct 3, 2018

@Araq Araq closed this in #9945 Dec 13, 2018

@Araq Araq reopened this Dec 16, 2018

@Araq Araq closed this in 7ec7768 Dec 16, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.