no hurry, Lazarus is still the best IDE. :)Please provide a patch.
Was there a bug in the registry path?Yes. If you put the slash back, Lazarus throws an exception: "Failed to create key ''\\Software\Jedi\JediCodeFormat". Please note the double backslash in the front.
Yes. If you put the slash back, Lazarus throws an exception: "Failed to create key ''\\Software\Jedi\JediCodeFormat". Please note the double backslash in the front.I applied the patch in r55491. Thanks.
I wonder why nobody noticed the bug earlier.Because the frame frFiles.pas(Options-->JCF Format Settings-->Format File) did not attempt to write back anything to registry, basically it was read only until know. Take a look at WriteSettings method, before the patch it looked like this:
Where FormatSettings is the TFormatSettings(https://www.freepascal.org/docs-html/rtl/sysutils/tformatsettings.html) it has nothing to do with JEDI format settings/registry.Sorry but your diagnosis is wrong. For some reason JEDI named their options class as "TFormatSettings" and a function "FormatSettings". It is extremely confusing especially because the same unit frFiles also uses DefaultFormatSettings from Sysutils.
Sorry but your diagnosis is wrong. For some reason JEDI named their options class as "TFormatSettings" and a function "FormatSettings". It is extremely confusing especially because the same unit frFiles also uses DefaultFormatSettings from Sysutils.What a mess! I even [Ctrl] + [Click]-ed the old FormatSettings(now FormattingSettings) and took me to Sysutils. How is this possible? TJCFRegistrySettings(JcfRegistrySettings.pas) combined with OLD_REG_ROOT_KEY = '\Software\Jedi\JediCodeFormat' is not working at all, however it works under windows with OLD_REG_ROOT_KEY = 'Software\Jedi\JediCodeFormat' and writes the data to the registry. Unfortunately this is not good enough because it's not cross-platform.
It must be changed ... and so I did in r55493. It is now "FormattingSettings".
What a mess! I even [Ctrl] + [Click]-ed the old FormatSettings(now FormattingSettings) and took me to Sysutils. How this is possible?It is apparently a bug in Codetools but it does not happen always.
Please test attached patch. Thank you!Applied in r55497. Works now. :)