Re: [Qt-creator] Fwd: issue with issue pane

2015-12-16 Thread André Hartmann

Hi Dmitry,

first of all, please keep the mailing list included, your problem might 
be interesting for others too and you get more help the more people read 
from it.


That said, sorry, the custom parser for now only scans for errors,
not warnings. I already started to extend the parser but never finished 
it (time is short...):


https://codereview.qt-project.org/#/c/80533/

If you want to take over... feel free to do so. I'd be happy to review 
your changes.


Best regards,
Andre


Hi,

Yes, custom error parser works with _*"(.*)", line (\d+): (.*)$*_ , now
it showing errors in source code and I can make jumps to line in file,
but it treats all "errors" and "warnings" like an errors. Is it possible
to configure it somehow to treat them separately (errors are red,
warnings are yellow)? I couldn't find any documentation about error parser.

Regards,

Dmitry

On 16 December 2015 at 11:51, André Hartmann mailto:andre.hartm...@iseg-hv.de>> wrote:

Hi

I have some makefile projects, too, and things work fine for me.
My compiler pattern for errors looks like this:

  ../src/main.c:708: error: xxx

while yours is

   "../src/main.c", line 708: error #20: xxx

It's quite possible, that your pattern is not recognized (correctly)
by Creators gcc error parser.

If you want to check yourself, its in gccparser.cpp, I could have a
look later today.

A possible solution is to set up a custom compiler in
Tools -> Options -> Build & Run -> Compilers -> Add -> Custom and
then set up a custom error parser (regular expression based). This
one is a bit slower but should support every possible compiler :)

Best regards,
Andre

Am 16.12.2015 um 12:17 schrieb cyb:


-- Forwarded message --
From: *cyb* mailto:cg.ve...@gmail.com>
>>
Date: 16 December 2015 at 10:48
Subject: Re: [Qt-creator] issue with issue pane
To: Ziller Eike mailto:eike.zil...@theqtcompany.com>
>>


Hi,

 ** Creator version*

QtCreator version 3.5.1, Build on Oct 15 2015, From revision
b4c52505ca

 *Which compiler is this?*

This is a Ti GCC based compiler for TMS320C55xx DSP, from Code
Composer
Studio v6. GCC error parser is working fine.

 ** How is the project organized?*

This is a makefile project, I just imported project sources and
using
qtcreator for building and editing.
*
*

 *  - Are the sources files in subdirectories?
  (Best would be to send the project file)*

Attached if it will help.

 ** Please send the contents of compile output pane too.
 *


Example compile output pane:

10:38:07: Running steps for project Vmic-DSP...

10:38:07: Starting: "c:\Program Files
(x86)\ti\ccsv6\utils\bin\gmake.exe" -k all

'Building file: ../src/main.c'

'Invoking: C5500 Compiler'

"C:/Program Files
(x86)/ti/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55"
-v5505 --memory_model=large -g --include_path="C:/Program Files
(x86)/ti/ccsv6/tools/compiler/c5500_4.4.1/include"

--include_path="D:/_PROJECTS/Tulip_Av2/Software/dsp/Vmic-DSP/CELT_Codec_0.7.1/libcelt"

--include_path="D:/_PROJECTS/Tulip_Av2/Software/dsp/Vmic-DSP/dsplib_3.0/inc"
--include_path="D:/_PROJECTS/Tulip_Av2/Software/dsp/Vmic-DSP/inc"

--include_path="D:/_PROJECTS/Tulip_Av2/Software/dsp/Vmic-DSP/usbstk5505/inc"
--define=c5505 --define=DECT_FP --define=HAVE_CONFIG_H
--display_error_number --diag_warning=225 --ptrdiff_size=16
--algebraic
--asm_source=algebraic --preproc_with_compile
--preproc_dependency="src/main.pp" --obj_directory="src"
"../src/main.c"

"../src/main.c", line 708: error #20: identifier
"overflowDetected" is
undefined

"../src/main.c", line 713: error #20: identifier
"overflowDetected" is
undefined

"../src/main.c", line 496: warning #552-D: variable
"CapturedPCML" was
set but never used

2 errors detected in the compilation of "../src/main.c".


gmake: *** [src/main.obj] Error 1

Compilation failure


gmake: Target `all' not remade because of errors.

10:38:08: The process "c:\Program Files
(x86)\ti\ccsv6\utils\bin\gmake.exe" exited with code 2.

Error while building/deploying project Vmic-DSP (kit:
Ti-C55-gcc-toolset)

When executing step "Make"

10:38:08: Elapsed time: 00:01.




There also was a discussion on the forum:
http://forum.qt.io/topic/61578/qt-creator-issue-with-issue-pane

Regards,

 

Re: [Qt-creator] Fwd: issue with issue pane

2015-12-16 Thread André Hartmann

Hi

I have some makefile projects, too, and things work fine for me.
My compiler pattern for errors looks like this:

 ../src/main.c:708: error: xxx

while yours is

  "../src/main.c", line 708: error #20: xxx

It's quite possible, that your pattern is not recognized (correctly)
by Creators gcc error parser.

If you want to check yourself, its in gccparser.cpp, I could have a look 
later today.


A possible solution is to set up a custom compiler in
Tools -> Options -> Build & Run -> Compilers -> Add -> Custom and then 
set up a custom error parser (regular expression based). This one is a 
bit slower but should support every possible compiler :)


Best regards,
Andre

Am 16.12.2015 um 12:17 schrieb cyb:


-- Forwarded message --
From: *cyb* mailto:cg.ve...@gmail.com>>
Date: 16 December 2015 at 10:48
Subject: Re: [Qt-creator] issue with issue pane
To: Ziller Eike mailto:eike.zil...@theqtcompany.com>>


Hi,

** Creator version*

QtCreator version 3.5.1, Build on Oct 15 2015, From revision b4c52505ca

*Which compiler is this?*

This is a Ti GCC based compiler for TMS320C55xx DSP, from Code Composer
Studio v6. GCC error parser is working fine.

** How is the project organized?*

This is a makefile project, I just imported project sources and using
qtcreator for building and editing.
*
*

*  - Are the sources files in subdirectories?
 (Best would be to send the project file)*

Attached if it will help.

** Please send the contents of compile output pane too.
*

Example compile output pane:

10:38:07: Running steps for project Vmic-DSP...

10:38:07: Starting: "c:\Program Files
(x86)\ti\ccsv6\utils\bin\gmake.exe" -k all

'Building file: ../src/main.c'

'Invoking: C5500 Compiler'

"C:/Program Files (x86)/ti/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55"
-v5505 --memory_model=large -g --include_path="C:/Program Files
(x86)/ti/ccsv6/tools/compiler/c5500_4.4.1/include"
--include_path="D:/_PROJECTS/Tulip_Av2/Software/dsp/Vmic-DSP/CELT_Codec_0.7.1/libcelt"
--include_path="D:/_PROJECTS/Tulip_Av2/Software/dsp/Vmic-DSP/dsplib_3.0/inc"
--include_path="D:/_PROJECTS/Tulip_Av2/Software/dsp/Vmic-DSP/inc"
--include_path="D:/_PROJECTS/Tulip_Av2/Software/dsp/Vmic-DSP/usbstk5505/inc"
--define=c5505 --define=DECT_FP --define=HAVE_CONFIG_H
--display_error_number --diag_warning=225 --ptrdiff_size=16 --algebraic
--asm_source=algebraic --preproc_with_compile
--preproc_dependency="src/main.pp" --obj_directory="src" "../src/main.c"

"../src/main.c", line 708: error #20: identifier "overflowDetected" is
undefined

"../src/main.c", line 713: error #20: identifier "overflowDetected" is
undefined

"../src/main.c", line 496: warning #552-D: variable "CapturedPCML" was
set but never used

2 errors detected in the compilation of "../src/main.c".


gmake: *** [src/main.obj] Error 1


Compilation failure


gmake: Target `all' not remade because of errors.

10:38:08: The process "c:\Program Files
(x86)\ti\ccsv6\utils\bin\gmake.exe" exited with code 2.

Error while building/deploying project Vmic-DSP (kit: Ti-C55-gcc-toolset)

When executing step "Make"

10:38:08: Elapsed time: 00:01.




There also was a discussion on the forum:
http://forum.qt.io/topic/61578/qt-creator-issue-with-issue-pane

Regards,

Dmitry

On 16 December 2015 at 10:25, Ziller Eike mailto:eike.zil...@theqtcompany.com>> wrote:


> On Dec 16, 2015, at 10:24 AM, cyb mailto:cg.ve...@gmail.com>> wrote:
>
> Hi, there's an issue with issue pane.
>
> Everything should be clear from next screenshot
>
> Gcc error parser is working, there's a line and file but it cannot take me to issue 
and not showing issue in source file. Maybe it because I used "Import project" but 
it should work in theory. Is this a my bug or feature was not implemented yet?

Qt Creator thinks that your file is called

main.c”

with a “ at the end.

What’s your compile output? (contents of “Compile Output” pane)
What compiler do you use on what platform?
Br, Eike

 >
 > Thanks,
 >
 > Dmitry
 >
 > ___
 > Qt-creator mailing list
 > Qt-creator@qt-project.org 
 > http://lists.qt-project.org/mailman/listinfo/qt-creator

--
Eike Ziller, Senior Software Engineer - The Qt Company GmbH

The Qt Company 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






--
Best regards / Mit freundlichen Grüßen
André Hartmann, Dipl.-Ing. (FH)
Software Project Manager

iseg Spezialelektronik GmbH |  phone: ++49 (0)351 26996-43
Bautzner Landstr. 23|  fax:   ++49 (0)351 26996-21
D-01454 Radeberg / Rossendorf   |  web:   www.iseg-hv.com

Geschäftsführer / Managing director: Dr. F. Gleisberg, Dr. J. Pöthig
Amtsgericht / Lower district court: Dresde