Board index » delphi » Re: Find Declaration doesn't always work.

Re: Find Declaration doesn't always work.


2003-07-10 11:17:47 AM
delphi61
Dan,
I hope this isn't a dumb question, but is the "declaration unit" in the Uses
clause of the "invocation unit"?
I've noticed odd behaviour in the past which went away when I moved the Uses
item from the "Implementation" to the "Interface" - but I haven't had this
sort of problem for a long while (and not in D7)...
Cheers, Paul
"Dan Downs" <XXXX@XXXXX.COM>writes
Quote
I'm running into a problem with the "Find Declaration", on some classes I
can control click and it opens the correct unit, but on others nothing
happens even though both units are in the same directory and in the
library's search path. Any known reasons for this?

DD


 
 

Re: Find Declaration doesn't always work.

Find declaration does not work if:
- de{*word*81} is running
- there are compilation errors above current point or in used units
- the destination unit(s) was (were) compiled without debug info
- you hit one of bugs in IDE which destabilizes it, or install a buggy
package with same consequences
- there can always be more reasons :)
--
Robert Cerny
codecentral.borland.com/codecentral/ccWeb.exe/author
"Dan Downs" <XXXX@XXXXX.COM>writes
Quote
I'm running into a problem with the "Find Declaration", on some classes I
can control click and it opens the correct unit, but on others nothing
happens even though both units are in the same directory and in the
library's search path. Any known reasons for this?

DD


 

Re: Find Declaration doesn't always work.

Hi Guys,
Yep, I had some problems with this one also.
If you end up (for whatever reason) with a project with some DCUs that
has debug info stored in them, and some that does not, it can get very
confusing because you find that "find declaration" works in some of
your units, and not in others ?!!
The short answer (fix) is :
1. Make sure you have Debug- info switched on (Project>Options>
Compiler>Debugging : Have these ticked : "Debug information",
"Local symbols" & "Reference info" )
2. Either delete all the DCUs in your project and compile, or
do a Project>Build - all.
That ensures that all your DCUs have debug info in them, and all
should be fine from there on...
Kind Regards,
Johan Elliot
"Dan Downs" <XXXX@XXXXX.COM>writes news:<3f12d376$XXXX@XXXXX.COM>...
Quote
>Find declaration does not work if:
>- de{*word*81} is running
>- there are compilation errors above current point or in used units
Could be

>- the destination unit(s) was (were) compiled without debug info
Could be

>- you hit one of bugs in IDE which destabilizes it, or install a buggy
>package with same consequences


Thanks, I was looking for some triggers for what causes it. Its probably the
compilation errors which was why I was trying to get back to the other units
to figure out what I did wrong.

DD