Sublime Forum

Remove [Finished in 0.1s]

#1

How do I stop the [Finished in 0.1s] from showing after the build script execution is complete?

0 Likes

#2

Hey Gravy! Have a look at sublimetext.com/docs/build (found using Google: “sublime text” “finished in”).

0 Likes

#3

Thanks a lot, guess I should’ve put in the quotation marks while googling.

Though now this page ranks #1 for your query. Thanks =]

0 Likes

#4

Ok, I had a look though it:

sublimetext.com/docs/build

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

0 Likes

#5

Those docs are for Sublime Text 1.

0 Likes

#6

So, is there a solution?

0 Likes

#7

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",
        },
    ]
}
0 Likes

How to remove (Finished in 0.1s)?