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

fix hintProcessing dots interference with static:echo and hintCC; add tests for nim secret, add tests for hintProcessing, misc other bug fixes #16495

Merged
merged 10 commits into from
Dec 30, 2020

Conversation

timotheecour
Copy link
Member

@timotheecour timotheecour commented Dec 28, 2020

This maybe solves it for nim secret, but it is not the only instance where the stuff is printed on the same line as dots.

the logic in PR now also works with --stdout (see tests)

  • fix hintProcessing dots interfering with hintCC (CC: ....)

  • add basic tests for nim secret refs minor improvement for nim secret #16478 (comment)

  • adds tests for hintProcessing in particular the fact that dots (after this PR) don't interfere with for example static: echo

  • make trunner warning free

  • --hint:processing is now overridable, like other hints (eg --hint:link:off ... --hint:linkwould end up with--hint:link`; this is useful when assembling cmdlines, in fact i hit this bug while writing a test in trunner)

  • fix bug: readLineFromStdin fallback now writes prompt to stdout, consistent with linenoise and rdstdin

future work

  • I disabled a line of test for windows, pre-existing issue that can be fixed later: on windows,
    nim r --hint:processing -f --eval:"static: echo 1+1” now works without dot interference when running in cmd.exe, but still fails if shelling out via execCmdEx (refs hintProcessing dot interference issue on windows ringabout/Nim#15 problem 4)

@timotheecour timotheecour changed the title fix dots interfering with static:echo, add tests for nim secret, add tests for hintProcessing fix hintProcessing dots interfering with static:echo, add tests for nim secret, add tests for hintProcessing Dec 28, 2020
@timotheecour timotheecour changed the title fix hintProcessing dots interfering with static:echo, add tests for nim secret, add tests for hintProcessing fix hintProcessing dots interfering with static:echo, hintCC; add tests for nim secret, add tests for hintProcessing, other hint fixes Dec 29, 2020
@timotheecour timotheecour changed the title fix hintProcessing dots interfering with static:echo, hintCC; add tests for nim secret, add tests for hintProcessing, other hint fixes fix hintProcessing dots interference with static:echo and hintCC; add tests for nim secret, add tests for hintProcessing, misc other bug fixes Dec 29, 2020
@Araq
Copy link
Member

Araq commented Dec 30, 2020

I'm sorry for the dots in Nim's output. Should we remove them again?

@Araq Araq merged commit 8508c4e into nim-lang:devel Dec 30, 2020
@timotheecour
Copy link
Member Author

timotheecour commented Dec 30, 2020

I'm sorry for the dots in Nim's output. Should we remove them again?

the feature is good as a default (most bugs have been fixed by now), but in future I'd like the following:

I often find this useful when debugging

@timotheecour timotheecour deleted the pr_fix_dot_static_echo branch December 30, 2020 19:11
mildred pushed a commit to mildred/Nim that referenced this pull request Jan 11, 2021
…`; add tests for `nim secret`, add tests for hintProcessing, misc other bug fixes (nim-lang#16495)

* fix dots interfering with static:echo
* add tests
* fix hintProcessing dots for hintCC
* improve trunner tests
* fix bug: readLineFromStdin now writes prompt to stdout, consistent with linenoise and rdstdin
* disable a failing test for windows
ardek66 pushed a commit to ardek66/Nim that referenced this pull request Mar 26, 2021
…`; add tests for `nim secret`, add tests for hintProcessing, misc other bug fixes (nim-lang#16495)

* fix dots interfering with static:echo
* add tests
* fix hintProcessing dots for hintCC
* improve trunner tests
* fix bug: readLineFromStdin now writes prompt to stdout, consistent with linenoise and rdstdin
* disable a failing test for windows
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