Jump to content

Uwe Raabe

Members
  • Content Count

    2750
  • Joined

  • Last visited

  • Days Won

    162

Everything posted by Uwe Raabe

  1. Uwe Raabe

    Uses clause: List of unit names forming a group

    Not yet. It is. All units not matching a group are placed after the grouped units.
  2. Uwe Raabe

    What is the benefit of sorting the Uses clause?

    Brackets denote a list of unit names forming a group. I use it f.i. for keeping the ToolsApi units together: (ToolsApi,DesignIntf,DCCStrs,DockForm,TabDock) The example shows a glitch in the TMS unit naming: Adv* followed by (BaseGrid) keeps the TMS Grids unit together. The other example (ZipForge) is used when a group consists of a single unit name only. Omitting the brackets would take it as a unit scope name instead.
  3. Uwe Raabe

    Delphi 12 internal errors

    With Premium you get early beta access, while an active subscription entitles you to participate in the public beta. In most cases the latter should be sufficient.
  4. Uwe Raabe

    UsesCleaner: Consider case for grouping?

    Unfortunately not - and it would be quite difficult to implement that with reasonable effort. Wildcards are handled by TMask.Matches and that has a hardcoded Upcase in its implementation.
  5. Uwe Raabe

    Delphi 12 is available

    I didn't try it.
  6. The Migration Tool has a special mode for migrating to a newer version, which requires to select the appropriate settings. Did you follow these when migrating? If yes and it didn't work, you should file a bug report.
  7. This is fixed in Delphi 12.
  8. Uwe Raabe

    UsesCleaner: Retain comments in uses clause?

    Unfortunately that is by design as comments in uses clauses are considered not clean. Background: It is pretty hard to connect the comment to one of the used units - there is too much convention involved with this. Also, line end comments don't play well with grouping and line wrapping. There are non plans to change this any time soon.
  9. Can you reproduce on a minimal project? I just copied that uses clause into a fresh VCL project and everything works as expected.
  10. Can you show the Unit Scope Names entry in your project options, please?
  11. Uwe Raabe

    Ctrl-Alt-U doesnt seem to work.

    Can you check the MMX properties Key bindings for Format Uses Clause, please? Also make sure that no other plugin steals that shortcut.
  12. Uwe Raabe

    Delphi 12 List Objects x64

    With Delphi 12 the Index type of TList as well as Count has changed from Integer to NativeInt. While this has no effect in 32 bit, with 64 bit it definitely has. Check all descendants of TList if there are any declarations of properties (f.i. Items) or methods with Index type Integer which act as overloads for the base declarations. Then change these Integer types to NativeInt.
  13. Uwe Raabe

    Dellphi 12: IDE's F6 Search box still faulty

    I believe that not reporting an issue most likely lead to nothing.
  14. Uwe Raabe

    Dellphi 12: IDE's F6 Search box still faulty

    Is there a report for that?
  15. No need for that: Add a FILTER SEARCH BOX in the Install Packages dialog
  16. Uwe Raabe

    Pulling all files and folder names into a list

    The following code lists 355480 files in less than 15 seconds on my system. program TestGetFiles; {$APPTYPE CONSOLE} {$R *.res} uses System.SysUtils, System.IOUtils, System.Diagnostics; procedure Main; begin var sw := TStopwatch.StartNew; var arr := TDirectory.GetFiles('C:\Windows', '*', TSearchOption.soAllDirectories); Writeln(Format('%d Files, %d ms', [Length(arr), sw.ElapsedMilliseconds])); end; begin try Main; except on E: Exception do Writeln(E.ClassName, ': ', E.Message); end; Readln; end. The dir command needs a lot of time to display the files, while the Delphi code avoids that.
  17. It may depend on the uses list and its order. The different Stat units register different default values: {FireDAC.Phys.SQLiteWrapper.FDEStat} initialization TSQLiteLib.GLibClasses[slDefault] := TSQLiteLibFDEStat; TSQLiteLib.GLibClasses[slFDEStatic] := TSQLiteLibFDEStat; {FireDAC.Phys.SQLiteWrapper.SSEStat} initialization TSQLiteLib.GLibClasses[slDefault] := TSQLiteLibSEEStat; TSQLiteLib.GLibClasses[slSEEStatic] := TSQLiteLibSEEStat; {FireDAC.Phys.SQLiteWrapper.Stat} initialization TSQLiteLib.GLibClasses[slDefault] := TSQLiteLibStat; TSQLiteLib.GLibClasses[slStatic] := TSQLiteLibStat; Manually adding FireDAC.Phys.SQLiteWrapper.FDEStat to the uses may solve the problem. I'd rather set the mode to an explicit value instead relying on a volatile default.
  18. That is mentioned in the What's New: FireDAC SQLite Version Update
  19. Uwe Raabe

    Delphi 12 is available

    So, file a feature request...
  20. Uwe Raabe

    "CAN" bus advice

    It has been quite a while, but I had a good experience with CANUSB.
  21. Uwe Raabe

    Delphi 12 is available

    I don't see how downloading a VS Preview would solve that problem.
  22. Uwe Raabe

    Delphi 12 is available

    What makes you think so? At least in my standard installation these folders are located under c:\Users\Public\Documents\Embarcadero\Studio\xx.x and c:\Users\<user>\Documents\Embarcadero\Studio\xx.x
×