Sublime Forum

Build Results line_regex not working

#1

Hi all,

I have a problem with line_regex for ST3. I’m making a code analysis plugin, and in the panel, I’m showing the results. I have a problem with line regex not working.

here is a code sample:

panel.settings().set(
    "result_file_regex", r"(^\S+)(.*)(?:⚠️|⛔|ⓘ)(.*)"
)
panel.settings().set(
    "line_regex",  r"(?:⚠️|⛔|ⓘ) \[(\d+), (\d+)\]: (.*)"
)

and file regex works but a line does not.
example of the result:

analyze.py ⓘ 1  
     ⓘ [77, 22]: Use decode before passing to json.loads.
0 Likes

#2

Can you see if result_line_regex works instead of line_regex ?

0 Likes

#3

Works like a charm, thank you so much @UltraInstinct05

0 Likes