Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-12

lazarus vs. xml

10 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

LeVA

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 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

Reply by email

LeVA
to LeVA

Mattias Gaertner �rta:

Show quoted text 24 lines
On Thu, 18 Dec 2003 20:50:41 +0100 LeVA 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

Show quoted text 48 lines
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 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>

Reply by email

Mattias Gaertner
to LeVA: Hi! I figured out that my previous problem with opening the project files, is because of…
Show quoted text 18 lines
Mattias Gaertner �rta: > On Thu, 18 Dec 2003 20:50:41 +0100 LeVA 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

Ok, I updated my fpc and voila, there it is. Someone changed StrLComp and it does not work any longer.

I guess, you have to go back and use an older fpc. I know, that the fpc two days ago worked.

To the fpc team:
Can someone investigate the StrLComp function please?

Mattias

[...]

Reply by email

Mattias Gaertner
to LeVA: Hi! I figured out that my previous problem with opening the project files, is because of…
Show quoted text 13 lines
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?

Anyone else with the same problem?

Mattias

Show quoted text 37 lines
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 with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Mattias Gaertner
to LeVA: Hi! I figured out that my previous problem with opening the project files, is because of…
Show quoted text 51 lines
On Fri, 19 Dec 2003 07:41:40 +0100 (CET) "Peter Vreman" wrote: > > --- strings.old 2003-12-19 07:35:12.000000000 +0100 > +++ strings.inc 2003-12-19 07:37:56.000000000 +0100 > @@ -240,14 +240,18 @@ > repne > scasb > not %ecx > +{$ifdef REGCALL} > cmpl saveecx,%ecx > jl .LSTRLCOMP1 > movl saveecx,%ecx > .LSTRLCOMP1: > -{$ifdef REGCALL} > movl saveedx,%edi > movl saveeax,%esi > {$else} > + cmpl l,%ecx > + jl .LSTRLCOMP1 > + movl l,%ecx > +.LSTRLCOMP1: > movl str2,%edi > movl str1,%esi > {$endif} > @@ -333,14 +337,18 @@ > repne > scasb > not %ecx > +{$ifdef REGCALL} > cmpl saveecx,%ecx > jl .LSTRLICOMP5 > movl saveecx,%ecx > .LSTRLICOMP5: > -{$ifdef REGCALL} > movl saveedx,%edi > movl saveeax,%esi > {$else} > + cmpl l,%ecx > + jl .LSTRLICOMP5 > + movl l,%ecx > +.LSTRLICOMP5: > movl str2,%edi > movl str1,%esi > {$endif} I don't know, what this diff should tell me. My assembler knowledge is not very good, so maybe I just can't see the smart tricks in the function. I don't see, where the parameter l is used.

Sorry for this rubbish. I thought, you already applied the patch.

Thanks for fixing. When will it be applied?

Mattias

Reply by email

Peter Vreman
to LeVA: Hi! I figured out that my previous problem with opening the project files, is because of…
Show quoted text 35 lines
On Thu, 18 Dec 2003 23:48:29 +0100 LeVA wrote: > Mattias Gaertner �rta: > > On Thu, 18 Dec 2003 20:50:41 +0100 LeVA 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 Ok, I updated my fpc and voila, there it is. Someone changed StrLComp and it does not work any longer. I guess, you have to go back and use an older fpc. I know, that the fpc two days ago worked. To the fpc team: Can someone investigate the StrLComp function please?

--- strings.old 2003-12-19 07:35:12.000000000 +0100 +++ strings.inc 2003-12-19 07:37:56.000000000 +0100 @@ -240,14 +240,18 @@
repne
scasb
not %ecx
+{$ifdef REGCALL}
cmpl saveecx,%ecx
jl .LSTRLCOMP1
movl saveecx,%ecx
.LSTRLCOMP1:
-{$ifdef REGCALL}
movl saveedx,%edi
movl saveeax,%esi
{$else}
+ cmpl l,%ecx
+ jl .LSTRLCOMP1
+ movl l,%ecx
+.LSTRLCOMP1:
movl str2,%edi
movl str1,%esi
{$endif}
@@ -333,14 +337,18 @@
repne
scasb
not %ecx
+{$ifdef REGCALL}
cmpl saveecx,%ecx
jl .LSTRLICOMP5
movl saveecx,%ecx
.LSTRLICOMP5:
-{$ifdef REGCALL}
movl saveedx,%edi
movl saveeax,%esi
{$else}
+ cmpl l,%ecx
+ jl .LSTRLICOMP5
+ movl l,%ecx
+.LSTRLICOMP5:
movl str2,%edi
movl str1,%esi
{$endif}

Reply by email

Mattias Gaertner
to LeVA: Hi! I figured out that my previous problem with opening the project files, is because of…
Show quoted text 78 lines
> On Thu, 18 Dec 2003 23:48:29 +0100 LeVA wrote: > >> Mattias Gaertner �rta: >> > On Thu, 18 Dec 2003 20:50:41 +0100 LeVA 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 > > Ok, I updated my fpc and voila, there it is. Someone changed StrLComp > and it > does not work any longer. > > I guess, you have to go back and use an older fpc. I know, that the fpc > two > days ago worked. > > > To the fpc team: > Can someone investigate the StrLComp function please? > --- strings.old 2003-12-19 07:35:12.000000000 +0100 +++ strings.inc 2003-12-19 07:37:56.000000000 +0100 @@ -240,14 +240,18 @@ repne scasb not %ecx +{$ifdef REGCALL} cmpl saveecx,%ecx jl .LSTRLCOMP1 movl saveecx,%ecx .LSTRLCOMP1: -{$ifdef REGCALL} movl saveedx,%edi movl saveeax,%esi {$else} + cmpl l,%ecx + jl .LSTRLCOMP1 + movl l,%ecx +.LSTRLCOMP1: movl str2,%edi movl str1,%esi {$endif} @@ -333,14 +337,18 @@ repne scasb not %ecx +{$ifdef REGCALL} cmpl saveecx,%ecx jl .LSTRLICOMP5 movl saveecx,%ecx .LSTRLICOMP5: -{$ifdef REGCALL} movl saveedx,%edi movl saveeax,%esi {$else} + cmpl l,%ecx + jl .LSTRLICOMP5 + movl l,%ecx +.LSTRLICOMP5: movl str2,%edi movl str1,%esi {$endif}

I don't know, what this diff should tell me. My assembler knowledge is not very good, so maybe I just can't see the smart tricks in the function. I don't see, where the parameter l is used. It seems to me as if it first does a strlen on str2, which can be quite expensive.
So, I replaced the function in the lazarus xml reader.

Mattias

Reply by email

LeVA
to LeVA: Hi! I figured out that my previous problem with opening the project files, is because of…

Peter Vreman �rta:

Show quoted text 45 lines
--- strings.old 2003-12-19 07:35:12.000000000 +0100 +++ strings.inc 2003-12-19 07:37:56.000000000 +0100 @@ -240,14 +240,18 @@ repne scasb not %ecx +{$ifdef REGCALL} cmpl saveecx,%ecx jl .LSTRLCOMP1 movl saveecx,%ecx .LSTRLCOMP1: -{$ifdef REGCALL} movl saveedx,%edi movl saveeax,%esi {$else} + cmpl l,%ecx + jl .LSTRLCOMP1 + movl l,%ecx +.LSTRLCOMP1: movl str2,%edi movl str1,%esi {$endif} @@ -333,14 +337,18 @@ repne scasb not %ecx +{$ifdef REGCALL} cmpl saveecx,%ecx jl .LSTRLICOMP5 movl saveecx,%ecx .LSTRLICOMP5: -{$ifdef REGCALL} movl saveedx,%edi movl saveeax,%esi {$else} + cmpl l,%ecx + jl .LSTRLICOMP5 + movl l,%ecx +.LSTRLICOMP5: movl str2,%edi movl str1,%esi {$endif}

Big thanks goes to Peter Vreman :D

Daniel

LeVA

Reply by email