Jud 2 Posted Sunday at 02:35 AM 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
efortier 0 Posted Sunday at 07:54 PM 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
Jud 2 Posted Sunday at 08:52 PM 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
Mark NZ 14 Posted Monday at 06:18 PM On 10/5/2025 at 3:35 PM, Jud said: 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? Find declaration only ever worked for us in any Delphi version for trivial projects Share this post Link to post
mvanrijnen 136 Posted Tuesday at 06:43 AM I still don't get it why it sometimes works, mostly after opening a big project is works for a little while and then it stops working. Sometimes reset lsp will fix it. I can not understand they can not fix this. But then, what would je expect from a product for just a few thousand euro/dollar? Share this post Link to post