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

config.nims present in current directory gets used but the [Hint] displaying that it actually got used doesn't print #11316

Open
kaushalmodi opened this issue May 23, 2019 · 1 comment

Comments

@kaushalmodi
Copy link
Contributor

kaushalmodi commented May 23, 2019

config.nims present in current directory gets used but the [Hint] displaying that it actually got used doesn't print

Example

  1. In any directory, create the below config.nims.
  2. run nim foo
# config.nims
task foo, "Foo":
  echo "foo task was called"

Current Output

Hint: used config file '/home/kmodi/usr_local/apps/6/nim/devel/config/nim.cfg' [Conf]
Hint: used config file '/home/kmodi/usr_local/apps/6/nim/devel/config/config.nims' [Conf]
foo task was called

Expected Output

Hint: used config file '/home/kmodi/usr_local/apps/6/nim/devel/config/nim.cfg' [Conf]
Hint: used config file '/home/kmodi/usr_local/apps/6/nim/devel/config/config.nims' [Conf]
Hint: used config file '/my/current/dir/config.nims' [Conf]
foo task was called

Note that the Hint: used config file '/my/current/dir/config.nims' [Conf] bit is missing from the Current Output.

Additional Information

$ nim -v
Nim Compiler Version 0.19.9 [Linux: amd64]
Compiled at 2019-05-23
Copyright (c) 2006-2019 by Andreas Rumpf

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

/cc @kayabaNerve

@kayabaNerve
Copy link
Collaborator

This occurs on devel yet stable has the expected behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants