CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

IDE: Find Declaration

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
oxo



Joined: 13 Nov 2012
Posts: 219
Location: France

View user's profile Send private message

IDE: Find Declaration
PostPosted: Wed Feb 17, 2016 6:31 am     Reply with quote

Does this right click menu function in the IDE work for anyone?
jeremiah



Joined: 20 Jul 2010
Posts: 1345

View user's profile Send private message

PostPosted: Wed Feb 17, 2016 9:00 am     Reply with quote

I just tried it on various projects and it seems to work just fine for me in 5.055. I highlight a function name, right click, and select find declaration and it jumps to the function declaration. For variables it jumps to the line where the variable is declared.
oxo



Joined: 13 Nov 2012
Posts: 219
Location: France

View user's profile Send private message

PostPosted: Wed Feb 17, 2016 9:22 am     Reply with quote

Well ^&*%*&%

On any of our computers, it just goes away for a while, sometimes a very long while.

Compiler 5.053, Windows 10 and Windows 7..
Ttelmah



Joined: 11 Mar 2010
Posts: 19499

View user's profile Send private message

PostPosted: Thu Feb 18, 2016 1:47 am     Reply with quote

Works fine for me.

Almost suggests you have something in the system(s) that is intercepting the right click. There is a standard system function to do this. Allows you to add extra stuff to all the right click operations. Normally only done for the shell, but I'd suspect you have something else that is affecting it at a lower level. Are you using a standard mouse?. I've seen problems in other programs, on a couple of 'enhanced' mice, that offer extra functions where you can reprogram the right click.
oxo



Joined: 13 Nov 2012
Posts: 219
Location: France

View user's profile Send private message

PostPosted: Thu Feb 18, 2016 2:47 am     Reply with quote

Found that it works for a single .c file project.

Our code is structured with multiple #include <mycode.c> in our main.c file, and possibly it's this which cause it to bog.
RF_Developer



Joined: 07 Feb 2011
Posts: 839

View user's profile Send private message

PostPosted: Thu Feb 18, 2016 3:53 am     Reply with quote

5.053 on Window 7.

Doesn't work at all for me, no response whatsoever when I right click and "find declaration". Not worked with any version 5 Fine on version 4.

All my projects have several includes, none are single file and none are MCU (Multiple Compiled Units).

Oh, don't forget it won't work unless there's been a successful compilation of the code.

I've reported it as a bug to CCS. Despite having other problems sorted and even a feature added (being able to put output files in a separate directory is something I asked for) this bug, and that's what it must be, has not been fixed.
Ttelmah



Joined: 11 Mar 2010
Posts: 19499

View user's profile Send private message

PostPosted: Thu Feb 18, 2016 5:15 am     Reply with quote

I tested on 5.053, and the project I tested had seven files. Just re-tried with one with 26 files, and it still works OK.

'Find all references' doesn't quite. Displays the references OK, but also gives lines suggesting there are other references that don't exist, at 'line 0' on a couple of files.

It is also refusing to find the declarations of enums, and certain structures, but returns instantly.
oxo



Joined: 13 Nov 2012
Posts: 219
Location: France

View user's profile Send private message

PostPosted: Thu Feb 18, 2016 5:19 am     Reply with quote

TT, but are those projects multiple compilation unit projects?
Ttelmah



Joined: 11 Mar 2010
Posts: 19499

View user's profile Send private message

PostPosted: Thu Feb 18, 2016 3:17 pm     Reply with quote

No.

Search here for why I never use MCU's.

It results in less efficient code, and I have yet to find a project (have some that go to over 200KB of code - that's 200KB _output_ - sources run to several MB), that takes more than a couple of seconds to compile.

I'm not surprised it can't find declarations on an MCU. At best I'd expect it to only be able to find the the external reference.
oxo



Joined: 13 Nov 2012
Posts: 219
Location: France

View user's profile Send private message

PostPosted: Fri Feb 19, 2016 3:16 am     Reply with quote

You misunderstand, our projects are not MCU. They have 5 or 6 included files from the main.c file.

It seems to be the same as you have, but I have no idea why our experience is different.
Ttelmah



Joined: 11 Mar 2010
Posts: 19499

View user's profile Send private message

PostPosted: Fri Feb 19, 2016 4:20 am     Reply with quote

I'd suspect a permissions issue.
The search almost certainly uses a temporary file. Possibility that a directory somewhere doesn't have write permission, and so you get the long delay, and no result.

You confused, by asking:
"TT, but are those projects multiple compilation unit projects?".
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group