-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Silence the startup command printout in Integrated Terminal #100522
Comments
@Tyriar is there a good way to executed a command in the integrated terminal but turning off echoing? |
@mymikemiller if the debug console works for you, why are you not using it instead of the integrated terminal? |
You can turn off echoing commands in bash for example.
in your There is also a I don't know if either of those would affect the startup commands that you are seeing? |
@ArturoDent I don't think this is a bash thing (I use zsh, but same thing). When I run |
Btw, I get the same output with bash as my default terminal as I do with zsh:
|
@ArturoDent Switching to Bash and adding |
@mymikemiller are you saying that when you are typing |
@weinand correct. In a normal terminal: In VSCode's integrated terminal when debugging: |
FWIW, when debugging here - the app is being spawned with the DAP's |
@mymikemiller your zsh echos the command you are typing. The short The only difference is: VS Code creates a much longer command from data received from the dart extension because it has to make sure that the command is run in the correct directory and the environment variables are correctly set up. This result in a longer command. VS Code does not "print out" anything here. It is your zsh that echoes the command received from VS Code. |
@weinand It's not my zsh printing it, though. In the first screenshot, the text is there from me typing in the command and pressing enter. It doesn't print out the command again. |
@mymikemiller in the second screenshot the text is there from VS Code typing in the command and pressing enter. So the behavior is identically. You typing or VS Code typing makes no difference. The only difference is that VS Code has more to type. In your initial comment on this issue you are complaining about this "printout":
But if you read this "printout" carefully you will find that this is not "printout" but it is the actual command that VS Code is "typing" into VS Code's Integrated Terminal. If you would type the same manually it would look identically. |
@weinand This is a feature request, though, not an issue. (I think I filed it as such) From the initial post: "Could we get an option to silence this output, so the first thing I see in the Integrated Terminal is one of the print statements actually in my code?" I think that's a valid request for a feature. |
Sorry, but you called it issue:
I tried to explain that this is not a VS Code issue because VS Code is not "printing" out anything. VS Code is just "typing" a long command that starts with "cd /Users/....; bin/main.dart" into the Integrated Terminal and the shell in that terminal echos the command in the same way it is echoing when you type manually. I will open this as a feature request. |
Currently, if the start command is long, it is wrapped into multiple lines by the terminal. Users cannot quickly find the real starting point of the program output. This is the main pain point. If the integrate terminal allows disabling the line wrapping, that will mitigate this issue too. I found there is an existing feature request to support disabling line wrapping in integrated terminal. #74501 |
When I run a Dart app in the Integrated Terminal, it prints out a very verbose startup command, e.g.:
cd /Users/mikem/myproject; /usr/local/Cellar/dart/2.8.2/libexec/bin/dart --enable-vm-service=0 --pause_isolates_on_start=true --write-service-info=file:///var/folders/2n/vn59_vz152vg107rrs53ympc0000gn/T/dart-vm-service-ee74.json -DSILENT_OBSERVATORY=true --enable-asserts bin/main.dart
This happens for Javascript too:
mikem@MBP node_sample % /usr/local/bin/node --inspect-brk=6018 scripts/simple.js Debugger listening on ws://127.0.0.1:6018/453abe68-1da3-4862-8ba4-71d8e3dfd8d6 For help, see: https://nodejs.org/en/docs/inspector Debugger attached.
These printouts pollute the scrollback and aren't very useful imho. Could we get an option to silence this output, so the first thing I see in the Integrated Terminal is one of the print statements actually in my code?
Note that this doesn't happen when using the Debug Console. There, I only see this printout (which also would be nice to silence, but at least it's less verbose):
Connecting to VM Service at ws://127.0.0.1:58210/4yciVJ1NsWE=/w
The text was updated successfully, but these errors were encountered: