Sublime Forum

How to see error only in terminal window?

#1

Hello I want to see the errors only in the terminal, instead it shows up under my code too. It also shows in the terminal but I want to remove it from showing under my code. Also how do I remove this from my terminal?

[shell_cmd: javac “C:\Users\ikass\OneDrive\Documents\javaExcercise\XYPairTest.java”]
[dir: C:\Users\ikass\OneDrive\Documents\javaExcercise]
[path: C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;C:\windows\System32\OpenSSH;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn;C:\Program Files\Java\jdk-13.0.1\bin;C:\Program Files\Git\cmd;C:\Users\ikass\AppData\Local\Microsoft\WindowsApps;]

This big block of text shows in my terminal whenever I run my code for some reason.

0 Likes

#2

What you’re referring to isn’t a terminal, it’s the output panel that Sublime uses to display the captured output of the program when it runs.

The command that executes builds supports an argument you can use to hide the diagnostic output; you can edit the sublime-build file you’re using to include:

"quiet": true,

With that in place, builds will no longer display this output when they fail. In addition, the time of the build (whether it works or not) will also not be displayed; you’ll only see the output of your program and nothing else.

0 Likes

#3

problem still occurs, but now only when I compile. If I run it it shows the error in the output panel. Also how do you edit java -build? would I need to make a new build system and override the current build system?

0 Likes

#4

If you want to modify a build, the easiest thing to do would be to use View Package File from the command palette and then use the filter text sublime-build to see only build systems, then open the one you want to modify.

If Sublime lets you type in the file, then you can modify it as desired and save it.

If not, then you want to select and copy the entire content of the file and use Tools > Build System > New Build System from the menu to create a new empty stub build. Once that’s done, replace the entire contents of the stub file with what you copied. You can then edit the content as desired and save it with any name you like.

Once you do that there will be another build for you to choose from or select from the menu based on the name of the file that you saved.

0 Likes