Sublime Forum

ST3: For Make projects, can't jump to file with errors

#1

Using ST3 on a project that uses recursive make as its build system, you can’t jump to the file and line with an error in it by double-clicking the error line in the build output. This is because make doesn’t output the full path, just the filename:line:column. The error line does get highlighted, but if you double-click it ST3 will jump to a new (empty) file.

For example:

make[3]: Entering directory /projects/pr1/src/parser
g++
parser.cc: In member function ‘Parser::generate(int depth)’:
parser.cc:201:44: error: ‘ix’ was not declared in this scope

The last line will be highlighted and clickable, but clicking it will open a new file in the project’s root directory.

0 Likes

Clicking on Build Errors doesn't work & other stuff
#2

I’ve noticed something else about this problem:

If I right-click the filename in the build output window the two options “open containing folder” and “reveal in sidebar” both work, which means ST3 knows the file location. It’s only double-clicking the file that tries to open the file in the root directory of the project.

0 Likes

#3

Any comment? Is my explanation clear enough?

0 Likes