Author Topic: Error parsing, VS2015  (Read 820 times)

machish

  • Community Member
  • Posts: 52
  • Hero Points: 0
Error parsing, VS2015
« on: November 30, 2015, 09:57:32 pm »
VS2015/msbuild produces an error like this:
Code: [Select]
c:\foo\bar\baz\LibraryHelpers.cs(131,32,131,54): error CS0117: 'Environment' does not contain a...And the default 'def1' expression isn't able to parse it:
Code: [Select]
^\*@(cfe\: (Error|Warning)\:|error(~:f|[*:])|warning(~:f|[:*])|\(|<|)\*@ *{:q|(.\\|):p}( +| *\(|\:|, line ){:d#}(,|\:|)( *{:d#}|> :i|)(\)|) @(error|){(\:|Error[~s]|Fatal|Warning)?*$}This is presumably because it has a
Code: [Select]
lineBegin, columnBegin, lineEnd, columnEnd format.

I tried the following, based on the 'Visual Studio' expression:
Code: [Select]
^(:i>|[ \t]@){#0?*}\({#1:i}(,{#2:i}|{#2})(,\d+,\d+)?\) *\: {#3?*$}but it still seems to match some other expression, because the filename includes
Code: [Select]
LibraryHelpers.cs(131
I set this rule to the top of the 'default' list. I assumed that SE tries every expression in the first 'Expression Category' before going on to the next 'Expression Category'.

Any suggestions on getting the parsing to work?
(SlickEdit Pro 20.0.0.12, 64-bit, Windows 10)

Thanks,

-martin

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4679
  • Hero Points: 377
Re: Error parsing, VS2015
« Reply #1 on: December 01, 2015, 10:02:58 am »
This error output is supported. I'm guessing you're using some old ErrorRE.xml config data or you changed the defaults some how.

Here's the regex that picks it up.
Code: [Select]
^(:i>|[ \t]@){#0?*}\({#1:i}(,{#2:i}|)(,:i|)(,:i|)\) *\: {#3?*$}
Try a default config "vs +new -sc <new-config-dir>"

machish

  • Community Member
  • Posts: 52
  • Hero Points: 0
Re: Error parsing, VS2015
« Reply #2 on: December 02, 2015, 12:37:56 am »
Thanks Clark, that regex did fix things.
Yes, I have upgraded from old versions over the years.

-martin