Sublime Forum

Not showing nither output and finished time

#1

I’m running some c++ code on sublime in ubuntu, using the build i made it compiles but it does not show the finish time nor the output in the sublime terminal. If I copy and paste the the command into the terminal, it shows the output.


This is the build i made and after selecting it in the Tools/Build System menu and pressing F7 it does not show the information. Thanks for the help.

0 Likes

#2

Do you see any errors in the Sublime console?

Just off the top of my head, your build looks potentially incorrect. cmd is meant to be an array of strings where the first one is the program to execute and the remaining are the arguments to that program, but you’re specifying one string.

Theoretically, using "shell": true, may change how cmd is interpreted, but since you want it to run in the shell and you already have the string, I would try removing the shell line and replacing the cmd with shell_cmd instead; the value can remain the same long string, just remove the [ and ] since shell_cmd expects to see a single string.

The fact that it works outside of Sublime is a good sign that the command is otherwise correct. Just as a potential shot in the dark for problems that commonly cause problems like not seeing any output from within Sublime, does your program interact with the user in any way (i.e. require the user to provide input before it continues)? If so, that’s a problem as well.

1 Like

#3

also your working_dir variable references are currently not variable references but a literal: &{project_path} which seems wrong. I suggest to replace the & with a $ and to install the PackageDev package for better syntax highlighting.

2 Likes