Skip to content

Update - Showing Errors on Build in same line.  #7

@pranshukas

Description

@pranshukas

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions