tide icon indicating copy to clipboard operation
tide copied to clipboard

fixing the `--short-version` glitches

Open Bastes opened this issue 1 year ago • 1 comments

This fixes the --short-version glitches referenced in issue https://github.com/IlanCosman/tide/issues/526

Description

Redirecting errors on elixir --short-version to /dev/null seems to fix the problem on my machines I've tested on.

Motivation and Context

Closes https://github.com/IlanCosman/tide/issues/526 (see for more details)

How Has This Been Tested

  • [x] I have tested using Linux.
  • [x] I have tested using MacOS.

Adding the 2> /dev/null redirection on both platforms makes the glitch disappears: no more unrequired additional new line added after the prompt, sometimes interrupting a command being typed nor --short-version : Unknown option error being haphazardly displayed.

Checklist

  • [ ] I am ready to update the wiki accordingly.
  • [ ] I have updated the tests accordingly.

Sorry, I don't know quite how to write tests for fish scripting, especially how to address such a glitch. As for the wiki, this being a bug fix, I'm not sure there needs to be an update? Let me know 🙂

Bastes avatar Sep 04 '24 07:09 Bastes

Hey :) just attempting to catch the attention of a reviewer, I don't mind using my own fork but if I'm not the only one the bug was... bugging, this would help.

Let me know if you've got feedback to take care of before merging, if I missed a guideline or something, I'm never above improving ;)

Bastes avatar Dec 03 '24 15:12 Bastes