Bug 72076 - Output to application view (using external tools) selects lines but will not open a source file at the specified file/line
Summary: Output to application view (using external tools) selects lines but will not ...
Status: RESOLVED NOT A BUG
Alias: None
Product: kdevelop
Classification: Applications
Component: Output Views (show other bugs)
Version: 3.0.0b2
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-07 19:19 UTC by Justin Randall
Modified: 2008-06-29 17:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Randall 2004-01-07 19:19:19 UTC
Version:           3.0b2 (using KDE KDE 3.1.4)
Installed from:    Compiled From Sources
Compiler:          gcc-3.x 
OS:          Linux

I use linting tools in conjunction with kdevelop. I added a "lint" file menu option. I can right-click on a file, execute my command with the %S option (current filename), and the output is sent to the application view widget. It includes file and line information. Left-clicking on any given line will not take me to the file/line specified in the application view output. I've also tried this with gcc to verify that it was not a problem with the lint output formatting of file and line information. the gcc output exhibits the same (lack of) behavior.

It seems like output to the application widget, if it contains file and line information, should open the file at the specified line if the user left clicks on the output line in question.
Comment 1 Julien Cugnière 2004-05-31 18:37:25 UTC
I concur! This feature is something I've been wanting for quite some time now, but for differents reasons:

Basically, when I run the application I'm developping and something goes wrong during runtime (such as a script failing to compile/run), it outputs a message on stdout/stderr with the "file:line: message" format, so I can locate the problem quickly.

It would be wonderfull (and I suppose relatively painless to implement) if kdevelop parsed the "Application" output view on mouse clicks just like it does for the "Messages" one!
Comment 2 Cor van Loos 2004-10-29 13:30:24 UTC
I have also problems when using Lint.

My configuration is slightly different:

- KDevelop v3.3.1.
- Invoking Lint through special target in makefile.
- Lint messages end up in the Messages tab as expected.

Unexpected behaviour is that the error messages (Formatted to look like GCC messages) do not lead to the correct line-number in the corresponding source file.

However when clicking a few lines lower, the editor window does jump.

Example:

cd '/data/pledip' && gmake -k -j1 lint-all
wine c:\\lint\\lint-nt pledip.lnt *.c
PC-lint for C/C++ (NT) Ver. 8.00p, Copyright Gimpel Software 1985-2004 
--- Module: bmpio.c 
--- Module: main.c 
--- Module: pclopt.c 
pclopt.c:628: Error 40 Undeclared identifier 'OPT_END2' 
pclopt.c:628: Error 30 Expected a constant 
pclopt.c:628: Warning 408 Type mismatch with switch expression 
pclopt.c:630: Info 788 enum constant 'OPT_END' not used within defaulted switch 
gmake: *** [lint-all] Error 4
*** Exited with status: 2 ***

When clicking the line starting with 'pclopt.c:630:' KDevelop jumps to the correct file but to line 628 instead of 130. The lines above do not cause any jump. 

When testing larger examples it seems that KDevelop is always at least 4 lines of. So to jump to the location of the error-message on line #1 you have to click on the error message on line #4.

This behaviour is only there when the 'Full compiler output' option is selected.
Comment 3 Amilcar do Carmo Lucas 2004-10-29 20:17:02 UTC
It could be a DOS CR/LF problem.
AFAIK we only deal with one (\n).
Comment 4 Julien Cugnière 2004-11-04 20:51:17 UTC
Hmm, this bug started out as a feature request for the "application" tool view. However, it now seem to have turned into a somewhat unrelated bug report for the "messages" tool view :-)

Should I open a new bug for the original wish ? I still very much want the feature described in the first two posts, as does the orignal poster I suppose...
Comment 5 Jens Dagerbo 2004-11-05 02:14:36 UTC
No, don't open a new for the wish. This is still the wish, bugs should be reported separately. 
Comment 6 Cor van Loos 2004-11-05 10:11:10 UTC
OK. I assume I should had created a new bug for this behaviour. Is this the appropriate step to take now?
Comment 7 Jordi Blasi 2005-02-10 18:15:02 UTC
*** This bug has been confirmed by popular vote. ***
Comment 8 Jordi Blasi 2005-02-10 18:29:28 UTC
Anyway, this keeps being a wish, not confirming any bug.

What if you capture output into Messages Output window or give choice to do so?
Comment 9 Andreas Pakulat 2008-06-29 17:20:12 UTC
this is basically fixed in kdev4, a plugin providing executing of some other app (like one that executes external tools) can support "doing something" when any entry in the outputview is activated.