[Lazarus] LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Feb 12 18:47:24 CET 2014


On Wed, 12 Feb 2014 08:09:48 -0800 (PST)
leledumbo <leledumbo_cool at yahoo.co.id> wrote:

> After some experiments, it looks like there's a bug in handling MY
> environmentoptions.xml.
> 
> Running the IDE from terminal shows up:
> 
> [TEnvironmentOptions.Save]  error writing
> "/home/leledumbo/.lazarus/environmentoptions.xml": EDOMError in
> DOMDocument.CreateElement

This probably means that somewhere an invalid xml path is used.

 
> when I change certain value. but when I rename my .lazarus to .lazarusold,
> the IDE creates a new .lazarus folder and when I change the same certain
> value, the file can be saved. Moving the new environmentoptions.xml to
> .lazarusold and rename it back to .lazarus shows that the IDE can save
> modified values. Since the permissions of both files are the same, I simply
> copy-paste the contents of my old environmentoptions.xml to the new one.
> Guess what? The error message above comes again.
> 
> Here I attach the environmentoptions.xml that breaks the saving routine.
> Please run lazarus from terminal, try changing a value (e.g. single button
> on taskbar) and see the debug log. If it could reveal the same error message
> in your installation, I'll file a bug report.
> environmentoptions.xml
> <http://free-pascal-lazarus.989080.n3.nabble.com/file/n4035804/environmentoptions.xml>  

Please load the IDE in the debugger and set a breakpoint at
FPC_RAISEEXCEPTION.
Then run, reproduce the error and create a backtrace. 
See here
http://wiki.freepascal.org/Creating_a_Backtrace_with_GDB


Mattias




More information about the Lazarus mailing list