[kdevelop] [Bug 381506] Clicking into ":0:15:" in "Build view" opens empty file

2017-08-14 Thread Piotr Mierzwinski
https://bugs.kde.org/show_bug.cgi?id=381506

--- Comment #7 from Piotr Mierzwinski  ---
As I mentioned in first post I clicked into line starting with:
:0:15: error: 

I didn't check source code ("outputview/outputmodel.cpp"), but I suppose that
parser checking clicked line just tries to find first occurrence of ':' and if
it finds it, interprets all characters before as file name. Probably parser
blindly assumes that before ':' always is present file name. That's why opens
empty file (and probably wants to jump to row 0). Of course in this case should
open nothing. I suppose that parser just . It isn't smart enough.

Anyway I reproduced error and I know what cased it.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdevelop] [Bug 381506] Clicking into ":0:15:" in "Build view" opens empty file

2017-08-13 Thread Christos Gourdoupis
https://bugs.kde.org/show_bug.cgi?id=381506

--- Comment #6 from Christos Gourdoupis  ---
Ok it's all clear now. Kdevelop simply parses the output from make and gcc to
get the path to the source file. I used autotools and `make
--no-print-directory` which deprived the parser of sufficient info as make
descented into the subdirectories. I have found workarounds so I rest my case.
But Piotr uses cmake which seem to produce full absolute paths. 
Piotr can you post the actual error line that you are clicking on?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdevelop] [Bug 381506] Clicking into ":0:15:" in "Build view" opens empty file

2017-08-13 Thread Kevin Funk
https://bugs.kde.org/show_bug.cgi?id=381506

Kevin Funk  changed:

   What|Removed |Added

 Status|UNCONFIRMED |CONFIRMED
 Ever confirmed|0   |1

--- Comment #5 from Kevin Funk  ---
This is build-system agnostic. We should just never attempt to open a new file
when the output view is clicked. 

Check the code in kdevelop.git:outputview/outputmodel.cpp if you want to
provide a patch for this issue.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdevelop] [Bug 381506] Clicking into ":0:15:" in "Build view" opens empty file

2017-08-13 Thread Piotr Mierzwinski
https://bugs.kde.org/show_bug.cgi?id=381506

--- Comment #4 from Piotr Mierzwinski  ---
In short, cmake only generating "Makefile", so finally, it is still run make
command to build source code.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdevelop] [Bug 381506] Clicking into ":0:15:" in "Build view" opens empty file

2017-08-13 Thread Christos Gourdoupis
https://bugs.kde.org/show_bug.cgi?id=381506

--- Comment #3 from Christos Gourdoupis  ---
Hmmm... ok I don't know how cmake works, never used it.
But I just found out that if `make` runs with --no-print-directory
option, kdevelop gets confused as to where gcc is based when it runs.
However if `make` prints lines like:
make[2]: Entering directory ''
etc... then kdevelop finds and opens the relevant source file properly.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdevelop] [Bug 381506] Clicking into ":0:15:" in "Build view" opens empty file

2017-08-12 Thread Piotr Mierzwinski
https://bugs.kde.org/show_bug.cgi?id=381506

Piotr Mierzwinski  changed:

   What|Removed |Added

 CC||piotr.mierzwin...@gmail.com

--- Comment #2 from Piotr Mierzwinski  ---
I don't use "Custom Buildsystem". I use cmake type project with make, default
environment price and gcc.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdevelop] [Bug 381506] Clicking into ":0:15:" in "Build view" opens empty file

2017-08-12 Thread Christos Gourdoupis
https://bugs.kde.org/show_bug.cgi?id=381506

Christos Gourdoupis  changed:

   What|Removed |Added

 CC||xri...@otenet.gr

--- Comment #1 from Christos Gourdoupis  ---
I suffer from this bug too. When I click on an error line from compiler output,
a new empty file opens instead of the actual source file.
Are you using the Custom Buildsystem? And gcc?

-- 
You are receiving this mail because:
You are watching all bug changes.