DelphiComments Off on dzEditorLineEndsFix and Windows 10
If you are still using Delphi 2006 to 2010 you have probably heard about my dzEditorLineEndsFix tool.
Apparently Microsoft has changed something in Windows 10 so it no longer locks the file EditorLineEnds.ttr after the Delphi IDE has exited. So it’s now possible to start the IDE again without moving/renaming this file. This means if you only ever run a single instance of the IDE you will no longer need my tool.
The problem still exists when running multiple IDE instances. So if you are a component or plugin developer and want to run the IDE inside the debugger, or if you want to have multiple projects open side by side, you might still want to use it.
I have have dzEditorLineEndsFix started automatically on logon from my Start-Up folder. That’s why I only now noticed the change and I have no idea when it happened.
A while ago, after my post on Known IDE Packages in Delphi I wrote a the KnownIdePackagesManager tool which lists those packages, allows to disable and enable some of them and also set the package description for those packages that don’t have a meaningful description.
Today, I updated the tool to support Delphi 11 Alexandria.
Delphi, GExpertsComments Off on Separate cache directories per platform in the Uses Clause Manager in GExperts
The Uses Clause Manager in GExperts has an “Identifier” tab that can be used instead of the Find Unit refactoring of the Delphi IDE (which for me doesn’t work most of the time and if it does is very slow). And of course the Uses Clause Manager also works for older Delphi versions which simply didn’t have this refactoring.
For this to work it parses all source files in the various search paths of the project. And because this takes a while it caches the results and only updates this cache if a new unit is found or a unit has been changed.
Until recently this parser was assuming that the current project is a Win32 application and set the conditional defines accordingly. Later I chanted the conditional defines depending on the currently selected platform but this caused a problem: Units parsed for different platforms ended up in the same cache so it was possible that the lookup was showing wrong results or at least the “Open Unit” button placed the cursor on the wrong line.
Today I changed this to use separate cache directories for each platform, so this problem should no longer occur.
There is not yet a GExperts release containing this change. If you want to use it, you will have to compile your own DLL which is much easier than you might think.
btw: Did yo know that Stefan Glienke has published a similar tool called Delphi Uses Helper? Mine of course is better and much faster. 😉
(Actually it depends on your computer and the project size. On my computer for large projects both tools are about on par, but mine is more flexible. Stefan thinks otherwise. But check it out yourself.)