Competitive-Programming icon indicating copy to clipboard operation
Competitive-Programming copied to clipboard

Update - Showing Errors on Build in same line.

Open pranshukas opened this issue 3 years ago • 0 comments

I would like to make an update that Sublime Text 3 supports showing build errors in the same line. As show below.

9192853767417b97ae7ce625e0f911512e2b1437

It's actually very useful during Contest when we tend to have some simple errors, it helps to debug quickly. Thus to enable this feature, make sure show_errors_inline setting is turned on (by default it's on), else it can be set by navigating to preferences -> settings "show_errors_inline": true,

Next this is file_regex property should be set in build file. "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",

Example for Linux c++ build file.

{
"cmd" : ["g++ -std=c++14 $file_name -o $file_base_name && timeout 4s ./$file_base_name<inputf.in>outputf.in"], 
"selector" : "source.c",
"shell": true,
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir" : "$file_path"
}

In case it helps do make sure to update !

pranshukas avatar Dec 21 '21 18:12 pranshukas