Page 1 of 1

Error message incorect parsing

Posted: Thu Nov 24, 2011 1:37 am
by sh35
Hello,
I am a new user of codelite.
I use codelite with linux mint 12 rc
I have installed colite from the default package of Mint and updated with the last version (V3.0.5046).
When there are errors in compilation, the error tab is not filled correctly
here is a copy of the built tab:
----------Build Started--------
/bin/sh -c '"make" -j 2 -f "Suivit_wsp.mk"'
----------Building project:[ Suivit - Debug ]----------
make[1]: entrant dans le répertoire « /home/sh/Projets/Suivit »
g++ -c "/home/sh/Projets/Suivit/import/ImportTCX.cpp" -g -I/usr/local/lib/wx/include/gtk2-unicode-2.9 -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -o ./Debug/import_ImportTCX.o -I.
/home/sh/Projets/Suivit/import/ImportTCX.cpp: In member function ‘void CImportTCX::ParseTrackPoint(TiXmlNode*, CLap*)’:
/home/sh/Projets/Suivit/import/ImportTCX.cpp:90:24: erreur: ‘class CPosition’ has no member named ‘SetHeartBPM’
/home/sh/Projets/Suivit/import/ImportTCX.cpp:94:24: erreur: ‘class CPosition’ has no member named ‘SetDistance’
/home/sh/Projets/Suivit/import/ImportTCX.cpp:98:24: erreur: ‘class CPosition’ has no member named ‘SetAltitude’
make[1]: *** [Debug/import_ImportTCX.o] Erreur 1
make[1]: quittant le répertoire « /home/sh/Projets/Suivit »
make: *** [All] Erreur 2
----------Build Ended----------
3 errors, 0 warnings
I have joined a copy of the errors tab
I use the default errors pattern (in the compiler configuration).

Do you have any solution?
thanks.

Re: Error message incorect parsing

Posted: Thu Nov 24, 2011 1:52 am
by eranif
Try updating your regular expression to fit your locale.

From:

"Settings | Build Settings | Compilers | gnu g++ | Patterns", replace the first pattern from:

Code: Select all

^([^ ][a-zA-Z:]{0,2}[ a-zA-Z\\.0-9_/\\+\\-]+ *)(:)([0-9]*)([:0-9]*)(: )((fatal error)|(error)|(undefined reference))
into:
( I am not sure if 'fatal erreur' is correct here, you will have to adjust it yourself here)

Code: Select all

^([^ ][a-zA-Z:]{0,2}[ a-zA-Z\\.0-9_/\\+\\-]+ *)(:)([0-9]*)([:0-9]*)(: )((fatal erreur)|(erreur)|(undefined reference))
Eran

Re: Error message incorect parsing

Posted: Fri Nov 25, 2011 12:12 am
by sh35
Hello Eran,
Thanks for your fast reply, it seems to work fine with that.
I have not seen that a part of the error was translated.
thanks a lot.

Re: Error message incorect parsing

Posted: Wed Oct 03, 2012 6:33 pm
by Cypress
Codelite version: 4.1.5770
OS: Windows7 Professional x64
Project: with "custom build" settings
Build tools: arm-eabi toolchain for Cygwin

When i build my project and click on error in the build tab - nothing happens...
Next message appear in the trace tab:
Failed to open: C:\home\Cypress\Work\at91redboot_ROM_usbfp\redboot_build\redboot\current\opt\ecos\ecos-2.0\packages\redboot\current\src\usb\host\class\usb_kbd.c: No such file or directory
Path to file with error in the
  • build tab:
/opt/ecos/ecos-2.0/packages/redboot/current/src/usb/host/class/usb_kbd.c
  • errors tab:
\home\Cypress\Work\at91redboot_ROM_usbfp\redboot_build\redboot\current\opt\ecos\ecos-2.0\packages\redboot\current\src\usb\host\class\usb_kbd.c
Rigth path to the file:
c:\cygwin\opt\ecos\ecos-2.0\packages\redboot\current\src\usb\host\class\usb_kbd.c


What am I doing wrong?

Thank you in advance.
build_log.txt
Errors_tab.png
Trace_tab.png

Re: Error message incorect parsing

Posted: Wed Oct 03, 2012 10:31 pm
by eranif
Cypress wrote:What am I doing wrong?
You are using cygwin.

codelite does not understand the cygwin paths (these are not native paths, they are all relative to CYGDRIVE)

I need to add support for this

Eran

Re: Error message incorect parsing

Posted: Thu Oct 04, 2012 1:10 am
by eranif
I managed to add some basic support for cygwin file paths:

It will work under 2 conditions:

1) The build output uses fullpath file names
2) you should have cygpath in your path
cygwin.png
Committed to trunk
Eran

Re: Error message incorect parsing

Posted: Sun Oct 07, 2012 5:03 pm
by Cypress
It will work under 2 conditions:

1) The build output uses fullpath file names
2) you should have cygpath in your path

Committed to trunk
It does not work in Tree [r5823] / trunk /.

Currently, I  am using workaround. Adding a Pre Build command:

Code: Select all

env echo -e "Entering directory \0140/cygwin'"
solves my problem.

Thanks for this great software, it works perfectly in every way!