Jump to content
Jud

"Find declaration" stopped working in Delphi 13

Recommended Posts

In addition to greying out unused code in IFDEFs not working for me in Delphi 13 (another tread), now "Find declaration" has stopped working in Delphi 13.  I've tried Building the project, restarting the IDE, and rebooting the computer - nothing helped.

 

Does anyone else have this problem?

Share this post


Link to post

At some point, everything stops working; Find declaration, Error insight, etc. 

 

When that happens, try the following. I am not sure it will work for you, but for me that was the cause of so many aches that I made an expert that does it for me. Try this:

 

1- Delete ALL .DCU files that your project or the DelphiLSP can see. For me, that was *.DCU in my project directory.

2- From the tools menu, restart the LSP server.

3- Wait 5-15 seconds.

 

For me, this solves the problem. Note: a "Clean" does not fix the problem for me because there are always some DCU file left.

 

I found out that when the LSP server encounters some DCU file it completely stops working. And since a lot of the IDE functionality is based on the server, a lot of things break.

 

Very janky workaround. This has been going on since Delphi 12. Someone at Embarcadero told me the disabling of "legacy" code in Delphi (refactoring, find references, etc) will allow them to rebuilt the features better and improve the LSP.

 

Right now, the sad state of release 13 prevents me from using it.

 

HTH!

Share this post


Link to post

When I turned on the code insight that restored greying out inactive code in an IFDEF, the Find Declaration came back.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×