Cygwin Error/warning in codelite

General questions regarding the usage of CodeLite
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Cygwin Error/warning in codelite

Post by eranif »

gerardpuducul wrote:is the rev 2060 include the modification?? Because it does't seem to work
No, it is included from revision 2095. here is the change log from SVN
------------------------------------------------------------------------
r2095 | eranif | 2008-09-08 21:42:43 +0300 (Mon, 08 Sep 2008) | 2 lines
- Fixed: Build output will print the project being built even when in custom build, this fixes an issue when setting a custom compiler + custom makefile causes codelite to dont use the custom compiler regexes for parsing the output
------------------------------------------------------------------------

It will soon be released, just making sure the massive changes I have done to the build system (not related to the above quoted change ;) ) are stable

Eran
Make sure you have read the HOW TO POST thread
gerardpuducul
CodeLite Enthusiast
Posts: 36
Joined: Mon Sep 08, 2008 5:11 pm
Contact:

Re: Cygwin Error/warning in codelite

Post by gerardpuducul »

hy eran,

i have tested with the reviion 2128.

The highlight working good ( so codelite recogize the compiler error syntax) but when i click on the error nothing happens! :shock:

Maybe it is due to the relative path in the error message! Do you manage relative path?

Code: Select all

Building: 
make
----------Building project:[ SW - SWIFTMM_THSYS ]----------
tcc -li -apcs /inter  -g -I../../source -I../../../lib/source -I../../../../SWIFT_MM_HAL/test/lib/source -I../../../../SWIFT_MM_HAL/hal/include -I../../../../SWIFT_MM_HAL/hal/include -I../../source/ft -DNEMO_1 -DRF_U3588_NEMO -DPNX5220_3 -DHAL_DTM -DDEBUG -UNEW_RFC_MODE -DHAL_MONITORING_WITH_FAGC_NOT_USED -DHAL_BOEN_START_DELAY -DBURST_RES_TEST -UHAL_GMSK0_MODULATOR_USED -UDSP_CLOCK_78 -DDSP_CLOCK_104 -UDSP_CLOCK_117 -DTEST_HR_FILTER -DBOOT_ON_DEFENSE -UFT_TEST_PACCH -UTEST_FINT0_CHECK -DHAL_USE_PREDEFINE_TABLE_RF -DJOSE -DINLINE -USYSOL_SWIFTMM -DPNX5220_3 -DSWIFT_MM -DDTM   -c -o ft.o ../../source/ft/ft.c
"..\..\source\ft\ft.c", line 216: Error: C2456E: undeclared name, inventing 'extern int dfsd'
"..\..\source\ft\ft.c", line 218: Warning: C2917W: no side effect in void context: 'dfsd'
"..\..\source\ft\ft.c", line 218: Serious error: C2284E: expected ';' after command - inserted before 'HAL_GPIO_Set'
..\..\source\ft\ft.c: 1 warning, 1 error, 1 serious error
make: *** [ft.o] Error 1
2 errors, 0 warnings, total time: 00:00:01 seconds
----------Build Ended----------
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Cygwin Error/warning in codelite

Post by eranif »

gerardpuducul wrote:Maybe it is due to the relative path in the error message!
Possible
gerardpuducul wrote:Do you manage relative path?
Yes, I am. The problem can be:
Maybe your makefile changes directory? so the relative path is relative to the makefile working directory and not to the codelite project?

Do u get any errors in the 'Trace' tab?

Eran
Make sure you have read the HOW TO POST thread
gerardpuducul
CodeLite Enthusiast
Posts: 36
Joined: Mon Sep 08, 2008 5:11 pm
Contact:

Re: Cygwin Error/warning in codelite

Post by gerardpuducul »

Maybe your makefile changes directory? so the relative path is relative to the makefile working directory and not to the codelite project?
You are true!My makefile change directory and the relative path is relative to the makefile :roll: . Could you do something for this? ;)
Do u get any errors in the 'Trace' tab?
So of course i have an error saying file not exist!!!
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Cygwin Error/warning in codelite

Post by eranif »

gerardpuducul wrote:You are true!My makefile change directory and the relative path is relative to the makefile
Figures...
gerardpuducul wrote:Could you do something for this?
Actually, I can do this:

I can make codelite "guess' - if the file (as it appears in the error line) does not exist, I can try and use the file name only:
if ../../../somfile.cpp fails to open, I can ask codelite to get me a list of file which matches: 'somefile.cpp' without the path.
If only one match: codelite will open this file, otherwise, a user will be prompted for the correct file

What do you think?

Eran
Make sure you have read the HOW TO POST thread
gerardpuducul
CodeLite Enthusiast
Posts: 36
Joined: Mon Sep 08, 2008 5:11 pm
Contact:

Re: Cygwin Error/warning in codelite

Post by gerardpuducul »

Yes this will be a solution!

But why you don't start from the makefile directory to find the correct file! It seems to me more easy and firendly no?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Cygwin Error/warning in codelite

Post by eranif »

gerardpuducul wrote:But why you don't start from the makefile directory to find the correct file! It seems to me more easy and firendly no?
Since that the makefile does not really tells me when it changes directory ...

I know it prints: Entering directory ...

But this it only for makefile, what if user chooses to user other custom build ? like 'Ant' or whatever?

My solution is generic, and in my opinion, if you don't have much duplicate files in the workspace, this should not be a problem.
Eran
Make sure you have read the HOW TO POST thread
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Cygwin Error/warning in codelite

Post by eranif »

Can u print here the exact error you get in the 'Trace' tab?

Thanks,
Eran
Make sure you have read the HOW TO POST thread
gerardpuducul
CodeLite Enthusiast
Posts: 36
Joined: Mon Sep 08, 2008 5:11 pm
Contact:

Re: Cygwin Error/warning in codelite

Post by gerardpuducul »

Here it is, not very fun!!

Code: Select all

17:23:59: File: "..\..\source\ft\ft.c" does not exist!
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Cygwin Error/warning in codelite

Post by eranif »

Hi,

Looking at my code, reveals that my suggestion is already been implemented (that is, try the file name without any path if all fails).

This is why I asked you you to paste the error from the 'Trace' tab - and by looking at what you have pasted, it made me wonder: where did the string quotations marks came from? they should have been stripped!

So, I would like to change another thing, change the regex patterns to be:

Error pattern:

Code: Select all

("?)([a-zA-Z\\\.0-9 _/\:\+\-]+)("?)(, line )([0-9]+)((: Error:)|(: Serious error:))


File Index: 2
LIne Index: 5

Warning pattern:

Code: Select all

("?)([a-zA-Z\\\.0-9 _/\:\+\-]+)("?)(, line )([0-9]+)(: Warning)
File Index: 2
LIne Index: 5

This should remove the quotations mark from the file name.

Does it help?

Eran
Make sure you have read the HOW TO POST thread
Post Reply