Recent

Author Topic: laz_xmlstreaming.pas fails to compile  (Read 352 times)

Ryan J

  • Full Member
  • ***
  • Posts: 141
laz_xmlstreaming.pas fails to compile
« on: December 07, 2025, 02:38:43 am »
I'm trying to build the Pascal Language Server which uses Lazarus CodeTools (lazutils) but after some changes were made and I've pulled the latest changes to Lazarus sources I get build errors in laz_xmlstreaming.pas.

Here is the command I'm using. What changed and how can I compile the lazutils now?

/usr/local/lib/fpc/3.3.1/ppca64 -vbr -dFreePascalMake -FU./output -o./pasls -Fu./src -Fu./src/standard -Fu./src/protocol -Fu./src -Fu./src/serverprotocol -Fu~/Developer/Projects/FPC/FPM/sources -Fu~/Developer/Projects/FPC/TOML/sources -Fu~/Developer/lazarus-main/components/codetools -Fu~/Developer/lazarus-main/components/lazutils ./src/standard/pasls.lpr

Free Pascal Compiler version 3.3.1 [2023/03/03] for aarch64
Copyright (c) 1993-2023 by Florian Klaempfl and others
Target OS: Darwin for AArch64
Compiling ./src/standard/pasls.lpr
Compiling ./src/serverprotocol/PasLS.AllCommands.pas
Compiling ./src/serverprotocol/PasLS.Synchronization.pas
Compiling ./src/serverprotocol/PasLS.CheckInactiveRegions.pas
Compiling /Developer/lazarus-main/components/lazutils/lazutils.pas
Compiling /Developer/lazarus-main/components/lazutils/laz_xmlstreaming.pas
/Developer/lazarus-main/components/lazutils/laz_xmlstreaming.pas:85:15: error: There is no method in an ancestor class to be overridden: "WriteString(const RawByteString);"
/Developer/lazarus-main/components/lazutils/laz_xmlstreaming.pas:158:1: error: There were 1 errors compiling module, stopping
error: Compilation aborted



dsiders

  • Hero Member
  • *****
  • Posts: 1521
Re: laz_xmlstreaming.pas fails to compile
« Reply #1 on: December 07, 2025, 03:01:46 am »
I'm trying to build the Pascal Language Server which uses Lazarus CodeTools (lazutils) but after some changes were made and I've pulled the latest changes to Lazarus sources I get build errors in laz_xmlstreaming.pas.

Here is the command I'm using. What changed and how can I compile the lazutils now?

/usr/local/lib/fpc/3.3.1/ppca64 -vbr -dFreePascalMake -FU./output -o./pasls -Fu./src -Fu./src/standard -Fu./src/protocol -Fu./src -Fu./src/serverprotocol -Fu~/Developer/Projects/FPC/FPM/sources -Fu~/Developer/Projects/FPC/TOML/sources -Fu~/Developer/lazarus-main/components/codetools -Fu~/Developer/lazarus-main/components/lazutils ./src/standard/pasls.lpr

Free Pascal Compiler version 3.3.1 [2023/03/03] for aarch64
Copyright (c) 1993-2023 by Florian Klaempfl and others
Target OS: Darwin for AArch64
Compiling ./src/standard/pasls.lpr
Compiling ./src/serverprotocol/PasLS.AllCommands.pas
Compiling ./src/serverprotocol/PasLS.Synchronization.pas
Compiling ./src/serverprotocol/PasLS.CheckInactiveRegions.pas
Compiling /Developer/lazarus-main/components/lazutils/lazutils.pas
Compiling /Developer/lazarus-main/components/lazutils/laz_xmlstreaming.pas
/Developer/lazarus-main/components/lazutils/laz_xmlstreaming.pas:85:15: error: There is no method in an ancestor class to be overridden: "WriteString(const RawByteString);"
/Developer/lazarus-main/components/lazutils/laz_xmlstreaming.pas:158:1: error: There were 1 errors compiling module, stopping
error: Compilation aborted

You did not specify which version of LazUtils you're using... but I'll assume you need the commit in Lazarus trunk which fixed compilation on FPC 3.3.1:

https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/cbf9d30ddf4abf96a24a9f5e3abef5229691dfdf

Ryan J

  • Full Member
  • ***
  • Posts: 141
Re: laz_xmlstreaming.pas fails to compile
« Reply #2 on: December 07, 2025, 05:51:09 am »
Here's the commit I'm using, from Oct 23 so quite recent. Before I updated it DID work. I'm stuck on an older version of FPC for now but does that shouldn't matter. It feels like something is out sync or I need to specify some unit path.

lazarus-main$ git log
commit e3a6978fbd2c54bfad928fef8c4495570a53c0ce (HEAD -> main, origin/main, origin/HEAD)
Author: rich2014 <rich2014.git@outlook.com>
Date:   Thu Oct 23 18:32:56 2025 +0800

    Cocoa: supplement the missing NSFileManager.unmountVolumeAtURL:options:completionHandler:

Ryan J

  • Full Member
  • ***
  • Posts: 141
Re: laz_xmlstreaming.pas fails to compile
« Reply #3 on: December 07, 2025, 01:00:52 pm »
On GitHub (https://github.com/genericptr/pascal-language-server/issues/101) another person says he can't replicate the error but he's not on macOS so this may be macOS only. Can anyone else replicate this on their system?

 

TinyPortal © 2005-2018