Error message incorect parsing

CodeLite installation/troubleshooting forum
sh35
CodeLite Curious
Posts: 2
Joined: Thu Nov 24, 2011 1:10 am
Genuine User: Yes
IDE Question: C++
Contact:

Error message incorect parsing

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Error message incorect parsing

Post 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
Make sure you have read the HOW TO POST thread
sh35
CodeLite Curious
Posts: 2
Joined: Thu Nov 24, 2011 1:10 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Error message incorect parsing

Post 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.
Cypress
CodeLite Curious
Posts: 2
Joined: Thu Sep 27, 2012 1:43 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Error message incorect parsing

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Error message incorect parsing

Post 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
Make sure you have read the HOW TO POST thread
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Error message incorect parsing

Post 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
You do not have the required permissions to view the files attached to this post.
Make sure you have read the HOW TO POST thread
Cypress
CodeLite Curious
Posts: 2
Joined: Thu Sep 27, 2012 1:43 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Error message incorect parsing

Post 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!
Post Reply