Open
Description
nimsuggest/tests/tmacro_highlight.nim fails after unrelated changes
I have 3 PR's where that test fails and nothing in those PRs seems related
Example
- https://dev.azure.com/nim-lang/255dfe86-e590-40bb-a8a2-3c0295ebdeb1/_apis/build/builds/16260/logs/90
(saved as https://gist.github.com/timotheecour/c3d28f53bbcd92af35fdeb7db395ae04) for this PR: fix #14873 properly by skippingabi
field in importc type #17944 which should have nothing to do with it - https://dev.azure.com/nim-lang/255dfe86-e590-40bb-a8a2-3c0295ebdeb1/_apis/build/builds/16259/logs/108
(saved as https://gist.github.com/timotheecour/920a7059bb60ba57b70cb73ed05a458b) for this PR:{.used: symbol}
: fixes lots of issues with UnusedImport, XDeclaredButNotUsed, etc; fix #13185, #17511, #17510, #14246 #17938 which has nothing to do with either the other PR nor that test. - fix #17941: UnusedImport works for var/let/const/type invoked inside a generic #17942
Current Output
...
2021-05-06T03:48:30.2418624Z Hint: [Link]�
2021-05-06T03:48:30.3127995Z Hint: 64270 lines; 2.322s; 61.945MiB peakmem; proj: tester; out: tester_79436C22C3234E04E1F495161533F3E0A8DFC092 [SuccessX]�
2021-05-06T03:48:30.3129751Z Hint: ***SLOW, DEBUG BUILD***; -d:release makes code run faster. [BuildMode]�
2021-05-06T03:48:30.3130689Z Hint: /home/vsts/.cache/nim/tester_d/tester_79436C22C3234E04E1F495161533F3E0A8DFC092 [Exec]�
2021-05-06T03:48:30.3149862Z Test nimsuggest/tests/taccent_highlight.nim
...
2021-05-06T03:48:47.5049210Z Test nimsuggest/tests/tdot3.nim
2021-05-06T03:48:49.7860434Z Test nimsuggest/tests/tdot4.nim
2021-05-06T03:48:50.7922563Z Test nimsuggest/tests/tgeneric_highlight.nim
2021-05-06T03:48:53.1844414Z disabled epc: /home/vsts/work/1/s/nimsuggest/tests/tgeneric_highlight.nim
2021-05-06T03:48:53.1845825Z Test nimsuggest/tests/tinclude.nim
2021-05-06T03:48:53.8561532Z Test nimsuggest/tests/tmacro_highlight.nim
2021-05-06T03:48:54.4922437Z ==== STDIN ======================================
2021-05-06T03:48:54.4922966Z
2021-05-06T03:48:54.4923499Z Test failed: /home/vsts/work/1/s/nimsuggest/tests/tmacro_highlight.nim
2021-05-06T03:48:54.4924522Z Expected: highlight skMacro 1 6 1
2021-05-06T03:48:54.4925013Z highlight skType 1 11 6
2021-05-06T03:48:54.4925458Z highlight skType 1 20 7
2021-05-06T03:48:54.4926180Z highlight skMacro 3 0 1
2021-05-06T03:48:54.4926603Z highlight skMacro 3 0 1
2021-05-06T03:48:54.4926876Z
2021-05-06T03:48:54.4927249Z But got:
2021-05-06T03:48:54.4927835Z disabled epc: /home/vsts/work/1/s/nimsuggest/tests/tmacro_highlight.nim
2021-05-06T03:48:54.4928420Z Test nimsuggest/tests/tno_deref.nim
2021-05-06T03:48:55.5288426Z Test nimsuggest/tests/tobj_highlight.nim
...
Expected Output
works
Possible Solution
1.5.1 706562f