How do I stop the [Finished in 0.1s] from showing after the build script execution is complete?
Remove [Finished in 0.1s]
Hey Gravy! Have a look at sublimetext.com/docs/build (found using Google: “sublime text” “finished in”).
Thanks a lot, guess I should’ve put in the quotation marks while googling.
Though now this page ranks #1 for your query. Thanks =]
Ok, I had a look though it:
And tried to implement “showWhenFinished true” in my build file, however with no success.
My build file is rather different to their examples to…
Theirs:
build make
lineNumberRegex ^(...*?):([0-9]*):?([0-9]*)
showWhenFinished true
workingDir $ProjectDir
Mine:
{
"cmd": "php.exe", "$file"],
"selector": "source.php"
}
Their examples wouldn’t even work in Sublime Text
Yes, you can set quiet
to true
in your custom build system. For example, below is one of mine based on the built in Makefile
build system.
Turning off quiet
also has the side effect of not getting the large dump of text showing your path and so on when a build fails (which is why I’m doing it). If you still want that kind of action you need to take a different tack; use PackageResourceViewer
to modify the exec
command (bad idea) or make your own copy of it with a different command name and use that as the target
in your build system so that it uses your custom exec
call instead.
{
"name": "Make",
"shell_cmd": "make COLOUR_WARNINGS=NO",
"file_regex": "^(..[^:\n]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"word_wrap": "false",
"quiet": "true",
"variants": [
{
"name": "Clean",
"shell_cmd": "make COLOUR_WARNINGS=NO clean",
},
{
"name": "Run",
"shell_cmd": "make COLOUR_WARNINGS=NO run",
},
]
}
How to remove (Finished in 0.1s)?