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

Provide hints when nim.cfg is not found #11370

Open
FedericoCeratto opened this issue May 31, 2019 · 3 comments
Open

Provide hints when nim.cfg is not found #11370

FedericoCeratto opened this issue May 31, 2019 · 3 comments

Comments

@FedericoCeratto
Copy link
Member

When nim.cfg is not found (e.g. it's still /etc/nim.cfg) the compiler fails to find the stdlib:

nim c -r mytest.nim
Hint: system [Processing]
Hint: mytest [Processing]
mytest.nim(1, 8) Error: cannot open file: tables

A hint or warning would be nice:

Hint: no config files found. It is recommended to create '/etc/nim/nim.cfg'

@FedericoCeratto
Copy link
Member Author

cc @Michal-Szczepaniak

@ringabout

This comment has been minimized.

@timotheecour
Copy link
Member

Now you got a waring

what does nim c -r -f ttest.nim give?

(asking because the warning may depend on whether -f is passed)

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

4 participants