Menu ▾ ▴

#565 New formatter APIneed D13.2

Need_More_Info
pending
D13.2 (1)
5
19 hours ago
2026-10-21
Tommi Prami
No

New formatter
OTA-Api is published in 13.2, so don't compile in 13.1 or 13.0.

Attached partial fix patch, if helps.. Basicalli need GX_DELPHI13_2_UP etc define... in couple spots.

-tee-

1 Attachments

Discussion

  • Tommi Prami

    Tommi Prami - 2026-10-21

    Not sure how close to the target I hit with those changes, but was able to compile. .inc file change is not made, because could not remember the version etc on top of my head.

     
  • Thomas Mueller

    Thomas Mueller - 2026-10-21

    Since [r5996] GExperts no longer uses IOTACodeFormatter or IOTACodeFormatterServices370 from the ToolsAPI. It has its own copies of the two interfaces (IGxOtaCodeFormatter, IGxOtaCodeFormatterServices370) and asks the IDE at run time whether it supports them. So it should compile with 13.0, 13.1 and 13.2 without a GX_DELPHI13_2_UP define, and the reporter of [#555] confirmed that it compiles and runs in Delphi 13 CE.

    Such a define could be set with {$IF declared(RTLVersion132)}, but it would bring the problem of #555 back: a DLL compiled with 13.2 that uses the ToolsAPI's declarations imports them from designide370.bpl, and 13.0 and 13.1 then refuse to load it. With the copies, one DLL works in all three updates and offers the formatter wherever the IDE supports it.

    Your patch is against r6016, which already contains that change. Did you get a compiler error without the patch? If so, please post the message, the file and the line, and which Delphi 13 update you compiled with.

     

    Related

    Bugs: #555
    Commit: [r5996]

  • Tommi Prami

    Tommi Prami - 19 hours ago

    Yes,

    Now it copiles out of box, nice, sorry it took ages to try...

    -tee-

     

Log in to post a comment.