-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
warningaserror doesn't respect package boundaries (foreign package notes) #16762
Comments
What is this? I've seen it in your other issue reports and I have no idea what |
|
…Error now ignore foreign packages (nim-lang#20151) * fixes nim-lang#20149; hintAsError/warningAsError ignores foreign packages * add changelog * fixes the test * remove * fixes tests again * fix * I'm careless Co-authored-by: xflywind <[email protected]>
… foreign packages (#20151) * fixes #20149; hintAsError/warningAsError ignores foreign packages * add changelog * fixes the test * remove * fixes tests again * fix * I'm careless Co-authored-by: xflywind <[email protected]> (cherry picked from commit 641381e)
Example 1
import os
Current Output
XDG_CONFIG_HOME= nim r --warningaserror:deprecated main
/Users/timothee/git_clone/nim/Nim_devel/lib/core/macros.nim(143, 30) Error: NimIdent is deprecated [Deprecated]
Expected Output
works because macros is a foreign package wrt main
Example 2
XDG_CONFIG_HOME= nim r --warningaserror:deprecated main2
the relevant error appears only with
--errormax:50
/Users/timothee/git_clone/nim/timn/tests/nim/all/t11723.nim(6, 6) Error: use dirExists; existsDir is deprecated [Deprecated]
and there are some strange errors, eg:
times.nim(2019, 28) Error: can raise an unlisted exception: ref TimeFormatParseError
Additional Information
--hintAsError:X
(analog to--warningAsError:X
) #16763 (hintAsError) has the same issueThe text was updated successfully, but these errors were encountered: