-
Notifications
You must be signed in to change notification settings - Fork 194
Cannot import modules in .nimble
during nimble install
#1259
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
Comments
The Nimble manifest for that package seems to be completely invalid. Running @ringabout This is not reproducible. |
Have you tried running |
If it can parse it, and if running |
No, I mean "interpretation" when I say "evaluation". It cannot execute that. |
Sorry for my ignorance, but there a particular reason why |
Yes, this is a combination of missing import paths and nimsutils-0.1.0-e22ac7bf6b80f9650b3a2a0eb5871186c52e7a27
├── htmldocs
│ └── nimdoc.out.css
├── basedefs.nim
├── btrfmt.nim
├── common_imports.nim
├── exec.nim
├── nimblemeta.json
├── nimsutils.nim
├── nimsutils.nimble
├── time.nim
└── xtask.nim Meaning that there is now no module at A possible workaround is you doing some conditional import like this in your nimble file: when not (compiles do: import src/nimsutils):
import ./nimsutils
else:
import src/nimsutils |
Suggestion from nim-lang/nimble#1259 (comment) Thanks to daylinmorgan!
Update: by using: when (compiles do: import ./nimsutils):
import ./nimsutils
else:
import src/nimsutils we force the VM to check for |
I would make sure to remove any versions of This works fine for me:
What is the error? |
Using latest devel (choosenim) I have no idea why but somehow Maybe it's not a bad idea to document this behaviour somewhere? |
Ya probably, TBF I think the original error message indicates the problem. But it may be good to add info to the |
nimble install nimsutils
fails with the following error:However, if you run
nimble
inside the repository directly, it works absolutely fine.Since I can't find any docs saying you aren't allowed to import things in the
.nimble
file, I feel like this should be a bug fromnimble install
.The text was updated successfully, but these errors were encountered: