Home Download Buy Blog Forum Support

BUG: Jump to file:line:column problem in ST2 Mac

BUG: Jump to file:line:column problem in ST2 Mac

Postby jeremysf on Mon Jul 11, 2011 6:52 pm

I added a custom build system definition with a file_regex.

When run, the output of the custom build system correctly displays in ST2. Manually navigating to the specified file, line and column in ST2 is correctly the location of the error.

When double clicking on an error in the build system output, while the correct file is displayed, the cursor often jumps to the wrong line and column.

The column appears to be interpreted by ST2 to be a character offset from the start of the line rather than the column index.

In other words, an error in the build system output for "line 122 column 4" when double clicked on will often jump past the specified column to something like line 122, column 16 as the "column 4" of the build output is interpreted by ST2 as "character offset 4" (in this example, jumping over four tab characters.
jeremysf
 
Posts: 2
Joined: Mon Jul 11, 2011 6:40 pm

Re: BUG: Jump to file:line:column problem in ST2 Mac

Postby jps on Tue Jul 12, 2011 1:09 am

That's correct, the column is interpreted as a character position, not a visual position - this is what tools generally output. If a compiler was to output a visual position, you'd have to tell it your tab width for it to determine this.
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Jun__33, lbirunner, Yahoo [Bot] and 26 guests

cron