-
-
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
styleCheck: Fix error for sugar
and std/with
#16176
Conversation
9dc3db1
to
5fdd98f
Compare
This is a breaking change though for --styleCheck:error based code. Instead rename |
With this commit, we no longer see an error if we pass `--styleCheck:error` when compiling a file that contains `import sugar` or `import std/with`. The problem was that those modules (and only those modules) import `std/private/underscored_calls`, which contained a styleCheck issue: its spelling of `nnkArgList` didn't match the `nnkArglist` spelling in `macros.nim`. This commit fixes the issue by renaming `nnkArgList` to `nnkArglist` repo-wide. The other way around would be a breaking change for code that used `nnkArglist` and `--styleCheck:error`. Fixes: nim-lang#16174
5fdd98f
to
188e360
Compare
Ok - I've updated this PR so that it does Nim/tests/astspec/tastspec.nim Line 932 in 139075e
but maybe you'd prefer to leave that one as-is.
Did you mean to write
I'm okay with the current state of this PR, given that it fixes But is it not possible to switch to |
I meant it in the way you did it. |
With this commit, we no longer see an error if we pass `--styleCheck:error` when compiling a file that contains `import sugar` or `import std/with`. The problem was that those modules (and only those modules) import `std/private/underscored_calls`, which contained a styleCheck issue: its spelling of `nnkArgList` didn't match the `nnkArglist` spelling in `macros.nim`. This commit fixes the issue by renaming `nnkArgList` to `nnkArglist` repo-wide. The other way around would be a breaking change for code that used `nnkArglist` and `--styleCheck:error`. Fixes: nim-lang#16174
With this commit, we no longer see an error if we pass `--styleCheck:error` when compiling a file that contains `import sugar` or `import std/with`. The problem was that those modules (and only those modules) import `std/private/underscored_calls`, which contained a styleCheck issue: its spelling of `nnkArgList` didn't match the `nnkArglist` spelling in `macros.nim`. This commit fixes the issue by renaming `nnkArgList` to `nnkArglist` repo-wide. The other way around would be a breaking change for code that used `nnkArglist` and `--styleCheck:error`. Fixes: nim-lang#16174
With this commit, we no longer see an error if we pass
--styleCheck:error
when compiling a file that containsimport sugar
or
import std/with
.The problem was that those modules (and only those modules) import
std/private/underscored_calls
, which contained a styleCheck issue:its spelling of
nnkArgList
didn't match thennkArglist
spelling inmacros.nim
.This commit fixes the issue by renaming
nnkArglist
tonnkArgList
repo-wide.
Fixes: #16174
CI failure is unrelated (see #16169).