Sublime Forum

How to reorder regex matching groups for build system

#1

hello, I am sorry but I could not figure out how to reorder matching results for my regular expression.

Right now I have the following regex:
"errormessage filename errorline errorcolumn"
with their corresponding expression for each group.

For sublimetext I need the following order:
"file_regex": "filename errorline errorcolumn errormessage"

This does not work:

"file_regex": "errormessage filename errorline errorcolumn \2 \3 \4 \1"
0 Likes

#2

Unfortunately, that’s not possible at the moment. You can show your support in the github issue below:

1 Like

#3

That’s unfortunate, first time ever that SublimeText is letting me down :frowning:

If there are no better ideas, as a workaround I think I might use a bash script which does the build and provides the output in the desired order.

0 Likes

#4

Yes, that would have been my suggestion as well.

0 Likes

#5

does the advanced build system also have this limitation? It also makes use of result_file_regex and result_line_regex but additionally has a file read handler. I am still a bit unsure about the potential of such approach.

0 Likes