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

stylecheck: nnkArglist -> nnkArgList #127

Merged
merged 2 commits into from
Jul 18, 2022
Merged

stylecheck: nnkArglist -> nnkArgList #127

merged 2 commits into from
Jul 18, 2022

Conversation

tersec
Copy link
Contributor

@tersec tersec commented Jul 18, 2022

@tersec
Copy link
Contributor Author

tersec commented Jul 18, 2022

Windows Nim 1.2 fails with:

stdlib_system.nim.c
C:\Users\runneradmin\nimcache\all_tests_d\stdlib_io.nim.c(1095): warning C4020: '_setjmp': too many actual parameters
C:\Users\runneradmin\nimcache\all_tests_d\stdlib_io.nim.c(1095): error C2167: '_setjmp': too many actual parameters for intrinsic function
Error: execution of an external compiler program 'cl.exe /c /nologo -DWIN32_LEAN_AND_MEAN   /ID:\a\nim-stew\nim-stew\nim\lib /ID:\a\nim-stew\nim-stew\tests /FoC:\Users\runneradmin\nimcache\all_tests_d\stdlib_io.nim.c.obj C:\Users\runneradmin\nimcache\all_tests_d\stdlib_io.nim.c' failed with exit code: 2
stack trace: (most recent call last)
D:\a\_temp\msys64\tmp\nimblecache-3274857584\nimscriptapi_1488220575.nim(187, 16)
D:\a\nim-stew\nim-stew\stew.nimble(35, 8) testvccTask
D:\a\nim-stew\nim-stew\stew.nimble(25, 8) test
D:\a\nim-stew\nim-stew\nim\lib\system\nimscript.nim(260, 7) exec
D:\a\nim-stew\nim-stew\nim\lib\system\nimscript.nim(260, 7) Error: unhandled exception: FAILED: nim c  --cc:vcc --threads:off -r --hints:off --skipParentCfg --styleCheck:usages --styleCheck:hint tests/all_tests [OSError]
     Error: Exception raised during nimble script execution
C:\Users\runneradmin\nimcache\all_tests_d\stdlib_system.nim.c(5788): warning C4020: '_setjmp': too many actual parameters
C:\Users\runneradmin\nimcache\all_tests_d\stdlib_system.nim.c(5788): error C2167: '_setjmp': too many actual parameters for intrinsic function
Error: Process completed with exit code 1.

But so does current master commit in same situation/same way: https://github.com/status-im/nim-stew/runs/7371971078?check_suite_focus=true

Nim 1.6 Windows fails for VCC with:

@m..@snim@[email protected]
Error: execution of an external compiler program 'cl.exe /c /nologo -DWIN32_LEAN_AND_MEAN   /ID:\a\nim-stew\nim-stew\nim\lib /ID:\a\nim-stew\nim-stew\tests /nologo /FoC:\Users\runneradmin\nimcache\all_tests_d\@m..@snim@slib@[email protected] C:\Users\runneradmin\nimcache\all_tests_d\@m..@snim@slib@[email protected]' failed with exit code: 2
C:\Users\runneradmin\nimcache\all_tests_d\@m..@snim@slib@[email protected](1256): warning C4020: '_setjmp': too many actual parameters
C:\Users\runneradmin\nimcache\all_tests_d\@m..@snim@slib@[email protected](1256): error C2167: '_setjmp': too many actual parameters for intrinsic function
stack trace: (most recent call last)
D:\a\_temp\msys64\tmp\nimblecache-3274857584\nimscriptapi_571214219.nim(187, 16)
D:\a\nim-stew\nim-stew\stew.nimble(35, 8) testvccTask
D:\a\nim-stew\nim-stew\stew.nimble(25, 8) test
D:\a\nim-stew\nim-stew\nim\lib\system\nimscript.nim(273, 7) exec
D:\a\nim-stew\nim-stew\nim\lib\system\nimscript.nim(273, 7) Error: unhandled exception: FAILED: nim c  --cc:vcc --threads:off -r --hints:off --skipParentCfg --styleCheck:usages --styleCheck:error tests/all_tests [OSError]
     Error: Exception raised during nimble script execution
C:\Users\runneradmin\nimcache\all_tests_d\@m..@snim@[email protected](4855): warning C4020: '_setjmp': too many actual parameters
C:\Users\runneradmin\nimcache\all_tests_d\@m..@snim@[email protected](4855): error C2167: '_setjmp': too many actual parameters for intrinsic function
Error: Process completed with exit code 1.

Same issue in master: https://github.com/status-im/nim-stew/runs/7371971140?check_suite_focus=true

All other Nim branches/versions and platforms pass CI. No test suite regressions and fixes most of the issues.

@tersec tersec merged commit f173efc into master Jul 18, 2022
@tersec tersec deleted the 7u8 branch July 18, 2022 11:02
@narimiran
Copy link
Contributor

This is causing problems (in Nim CIs, when testing other packages which use stew) with Nim 1.2: macros.nim(415, 20) Error: 'nnkArgList' should be: 'nnkArglist'

@arnetheduck
Copy link
Member

we've come to the conclusion those packages should use stylecheck:hint for 1.2 and error for 1.6

@tersec
Copy link
Contributor Author

tersec commented Jul 20, 2022

Yes, even if this could be worked around, there's also localPassc (1.2) vs localPassC (1.4, I believe, and definitely 1.6). --styleCheck:error can't work across 1.2 and later versions simultaneously.

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

Successfully merging this pull request may close these issues.

3 participants