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 in cfg file broken #9978

Closed
Wh1teDuke opened this issue Dec 14, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@Wh1teDuke
Copy link
Contributor

commented Dec 14, 2018

Importing a module inside nim.cfg yields all kind of issues.
Example:

>Test.nim.cfg
--import: "strutils"

>nim c -r Test
Hint: used config file '[...]/Nim/config/nim.cfg' [Conf]
Hint: used config file '[...]/test/Test.nim.cfg' [Conf]
Hint: system [Processing]
../Nim/lib/pure/parseutils.nim(128, 13) Error: undeclared identifier: 'substr'
This might be caused by a recursive module dependency:
[...]/Nim/lib/pure/strutils.nim imports [...]/Nim/lib/pure/parseutils.nim
[...]/Nim/lib/pure/parseutils.nim imports [...]/Nim/lib/pure/strutils.nim

Culprit: bb1ce39


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

git hash: 32c6b35d97332e884648929672b0f163ee6febff
active boot switches: -d:release

@Wh1teDuke Wh1teDuke changed the title Error: undeclared identifier: 'runnableExamples' with global import Global imports in nim.cfg broken Dec 14, 2018

@Wh1teDuke Wh1teDuke changed the title Global imports in nim.cfg broken Global imports in cfg file broken Dec 14, 2018

@Araq Araq closed this in 675b6f0 Dec 14, 2018

Araq added a commit that referenced this issue Dec 14, 2018

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

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

Revert "fixes nim-lang#9978"
This reverts commit 675b6f0.
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.