Home Download Buy Blog Forum Support

lineNumberRegex can't match multiline error messages?

lineNumberRegex can't match multiline error messages?

Postby guillermooo on Wed Mar 03, 2010 9:50 pm

I have the following build setup for Powershell:

Code: Select all
build powershell.exe -noprofile -noninteractive -executionpolicy remotesigned -file "$File"
lineNumberRegex ^At[ ]([A-Za-z]:.*?):([0-9]*)
showWhenFinished true

The problem is that if the line reporting the error location exceeds the console's buffer width, PS will spit back the data with newline chars and Sublime won't be able to find the captures. Is it possible to make the dot operator consume the newline too or tell the build system to perform a multiline search?

Also, I've noticed that showFinishedTrue doesn't report the time on success after running a PowerShell script file.


Code: Select all
next line throws an error
Attempted to divide by zero.
At C:\Users\guillermooo\AppData\Roaming\Sublime Text\Packages\User\psbuffistoos
hortletsusesomethinglonger.ps1:4 char:3
+ 0/ <<<< $null
    + CategoryInfo          : NotSpecified: (:) [], RuntimeException
    + FullyQualifiedErrorId : RuntimeException
Posts: 738
Joined: Thu Jul 23, 2009 9:06 am

Re: lineNumberRegex can't match multiline error messages?

Postby jps on Mon Mar 08, 2010 12:05 pm

Unfortunately, no, it's not possible atm to write a multiline regex. I've added it to the todo list.
Site Admin
Posts: 3217
Joined: Wed Mar 19, 2008 12:33 pm

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 22 guests