Author Topic: [Ubuntu] "instanciated from here" build message not clickable  (Read 5790 times)

Offline Kalith

  • Multiple posting newcomer
  • *
  • Posts: 67
Hi,

In the build messages panel, whenever I get "instantiated from here" messages, for example (taken from the build log) :
Code
In file included from ../Frost/Utils/include/frost_utils_types.h:109:0,
                 from ../Frost/Utils/include/frost_utils.h:18,
                 from include/blockchunk.h:4,
                 from /home/kalith/Programmation/Mycraft/src/blockchunk.cpp:1:
../Frost/Utils/include/frost_utils_ptr.h: In member function ‘Frost::s_ptr<T>::operator Frost::s_ptr<N>() [with N = Frost::Block, T = const Frost::Block]’:
/home/kalith/Programmation/Mycraft/src/blockchunk.cpp:572:75:   instantiated from here
../Frost/Utils/include/frost_utils_ptr.h:317:36: error: invalid conversion from ‘const Frost::Block*’ to ‘Frost::Block*’
../Frost/Utils/include/frost_utils_ptr.h:317:36: error:   initializing argument 1 of ‘Frost::s_ptr<T>::s_ptr(T*) [with T = Frost::Block]’

... I can only click on the last two error messages (the actual error), and not on the one just before, the "instantiated from here" one.
The actual error location is of no use to me, as it points to a smart pointer header. I'm interested in the root of the problem (/home/kalith/Programmation/Mycraft/src/blockchunk.cpp:572), but the build messages panel doesn't allow me to reach it.

I have to go there manually and, most of the time, to do so I have to expand the "file" tab because the file path is too long.

Can it be fixed somehow ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
(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 Kalith

  • Multiple posting newcomer
  • *
  • Posts: 67
Re: [Ubuntu] "instanciated from here" build message not clickable
« Reply #2 on: July 27, 2011, 03:41:02 pm »
If I understand correctly, there are two variants of this message, with and without the character position ?
If so, I know very little of regex, but the following seems to work correctly for both cases :
Code
([][{}() \t#%$~A-Za-z0-9_:+/\.-]+):([0-9]+):[0-9\:][ \t]+([iI]nstantiated from .*)
« Last Edit: July 27, 2011, 03:46:12 pm by Kalith »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: [Ubuntu] "instanciated from here" build message not clickable
« Reply #3 on: July 27, 2011, 05:21:52 pm »
Kalith:
I'll try it later today. The thing is that newer compilers can generate the :x:y message,
the older ones generate only the :x message, so we should support both variants.
(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 Kalith

  • Multiple posting newcomer
  • *
  • Posts: 67
Re: [Ubuntu] "instanciated from here" build message not clickable
« Reply #4 on: September 06, 2011, 09:17:40 pm »
Any news ? Is it working ok for you ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: [Ubuntu] "instanciated from here" build message not clickable
« Reply #5 on: September 07, 2011, 07:32:53 pm »
No, I've forgotten about it. Adding to the todo, so I can look at it next week.
(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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: [Ubuntu] "instanciated from here" build message not clickable
« Reply #6 on: September 18, 2011, 12:14:21 am »
I've found some time to test the reg expression and it doesn't work.
Have you tried it with the regexp testbed plugin?

I've an expression which works, but it requires changes to the code, because it returns the line number at two different positions for the two cases. :(
(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 Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: [Ubuntu] "instanciated from here" build message not clickable
« Reply #7 on: September 18, 2011, 02:30:18 am »
Can you please test these two regexes:
Both have to be included before (!) the existing Compiler warning and before the existing Compiler error.
Only tested on linux with gcc4.4 to 4.6 (only 4.5 and 4.6 lead to  the issue.

Compiler warning (2):
Code
([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t]([Ww]arning:[ \t].*)

Compiler error (2)
Code
([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t](.*)

Line number etc. are the same as for the existing regexes.