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

Global imports don't work for non-std modules #9994

Wh1teDuke opened this issue Dec 15, 2018 · 1 comment


None yet
1 participant
Copy link

commented Dec 15, 2018


type DefinedInA* = DefinedInB
type DefinedInB* = int
import: B


>nim c A
Hint: used config file '[...]/Nim/config/nim.cfg' [Conf]
Hint: used config file '[...]/test/test_import/nim.cfg' [Conf]
Hint: system [Processing]
Hint: A [Processing]
../../Nim/config/nim.cfg(1, 2) Error: cannot open file: B

Add path: "$projectDir" to nim.cfg

>nim -v
Nim Compiler Version 0.19.9 [Linux: i386]
Compiled at 2018-12-15
Copyright (c) 2006-2018 by Andreas Rumpf

git hash: f76bd06643d0b8ee4de18808eb73d78e9aa91270
active boot switches: -d:release

This comment has been minimized.

Copy link
Contributor Author

commented Dec 15, 2018

Related to #9978

@Wh1teDuke Wh1teDuke changed the title Global imports don't work for modules inside the project Global imports don't work for non-std modules Dec 15, 2018

@Araq Araq closed this in b53327c Dec 15, 2018

nc-x added a commit to nc-x/Nim that referenced this issue Dec 16, 2018

Revert "fixes nim-lang#9994"
This reverts commit b53327c.
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.