[Qt-creator] External tools: linking to line in source

Ziller Eike Eike.Ziller at digia.com
Tue Apr 29 10:02:02 CEST 2014


On Apr 17, 2014, at 6:44 PM, achartier at fastmail.fm wrote:

>> On Apr 16, 2014, at 3:10 PM, Andr? Hartmann <andre.hartmann at iseg-hv.de>
>> wrote:
>> 
>>> Hi Alfonso,
>>> 
>>>> On a somewhat related topic, is it possible to use ANSI escape codes
>>>> to color-code the output from my external tool in the General Messages
>>>> output pane?
>>> 
>>> With this change: https://codereview.qt-project.org/#change,64183
>>> 
>>> at least ANSI escape code support for compile and application output 
>>> pane was added. I'm not sure how easy it is to extend this to the 
>>> "General Messages" pane.
>> 
>> Actually there is
>> https://bugreports.qt-project.org/browse/QTCREATORBUG-9686 too, which
>> would solve your issue by using the app output panes instead ;)
>> It?s a non-trivial task though (but more or less mechanical work, I
>> guess), since the whole ?app output? infrastructure needs to move to the
>> core plugin for this to happen.
>> 
>> Br, Eike
>> 
>>> and would like to enable similar source file/line number linking
>>>> functionality.
>>> 
>>> I'm interested in this, too.
>>> 
>>> Best regards,
>>> Andre
>>> 
>>>> Hi,
>>>> 
>>>> I have noticed that when a Q_ASSERT statement fails when running an
>>>> application in Qt Creator, Qt Creator kindly makes a link out of the
>>>> file/line number where the failure occurred in the Application Output
>>>> pane. This is very helpful, as one can click on this link and it jumps
>>>> you to the exact line where the Q_ASSERT is.
>>>> 
>>>> I am working on integrating an external tool I have developed into Qt
>>>> Creator and would like to enable similar source file/line number linking
>>>> functionality. Since the output of this external tool is displayed in
>>>> the General Messages output pane, it would need to be linkable from that
>>>> output pane. Is this possible? If so, is there some special syntax I
>>>> need to use when outputting the linkable text using qDebug()?
>>>> 
>>>> On a somewhat related topic, is it possible to use ANSI escape codes to
>>>> color-code the output from my external tool in the General Messages
>>>> output pane?
>>>> 
>>>> Thanks!
>>>> 
>>>> Alfonso
> 
> Thanks Andre and Eike for the information. It looks like there may be
> some non-trivial work to do to get the ANSI escape colors working for
> external tool output.
> 
> What about linking to source/line numbers? Is this currently possible in
> the General Messages output pane? If so, what syntax would I need to use
> to create a link?

AFAIK it’s not possible in the general messages pane at the moment. Would probably not be too hard to add, I’d guess, but I haven’t looked into it.
Br, Eike

> Thanks,
> 
> Alfonso
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator

-- 
Eike Ziller, Senior Software Engineer - Digia, Qt
 
Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B




More information about the Qt-creator mailing list