I have a relatively new installation of Delphi 2007 at work, featuring
the December 2007 update. During last few days I've started noticing
that Ctrl+Click navigation doesn't work for anything that's declared
outside of project files (i.e. anything not included in the .DPR file
directly, but by project search path and global library path instead).
Since this installation is only a few weeks old, I'm not really sure
whether it just started failing, or whether it never worked in the
first place.
I've made sure that all source units are available to both compiler and
debugger by adding the appropriate directories to the project's search
path and the global browsing path. I've also added the same directories
to the global library path, just in case IDE expected them to be there.
Sadly, it made no difference.
Projects compile and build fine, and even the tooltip help works for
*all* identifiers. The Ctrl+Click and the Right-click+"Find
declaration", however, do nothing on those *same* identifiers.
Needless to say, it's /a bit/ tedious having to hover over identifier,
wait for the tooltip, remember the unit name, go to the uses clause,
find it there, select "Open file at cursor", then search for identifier
with Ctrl+F, and repeat...
To add insult to injury, I have a home installation of Delphi 2007,
where everything works as expected.
I can't seem to find any difference in settings. I've disabled all IDE
experts, but that didn't help, either.
I'm at a complete loss here, and Google seems unable to help me...
What else is there beside the project library path, global library path,
and the global browsing path? What else affects the Ctrl+Click
navigation?
--
Regards,
Aleksander Oven
> Hi, everybody!
>
> I have a relatively new installation of Delphi 2007 at work, featuring
> the December 2007 update. During last few days I've started noticing
> that Ctrl+Click navigation doesn't work for anything that's declared
> outside of project files (i.e. anything not included in the .DPR file
> directly, but by project search path and global library path instead).
>
> Since this installation is only a few weeks old, I'm not really sure
> whether it just started failing, or whether it never worked in the
> first place.
>
> I've made sure that all source units are available to both compiler
> and debugger by adding the appropriate directories to the project's
> search path and the global browsing path. I've also added the same
> directories to the global library path, just in case IDE expected
> them to be there.
>
> Sadly, it made no difference.
>
> Projects compile and build fine, and even the tooltip help works for
> *all* identifiers. The Ctrl+Click and the Right-click+"Find
> declaration", however, do nothing on those same identifiers.
>
> Needless to say, it's /a bit/ tedious having to hover over identifier,
> wait for the tooltip, remember the unit name, go to the uses clause,
> find it there, select "Open file at cursor", then search for
> identifier with Ctrl+F, and repeat...
Try to delete the projects .local files, I think the IDE caches some
identifier lookup information there and that may have become corrupted
or out of date.
I have seen the same problems off and on, by the way. No rhyme or
reason, sometimes it happens, on the next start of the IDE with the
same project all works OK.
--
Peter Below (TeamB)
Don't be a vampire (http://slash7.com/pages/vampires),
use the newsgroup archives :
http://www.tamaracka.com/search.htm
http://groups.google.com
> Try to delete the projects .local files, I think the IDE caches some
> identifier lookup information there and that may have become corrupted
> or out of date.
Hm, did you perhaps mean .identcache files?
I'll give it a try when I get back to office tomorrow morning. Thanks
for the idea!
<Rant>
I really wish some CodeGear dev would write a blog entry about the
inner workings of these misterious files and Delphi's symbol lookup in
general.
A section of help dedicated to these kinds of semi-advanced topics would
be even better!
</Rant>
> I have seen the same problems off and on, by the way. No rhyme or
> reason, sometimes it happens, on the next start of the IDE with the
> same project all works OK.
I've run into this a couple of times before, too, and restarting IDE or
even simply doing a complete build always helped.
Not this time around, though. :(
--
Regards,
Aleksander Oven
> Try to delete the projects .local files
I also deleted .identcache files, .dsk files, and generally anything
else except .dproj, .pas and .dpr.
It didn't help.
Then I remembered that my projects at work are located under a directory
that is actually a NTFS reparse point (a junction) to another directory.
I immediately thought that might be the problem, as I've seen some
programs fail to recurse reparse points in the past.
So I relocated the projects and tried again, but, sadly, the problem
persists.
Any other ideas?
--
Regards,
Aleksander Oven
> Hm, did you perhaps mean .identcache files?
Yes, sorry for the confusion.
Nope, sorry.
> Hi, everybody!
>
> I have a relatively new installation of Delphi 2007 at work, featuring
> the December 2007 update. During last few days I've started noticing
> that Ctrl+Click navigation doesn't work for anything that's declared
> outside of project files (i.e. anything not included in the .DPR file
> directly, but by project search path and global library path instead).
>
> Since this installation is only a few weeks old, I'm not really sure
> whether it just started failing, or whether it never worked in the
> first place.
>
> I've made sure that all source units are available to both compiler
> and debugger by adding the appropriate directories to the project's
> search path and the global browsing path. I've also added the same
> directories to the global library path, just in case IDE expected
> them to be there.
>
> Sadly, it made no difference.
>
> Projects compile and build fine, and even the tooltip help works for
> *all* identifiers. The Ctrl+Click and the Right-click+"Find
> declaration", however, do nothing on those same identifiers.
>
> Needless to say, it's /a bit/ tedious having to hover over identifier,
> wait for the tooltip, remember the unit name, go to the uses clause,
> find it there, select "Open file at cursor", then search for
> identifier with Ctrl+F, and repeat...
>
> To add insult to injury, I have a home installation of Delphi 2007,
> where everything works as expected.
>
> I can't seem to find any difference in settings. I've disabled all IDE
> experts, but that didn't help, either.
>
> I'm at a complete loss here, and Google seems unable to help me...
>
> What else is there beside the project library path, global library
> path, and the global browsing path? What else affects the Ctrl+Click
> navigation?
Maybe the brand-new april hotfix can solve your problem:
http://dn.codegear.com/article/37877
I think fix number 6 can be interesting for you.
Tiedo
--
> Maybe the brand-new april hotfix can solve your problem:
> http://dn.codegear.com/article/37877
> I think fix number 6 can be interesting for you.
Unfortunately, this didn't help either.
--
Regards,
Aleksander Oven