Author Topic: Bug parsing "Instantiated from here" lines in the build log  (Read 3652 times)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12737
    • Travis build status
Here is the problematic line:
Code: [Select]
/home/obfuscated/projects/codeblocks/dev/debugger2/src/plugins/debuggergdb/debuggergdb_test_backtrace.cpp:255:5:   instantiated from here

The problem is that the line is parsed as 5 instead of 255.
Where and how should this be fixed?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9595
Re: Bug parsing "Instantiated from here" lines in the build log
« Reply #1 on: May 14, 2011, 01:11:02 pm »
Where and how should this be fixed?
For testing, "online" in the advanced compiler options (no compilation needed), then adjust the regex in the related compiler's cpp file.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12737
    • Travis build status
Re: Bug parsing "Instantiated from here" lines in the build log
« Reply #2 on: May 14, 2011, 01:52:24 pm »
Should I add new regex or modify an existing one?
Seems adding new one is the only way (my regex-fu is limited).
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9595
Re: Bug parsing "Instantiated from here" lines in the build log
« Reply #3 on: May 14, 2011, 01:58:38 pm »
Should I add new regex or modify an existing one?
Seems adding new one is the only way (my regex-fu is limited).
Nope, adding a new one would not work, as one error would be handled twice, one time correct and one time incorrect.

You have to modify the one in question and let it support both variants.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12737
    • Travis build status
Re: Bug parsing "Instantiated from here" lines in the build log
« Reply #4 on: May 14, 2011, 04:03:47 pm »
Nope, adding a new one would not work, as one error would be handled twice, one time correct and one time incorrect.
Hm, I think I can add new version which will match correctly only the 255:5: version.

You have to modify the one in question and let it support both variants.
I can't do this, I've tried but failed. Any help here will highly be appreciated.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]