View previous topic :: View next topic |
Author |
Message |
oxo
Joined: 13 Nov 2012 Posts: 219 Location: France
|
IDE: Find Declaration |
Posted: Wed Feb 17, 2016 6:31 am |
|
|
Does this right click menu function in the IDE work for anyone? |
|
|
jeremiah
Joined: 20 Jul 2010 Posts: 1342
|
|
Posted: Wed Feb 17, 2016 9:00 am |
|
|
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
|
|
Posted: Wed Feb 17, 2016 9:22 am |
|
|
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: 19477
|
|
Posted: Thu Feb 18, 2016 1:47 am |
|
|
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
|
|
Posted: Thu Feb 18, 2016 2:47 am |
|
|
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
|
|
Posted: Thu Feb 18, 2016 3:53 am |
|
|
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: 19477
|
|
Posted: Thu Feb 18, 2016 5:15 am |
|
|
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
|
|
Posted: Thu Feb 18, 2016 5:19 am |
|
|
TT, but are those projects multiple compilation unit projects? |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19477
|
|
Posted: Thu Feb 18, 2016 3:17 pm |
|
|
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
|
|
Posted: Fri Feb 19, 2016 3:16 am |
|
|
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: 19477
|
|
Posted: Fri Feb 19, 2016 4:20 am |
|
|
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?". |
|
|
|