-
Content Count
2497 -
Joined
-
Last visited
-
Days Won
86
Everything posted by dummzeuch
-
There are currently some unit tests for the GExperts code formatter that fail. It all depends on how spaces after comments {comment} or (*comment*) are handled. A How should the code formatter handle the following code: procedure bla; begin {some comment} SomeStatement; end; A1 Keep the space after the comment: procedure bla; begin {some comment} SomeStatement; end; A2 Remove the space after the comment: procedure bla; begin {some comment}SomeStatement; end; B what about this code: procedure bla; begin {some comment}SomeStatement; end; B1 should the formatter leave it as is? B2 should it insert a space, so it gets changed into: procedure bla; begin {some comment} SomeStatement; end; C what about this code with multiple spaces after the comment: procedure bla; begin {some comment} SomeStatement; end; C1 should the formatter remove the spaces: procedure bla; begin {some comment}SomeStatement; end; C2 or should it reduce them to one space: procedure bla; begin {some comment} SomeStatement; end; C3 or should it leave them as them as they are: procedure bla; begin {some comment} SomeStatement; end; The current code will always remove the spaces, so its A2, B1 and C1. I'm tending towards keeping the number of spaces as they are, that would be A1, B1 and C3. I'm definitely not going to make this configurable. I wouldn't even know how to describe this configuration option.
-
Delphi 12: Install Packages inconsistency?
dummzeuch replied to PeterPanettone's topic in Delphi IDE and APIs
That's actually the same frame which is shown in these two dialogs. If a project is loaded, you are viewing and possibly changing the project's configuration. If no project is loaded, you are viewing and changing the default packages loaded by the IDE without a project and for new projects. As far as I remember that has always been the case. (Or I might have misunderstood you.) -
Favorite feature(s) of other editors that Delphi does not offer
dummzeuch posted a topic in Delphi IDE and APIs
I've moved this to a new topic because it is not much related to Delphi 12 being released. Anything from JetBrains... I am not saying that Delphi is stuck in the Stone Age... but it is lagging behind in some areas. OK, I bite: What's your favorite feature(s) in a JetBrains editor that Delphi does not offer? (Excluding things that Delphi offers but that don't work.) -
They do. As long as you haven't got an alternative development environment for the work you rely on, you will have to pay for Delphi or stay with an older version.
-
On the first page of the wizard, there is a button for doing that, somewhere on the bottom left. I can't look up how it is called now because the installer wants to uninstall everything first when I start it now.
-
That's for historical reasons. And with the "new" strict keyword even this can be prevented. If you only want to access the Canvas property you can change your TGetCanvas class to this: type TGetCanvas = Class(TCustomControl) published property Canvas end; This is used by all the classes that derive from TCustomControl to publish protected Canvas property, so it will always work.
-
Favorite feature(s) of other editors that Delphi does not offer
dummzeuch replied to dummzeuch's topic in Delphi IDE and APIs
That's not really an editor feature, is it? -
Favorite feature(s) of other editors that Delphi does not offer
dummzeuch replied to dummzeuch's topic in Delphi IDE and APIs
I wrote my own IDE "integration" using the tools menu a few years ago. Scooter Software actually contacted me about it when they ware approached by Embarcadero to license BC for the IDE integration. I like to think that my simple work was what sparked the idea. Having said that I don't like the IDE integration either. Its complicated to use. -
GExperts Code Formatter does not support multi line strings
dummzeuch replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
That was easier than I thougth: As of revision #4112 the formatter now actually does support multi line string literals. And only those unit tests that already failed still fail. Of course that does not mean that I have not broken anything else. You are welcome to build your own dll and test it. -
GExperts Code Formatter does not support multi line strings
dummzeuch posted a topic in Tips / Blogs / Tutorials / Videos
I expected this but just confirmed it: The GExperts code formatter does not handle multi line strings correctly (bug #337) For now the workaround is using the comment to prevent formatting ... read on in the blog post -
Inline variable declarations in begin end blocks already worked fine.
-
fixed: https://sourceforge.net/p/gexperts/bugs/336/ Thanks for the report and the patch.
-
Favorite feature(s) of other editors that Delphi does not offer
dummzeuch replied to dummzeuch's topic in Delphi IDE and APIs
Did you know that the limited Beyond Compare that comes with Delphi, can be used to show the differences of two arbitrary files? Just start it with parameters or even just start it and use drag and drop to diff the files. I have even configured it in TortoiseSVN as the diff viewer. -
Favorite feature(s) of other editors that Delphi does not offer
dummzeuch replied to dummzeuch's topic in Delphi IDE and APIs
Hm, I have just read through that page and another one but I'm not quite sure whether I would find inline hints useful or annoying. I'd probably have to try it. -
OK, so what are examples for editors that are not "stuck in the Stone Age"?
-
Just to confirm: Your first example is how you think it should be formatted?
-
HKLM\Software\Microsoft\Windows NT\CurrentVersion ProductName: REG_SZ On my Windows 10 pro it says "Windows 10 pro". There are several other entries that might be of interest, e.g. DisplayVersion="22H2". Of course this can easily be manipulated by an administratorl
-
What is the benefit of sorting the Uses clause?
dummzeuch replied to RCrandall's topic in MMX Code Explorer
Remove matching lines -
Which plugin provided multiline strings? Or are you talking about the property editor for multipline strings?
-
What is the benefit of sorting the Uses clause?
dummzeuch replied to RCrandall's topic in MMX Code Explorer
No, I wrote an expert which removes those totally useless comments. -
What is the benefit of sorting the Uses clause?
dummzeuch replied to RCrandall's topic in MMX Code Explorer
Actually, instead of an empty line, it could be a comment with the group, e.g. uses // Windows group Windows.WinApi // vcl group vcl.bla, vcl.blub; So it doesn't look like somebody forgot to remove an empty line. -
script errors at start of c++builder 10 seattle
dummzeuch replied to Guido Schlenke's topic in General Help
Turn off the "Community Toolbar". Same problem as here: -
That is actually the name of a street in Schmedeswurth (never heard of it before, but I looked it up in Google Maps) so it's not a city. And Schmedeswurth is a very small municipality whith < 200 people living there, which I doubt qualifies for even a small town.
-
Unfortunately you won't get that past most marketing departments.
-
Your memory is wrong. Win64 was introduced with Delphi XE2.