Re: [Lazarus] Android applications
On 9/22/24 17:49, Larry Dalton via lazarus wrote: I am trying my first Android app, using lazarus 3.2.2, on Windows 11. When I try to build the application, I get the error C:\lazarus\fpc\3.2.2\bin\x86_64-win64\fpc.exe does not support target arm-linux. You need to install a fpc cross compiler for arm-linux. Copilot was correct here. > In the configurator "Build Lazarus", the settings I have are 'Profile to Build='Clean up + Build All' The "Build Lazarus" is for building the IDE. For your project look into Project / Project Options / Compiler Options. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] LCLWidgetType:=qt5 not to configure in source code ?
On 9/18/24 15:03, John Landmesser via lazarus wrote: I can set LCLWidgetType:=qt5 in an extra build mode. But i was asking myself why not use something like this: unit Config; interface {$IFDEF linux} const WidgetType = 'qt5'; {$ELSE} const WidgetType = 'gtk2'; {$ENDIF} implementation end. include this unit in uses clause of mainform ... has no effect ! Ok, but why ? The LCLWidgetType is an IDE macro. The package lcl has some conditionals to add unit paths and for some widgettypes linker options. If you want to compile a lcl app without Lazarus/lazbuild and without passing command line options, then you could add unit paths to the source. You loose comfort - you have been warned. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] What is the most efficient construction?
On 7/28/24 13:44, Arí Ricardo Ody via lazarus wrote: [...] Between the construction: For i := 0 to list.Count - 1 do In FPC the for-loop differs from a while-loop, as the for-loop fetches the start and end value only once. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Problems installing Lazarus on Linux Mint
On 7/21/24 00:18, Juha Manninen via lazarus wrote: On Sun, Jul 21, 2024 at 12:57 AM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: Why do you assume chatGPT is male? I followed Ari Ricardo's assumption. "*So, following his instructions ...*" Anyway it is impressive if chatGPT can give better instructions than any human. When I asked it, it hallucinated a lazarus debian repo. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Problems installing Lazarus on Linux Mint
On 7/18/24 15:14, Arí Ricardo Ody via lazarus wrote: I had lazarus 2.2 installed on Linux Mint. As I couldn't remove it, I followed charGPT's suggestion and used the Linux Locate command and removed all files that had "lazarus¨ (without the quotes) in the name. Then I downloaded the latest 64-bit version from the lazarus download site and tried to install it with dpkg. I received several errors and the installation is not working. I will put below a copy of the Linux Mint console screen with the errors. -- ricardo@Pavilion-dm3:~/Downloads$ sudo dpkg -i lazarus-project_3.4.0-0_amd64.deb Please install all three packages: fpc-laz, fpc-src and lazarus-project. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] A QT generic directive
On 7/16/24 12:11, Matthieu Giroux via lazarus wrote: Hello ! I deliver freely www.Ancestromania.euI want to deliver it for QT.But there is no generic directive to define qt.So if i forget to change the directive for next qt version, qt version is uncomplete.If there were an ifdef qt directive, i should not have to think to change my code for tge next qt version.Could Lazarus team define a qt directive to not have to upgrade forms code ? Thanks for Lazarus Project ! Do you mean {$IFDEF lclqt5} {$ENDIF} ? Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Getting started with SQLite with Lazarus on Linux Mint
On 7/10/24 12:59, Arí Ricardo Ody via lazarus wrote: Hello! I'm trying to use SQLite with Lazarus on a Linux Mint. It is asking for a module ¨libsqlite3.so¨ (without the quotes). I installed sqlite on my linux with apt. I'm not finding ¨libsqlite3.so¨ anywhere on my SSD, and I also couldn't figure out which directory I should put it in if I found it. At most I can find a module ¨libsqlite3.so.0¨ in the /usr/lib directory. Would anyone help me, please? Have you tried installing libsqlite3-dev ? Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Lazarus Bugfix Release 3.4
The Lazarus team is glad to announce the release of Lazarus 3.4. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_3.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Here is the list of fixes for Lazarus 3.x: https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_3_0/ The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 3.4" directory. Checksums for the SourceForge files: https://www.lazarus-ide.org/index.php?page=checksums#3_4 Minimum requirements: Windows: 2k, 32 or 64bit, Qt, Qt5, Qt6 (64bit only) FreeBSD/Linux: gtk 2.24 for gtk2, qt4.5 for qt, qt5.6 for qt5, Qt6.2 for qt6, 32 or 64bit. Mac OS X: Cocoa (64bit) 10.12, Carbon (32bit) 10.5 to 10.14, Qt and Qt5 (32 or 64bit), Qt6 (64bit only). Note: Since Macos Sonoma 14 debugging takes some time to start the application, especially on first start. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] lazarus 3.2 and qt5, cannot open anything
On 5/23/24 12:47, Luca Olivetti via lazarus wrote: [...] No, it's not supposed to be a GUI program. I added it now, it compiles, but then I have the problem reported in the BGRAbitmap bugtracker (and I wonder why it compiled fine without the interfaces unit and the gtk2 widgetset). I "solved" the "too many libraries" problem using the nogui widgetset. It's a solution I'm not really comfortable with but it seems to work. I wonder why, back when when I originally wrote the program with lazarus 2.0.12, neither the "interfaces" unit was needed nor the project pulled so many libraries. Depends on what you use from BGRA and what that uses from the LCL. Most of the LCL requires the interfaces unit. Keep in mind that the nogui widgetset is for most part an empty stub. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] "Execute before" is executed after resource generation?
On 5/22/24 15:03, Luca Olivetti via lazarus wrote: Hello, I'm trying to use the "Compiler commands" -> "Execute before" to generate a file that will be embedded as a resource in the executable, but it seems the command is executed after the resources are compiled (there's a message complaining that the file is not found and in fact when I execute the program the resource is not available). Is there a way around it, other than executing the command manually? If you mean the project .res file: That is updated on save, which is independent of compile. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Stepping into the LCL with fpdebug
On 22.04.24 10:37, Luca Olivetti via lazarus wrote: [...] First of all, the fpc release units have no debug information, so normally there is nothing to pick. I have no problem with rtl/fcl units, as I explained, I compile them with debug info (either -gl or -gw3) and I can step into them. Yes, you compiled them yourself, because the fpc *release* does not include debug information. [...] Then why I can step into the LCL with gdb and -gl? ... and not with fpdebug? Martin? Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Stepping into the LCL with fpdebug
On 22.04.24 09:54, Luca Olivetti via lazarus wrote: [...] make clean install OPT=-gw3 INSTALL_PREFIX=d:\pp-fpdebug (different path so I can keep the two versions) and I can step inside the rtl, just not inside the LCL. Since the packages are automatically built when I build the project, I think they should pick the -gw3 setting, shouldn't they? First of all, the fpc release units have no debug information, so normally there is nothing to pick. But if they have it would be super useful to have a setting "use the debug setting of the system unit", but there is not. You can add the -gw3 flag depending on build mode: https://wiki.lazarus.freepascal.org/IDE_Window:_Compiler_Options#Add_a_flag_to_project_and_all_packages I thought that the problem was the "Use external debug symbols file (-Xg)" but even without that option I cannot step inside the LCL. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Project.pp
On 03.04.24 15:28, Gabriele Cappelletto via lazarus wrote: Il 03/04/24 15:26, Gabriele Cappelletto via lazarus ha scritto: HI, I had a package that compiled well with Lazarus 2.2.4 (I used that one). Then I switched to 3.2 and it doesn't work anymore. Exactly it stops because it cannot find the file contained in lazarus/ide/Project.pp. What package should I include? And why did it work fine in Lazarus 2.2.4 (and also 2.2.6)? exactly the uses is this uses Classi, SysUtils, Controlli , Forms, Dialogs, LazIDEIntf, ProjectIntf, FormEditingIntf, Project, ModeMatrixOpts; uses Classes, SysUtils, Controls, Forms, Dialogs, LazIDEIntf, ProjectIntf, FormEditingIntf, Project, ModeMatrixOpts; Is this the uses section of one of your package units? Does your package trying to access the IDE unit "project" directly instead of the ProjectIntf? Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Lazarus Bugfix Release 3.2
The Lazarus team is glad to announce the release of Lazarus 3.2. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_3.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Here is the list of fixes for Lazarus 3.x: https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_3_0/ The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 3.2" directory. Checksums for the SourceForge files: https://www.lazarus-ide.org/index.php?page=checksums#3_2 Minimum requirements: Windows: 2k, 32 or 64bit, Qt, Qt5, Qt6 (64bit only) FreeBSD/Linux: gtk 2.24 for gtk2, qt4.5 for qt, qt5.6 for qt5, Qt6.2 for qt6, 32 or 64bit. Mac OS X: Cocoa (64bit) 10.12, Carbon (32bit) 10.5 to 10.14, Qt and Qt5 (32 or 64bit), Qt6 (64bit only). Note: Since Macos Sonoma 14 debugging takes some time to start the application, especially on first start. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] How to restore package anchordocking to default values
On 17.01.24 14:07, John Landmesser via lazarus wrote: On windows 10 i somehow ruined the configuration of installed package "AnchorDockingDsgn". All the anchored windows of the IDE are messed up :-( It is of no use to reinstall this package ... so how to restore its default Values for objectinspector, codeexplorer ... Tipps are needed ... thank you! Lazarus config directory "environmentoptions.xml" search for tag "Desktops" Close the IDE and delete the tag. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Issue compiling under MacOS
On 07.01.24 10:50, Michael Thompson via lazarus wrote: Adding -ld_classic as per https://stackoverflow.com/questions/77153800/xcode-15-c-compilation-errors got me nowhere. Well, to be correct, it got me past the " ld: library 'c' not found" error, but introduced me to a "ld: framework not found Cocoa" error. You must install XCode and do sudo xcode-select --install sudo xcodebuild -license accept Does your fpc.cfg contain -XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/ ? Mattias Cheers Mike On Sun, 7 Jan 2024 at 17:47, Michael Thompson wrote: G'day, Apologies for this. I've just bought a MacMini specifically for Laz development, and I'm stuck with an issue that seems be plaguing several other projects. The apologies are because I'm new to Mac, I might not be reporting this correctly - and the info to resolve may be on the web, our forum or this mailing list, but I'm not finding it. if I run the build script direct, I get the following output: mike@Mikes-Mac-mini uBee512Launcher % ./ppaslink.sh ld: warning: -multiply_defined is obsolete -macosx_version_min has been renamed to -macos_version_min ld: warning: ignoring duplicate libraries: '-lc' ld: library 'c' not found An error occurred while linking This is exactly the build error I'm getting from within Lazarus, when I try to build my Project. I've tried hand editing the .sh file and removing entries from the .res file (so I could give you more insight into what might need changing), but I don't know what I'm doing, and I never got a workable project. Adding -ld_classic as per https://stackoverflow.com/questions/77153800/xcode-15-c-compilation-errors got me nowhere. Searching for these linker errors gets me a whole slew of recent posts from other projects saying that build scripts need to be updated for a new linker in XCode 15 (which is why I started poking around with the ppaslink.sh script). I'm not sure how to install the 'c' library (on linux I'd be apt'ing round about now) I'm using XCode Command Line Tools 15.1 / macOS 14.2. I'm unable to revert to any XCode Command Lines from the 14.x range "your OS is too new". My Mac Mini is Intel based. I've tried this with and without XCode installed (seems to be a separate product) I've also bumped an identical post on the forum: https://forum.lazarus.freepascal.org/index.php/topic,65153.msg501604/topicseen.html#new Help :-( Mike -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Lazarus Release 3.0
The Lazarus team is glad to announce the release of Lazarus 3.0. This release was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_3.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Here is the list of fixes for Lazarus 3.x: https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_3_0/ The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 3.0" directory. Checksums for the SourceForge files: https://www.lazarus-ide.org/index.php?page=checksums#3_0 Minimum requirements: Windows: 2k, 32 or 64bit, Qt, Qt5, Qt6 (64bit only) FreeBSD/Linux: gtk 2.24 for gtk2, qt4.5 for qt, qt5.6 for qt5, Qt6.2 for qt6, 32 or 64bit. Mac OS X: Cocoa (64bit) 10.12, Carbon (32bit) 10.5 to 10.14, Qt and Qt5 (32 or 64bit), Qt6 (64bit only). There is a problem on Macos. When upgrading from Ventura to Sonoma 13.6, debugging in the IDE often does not work, the app does not start. Running the app without debugging and debugging in the Terminal using lldb does work. Once a solution is found I will upload a new Lazarus pkg for Macos. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Can I rebuild Lazarus installed via apt on an RPi4B?
On 07.12.23 11:22, Bo Berglund via lazarus wrote: [...] Also looked at the /usr/bin dir and it is owned by root so no chance of installing as a user there... Yes, see https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard I thought that perhaps when running apt without sudo it would change install path to something inside the $HOME location, but apparently not... You can extract a debian package anywhere, but you can install it only as root to fixed folders. So how does this work? Lazarus tests before compiling a package if the output directory is writable and if not redirects to a sub directory of its config directory. This is a feature of the IDE and lazbuild. The makefiles do not support this, so a "make" fails. So to rebuild Lazarus from the command line I should use lazbuild, right? What arguments are needed for lazbuild? I looked here: https://wiki.lazarus.freepascal.org/lazbuild So will this be sufficient: lazbuild --build-ide="Normal IDE" --pcp="$HOME/.lazarus_2.2.6" --compiler=$HOME/bin/ppcarm Seeing all your experiments I don't know if it is sufficient for you. It sounds right. Although if you don't want to use the defaults, then I recommend to *not* install Lazarus from apt, but simply download the git, create a lazarus.cfg and "make clean all". ... If I use sudo apt install lazarus, will that also pull fpc as a dependency Yes. or should I use: sudo apt install fpc lazarus instead? And what about the lazarus sources, are they pulled in as well with the sudo apt install lazarus command? Yes. [...] I have been building Fpc/Lazarus from sources since many years, also tested fpcupdeluxe a few times. So getting/using the sources is known. I usually download the tarballs with a release tag from gitlab using wget. After I have built fpc and symlinked into $HOME/bin I build Lazarus like this: cd $HOME/devtools/lazarus/2.2.6/ make clean PP=$HOME/bin/ppcarm && make bigide PP=$HOME/bin/ppcarm Shorter: make clean bigide PP=$HOME/bin/ppcarm [...] > New fpc? Being able to upgrade fpc on the side without disruption of Lazarus is also an issue for me, is there some setting/config within the pcp directory that I can change to point Lazarus to a new fpc compiler and it will then be possible to rebuild Lazarus with that new compiler? For compiling your project set the compiler in Project Options. Use build modes for multiple platforms. For compiling the IDE with different fpc versions, install the fpc sources in paths that only differ in version number, so you can use the IDE macro $(FPCVer). Then you can easily switch the used fpc in Tools / Options / Env / Files. And what about day-to-day project compiles if I want to use the new compiler? Is it as simple as changing the symlink of $HOME/bin/ppcarm to point to the new compiler? It would affect all user installs utilizing the ppcarm compiler. Using build modes sounds easier. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Can I rebuild Lazarus installed via apt on an RPi4B?
On 07.12.23 00:05, Bo Berglund via lazarus wrote: Since every customization of Lazarus means the IDE must be rebuilt it also means that Lazarus must be installed where the current user has permissions to do that. But when installing stuff via sudo apt install package it normally gets into read-only locations, right? Yes, this is a multi user installation. So how does this work? Lazarus tests before compiling a package if the output directory is writable and if not redirects to a sub directory of its config directory. This is a feature of the IDE and lazbuild. The makefiles do not support this, so a "make" fails. If you want to compile lazarus with make, use a git clone of the lazarus repository. [...] Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Attn. Mattias, adding x86 CPU detection function to DefineTemplates.pas
On 23.11.23 02:11, Maxim Ganetsky via lazarus wrote: Hello. I am trying to solve https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/38786 (Lazarus emits x86-specific assembler mode compiler option for non-x86 CPUs). In order to solve it, I need to add the following function to DefineTemplates.pas: function IsCPUX86(TargetCPU: string): boolean; begin TargetCPU := GetFPCTargetCPU(TargetCPU); Result:=(TargetCPU='i8086') or (TargetCPU='i386') or (TargetCPU='x86_64'); end; ok Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Lazarus Release Candidate 2 of 3.0
The Lazarus team is glad to announce the second release candidate of Lazarus 3.0. This release was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_3.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Here is the list of fixes for Lazarus 3.x: https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_3_0/ The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 3.0RC2" directory. Checksums for the SourceForge files: https://www.lazarus-ide.org/index.php?page=checksums#3_0RC2 Minimum requirements: Windows: 2k, 32 or 64bit, Qt, Qt5, Qt6 (64bit only) FreeBSD/Linux: gtk 2.24 for gtk2, qt4.5 for qt, qt5.6 for qt5, Qt6.2 for qt6, 32 or 64bit. Mac OS X: Cocoa (64bit) 10.12, Carbon (32bit) 10.5 to 10.14, Qt and Qt5 (32 or 64bit), Qt6 (64bit only). There is a problem on Macos. When upgrading from Ventura to Sonoma 13.6, debugging in the IDE often does not work, the app does not start. Running the app without debugging and debugging in the Terminal using lldb does work. Once a solution is found I will upload a new Lazarus pkg for Macos. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] strange error message
On 10.10.23 23:11, John Landmesser via lazarus wrote: Hi, recompile the IDE i get this Lazarus 3.99 (rev main_3_99-532-gb59196e223) FPC 3.2.0 x86_64-linux-gtk2 Lazarus did not find ppcarm Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Window Position
On 22.09.23 07:17, Timothy Groves via lazarus wrote: Whenever a program I have written opens a created form, that form always appears precisely where it sat at design time, even if that would be way off the screen (my workstation has a 3440x1440 display, but the laptop I run many programs on has only 1280x800). Typically, I have to encode something in FormCreate to force it to move, which is no better really. Why won't the window manager just place it where it feels it should be, as it does with every other program out there? I've tried changing form.Position in the Object Inspector to poDefault, or poDefaultSizeOnly and that made no difference, and if I set it to poDefaultPosOnly, it turns off AutoSize, and *still* makes no difference. Is there any way to disable this behaviour? The gtk has such default position. It should be possible to support poDefault there. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Build error with fixes_3_0 and FPC current main (3.3.1)
On 20.08.23 08:23, Gabor Boros via lazarus wrote: [...] Free Pascal Compiler version 3.3.1 [2023/08/20] for x86_64 Copyright (c) 1993-2023 by Florian Klaempfl and others (1002) Target OS: Win64 for x64 (3104) Compiling lazarus.pp e:\Lazarus\fixes_3_0\ide\lazarus.pp(121,20) Warning: (5044) Symbol "MainFormOnTaskBar" is not portable (9022) Compiling resource ..\units\x86_64-win64\win32\lazarus.obj (9015) Linking ..\lazarus.exe e:\Lazarus\fixes_3_0\ide\lazarus.pp(171,1) Error: (9221) Undefined symbol: TC_$FPDMEMORYTOOLS_$$__zero_$FPDMEMORYTOOLS_$$_TFPDBGMEMLOCATION (first seen in fpdebugvalueconvertors.o) e:\Lazarus\fixes_3_0\ide\lazarus.pp(171,1) Fatal: (10026) There were 1 errors compiling module, stopping See https://gitlab.com/freepascal.org/fpc/source/-/issues/40404 Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] [fpc-devel] Unicode RTL
On 28.07.23 16:35, Michael Van Canneyt via lazarus wrote: [...] Naming something Unicode without adding any new Unicode feature can hardly be called consistent. As I wrote, the "Unicode" refers to String = UnicodeString. In that sense it is 'consistent with existent terminology' Yes, but you didn't name it "UnicodeString RTL", you named it "Unicode RTL". You can't blame CodeGear for that choice. The new RTL has dotted units, so "Namespaced RTL" or "Dotted RTL" would fit too - also no catchy. So far, nothing catchy has been offered. If you want something catchy, don't use a descriptive name. Since the cheetah is a dotted (spotted) animal and it is the fpc mascot, maybe Cheetah RTL? Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] [fpc-devel] Unicode RTL
On 28.07.23 13:42, Michael Van Canneyt via lazarus wrote: On Fri, 28 Jul 2023, Alexey Torgashin via lazarus wrote: Objection duly noted. Yes, 'Unicode RTL' sounds very bad. Before it was Unicode too. So, "UTF16 RTL", "WideChar RTL" or so. The "Unicode" refers to String = UnicodeString. The latter has been in use for what, 15-20 years ? ...wrong for 20 years. The name is chosen to remain consistent with existing terminology. It seems, it was chosen because it is easier to pronounce than UTF16 RTL. Naming something Unicode without adding any new Unicode feature can hardly be called consistent. Assuming you guys are consistent, I guess you people are also not comfortable with the term 'UnicodeString' ? Of course not. Working with FPC must be a really annoying experience then... ;) Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Unicode RTL
On 24.07.23 21:49, Michael Van Canneyt via lazarus wrote: [...]Hopefully, in the near future the compiler settings dialog in Lazarus will also allow you to specify a subtarget. I will add it. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] TThread.Queue vs Application.QueueAsyncCall
On 17.07.23 19:01, Luca Olivetti via lazarus wrote: Hello, TThread.Queue and Application.QueueAsyncCall more or less do the same thing (even if they use two different queues that are managed at different times in the main thread). When it's better to use one or the other? Application.QueueAsyncCall has a Data: PtrInt parameter to pass some context and it is always called later, so this is useful for doing something after the current LCL event. TThread.Queue has aThread parameter, so the call is removed when the thread is freed, and when you call it from the main thread it will execute immediately, so this is for worker threads to asynchronously do something in the main thread. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Lazarus Release Candidate 1 of 3.0
The Lazarus team is glad to announce the first release candidate of Lazarus 3.0. This release was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_3.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Here is the list of fixes for Lazarus 3.x: https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_3_0/ The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 3.0RC1" directory. Checksums for the SourceForge files: https://www.lazarus-ide.org/index.php?page=checksums#3_0RC1 Minimum requirements: Windows: 2k, 32 or 64bit. FreeBSD/Linux: gtk 2.24 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit. Mac OS X: Cocoa (64bit) 10.12, Carbon (32bit) 10.5 to 10.14, qt and qt5 (32 or 64bit). The gitlab page: https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/lazarus_3_0_RC1 For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at:ftp://ftp.freepascal.org/pub/lazarus/releases/ == Why should everybody (including you) test the release candidate? == In the past weeks the Lazarus team has stabilized the 3.0 fixes branch. The resulting 3.0RC1 is now stable enough to be used by any one for test purposes. However many of the fixes and new features that were committed since the release of 2.2.6 required changes to the code of existing features too. While we have tested those ourselves, there may still be problems that only occur with very specific configurations or one project in a million. Yes, it may be that you are the only person with a project, that will not work in the new IDE. So if you do not test, we can not fix it. Please do not wait for the final release, in order to test. It may be too late. Once the release is out we will have to be more selective about which fixes can be merged for further 3.x releases. So it may be, that we can not merge the fix you require. And then you will miss out on all the new features. == How to test == Download and install the 3.0 RC1. - On Windows you can install as a 2ndary install, that will not affect your current install: http://wiki.lazarus.freepascal.org/Multiple_Lazarus#Installation_of_multiple_Lazarus - On other platforms, if you install to a new location you need to use --primary-config-path In either case you should make backups. (including your primary config) Open your project in the current Lazarus (3.0), and use "Publish Project" from the project menu. This creates a clean copy of your project. You can then open that copy in the RC1. Please test: - If you can edit forms in the designer - rename components / change properties in Object inspector / Add new events - Add components to form / Move components on form - Frames, if you use them - If you can navigate the source code (e.g. jump to implementation) - Auto completion in source code - Compile, debug and run - Anything else you use in your daily work Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus trunk version number
On Fri, 30 Jun 2023 16:25:47 +0200 (CEST) Michael Van Canneyt via lazarus wrote: >[...] > Honestly: I'll settle for actually managing to get a release out. +1000 Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Output directories
On Wed, 7 Jun 2023 11:58:11 +0200 Giuliano Colla via lazarus wrote: >[...] > When you're rebuilding Lazarus with source code in a write protected > folder, your local copy is created in a local ~/.lazarus folder. > Everything should be written there and the write protected folder > should be left untouched. But whenever a subfolder is needed, there > is a check that it does exist in the write protected area, even if it > will not be used, and an error is flagged if the folder doesn't exist > and can't be created. Fixed. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Output directories
On Wed, 7 Jun 2023 11:43:16 +0200 (CEST) Michael Van Canneyt via lazarus wrote: > Hello, > > There is a problem when installing Lazarus through the package > manager on Linux, and when you try to install/recompile additional > packages: > > Error: (lazarus) unable to create package output directory > "/usr/share/lazarus/2.2.4/components/fpweb/lib/x86_64-linux" of > package "weblaz 1.0" > > I suspect that the IDE tries to create the output directories of > packages, but of course it has no write permission in /usr/share. > > Should this not be detected and the output put in > ~/.local/share/lazarus/... instead ? Yes, sounds like a regression. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Who uses "caret past EOL"?
On Fri, 2 Jun 2023 18:07:28 +0200 Marc Weustink via lazarus wrote: >[...] > Thats fine with me. Having the scrollbar limited to the > max(screenwidht+something, longest line) makes sense. +1 Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Some source editor context menu items broken
On Sun, 21 May 2023 10:48:30 +0200 (CEST) Michael Van Canneyt via lazarus wrote: >[...] > I saw a remark in main.pp that this is supposed to be faster than > using the codetools: > > CurWordAtCursor := ASrcEdit.GetWordAtCurrentCaret; > //it is faster to get information from SynEdit than from > CodeTools > ASrcEdit.EditorComponent.CaretAtIdentOrString(ASrcEdit.EditorComponent.CaretXY, > IdentFound, StringFound); > > Faster? Probably. Correct? clearly not (yet). Problem is that this function checks: AtIdent := Attri = Highlighter.IdentifierAttribute; But TSynPasSyn has its own attribute ProcedureHeaderName: TSynHighlighterAttributesModifier Martin? Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Source Hint Popup window markup ?
On Thu, 18 May 2023 09:58:58 +0200 (CEST) Michael Van Canneyt via lazarus wrote: > Hi, > > The IDE - in its desire to be helpful - shows a popup whenever you > hover your mouse over an identifier. > > It seems to me the popup contains some markdown (e.g. underscores): > see attached screenshot. > > I assume this is supposed to be formatted ? > If so, how to enable that formatting ? Install TurboPowerIProDsgn Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] dbg file on smb share hangs IDE
On Tue, 16 May 2023 21:36:45 +0200 Martin Frb via lazarus wrote: > On 12/05/2023 13:55, Mattias Gaertner via lazarus wrote: > > Hi, > > > > When debugging a project on Windows with external debug info (.dbg) > > the IDE hangs. > > It works on the local C partition, but it hangs the IDE when the > > project is on a smb share. I have to kill lazarus.exe. > > > > Is this known? > > > > I don't think it is known. > > Gdb or FpDebug? FPDebug > Any size of dbg file? 87MB > FpDebug (on win) lets the OS do the loading by creating a memory map > for the file. Maybe WIndows has an issues there. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] dbg file on smb share hangs IDE
Hi, When debugging a project on Windows with external debug info (.dbg) the IDE hangs. It works on the local C partition, but it hangs the IDE when the project is on a smb share. I have to kill lazarus.exe. Is this known? Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1)
On Mon, 17 Apr 2023 10:11:28 +0200 Giuliano Colla via lazarus wrote: > Il 17/04/2023 08:15, Bo Berglund via lazarus ha scritto: > > > You never stop learning! > > Another thing I have learned with experience, is that sometimes the > cleanup isn't perfect and leaves some dangling ppu which creates a > problem like the one you had. It occurred to me when attempting to > rebuild Lazarus, and I was getting an unexpected "undefined > reference". Can happen when some unit is moved to another package. > I was trying to build a normal IDE, so I tried to build a > "debug IDE" instead. With different compilation flags it was forced > to rebuild everything, and it worked fine. Then I tried again a > "normal IDE", and this time it went OK. That's why there is "Clean all" radiobutton on the configure build lazarus dialog. It building fails, try that. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] animated splash screen for lengthy operation, works with windows, doesn't with linux
On Mon, 27 Mar 2023 14:40:26 +0200 Luca Olivetti via lazarus wrote: > El 27/3/23 a les 11:59, Luca Olivetti via lazarus ha escrit: > > > [*] instead of opening the query I spawn a thread that opens it, > > wait for it to finish while executing Application.ProcessMessages > > and eventually reraise the exception that was generated inside the > > thread. > > > Speaking of which, I encapsulated it in a procedure (TWaitForm is the > spash screen, Aproc is a procedure of object, TExecInThread simply > calls AProc in its execute method): > > procedure ExecWithSplash(AProc:TThreadProc); > var wf:TWaitForm; > ut:TExecInThread; > begin >Wf:=TWaitForm.Create(Application); >WF.Show; >ut:=TExecInThread.create(AProc); >while not ut.Finished > Application.ProcessMessages >wf.free; >if ut.FatalException<>nil then > raise(ut.FatalException); >ut.free; > end; > > > The problem here is, if AProc raises an exception, I cannot free the > thread causing a leak. What does TExecInThread.Execute do? > try >if ut.FatalException<>nil then > raise(ut.FatalException); > finally >ut.free; > end Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus fails to build
On Sun, 19 Mar 2023 01:50:26 +0100 Mattias Gaertner via lazarus wrote: >[...] > Note that when a base package is renamed or a new one is added it > will still need a clean build using make. The IDE now detects such changes, warn the user and offers to build using make distclean, make lazbuild and lazbuild --build-ide= Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus fails to build
On Sun, 19 Mar 2023 00:00:02 +0100 (CET) Michael Van Canneyt wrote: >[...] > > As this happens seldom there is no detection built in (yet) to > > handle this automatically. I added a simple detection, so in the future the IDE will not add base packages to staticpackages.inc. I also added some comments. Note that when a base package is renamed or a new one is added it will still need a clean build using make. To support these cases it would be needed to load the new lpk files, which requires error handling etc. Another idea is to detect such changes, warn the user and build using make+lazbuild. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus fails to build
On Sat, 18 Mar 2023 23:39:02 +0100 Martin Frb via lazarus wrote: >[...] > This error happens everytime, when packages become part of the core > list. Because older IDE are not forward compatible with that sort of > change. As this happens seldom there is no detection built in (yet) to handle this automatically. >[...] > To work around: > > Build once via > make clean bigide ... or update lazbuild and use that to build the new IDE. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Lazarus Release 2.2.6
The Lazarus team is glad to announce the release of Lazarus 2.2.6. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_2.2.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Here is the list of fixes for Lazarus 2.2.x: https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_2_2 The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 2.2.6" directory. Checksums for the SourceForge files: https://www.lazarus-ide.org/index.php?page=checksums#2_2_6 Minimum requirements: Windows: 2k, 32 or 64bit. FreeBSD/Linux: gtk 2.24 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit. Mac OS X: Cocoa (64bit) 10.12, Carbon (32bit) 10.5 to 10.14, qt and qt5 (32 or 64bit). The gitlab page: https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/lazarus_2_2_6 For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at: ftp://ftp.freepascal.org/pub/lazarus/releases/ Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Screwed up Lazarus installation - how to make clean and start over?
On Thu, 23 Feb 2023 11:48:06 +0100 Bo Berglund via lazarus wrote: >[...] > Next I went there again to do the rebuild, but now the button is no > longer enabled :-( > > But I found another in Tools/Build Lazarus with profile Normal IDE > If I use that will it do the same as the button you referred to? Yes. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Using packages for often used units across projects?
On Tue, 14 Feb 2023 10:06:50 +0100 Bo Berglund via lazarus wrote: >[...] > Suppose I make a package with about 10 non-GUI utility units and use > the Package Manager to compile them so they will be known to new > projects if I add a dependency to this package. > > Then in a new project I put a single one of the units into my uses > clause, will then the compile include just that unit Yes, that is the default. > or will it grab > all of the package content into the resulting binary? > > I hope that it will just compile the specified unit into the program > and not the complete package, but want to check this in case I am not > understanding how it works Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] make all compilation error after 319649fb (Attn: Martin)
On Mon, 9 Jan 2023 18:01:19 +0100 Martin Frb via lazarus wrote: >[...] > There is "make" (aka "make all" ?) and "make bigide". > Afaik "make useride" depends on what packages are configured, so that > is not just a single setting? Yes. But if you start with an empty config directory "make useride" should be reliable and is a good test for lazbuild. >[...] Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] revamping a very old print
On Sat, 7 Jan 2023 19:17:36 +0100 duilio foschi via lazarus wrote: >[...] > 6. how do I set the size of the font? As normal: Printer.Canvas.Font.Size:= >[...] Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Error building Lazarus Trunk
On Sun, 1 Jan 2023 07:15:41 -0800 Wayne Sherman via lazarus wrote: > On Sun, Jan 1, 2023 at 1:51 AM Ondrej Pokorny wrote: > > Ok , 2nd attempt :) > > https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/71ac105bc728824b849c027a016ad572226002c1 > > > > Yes, that fixed it. Thank you. > > The build problem was not caught by any of the CI/CD jobs that ran. > To catch failures with lazbuild, should a test be added to CI/CD jobs > to build the Lazarus IDE with it? Yes, please. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Makefile issues
On Thu, 1 Dec 2022 23:22:38 +0100 (CET) Michael Van Canneyt via lazarus wrote: >[...] > Well, it turns out that "make useride" also does not work on a fresh > checkout. It didn't work when Cleaning is enabled. Fixed. >[...] > But the point of the 'main targets' is taken, so I filed a feature > request in the issue tracker to be able to build the LCL using just > the Makefile. > > basically, I would like something as > > make lcl > > to produce the LCL units. make registration lazutils lcl The problem is that make is pretty dumb, so it creates only a rudimentary Makefile.compiled file. If you use lazbuild or lazarus to compile a project they might decide to recompile the lcl. It would be safer to compile lazbuild, and then use that to compile the lcl. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Makefile issues
On Wed, 30 Nov 2022 14:35:24 +0100 (CET) Michael Van Canneyt via lazarus wrote: > Hello, > > The lazarus makefile has some dependency issues. > > make ide: That's an internal target. See "make help". >[...] > Based on the output of "make help", in an attempt to create > svn2revisioninc I did: > > > make tools > make -C tools > make[1]: Entering directory '/home/michael/projects/lazarus-tst/tools' > Makefile:2956: warning: overriding recipe for target '.' > Makefile:2954: warning: ignoring old recipe for target '.' > make --assume-new=lazres.pp lazres > make[2]: Entering directory '/home/michael/projects/lazarus-tst/tools' > Makefile:2956: warning: overriding recipe for target '.' > Makefile:2954: warning: ignoring old recipe for target '.' > /usr/local/bin/ppcx64 -gl -Fu. > -Fu../components/lazutils/lib/x86_64-linux > -Fu../lcl/units/x86_64-linux -Fu../lcl/units/x86_64-linux/nogui > -Fu/usr/local/lib/fpc/3.3.1/units/x86_64-linux/rtl -FE. -FU. -Cg > -Fl/usr/lib/gcc/x86_64-linux-gnu/9 -Flinclude > -Fl/etc/ld.so.conf.d/*.conf -dx86_64 lazres.pp lazres.pp(43,22) > Fatal: Can't find unit LazLogger used by LazRes Sub target "tools" require a compiled nogui lcl. Just use the main targets. The makefiles are not supposed to be called in any order. They are merely a bootstrap to get to lazbuild and/or lazarus. >[...] > > make basecomponents Same here. >[...] > After some more failed attempts trying to compile "sub-targets", I > gave up. Good. > Am I correct in my understanding that in fact only the "main" targets > all, bigide, useride are supposed to work out of the box when you > start from a fresh checkout ? Yes. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Possible Codetools issue for embedded targets in main branch
On Fri, 07 Oct 2022 07:31:37 + Alfred via lazarus wrote: > If I am free to make this request, the most easy method (for me) > would be a boolean setting in miscellaneousoptions.xml. > Something with the name "Force-rescan" that gets reset when the > rescan has been performed when Lazarus has been started and the > rescan is finished. > I know I ask a lot, but this would serve me well ... ;-) If you just need a rescan on start, you can simply delete fpcdefines.xml Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Possible Codetools issue for embedded targets in main branch
On Fri, 07 Oct 2022 06:00:28 + Alfred via lazarus wrote: > Sidenote request, as fpcupdeluxe maintainer. > It would be nice if the rescan procedure would be reacheable from the > outside. > Fpcupdeluxe would like to use it when updating/installing sources. > Thanks. Outside means here IPC or a public method? Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Possible Codetools issue for embedded targets in main branch
On Thu, 6 Oct 2022 22:47:19 +0200 Michael Ring via lazarus wrote: > While investigating further I suddenly saw that the unit was detected. > > So I did a complete fresh install via fpcupdeluxe, opened a project > for rp2040, saw the error. > > Then I selected 'rescan fpc source directory' and the issue was gone. > > So not sure if this is an issue or not, it definitely does not fully > work as expected. Your cache was outdated. When you update the FPC sources and some units are added/removed/moved, you should use the rescan. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Lazarus Release 2.2.4
The Lazarus team is glad to announce the release of Lazarus 2.2.4. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_2.2.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Here is the list of fixes for Lazarus 2.2.x: https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_2_2 The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 2.2.4" directory. Checksums for the SourceForge files: https://www.lazarus-ide.org/index.php?page=checksums#2_2_4 Minimum requirements: Windows: 2k, 32 or 64bit. FreeBSD/Linux: gtk 2.24 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit. Mac OS X: Cocoa (64bit) 10.12, Carbon (32bit) 10.5 to 10.14, qt and qt5 (32 or 64bit). The gitlab page: https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/lazarus_2_2_4 For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at: ftp://ftp.freepascal.org/pub/lazarus/releases/ Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Strange issue with TImage and lazarus 2.2.2
On Fri, 24 Jun 2022 17:27:13 +0200 Werner Pamler via lazarus wrote: >[...] > But still the situation is not very satisfying. Maybe instead of the GraphicClass.ClassName the first extension can be written. That means, that an old IDE cannot read the graphic. Or the vampyrlib defines type TPortableNetworkGraphic = class(TImagingPNG); and registers that in TPicture. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Strange issue with TImage and lazarus 2.2.2
On Fri, 24 Jun 2022 11:09:17 +0200 Werner Pamler via lazarus wrote: >[...] It is > my impression there is no way to register a new format in any way > without modifying the sources of TPicture. TPicture: class function SupportsClipboardFormat(FormatID: TClipboardFormat): Boolean; class procedure RegisterFileFormat(const AnExtension, ADescription: string; AGraphicClass: TGraphicClass); class procedure RegisterClipboardFormat(FormatID: TClipboardFormat; AGraphicClass: TGraphicClass); class procedure UnregisterGraphicClass(AClass: TGraphicClass); class function FindGraphicClassWithFileExt(const Ext: string; ExceptionOnNotFound: boolean = true): TGraphicClass; Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Strange issue with TImage and lazarus 2.2.2
On Fri, 24 Jun 2022 00:05:02 +0200 Luca Olivetti via lazarus wrote: > El 23/6/22 a les 21:40, Mattias Gaertner via lazarus ha escrit: > > On Thu, 23 Jun 2022 20:38:59 +0200 > > Luca Olivetti via lazarus wrote: > > > >> [...] > >> I don't understand why the ide prefers one class over the other, I > >> guess they are all treated the same and the one registered last > >> wins? > > > > Correct. See TPicture.RegisterFileFormat > > Not that it's going to matter now that I uninstalled the package, > but why did it find the class for writing and not for reading it back? > Also, once solved that, if it streams it using a class provided by a > package, shouldn't the project have a dependency automatically added > on that package? Both should read+write valid png files, otherwise there is a bug. Are you sure, that the VampyreImaging lib is supposed to be installed in the IDE and to replace the default png TPicture? Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Strange issue with TImage and lazarus 2.2.2
On Thu, 23 Jun 2022 20:38:59 +0200 Luca Olivetti via lazarus wrote: >[...] > I don't understand why the ide prefers one class over the other, I > guess they are all treated the same and the one registered last wins? Correct. See TPicture.RegisterFileFormat Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Simplest way to update a .lfm using a Component Editor
On Fri, 20 May 2022 11:28:59 -0300 "Marcos Douglas B. Santos via lazarus" wrote: > Hello, > I wrote a component which has a Component Editor. > How is the simplest way to update the .lfm form, using this Component > Editor? What do you mean with "update the lfm"? > I took a look in fieldseditor to get some example, but I guess the > code there is more complicated than I need it. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus Release 2.2.2
Sorry for the double posts. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Lazarus Release 2.2.2
The Lazarus team is glad to announce the release of Lazarus 2.2.2. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_2.2.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Here is the list of fixes for Lazarus 2.2.x: https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_2_2 The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 2.2.2" directory. Checksums for the SourceForge files: https://www.lazarus-ide.org/index.php?page=checksums#2_2_2 Minimum requirements: Windows: 2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit. FreeBSD/Linux: gtk 2.24 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit. Mac OS X: Cocoa (64bit) 10.12 to 12.3, Carbon (32bit) 10.5 to 10.14, qt and qt5 (32 or 64bit). The gitlab page: https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/lazarus_2_2_2 For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at:ftp://ftp.freepascal.org/pub/lazarus/releases/ Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Lazarus Release 2.2.2
The Lazarus team is glad to announce the release of Lazarus 2.2.2. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_2.2.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Here is the list of fixes for Lazarus 2.2.x: https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_2_2 The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 2.2.2" directory. Checksums for the SourceForge files: https://www.lazarus-ide.org/index.php?page=checksums#2_2_2 Minimum requirements: Windows: 2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit. FreeBSD/Linux: gtk 2.24 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit. Mac OS X: Cocoa (64bit) 10.12 to 12.3, Carbon (32bit) 10.5 to 10.14, qt and qt5 (32 or 64bit). The gitlab page: https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/lazarus_2_2_2 For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at:ftp://ftp.freepascal.org/pub/lazarus/releases/ Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Lazarus Release 2.2.2
The Lazarus team is glad to announce the release of Lazarus 2.2.2. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_2.2.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Here is the list of fixes for Lazarus 2.2.x: https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_2_2 The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 2.2.2" directory. Checksums for the SourceForge files: https://www.lazarus-ide.org/index.php?page=checksums#2_2_2 Minimum requirements: Windows: 2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit. FreeBSD/Linux: gtk 2.24 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit. Mac OS X: Cocoa (64bit) 10.12 to 12.3, Carbon (32bit) 10.5 to 10.14, qt and qt5 (32 or 64bit). The gitlab page: https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/lazarus_2_2_2 For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at:ftp://ftp.freepascal.org/pub/lazarus/releases/ Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus is running but not responding.
On Fri, 22 Apr 2022 14:47:14 +0200 Martin Frb via lazarus wrote: >[...] > It's also very annoying, if you have a hanging IDE instance. It is > impossible to start a 2nd instance to attach and debug. lazarus.exe --force-new-instance >[...] Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] TMS Component and Lazarus IDE
On Tue, 19 Apr 2022 09:42:10 +0200 Marcello via lazarus wrote: > Hi all > > Some time ago I asked on the forum more information about the status > of the installation of TMS components in Lazarus. > I would be interested in buying these components but I did not > understand if I can install them in Lazarus or not because of a bug. > Can anyone give me any information? > > > https://forum.lazarus.freepascal.org/index.php/topic,55565.msg433692.html I guess you mean: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/34273 This is about installing the native and the web FNC components at the same time. Do you need that? Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Component palette enhancements
On Fri, 8 Apr 2022 14:21:23 +0200 Sven Barth via lazarus wrote: >[...] > Solving this would at the same time allow the IDE to have a TButton > for both the LCL and e.g. Web Components Library. Right now they need > to be named differently like WebCtrls.TWButton. Note that if you just want to support two TButton, then you don't need to extend Classes. You can use TReader.OnFindComponentClass. Only if you want two different TButton on the same form you need the unitname.tbutton. I will try to summarize: a) Extend lfm to support unitname.classname and extend IDE to allow registering classnames twice. Pro: Allows two TButton in the same app, even on the same form. Con: Require changes in Classes (FPC release) Con: old and new lfm file troubles (old/new FPC, old/new IDE) b) Extend IDE with environment tags for pages and allow registering classnames twice for different environments. Pro: IDE could show context sensitive component palette Pro: allows two TButton in IDE Con: does not support two TButton in one app, unless app sets TReader.OnFindComponentClass Con: troubles with old IDE Note that a) and b) are not xor - both can be implemented. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Component palette enhancements
On Fri, 8 Apr 2022 10:49:05 +0200 (CEST) Michael Van Canneyt via lazarus wrote: >[...] > > Only if you want to support reading different TButton in one > > application. > > But that is exactly what I want to support ? I understand a lcl controls.TButton and a web controls.TButton, but that would not clash in one application. So the situation is that - for whatever reasons - you ended up with two TButton in one app and you are not allowed to rename them. Worse, you want to drop the two TButton on the same form. Correct? > > The IDE sets the TReader events and controls what component classes > > are found. > > Why do you need to implement custom handling ? > The standard mechanism is not sufficient ? Error handling, jit stuff, visual form inheritance. The standard mechanism is for apps, the events are for the IDE. >[...] > Probably the form should also have an indicator of the 'environment' > it uses, so the IDE can warn. It could be streamed with the > DefineProperties() so the user is unaware. Yes. Note that the environment and the unitname extensions are independent features with different side effects. To avoid confusion, let's discuss each in separate threads. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Component palette enhancements
On Wed, 6 Apr 2022 12:56:17 +0200 (CEST) Michael Van Canneyt via lazarus wrote: > Hello, > > I'm probably kicking in an open door when I'm saying that lazarus > evolves and grows. This is good news, obviously. > > But I have now more tabs on the component palette than can fit on the > screen. There is a dropdown with the tabs, but that's hardly usable > to quickly locate a component. > > I have therefore 3 propositions/requests: > > 1. Currently a component is identified by its class name. > > This should be enhanced: a component must be identified with > UnitName.Name. a unit name is a "namespace" and so MyControls.TButton > <> StdCtrls.TButton. Only if you want to support reading different TButton in one application. The IDE sets the TReader events and controls what component classes are found. > Currently there are several component name clashes in the pas2js > and FPC class trees. The component clashes can be solved by solving problem point 2. > 2. Similarly, it should be possible somehow to say > 'this component is only for environment X' where X can be defined > by the user. RegisterComponents has the "Page". Maybe it is sufficient to apply these environment tags to pages, instead of per component. > When I am working on a webserver application or a service > application, it makes no sense to show all visual controls. Project/package needs a field to select the component environment. > Likewise, some components only make sense for a pas2js > application. > > I am aware of the 'restrictions' on the object inspector, > and in a sense my proposal is to extend/generalize this. > > 3. Please add a search edit in the component palette, as delphi has > it: typing in that edit should reduce the visible tabs to show only > tabs that have a component with the typed text in the classname, just > like the one on the component window... (the component window is IMO > not really usable if you are not using a docked IDE) > > I would think all proposals are feasible, but I can of course be too > optimistic :) There will be some problems when the user opens a form from a different environment, e.g. while a lcl project is open and user opens a web unit+form. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] How to check in code if LCLWidgetType is qt5?
On Tue, 29 Mar 2022 15:44:24 +0200 John Landmesser via lazarus wrote: > My app checks in code if trayIcon.Hint is working. > > Therefor I have to distinguish in my code if the application has > > LCLWidgetType=qt5 or LCLWidgetType=gtk2 > > The solution for gtk2 is: > > > getEnvironmentVariable('LAZUSEAPPIND') > > I couldn't google a check for LCLWidgetType=qt5, how to do that? Do you mean {$IF defined(lclqt5) or defined(lclgtk2)} ? Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Small problem with a application that uses a Firebird database
On Sat, 12 Feb 2022 14:38:55 +0100 nibbikfrans via lazarus wrote: >[...] > When I can't open the database because it's in use by a different > application (FlameRobin), I generate an error message. And now when I > close the application the main form is destroyed immidiately but the > Debug screen is still visible for about 2 seconds. The application is > also visible that long in the taskmanager. Sounds as if some finalization takes 2 seconds. Maybe a running thread? >[...] Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus build fails
On Tue, 25 Jan 2022 13:59:48 +0100 (CET) Michael Van Canneyt via lazarus wrote: > On Tue, 25 Jan 2022, Mattias Gaertner via lazarus wrote: > > > On Tue, 25 Jan 2022 13:37:47 +0100 > > Mattias Gaertner via lazarus wrote: > > > >> On Tue, 25 Jan 2022 13:32:22 +0100 (CET) > >> Michael Van Canneyt via lazarus > >> wrote: > >>> [...] > >>>> Yes. > >>> > >>> (and it does not help) > >> > >> Did you install it? The old IDE does not know it has to install > >> it. > > Eh, should it not be in the dependencies of the lazarus project then ? It is, but currently the IDE only uses the compiled list and does not yet read the lazarus.lpi. We don't add new base packages that often > >> Did idedebugger package compile? > >> > >> Does yourlazaruscfgdir/idemake.cfg contains > >> -Fuyour/lazarus/components/debuggerintf/lib/x86_64-linux > > > > I meant > > ...arus/ide/packages/idedebugger/lib/x86_64-linux > > See attachment for a rather scary message I got. The old IDE does not know, that is a base package. > But after asking advice on the subject of fat from my dietician, > I went ahad and then it worked... Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus build fails
On Tue, 25 Jan 2022 13:37:47 +0100 Mattias Gaertner via lazarus wrote: > On Tue, 25 Jan 2022 13:32:22 +0100 (CET) > Michael Van Canneyt via lazarus wrote: > > >[...] > > > Yes. > > > > (and it does not help) > > Did you install it? The old IDE does not know it has to install it. > > Did idedebugger package compile? > > Does yourlazaruscfgdir/idemake.cfg contains > -Fuyour/lazarus/components/debuggerintf/lib/x86_64-linux I meant ...arus/ide/packages/idedebugger/lib/x86_64-linux Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus build fails
On Tue, 25 Jan 2022 13:32:22 +0100 (CET) Michael Van Canneyt via lazarus wrote: >[...] > > Yes. > > (and it does not help) Did you install it? The old IDE does not know it has to install it. Did idedebugger package compile? Does yourlazaruscfgdir/idemake.cfg contains -Fuyour/lazarus/components/debuggerintf/lib/x86_64-linux ? Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus build fails
On Tue, 25 Jan 2022 13:16:49 +0100 (CET) Michael Van Canneyt via lazarus wrote: >[...] > environmentopts.pp(55,50) Fatal: Cannot find debugger used by > EnvironmentOpts. make[2]: *** [Makefile:4872: lazarus] Error 1 > make[1]: *** [Makefile:5310: ide] Error 2 Error: make: *** > [Makefile:3731: ide] Error 2 > > See also attached screenshot. > > I deleted all .ppu files, but to no avail. debugger is now in package idedebugger - a new base package. Have you tried to open the package and then compile? Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] commit 6c3286c7 broke LCL compilation attn: matthias
On Mon, 17 Jan 2022 13:40:17 +0100 Marcus Sackrow via lazarus wrote: >[...] > is there are way to do that? (except writing a fpc4amiga.sh script and > pass that as compiler, which I tried and works but it's a bit annoying > for automatic compilation inside jenkins) You could create a project with these options (Compiler Options / Additions and Override) and compile that. Or edit /etc/fpc.cfg Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] commit 6c3286c7 broke LCL compilation attn: matthias
On Mon, 17 Jan 2022 11:58:22 +0100 Marcus Sackrow via lazarus wrote: >[...] > usually for certain targets (amiga-likes) I only compile the LCL, > because lazarus itself will not work. > > I did that in the past on my jenkins server with > > make registration . > > make lazutils > > make codetools > > make lcl > > > it seems lazutils and codetools are removed with the commit 6c3286c7 > as targets. But doing registration and lcl to compile the LCL does > not work: That was me, thinking, no one uses it anymore. First of all: If you are using lazbuild to compile your projects, it will compile the LCL automatically. And you can compile the lcl using lazbuild: ./lazbuild lcl/interfaces/lcl.lpk If you can't use lazbuild, you can use "make" to compile a package: make -C components/codetools I re-added "make" target "lazutils", so this works again: make registration lazutils lcl >[...] Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Lazarus Release 2.2
The Lazarus team is glad to announce the release of Lazarus 2.2. This release was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_2.2.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Here is the list of fixes for Lazarus 2.2.x: https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_2_2 The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 2.2.0" directory. Checksums for the SourceForge files: https://www.lazarus-ide.org/index.php?page=checksums#2_2_0 Minimum requirements: Windows: 2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit. FreeBSD/Linux: gtk 2.8 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit. Mac OS X: Cocoa (64bit) 10.12 to 11.4, Carbon (32bit) 10.5 to 10.14, qt and qt5 (32 or 64bit). The gitlab page: https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/lazarus_2_2_0 For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at:ftp://ftp.freepascal.org/pub/lazarus/releases/ Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus server back online
On Tue, 28 Dec 2021 09:41:03 +0100 Marc Weustink via lazarus wrote: >[...] > To be continued... Oh dear. Thanks for the all the work! Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Codetools - "Error: identifier not found: Boolean8"
On Wed, 22 Dec 2021 22:59:00 +0100 (CET) Michael Van Canneyt via lazarus wrote: > On Wed, 22 Dec 2021, Gabor Boros via lazarus wrote: > > > Hi All, > > > > FPC main and Lazarus fixes_2_2 or main. If double click on the new > > project's main form got "identifier not found: Boolean8". > > > > Is this a Lazarus or FPC problem? > > Lazarus code tools issue. > > I have the same problem since some time. Fixed. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] New Synthwave Demo
On Wed, 1 Dec 2021 10:38:59 +1300 Derek Edson via lazarus wrote: > I do not believe this is an appropriate place for this sort of > discussion, especially with the untruths being spead. People believing in world conspiracies can't be convinced with some links and mails. Let's get back to Lazarus. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] New Synthwave Demo
Juha, you know, what happens to subscribers staying off topic. There are already enough platforms for such stuff. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Application.QueueAsyncCall and "conversion between ordinals and pointers is not portable"
On Fri, 26 Nov 2021 13:15:07 +0100 Luca Olivetti via lazarus wrote: > Hello, > > Application.QueueAsyncCall is defined as > > procedure Application.QueueAsyncCall(const AMethod:TDataEvent; Data: > PtrInt); > > When I want to pass a string or a big structure as "Data", I create a > pointer and use that, casting it as PtrInt, then I use and free it in > the Async Method., e.g. > > procedure TServerThread.Log(const msg:string); > var >s: PString; > begin >new(s); >s^:=msg; >Application.QueueAsyncCall(@MainForm.LogServer, ptrint(s)); > end; > > procedure TMainForm.LogServer(data: ptrint); > var s:PString; > begin >ptruint(s):=data; //ptrint here gives a warning "use an unsigned > type" LogMemo.Lines.Add(s^); >Dispose(s); > end; > > > But that gives a hint "conversion between ordinals and pointers is > not portable". The suggestion I found is to use {%H-} to silence that > hint (which I did), but is there a better way? > > Why Data is defined as PtrInt and not pointer? Sometimes you need an integer, sometimes a pointer, and afair at the time when it was added the compiler did not warn typecasting PtrInt to Pointer. Mattias > > Bye -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Lazarus Release Candidate 2 of 2.2.0
The Lazarus team is glad to announce the second release candidate of Lazarus 2.2. This release was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_2.2.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Here is the list of fixes for Lazarus 2.2.x: https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_2_2 The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 2.2RC2" directory. Checksums for the SourceForge files: https://www.lazarus-ide.org/index.php?page=checksums#2_2_0RC2 Minimum requirements: Windows: 2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit. FreeBSD/Linux: gtk 2.8 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit. Mac OS X: Cocoa (64bit) 10.12 to 11.4, Carbon (32bit) 10.5 to 10.14, qt and qt5 (32 or 64bit). The gitlab page: https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/lazarus_2_2_0_RC2 Last trunk svn revision was r65398. For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at:ftp://ftp.freepascal.org/pub/lazarus/releases/ == Why should everybody (including you) test the release candidate? == In the past weeks the Lazarus team has stabilized the 2.2 fixes branch. The resulting 2.2RC2 is now stable enough to be used by anyone for test purposes. However many of the fixes and new features that were committed since the release of 2.0 required changes to the code of existing features too. While we have tested those ourselves, there may still be problems that only occur with very specific configurations or one project in a million. Yes, it may be that you are the only person with a project, that will not work in the new IDE. So if you do not test, we cannot fix it. Please do not wait for the final release, in order to test. It may be too late. Once the release is out we will have to be more selective about which fixes can be merged for further 2.2.x releases. So it may be, that we cannot merge the fix you require. And then you will miss out on all the new features. == How to test == Download and install the 2.2 RC2. - On Windows you can install as a 2ndary install, that will not affect your current install: http://wiki.lazarus.freepascal.org/Multiple_Lazarus#Installation_of_multiple_Lazarus - On other platforms, if you install to a new location you need to use --primary-config-path In either case you should make backups. (including your primary config) Open your project in the current Lazarus (2.0.x), and use "Publish Project" from the project menu. This creates a clean copy of your project. You can then open that copy in the RC2. Please test: - If you can edit forms in the designer - rename components / change properties in Object inspector / Add new events - Add components to form / Move components on form - Frames, if you use them - If you can navigate the source code (e.g. jump to implementation) - Auto completion in source code - Compile, debug and run - Anything else you use in your daily work -- Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] e: Lazarus - Cant compile ZeosDBO
On Tue, 21 Sep 2021 17:02:05 -0500 "Terry A. Haimann via lazarus" wrote: > I went back and fired up Lazarus as my regular user and I got several > popups complaining about the installation. So this may be the problem > even though I don't see the actual problem. As I said before, this is > an Intel i5 (112th Gen) and the OS is currently Ubuntu 21.02. I > installed this from the current Debian Packages I found on your web > site. > > Popup 1: > > The current FPC has no config file. It will probably miss some units. > Check your installation of fpc. > > terry@quickfox:~$ sudo ls -la /etc/fpc.* > -rw-r--r-- 1 root root 7794 Sep 20 13:37 /etc/fpc.cfg Just to make sure, please do: IDE menu Tools / Rescan FPC Source directory Then check: View / IDE Internals / About FPC Does it use the correct fpc? Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus - Cant compile ZeosDBO
On Mon, 20 Sep 2021 06:27:38 -0500 "Terry A. Haimann via lazarus" wrote: > Well, how do you install something like ZeosDBO then? If the compile > is successful, it is going to want to rebuild Lazarus and Lazarus is > in a protected directory. Lazarus checks if the output folder is writable. If not, it creates instead a folder in your config directory. Mattias > > Terry > > > On Mon, 2021-09-20 at 09:45 +0200, Mattias Gaertner via lazarus wrote: > > On Sun, 19 Sep 2021 16:39:01 -0500 > > "Terry A. Haimann via lazarus" > > wrote: > > > [...] > > > I ran startlazarus as root > > > > ouch > > > > Not recommended. > > > > Mattias > -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus - Cant compile ZeosDBO
On Sun, 19 Sep 2021 16:39:01 -0500 "Terry A. Haimann via lazarus" wrote: >[...] > I ran startlazarus as root ouch Not recommended. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Lazarus Release Candidate 1 of 2.2.0
The Lazarus team is glad to announce the first release candidate of Lazarus 2.2. This release was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_2.2.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Here is the list of fixes for Lazarus 2.2.x: http://wiki.freepascal.org/Lazarus_2.2_fixes_branch The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 2.2RC1" directory. Checksums for the SourceForge files: https://www.lazarus-ide.org/index.php?page=checksums#2_2_0RC1 Minimum requirements: Windows: 2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit. FreeBSD/Linux: gtk 2.8 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit. Mac OS X: Cocoa (64bit) 10.12 to 11.4, Carbon (32bit) 10.5 to 10.14, qt and qt5 (32 or 64bit). The svn tag is http://svn.freepascal.org/svn/lazarus/tags/lazarus_2_2_0_RC1 Last trunk svn revision was r65398. For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at:ftp://ftp.freepascal.org/pub/lazarus/releases/ == Why should everybody (including you) test the release candidate? == In the past weeks the Lazarus team has stabilized the 2.2 fixes branch. The resulting 2.2RC1 is now stable enough to be used by any one for test purposes. However many of the fixes and new features that where committed since the release of 2.0 required changes to the code of existing features too. While we have tested those ourselves, there may still be problems that only occur with very specific configurations or one project in a million. Yes, it may be that you are the only person with a project, that will not work in the new IDE. So if you do not test, we can not fix it. Please do not wait for the final release, in order to test. It may be too late. Once the release is out we will have to be more selective about which fixes can be merged for further 2.2.x releases. So it may be, that we can not merge the fix you require. And then you will miss out on all the new features. == How to test == Download and install the 2.2 RC1. - On Windows you can install as a 2ndary install, that will not affect your current install: http://wiki.lazarus.freepascal.org/Multiple_Lazarus#Installation_of_multiple_Lazarus - On other platforms, if you install to a new location you need to use --primary-config-path In either case you should make backups. (including your primary config) Open your project in the current Lazarus (2.0.x), and use "Publish Project" from the project menu. This creates a clean copy of your project. You can then open that copy in the RC1. Please test: - If you can edit forms in the designer - rename components / change properties in Object inspector / Add new events - Add components to form / Move components on form - Frames, if you use them - If you can navigate the source code (e.g. jump to implementation) - Auto completion in source code - Compile, debug and run - Anything else you use in your daily work Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Registering a TFrame to component palette
On Sun, 13 Jun 2021 21:04:31 +0200 (CEST) Michael Van Canneyt via lazarus wrote: >[...] > I have always used (since D7) a special designer call for this. > > With (BorlandIDEServices As IOTAModuleServices) Do >CreateModule(TMKFormWizardModuleCreator.Create(FBaseClass, > FClause,FUseInherited) As IOTACreator); Lazarus: FormEditingHook.RegisterDesignerBaseClass Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Do I really need to use Build to get all recent changes included?
On Sat, 27 Mar 2021 10:15:55 +0100 Bo Berglund via lazarus wrote: >[...] > Question: > - > Should not Run/Compile create the binary based on *all* the latest > sources? If I use Run/Build I am going to increment the build number > all the time while debugging, which I would rather avoid. Maybe you modified a file of a package, that is not listed in the package? Lazarus only checks files listed in the package. > Is there some Lazarus setting I am unaware of, which will force > Compile to actually compile based on all the modified sources since > last compile? > > Or does Lazarus only consider changed files which are marked in the > IDE as unsaved? No. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Codetools and casing of unit files on Darwin
On Wed, 10 Mar 2021 14:17:28 +0100 Michael Ring via lazarus wrote: > I am having an issue with casing of included units and codetools, I > searched through Mantis but did not find anything matching although I > think this issue is too obvious for nobody besides me seeing it: > > I am on Lazarus Trunk (from yesterday or the day before), on a x86_64 > Mac with Big Sur installed. > > > I have a unit in uses: > > > uses > > UThisHasCamelCaseEverywhere; > > > and the unit filename matches the written unit name. > > > Codetools works fine... > > > Then I change to: > > uses > > uthishascamelcaseeverywhere; > > > now codetools complains that unit cannot be found when I try to get > context help via ctrl-Space. > > > However, the code still compiles fine because default Darwin > Filesystem (and/or) fpc does not care for upper/lower case in > filenames on Darwin Please create a bug report. Mattias > > > The main reason why this behaviour is quite annoying is that > traditionally(??) filenames for embedded Units are lowercase and > their definition in cpuinfo.pas is uppercase: > > from cpuinfo.pas: > > (controllertypestr:'STM32F100X4'; controllerunitstr:'STM32F10X_LD'; > > > ls ~/devel/fpc/rtl/embedded/arm > allwinner_a20.pp cortexm3.pp cortexm7.pp lpc11xx.pp > lpc21x4.pp mk22f51212.pp raspi2.pp stm32f10x_cl.pp > stm32f10x_md.pp stm32f411xe.pp stm32f745.pp > at91sam7x256.pp cortexm3_start.inc lm3fury.pp lpc122x.pp > lpc8xx.pp mk64f12.pp sam3x8e.pp > stm32f10x_conn.pp stm32f10x_xl.pp stm32f429.pp > stm32f746.pp cortexm0.pp cortexm4.pp lm3tempest.pp > lpc13xx.pp mk20d5.pp nrf51.pp sc32442b.pp > stm32f10x_hd.pp stm32f401xx.pp stm32f429xx.pp stm32f756.pp > cortexm0_start.inc cortexm4f_start.inc lm4f120.pp lpc1768.pp > mk20d7.pp nrf52.pp stm32f0xx.pp > stm32f10x_ld.pp stm32f407xx.pp stm32f446xx.pp > xmc4500.pp > > > Did I overlook some FAQ or should I open an issue on Mantis? > > > Michael > > -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus loses environment, why does this happen?
On Fri, 12 Mar 2021 15:25:42 +0100 Bo Berglund via lazarus wrote: > Lazarus 2.0.8 on Raspberry Pi 4 with FPC 3.0.4 > > I have discussed this topic here before but I would like to know what > is causing the problem... > It happened again today; when I started Lazarus I just got the main > bar plus the code editor, all other windows were not there. > > Since I have been hit by this before I keep a backup of the pcp dir > files in a tar archive so I could extract the environmentoptions.xml > file from 2020-12-23 (with Lazarus closed of course) and replace the > now bogus environmentoptions.xml in the pcp dir and all was OK again. > > Last time it happened I checked the environmentoptions.xml before > fixing it and it was all blank, just a series of #0 chars. I never saw that. Sounds like a buffer overflow, invalid pointer thing. You could compile the ide with -gh (heaptrc). > So what I am wondering now is what would cause Lazarus to write such > a file anytime? > It seems like normally Lazarus should just read the file unless a > change is done in some options and then the write would be done at > that specific time. It stores some desktop settings too. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Lazarus Release 2.0.12
The Lazarus team is glad to announce the release of Lazarus 2.0.12. This release was built with FPC 3.2.0. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_2.0.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.0 Windows users should be careful with -O3 or higher optimization, due to bug https://bugs.freepascal.org/view.php?id=37305. Here is the list of fixes for Lazarus 2.0.x: http://wiki.freepascal.org/Lazarus_2.0_fixes_branch The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 2.0.12" directory. Checksums for the SourceForge files: http://www.lazarus-ide.org/index.php?page=checksums#2_0_12 Minimum requirements: Windows: 2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit. FreeBSD/Linux: gtk 2.8 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit. Mac OS X: Cocoa (64bit) 10.12 to 10.15, Carbon (32bit) 10.5 to 10.14, qt and qt5 (32 or 64bit). The svn tag is http://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_12 For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at: ftp://ftp.freepascal.org/pub/lazarus/releases/ Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Introducing new dependencies between components - how to update make files?
On Sun, 21 Feb 2021 11:50:49 +0200 Christo Crause via lazarus wrote: > I'm busy working on expanding AVR support in fpdebug/fpdebugdebugger. > Some of the property classes overlap with classes already defined in > gdbmidebugger and I want to move these classes up the hierarchy to > avoid duplication. This introduces extra dependencies and I need to > update the affected component make files. I started doing this using > the "Create Makefile" option in the Lazarus package tool with FPC 3.2 > and noticed large changes in the resulting make file, mostly related > to deleted targets such as xtensa-freertos. Should I use FPC trunk > (and more specifically fpcmake from trunk) for development of > Lazarus, or is this just required when regenerating make files? > > Also the build order of some of the targets needs to be reordered in > the root make file to satisfy the dependency chain, can I update the > Makefile.fpc and MakeFile by hand, or is there a tool/option to also > update these make files which are not part of a package? The Lazarus Makefiles are created from the corresponding Makefile.fpc. In order to support fpc trunk, you need fpc trunk sources. You can update one Makefile by calling the one liner (e.g linux 64bit): FPCDIR=/path/to/fpc_sources/trunk/fpc/ /path/to/fpc_sources/trunk/fpc/utils/fpcm/bin/x86_64-linux/fpcmake -TAll -v Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] MSSQL howto catch a TMSSQLConnection Error without Messagebox?
On Wed, 27 Jan 2021 16:02:40 +0100 (CET) Michael Van Canneyt via lazarus wrote: > If you don't do a re-raise, I don't understand where the dialog box > comes from, since you're catching all exceptions... Maybe try (IsOk); except end; The xxx contains a ShowModal? Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] question with IDE
On Fri, 15 Jan 2021 13:06:16 +0100 duilio foschi via lazarus wrote: > my IDE sometimes decides that procedure X was not coded in the > implementation section of a unit...and adds an empty definition > (see: https://imgur.com/awP7cK2) > > The procedure is there (see https://imgur.com/6H5F2cG) but for some > reason the IDE is brought to the crazy idea above. Do you have a complete example unit (you can strip the statements and vars)? Do you use IFDEFs? Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] lHelp improvements
On Wed, 30 Dec 2020 21:44:21 +0300 Andrey Sobol via lazarus wrote: >[...] > I know about it. But the main problem is that the Lhelp is another > application. Need to transfer preference data (search pathes and > registered database files info) to lHelp. Without this I can`t do > nothing better. Now the lHelp recieves strict commands to open files. > > I want to get a opinion from maintainers how is better to do that? Of course the IDE can pass more flags and, or environment variables to lhelp. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] lHelp improvements
On Mon, 28 Dec 2020 21:05:00 +0100 Marco van de Voort via lazarus wrote: >[...] > It is wise to bring this up early, because it might require changes > to the general Lazarus help system, since lhelp needs to get a list > of registered help files at once (so it can manage the combined index > together) rather than individually. Querying all registered help databases is easy: lcl unit lazhelpintf for i:=0 to HelpDatabases.Count-1 do HelpDatabases[i]... For example the IDE registers fpdoc help for RTL, FCL and LCL to open the lazarus-ccr web pages. The chmhelppkg replaces them with its own and opens chm files instead. So, if you are only interested in chm files, see the chmhelppkg package. > This is also the reason the CHM package does not support it yet, > because it > > > > Creating a new chm package additions also requires a lot of time. If you are talking about creating a chm file from the fpdoc files of a package: It would be nice if the chmhelppkg could add a button to the package editor to create or update a chm file. >[...] Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Losing desktop when restarting Lazarus - where are desktop settings saved?
On Mon, 28 Dec 2020 11:21:00 +0100 Bo Berglund via lazarus wrote: > On Mon, 28 Dec 2020 01:35:54 +0100, Mattias Gaertner via lazarus > wrote: > > >On Sun, 27 Dec 2020 18:58:58 -0500 > >wkitty42--- via lazarus wrote: > > > >> On 12/27/20 5:15 PM, Mattias Gaertner via lazarus wrote: > >> > When the IDE starts, and there is no environmentoptions.xml file > >> > it copies it from the secondary config directory. Maybe you are > >> > seeing that? > > Where is this "secondary config dir" located? See View - IDE Internals - About IDE >[...] > The only thing I think is in common between these instances, which > happened on both Windows and Linux, is that I have used the > Tools/Options to increase the count for recent projects from the > default 5 to 10. I always seem to get a project I want to open > disappear from that list when it only holds 5 recent projects. Same here. I have 30,30. This is unrelated with the desktop issue. The env file is written pretty often. >[...] I believe I did so on both Lazarus installations. > > So what does Lazarus do when one changes this value? > Does it rewrite the environment file based on the default or what? > I made a test to check this (since using the backup file brought back > the 5 files limit): > It seems like it rewrites the environment fiile by changing the 5 to > 10 but also by changing the sequence of some xml nodes... If your backup is months old, then maybe some functions in the IDE changed, changing the order. > But it does not visibly affect the way Lazarus looks when starting up > again. Restart lazarus making sure the config is working. Make a backup of environmentoptions.xml. When the next time it happens, send the backup and the current version. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] lHelp improvements
On Sun, 27 Dec 2020 17:15:23 +0300 Соболь Андрей Евгеньевич via lazarus wrote: > Hi, guys. > > I am trying to do the lHelp more convenient. Great! > And after I have > combined a chm indexes on start, I think about next step. What I > see... > 1. Exist a contradiction of behavior for contex searching > through hh.exe (windows) an lHelp (this is for first start of help > subsystem): > - When I press F1 for hh.exe enabled for context searching, then > Lazarus send only one command - open chm file and seek TOC index > position. What package opens hh.exe in Lazarus? > - When I press F1 for the lHelp enabled for context searching, then > Lazarus send group of command as > > got BeginUpdate > got BeginUpdate > got rturl, filename M:\lazarus\docs\chm\fcl.chm, url /index.html > got rturl, filename M:\lazarus\docs\chm\fclres.chm, > url /index.html got rturl, filename M:\lazarus\docs\chm\fpdoc.chm, > url /index.html got rturl, filename M:\lazarus\docs\chm\ideintf.chm, > url /index.html got rturl, filename M:\lazarus\docs\chm\lazutils.chm, > url /index.html got rturl, filename M:\lazarus\docs\chm\lcl.chm, > url /index.html got rturl, filename M:\lazarus\docs\chm\prog.chm, > url /index.html got rturl, filename M:\lazarus\docs\chm\ref.chm, > url /index.html got rturl, filename M:\lazarus\docs\chm\rtl.chm, > url /index.html got rturl, filename M:\lazarus\docs\chm\toc.chm, > url /index.html got rturl, filename M:\lazarus\docs\chm\user.chm, > url /index.html got EndUpdate > got rturl, filename M:\lazarus\docs\chm\ref.chm, > url /ref/refse92.html#keyword_function got EndUpdate > got rtmisc/mrShow > > Lazarus sends commands for opening all chm files and the last > command is for performing contex search. As result hh.exe always does > it more faster then lHelp. I think behavior have to be same, only a > perform of context seaching. On second request lHelp can open next > file and index and so on. Do you mean when user press F1 on an identifier, then lhelp can open only the target file directly and open the other files on idle? > 2. I think that the lHelp (or user) should > make a decision myself, Do you mean "myself" or "by itself"? > open all indexes on first start or none (for > contex search primarily). It should have own preferences for that. > But the lHelp don`t have any information about searchpath where is > chm files. I can add a new command for sending searchpath or add new > option to Lazarus (open all indexes on first start - see paragraph > 1). A searchpath command sounds good. > 3. lHelp got a start command with the option "--hide" at start. Then > lHelp gets many commands on openning of indexes. I think that I have > the right to show lHelp or splash screen on getting first command. > Without this, the user gets a hanging program (1-3 sec) and does not > understand what happens. This is for the case when I open all the > indexes. > > What is your opinion about it? Yes, this needs improvement and any help is welcome. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Losing desktop when restarting Lazarus - where are desktop settings saved?
On Sun, 27 Dec 2020 18:58:58 -0500 wkitty42--- via lazarus wrote: > On 12/27/20 5:15 PM, Mattias Gaertner via lazarus wrote: > > When the IDE starts, and there is no environmentoptions.xml file it > > copies it from the secondary config directory. Maybe you are seeing > > that? > > i think one of the main questions is "how does that file come up > missing on a long time working installation in the first place?" > especially since Laz is the only thing to touch it... Was the file missing, or only the desktop node? Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus