Author Topic: Need help with regex for error parsing  (Read 411 times)

davehohl

  • Senior Community Member
  • Posts: 244
  • Hero Points: 14
Need help with regex for error parsing
« on: May 20, 2016, 04:53:29 pm »
I am trying to configure an error parser for the BGSCript language. A sample error message is:

main_script.bgs:Error, syntax error in line 218

I created a regex as follows:

^{#0:p}\:Error,{?+}line:b{#1:i}$

When I run the regex validation tool, it correctly identifies the filename as main_script.bgs and the line # as 218.

However, when I double click on the error message line in the Build output window, a "Find File" dialog box pops up asking me to enter the path for "error". It seems to think that the "error" in "syntax error" is the filename.

Any idea what might be going wrong?

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1958
  • Hero Points: 81
Re: Need help with regex for error parsing
« Reply #1 on: May 20, 2016, 04:55:21 pm »
Is the file in the current path?  It may be that it identified the filename, but it can't find it.

davehohl

  • Senior Community Member
  • Posts: 244
  • Hero Points: 14
Re: Need help with regex for error parsing
« Reply #2 on: May 20, 2016, 05:06:18 pm »
I did a File>Change Directory... and SE showed my working directory as being selected. I selected it again anyway and hit OK, and now things work. I notice there is a "Change directory in Build Window" check box that seems to default to checked. Perhaps this has something to do with it? I don't know how the current directory would have gotten changed.