[lazarus] lazarus vs. xml

LeVA leva at az.isten.hu
Thu Dec 18 17:36:01 EST 2003


Mattias Gaertner írta:
> On Thu, 18 Dec 2003 20:50:41 +0100  LeVA <leva at az.isten.hu> wrote:
> 
> 
>>Hi!
>>
>>I figured out that my previous problem with opening the project files, 
>>is because of the new lazarus doesn't working with my xml libraries. 
>>Lazarus can not read it's config files, and the project files, which are 
>>all in xml format. This is very serious because I can not do anything 
>>with lazarus. If I create a new project, and save it, I can not even 
>>reopen it. I get this error message in the console, when I run lazarus:
>>
>>[TEnvironmentOptions.Load]  error reading 
>>"/home/leva/.lazarus/environmentoptions.xml": In 
>>/home/leva/.lazarus/environmentoptions.xml (line 1 pos 1): Expected
>>element
> 
> 
> Lazarus does not use libxml. It uses for portability and speed its own xml
> units components/codetools/laz_xml*.
> 
> I can only guess, what happened to your xml files. Can you send some of
> them?
> 

I'm attaching my xml file, but nothing happened to them. If I create a 
new project with lazarus, and save it, lazarus saves the project1.lpi 
file in xml format. After the saving, lazarus can not reopen the 
previously saved file. Nothing has happened to that file during that 
five seconds. And the same with the config files. When I start lazarus 
it can not read the ~/.lazarus/* files, because those are in xml format 
too. So lazarus can not read the fpc's source dir, my tmp dir, and so 
on... But! Lazarus saves the config files, and the project files. So it 
can save files to xml format, it just can not open it.

I realy need to figure out what is wrong, because I have to work 
tonight, and the ftp.freepascal.org doesn't seem to be working, so I can 
not even download an older version of lazarus, because those are in the 
sf repository doesn't compile. I have only the latest cvs snapshot. It 
compiles fine, but it has this "big" problem. I'm also using the latest 
fpc snapshot (1.9.1) to be able to use the fpimage feature in lazarus.
Please investigate those xml files, and this lazarus problem.

Thanks a lot!

Daniel

> Anyone else with the same problem?
> 
> 
> Mattias
> 
> 
> 
> 
>>NOTE: editor options config file not found - using defaults
>>NOTE: miscellaneous options file not found - using defaults
>>NOTE: codetools config file not found - using defaults
>>[TCodeToolsOptions.Load]  error reading 
>>"/home/leva/.lazarus/inputhistory.xml"
>>
>>NOTE: FPC Source Directory not set! (see Environment Options)
>>
>>NOTE: Could not create Define Template for Free Pascal Sources
>>
>>
>>
>>I have these version of xml installed on my system:
>>
>>ii  libxml-dev     1.8.17-2
>>ii  libxml1        1.8.17-2
>>ii  libxml2        2.4.19-4
>>ii  libxml2-dev    2.4.19-4
>>
>>I had only the xml2 libraries before, and now that lazarus doesn't work, 
>>I thought that it might be because lazarus is only working with xml1 
>>libs. So I installed xml1 libs too, and recompiled lazarus. But the 
>>problem is still there. Lazarus can not handle xml files.
>>Please try to confirm this problem, and help me.
>>Thanks!
>>
>>Daniel
>>
>>
>>-- 
>>LeVA
>>
>>
>>_________________________________________________________________
>>     To unsubscribe: mail lazarus-request at miraclec.com with
>>                "unsubscribe" as the Subject
>>   archives at http://www.lazarus.freepascal.org/mailarchives
> 
> 
> 


-- 
LeVA



<?xml version="1.0"?>
<CONFIG>
  <EnvironmentOptions>
    <Version Value="102"/>
    <AutoSave IntervalInSecs="300"/>
    <Desktop>
      <MainIDE>
        <WindowPlacement Value="Default"/>
        <WindowState Value="Normal"/>
        <DockMode Value="Default"/>
        <Visible Value="True"/>
      </MainIDE>
      <SourceNotebook>
        <WindowPlacement Value="Default"/>
        <WindowState Value="Normal"/>
        <DockMode Value="Default"/>
      </SourceNotebook>
      <MessagesView>
        <WindowPlacement Value="Default"/>
        <WindowState Value="Normal"/>
        <DockMode Value="Default"/>
      </MessagesView>
      <UnitDependencies>
        <WindowPlacement Value="Default"/>
        <WindowState Value="Normal"/>
        <DockMode Value="Default"/>
      </UnitDependencies>
      <CodeExplorerView>
        <WindowPlacement Value="Default"/>
        <WindowState Value="Normal"/>
        <DockMode Value="Default"/>
      </CodeExplorerView>
      <ClipBrdHistory>
        <WindowPlacement Value="Default"/>
        <WindowState Value="Normal"/>
        <DockMode Value="Default"/>
      </ClipBrdHistory>
      <PkgGraphExplorer>
        <WindowPlacement Value="Default"/>
        <WindowState Value="Normal"/>
        <DockMode Value="Default"/>
      </PkgGraphExplorer>
      <ProjectInspector>
        <WindowPlacement Value="Default"/>
        <WindowState Value="Normal"/>
        <DockMode Value="Default"/>
      </ProjectInspector>
      <DocumentEditor>
        <WindowPlacement Value="Default"/>
        <WindowState Value="Normal"/>
        <DockMode Value="Default"/>
      </DocumentEditor>
      <DbgOutput>
        <WindowPlacement Value="Default"/>
        <WindowState Value="Normal"/>
        <DockMode Value="Default"/>
      </DbgOutput>
      <BreakPoints>
        <WindowPlacement Value="Default"/>
        <WindowState Value="Normal"/>
        <DockMode Value="Default"/>
      </BreakPoints>
      <Watches>
        <WindowPlacement Value="Default"/>
        <WindowState Value="Normal"/>
        <DockMode Value="Default"/>
      </Watches>
      <Locals>
        <WindowPlacement Value="Default"/>
        <WindowState Value="Normal"/>
        <DockMode Value="Default"/>
      </Locals>
      <CallStack>
        <WindowPlacement Value="Default"/>
        <WindowState Value="Normal"/>
        <DockMode Value="Default"/>
      </CallStack>
      <SearchResults>
        <WindowPlacement Value="Default"/>
        <WindowState Value="Normal"/>
        <DockMode Value="Default"/>
      </SearchResults>
      <ObjectInspector>
        <WindowPlacement Value="Default"/>
        <WindowState Value="Normal"/>
        <DockMode Value="Default"/>
        <Visible Value="True"/>
      </ObjectInspector>
      <MinimizeAllOnMinimizeMain Value="False"/>
    </Desktop>
    <FormEditor GuideLineColorLeftTop="16711680" GuideLineColorRightBottom="32768" ShowComponentCaptions="False">
      <Rubberband>
        <SelectionColor Value="8388608"/>
        <CreationColor Value="128"/>
        <SelectsGrandChilds Value="True"/>
      </Rubberband>
    </FormEditor>
    <LazarusDirectory Value="/home/leva/FreePascal/lazarus/"/>
    <CompilerFilename Value="/home/leva/FreePascal/bin/ppc386"/>
    <FPCSourceDirectory Value=""/>
    <TestBuildDirectory Value="/tmp/"/>
    <BackupProjectFiles Type="4" AdditionalExtension="bak" MaxCounter="3" SubDirectory=""/>
    <BackupOtherFiles AdditionalExtension="bak" MaxCounter="3" SubDirectory=""/>
    <MsgViewDblClickJumps Value="True"/>
    <Recent>
      <OpenFiles Max="10"/>
      <ProjectFiles Max="5"/>
      <PackageFiles Max="10"/>
    </Recent>
    <ExternalTools Count="0"/>
  </EnvironmentOptions>
  <ObjectInspectorOptions GridBackgroundColor="-2147483633" ShowHints="False">
    <Bounds Valid="False" PropertyGridSplitterX="110" EventGridSplitterX="110" DefaultItemHeight="22"/>
  </ObjectInspectorOptions>
</CONFIG>


<?xml version="1.0"?>
<CONFIG>
  <IncludeLinks ExpirationTimeInDays="365"/>
</CONFIG>


<?xml version="1.0"?>
<CONFIG>
  <InputHistory>
    <Version Value="1"/>
  </InputHistory>
  <FPCConfigCache CompilerPath="/home/leva/FreePascal/bin/ppc386" CompilerDate="798138037">
    <Items Count="1"/>
    <Item1>
      <SearchPath Value="/home/leva/.lazarus/
/home/leva/FreePascal/units/linux/rtl/
/home/leva/FreePascal/units/linux/fcl/
/home/leva/FreePascal/units/linux/unixutil/
/home/leva/FreePascal/units/linux/fpgtk/
/home/leva/FreePascal/units/linux/zvt/
/home/leva/FreePascal/units/linux/gconf/
/home/leva/FreePascal/units/linux/gnome/
/home/leva/FreePascal/units/linux/imlib/
/home/leva/FreePascal/units/linux/cdrom/
/home/leva/FreePascal/units/linux/tcl/
/home/leva/FreePascal/units/linux/ncurses/
/home/leva/FreePascal/units/linux/gdbm/
/home/leva/FreePascal/units/linux/zlib/
/home/leva/FreePascal/units/linux/bfd/
/home/leva/FreePascal/units/linux/cmem/
/home/leva/FreePascal/units/linux/utmp/
/home/leva/FreePascal/units/linux/libgd/
/home/leva/FreePascal/units/linux/libpng/
/home/leva/FreePascal/units/linux/ggi/
/home/leva/FreePascal/units/linux/svgalib/
/home/leva/FreePascal/units/linux/forms/
/home/leva/FreePascal/units/linux/syslog/
/home/leva/FreePascal/units/linux/gtk/
/home/leva/FreePascal/units/linux/opengl/
/home/leva/FreePascal/units/linux/x11/
/home/leva/FreePascal/units/linux/unzip/
/home/leva/FreePascal/units/linux/uncgi/
/home/leva/FreePascal/units/linux/libc/
/home/leva/FreePascal/units/linux/sqlite/
/home/leva/FreePascal/units/linux/pthreads/
/home/leva/FreePascal/units/linux/odbc/
/home/leva/FreePascal/units/linux/oracle/
/home/leva/FreePascal/units/linux/postgres/
/home/leva/FreePascal/units/linux/ibase/
/home/leva/FreePascal/units/linux/mysql/
/home/leva/FreePascal/units/linux/libasync/
/home/leva/FreePascal/units/linux/gdbint/
/home/leva/FreePascal/units/linux/inet/
/home/leva/FreePascal/units/linux/netdb/
/home/leva/FreePascal/units/linux/regexpr/
/home/leva/FreePascal/units/linux/paszlib/
/home/leva/FreePascal/units/linux/
/home/leva/FreePascal/lib/fpc/1.9.1/
"/>
    </Item1>
  </FPCConfigCache>
</CONFIG>


<?xml version="1.0"?>
<CONFIG>
  <ProjectOptions>
    <Version Value="3"/>
    <General>
      <ProjectType Value="Application"/>
      <MainUnit Value="0"/>
      <ActiveEditorIndexAtStart Value="1"/>
      <TargetFileExt Value=""/>
      <Title Value="project1"/>
    </General>
    <JumpHistory Count="1" HistoryIndex="0">
      <Position1>
        <Filename Value="project1.lpr"/>
        <Caret Line="1" Column="17" TopLine="1"/>
      </Position1>
    </JumpHistory>
    <Units Count="2">
      <Unit0>
        <CursorPos X="20" Y="10"/>
        <EditorIndex Value="1"/>
        <Filename Value="project1.lpr"/>
        <IsPartOfProject Value="True"/>
        <Loaded Value="True"/>
        <TopLine Value="1"/>
        <UnitName Value="project1"/>
        <UsageCount Value="20"/>
      </Unit0>
      <Unit1>
        <CursorPos X="16" Y="24"/>
        <EditorIndex Value="0"/>
        <Filename Value="unit1.pas"/>
        <ComponentName Value="Form1"/>
        <IsPartOfProject Value="True"/>
        <Loaded Value="True"/>
        <ResourceFilename Value="unit1.lrs"/>
        <TopLine Value="1"/>
        <UnitName Value="unit1"/>
        <UsageCount Value="20"/>
      </Unit1>
    </Units>
    <PublishOptions>
      <Version Value="2"/>
      <IgnoreBinaries Value="False"/>
      <IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
      <ExcludeFileFilter Value="*.(bak|ppu|ppw|o|so);*~;backup"/>
    </PublishOptions>
    <RunParams>
      <local>
        <FormatVersion Value="1"/>
        <LaunchingApplication PathPlusParams="/usr/X11R6/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/>
      </local>
    </RunParams>
    <RequiredPackages Count="1">
      <Item1>
        <PackageName Value="LCL"/>
        <MinVersion Major="1" Valid="True"/>
      </Item1>
    </RequiredPackages>
  </ProjectOptions>
  <CompilerOptions>
    <SearchPaths>
      <SrcPath Value="$(LazarusDir)/lcl/;$(LazarusDir)/lcl/interfaces/$(LCLWidgetType)/"/>
    </SearchPaths>
    <Other>
      <CompilerPath Value="$(CompPath)"/>
    </Other>
  </CompilerOptions>
</CONFIG>





More information about the Lazarus mailing list