Juan C.Cilleruelo 12 Posted March 12, 2021 Delphi 10.4.2 Right Click over a word -> Find Declaration, Not working. Does anyone note this problem? Or is it only my problem? Never works. I've tried with existing files in the uses clause, with units in the path and more. The only occasion in that works is when the Declaration is in the same file. Share this post Link to post
Vandrovnik 213 Posted March 12, 2021 For me it works poorly - often it takes really long time (5-10 s between Ctrl+click and moving to the declaration, but there is no indication that "Delphi is thinking about it"), or it does not work at all. Share this post Link to post
Juan C.Cilleruelo 12 Posted March 12, 2021 Seems it's doing something, but finally it doesn't do anything! Share this post Link to post
timfrost 78 Posted March 12, 2021 For me, this hardly ever worked in 8.4.1, and it was great, when I first installed 8.4.2, to find it reliable again. Now, it's gone; I will have to experiment removing stuff to see if I can get it back. Share this post Link to post
Guest Posted March 12, 2021 For most libs it works. For DevExpress it does not. DevExpress is put on "precompiled" .dcu's to save compile time. I'm pretty confident that the installer followed the "rules". Oddly enough, it does not work. Mind, i have had other deadlines so i have not had time to tinker. So i would /guess/ this is something about Library vs Browsing path. (??!) It is IHMO mighty important functionality ,whenever it fails we have to spend 15 extra minutes on goggling, Ctrl+F in VS Code, trying to make the "Help" work at all, or some other "workaround". Utterly annoying and breaks ones workflow. Argh!! HTH Share this post Link to post
Juan C.Cilleruelo 12 Posted March 12, 2021 Don't work on my own libraries and Code! Of course! Share this post Link to post
Guest Posted March 12, 2021 3 hours ago, Uwe Raabe said: Works fine her, too. Ouch, that could be interpreted... well. Just remember these are modern "post-me-to-times". Share this post Link to post
Vincent Parrett 746 Posted March 12, 2021 It doesn't work if your search path only has the dcu's or dcp's - which if you use runtime packages is quite likely. I have turned LSP off, but sadly 10.4 cripples the old code insight somewhat and navigating my code has become a real chore. 2 Share this post Link to post
Juan C.Cilleruelo 12 Posted March 12, 2021 Always work. I only changed to version 10.4.2. No other change. Embarcadero doesn't need your excuses! He has his own ones! Share this post Link to post
Rollo62 534 Posted March 13, 2021 (edited) I think its related to the complexity and separation of your modules. I mean small, well decoupled units: works fine and fast large, much coupled units: works sluggy, slow, sometimes cannot resolve Thats just my feeling, I cannot realy measure, but decoupling is generally a good thing (also for class design). Edited March 13, 2021 by Rollo62 Share this post Link to post
Vincent Parrett 746 Posted March 13, 2021 Doesn't work well on this project - feel free to analyse my code and tell me what I did wrong 😉 https://github.com/DelphiPackageManager/DPM If the code is too complex for the tooling, then the tooling needs improving, valid compiling code should not be a problem. 6 Share this post Link to post
ConstantGardener 31 Posted March 13, 2021 25 minutes ago, Vincent Parrett said: Doesn't work well on this project - feel free to analyse my code and tell me what I did wrong 😉 https://github.com/DelphiPackageManager/DPM If the code is too complex for the tooling, then the tooling needs improving, valid compiling code should not be a problem. +1000 1 Share this post Link to post
Rollo62 534 Posted March 13, 2021 Yes, I'm not saying this is the only cause, only one possible reason. Its a little unpredictable when its happening, usually starting new Units work mostly fine, until a certain point. Share this post Link to post
Uwe Raabe 2056 Posted March 13, 2021 16 hours ago, Vincent Parrett said: It doesn't work if your search path only has the dcu's or dcp's - which if you use runtime packages is quite likely. So you should be able to make a reproducible test case - in case there is none already. Share this post Link to post
Josep 8 Posted March 15, 2021 I have the same problem, finally I switched to "Delphi (Classic Code Insight)" and it works fine. But now it's a bit annoying that after doing a "Find Declaration" in the Code Editor, the cursor every two seconds shows the hourglass. 1 2 Share this post Link to post
Josep 8 Posted March 16, 2021 I my case, I found the problem: When I have LSP activated and the application configuration build is in "RELEASE" mode, it is when "Find Declaration" don't work. If the configuration build is in "DEBUG" mode, then "Find Declaration" goes correctly! 1 Share this post Link to post
Uwe Raabe 2056 Posted March 16, 2021 It would be interesting to inspect the different settings in your DEBUG and RELEASE configurations to find the real cause. Share this post Link to post
Josep 8 Posted March 16, 2021 3 hours ago, Uwe Raabe said: It would be interesting to inspect the different settings in your DEBUG and RELEASE configurations to find the real cause. Hi Uwe, thank you for your observation. I maked some tests and I realised that in "Release Mode" the units that are in the "search path" of my project, are the ones that "Find Declaration" don't work, but the units included in the project or the standard units like Vcl.forms, ... then "Find Declaration" works. Share this post Link to post
Jud 1 Posted March 17, 2021 I've had problems with it, off and on, for the last few versions. Seems like sometimes a build would fix it. Sometimes going to another project and back would fix it. But tonight it stopped working for me completely and nothing I tried (including deleting the DSK file) would fix it. Share this post Link to post
Pierangelo Dal Ben 0 Posted March 18, 2021 On 3/12/2021 at 1:31 PM, Juan C.Cilleruelo said: Delphi 10.4.2 Right Click over a word -> Find Declaration, Not working. Does anyone note this problem? Or is it only my problem? Never works. I've tried with existing files in the uses clause, with units in the path and more. The only occasion in that works is when the Declaration is in the same file. Not always works. If a remember well forward definition of method/function in the same file was working in previous versions, not is not working (instead of going to the right function definition IDE shows up a OpenFile dialog !) Share this post Link to post
Vincent Parrett 746 Posted March 18, 2021 On 3/13/2021 at 11:31 PM, Uwe Raabe said: On 3/13/2021 at 7:10 AM, Vincent Parrett said: It doesn't work if your search path only has the dcu's or dcp's - which if you use runtime packages is quite likely. So you should be able to make a reproducible test case - in case there is none already. I did report this with a reproducible test case, but they knew about it long before then. https://quality.embarcadero.com/browse/RSP-32666 2 Share this post Link to post
Jud 1 Posted March 18, 2021 For me, it comes and goes. Today it is working again. When I had the problem I tried rebooting, etc, and nothing I did fixed the problem. It just started working again. Also, I got 10.4.2 shortly after it came out, and putting the cursor over a variable to see its contents wasn't working, although ctrl-F7 was. But yesterday it started working. Share this post Link to post
Jud 1 Posted March 18, 2021 And I can't log in to the quality website. It won't take the password I think I used and it doesn't give me the option of resetting it. It says " If you think this message is wrong, please contact your JIRA administrators. " but I have no idea what JIRA is. Share this post Link to post