Custom Settings Issues

Post here any ideas/problems/suggestions you have regarding CodeLite's CodeFormatter (AStyle) plugin

Custom Settings Issues

Postby pirlite2 » Fri Sep 05, 2014 2:59 pm

I have tried adding my custom settings for the code formatter in the custom user settings edit, box but they disappear! It is thus not possible to edit them! (If I recall, this did not happen with earlier versions and editing of the visible Astyle options was possible.) Although the setting seem to be applied as a reformatting of the code produces the desired layout. This is surely an undesirable feature.

(By trial-and-error, I presume the format is the Astyle option minus the hyphens,as in "style=whitesmith" although it would be nice to have this documented somewhere...)

Second issue, periodically my user settings 'disappear' and formatting goes back to the default. Not quite able to identify what triggers this - certainly a shutdown did it because the settings vanished overnight. But I also had this happen 'spontaneously'. Whereabouts should user options be stored?

Version 6.1 from repo on Mint Qiana (~Ubuntu Trusty)

P.
pirlite2
CodeLite Curious
 
Posts: 3
Joined: Fri Sep 05, 2014 2:37 pm

Re: Custom Settings Issues

Postby eranif » Fri Sep 05, 2014 4:26 pm

pirlite2 wrote:I have tried adding my custom settings for the code formatter in the custom user settings edit, box but they disappear! It is thus not possible to edit them! (If I recall, this did not happen with earlier versions and editing of the visible Astyle options was possible.) Although the setting seem to be applied as a reformatting of the code produces the desired layout. This is surely an undesirable feature.

Confirmed. The settings are saved, but they are not loaded into the dialog... can you please open a bug please?

pirlite2 wrote:Second issue, periodically my user settings 'disappear' and formatting goes back to the default. Not quite able to identify what triggers this - certainly a shutdown did it because the settings vanished overnight

The settings are stored in the file %appdata%\codelite\config\codelite.xml

Look for the XML element: FormatterOptions
Eran
Make sure you have read the HOW TO POST thread
User avatar
eranif
CodeLite Plugin
 
Posts: 5665
Joined: Wed Feb 06, 2008 9:29 pm


Return to CodeFormatter

Who is online

Users browsing this forum: No registered users and 2 guests