From bo.berglund at gmail.com Sun Feb 2 23:50:59 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 02 Feb 2020 23:50:59 +0100 Subject: [Lazarus] Projects in a directory hierarchy - what is allowed? Message-ID: <88ie3ft20lfjt393jd03h6h99q01lj5qvl@4ax.com> I have encountered a strange problem that was discovered when I moved sources between Windows 10 and Raspbian Buster. It appears that my directory structure does not behave like when I used Delphi... I am using Lazarus 2.0.6 and FPC 3.0.2 in both Windows 10 and Raspbian Buster (on an RPi4B with 4GB RAM). I am working on a webapp (command line program supplying webpages on demand from Apache) as part of a larger system of programs to control hardware through the RPi4. I have used a directory structure where the main control app resides in a top directory with subdirectories for various utilities (like the webapp for configuration purposes). It was started on Raspbian, but I had problems with the Lazarus IDE (it crashes regularly several times a day and then I lose all edits since the last save). So I moved over to Windows and got the sources via Subversion. On Windows Lazarus never crashes. Then I could develop here and use the IDE to check that it builds. I could not use the exe file with Apache because I don't have apache on Windows, but I could work around it and check the output of the webapp anyway using environment variables when I run the executable. So far so good, but to do the tests properly through Apache I moved back to RPi4 (via SVN) and it worked just fine there too. I could make adjustments etc and test via apache that the webapp worked. Then I did a new cycle back to Windows and now something has happened that is a showstopper. If I now open the project in Lazarus and command Compile, build or Quick compile an error is triggered telling me that a file not used by my project cannot find its Linux-only units in the uses clause.... Here the show stops! It complains that it cannot find some unix-only units inside the sourcefile PiGpio.pas, which is used by another project residing one level up in the tree from the working dir of the current project. I have had to add a path to the parent dir (../) in the project options because I need a few common units which define some used classes and these units reside one level up. But these are only 3 units and definitely NOT the units that use PiGpio.pas!!! The unit where PiGpio is in the uses clause is a completely separate source file for another project. Questions: 1) Is it not allowed to use source files *above* the current project dir? 2) If I add a path .. via project properties does this really mean that Lazarus will try to compile ALL source files found there even if only a couple are part of the current project? 3) What can I do to remedy this problem? -- Bo Berglund Developer in Sweden From jmlandmesser at gmx.de Mon Feb 3 11:10:10 2020 From: jmlandmesser at gmx.de (John Landmesser) Date: Mon, 3 Feb 2020 11:10:10 +0100 Subject: [Lazarus] Projects in a directory hierarchy - what is allowed? In-Reply-To: <88ie3ft20lfjt393jd03h6h99q01lj5qvl@4ax.com> References: <88ie3ft20lfjt393jd03h6h99q01lj5qvl@4ax.com> Message-ID: Two steps i would try: A) File/Clean Directory B) Run/Clean and rebuild I have a german Lazarus IDE, so the commands perhaps called different! .. never had these sort of issue, never uesed Raspbian Buster good luck John Am 02.02.20 um 23:50 schrieb Bo Berglund via lazarus: > I have encountered a strange problem that was discovered when I moved > sources between Windows 10 and Raspbian Buster. > It appears that my directory structure does not behave like when I > used Delphi... > > I am using Lazarus 2.0.6 and FPC 3.0.2 in both Windows 10 and Raspbian > Buster (on an RPi4B with 4GB RAM). > > I am working on a webapp (command line program supplying webpages on > demand from Apache) as part of a larger system of programs to control > hardware through the RPi4. > > I have used a directory structure where the main control app resides > in a top directory with subdirectories for various utilities (like the > webapp for configuration purposes). > > It was started on Raspbian, but I had problems with the Lazarus IDE > (it crashes regularly several times a day and then I lose all edits > since the last save). So I moved over to Windows and got the sources > via Subversion. On Windows Lazarus never crashes. > > Then I could develop here and use the IDE to check that it builds. I > could not use the exe file with Apache because I don't have apache on > Windows, but I could work around it and check the output of the webapp > anyway using environment variables when I run the executable. > > So far so good, but to do the tests properly through Apache I moved > back to RPi4 (via SVN) and it worked just fine there too. I could make > adjustments etc and test via apache that the webapp worked. > > Then I did a new cycle back to Windows and now something has happened > that is a showstopper. > > If I now open the project in Lazarus and command Compile, build or > Quick compile an error is triggered telling me that a file not used by > my project cannot find its Linux-only units in the uses clause.... > Here the show stops! > > It complains that it cannot find some unix-only units inside the > sourcefile PiGpio.pas, which is used by another project residing one > level up in the tree from the working dir of the current project. > > I have had to add a path to the parent dir (../) in the project > options because I need a few common units which define some used > classes and these units reside one level up. > But these are only 3 units and definitely NOT the units that use > PiGpio.pas!!! > The unit where PiGpio is in the uses clause is a completely separate > source file for another project. > > Questions: > 1) Is it not allowed to use source files *above* the current project > dir? > > 2) If I add a path .. via project properties does this really mean > that Lazarus will try to compile ALL source files found there even if > only a couple are part of the current project? > > 3) What can I do to remedy this problem? > > From nc-gaertnma at netcologne.de Mon Feb 3 11:29:15 2020 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 3 Feb 2020 11:29:15 +0100 Subject: [Lazarus] Projects in a directory hierarchy - what is allowed? In-Reply-To: <88ie3ft20lfjt393jd03h6h99q01lj5qvl@4ax.com> References: <88ie3ft20lfjt393jd03h6h99q01lj5qvl@4ax.com> Message-ID: <20200203112915.50d249cc@limapholos.matflo.wg> On Sun, 02 Feb 2020 23:50:59 +0100 Bo Berglund via lazarus wrote: >[...] > It was started on Raspbian, but I had problems with the Lazarus IDE > (it crashes regularly several times a day and then I lose all edits > since the last save). Can you create stacktraces of the crashes? >[...] > If I now open the project in Lazarus and command Compile, build or > Quick compile an error is triggered telling me that a file not used by > my project cannot find its Linux-only units in the uses clause.... > Here the show stops! Does a clean build work? For example "Run / Clean up and build ..."? > It complains that it cannot find some unix-only units inside the > sourcefile PiGpio.pas, which is used by another project residing one > level up in the tree from the working dir of the current project. Compile with flag -vt to find out why the compiler uses PiGpio.pas. Or in Lazarus use View / Unit Dependencies. Click left on PiGpio.pas and look on the right for "used by ...". >[...] > Questions: > 1) Is it not allowed to use source files *above* the current project > dir? Of course it is allowed. > 2) If I add a path .. via project properties does this really mean > that Lazarus will try to compile ALL source files found there even if > only a couple are part of the current project? No. FPC will compile only sources used by your project - direct and indirect. Maybe you have some indirect dependency or some old ppu file. > 3) What can I do to remedy this problem? 1. compile clean and check if this makes a difference 2. Compile with -vt flag. 3. Check View / Unit dependencies 4. Since you are using Windows and Unix and have mixed case unit names, you must make sure, that all uses sections use the correct case. 5. give us more information, e.g. directory listings Mattias From bo.berglund at gmail.com Mon Feb 3 14:13:27 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Mon, 03 Feb 2020 14:13:27 +0100 Subject: [Lazarus] Projects in a directory hierarchy - what is allowed? References: <88ie3ft20lfjt393jd03h6h99q01lj5qvl@4ax.com> <20200203112915.50d249cc@limapholos.matflo.wg> Message-ID: On Mon, 3 Feb 2020 11:29:15 +0100, Mattias Gaertner via lazarus wrote: >On Sun, 02 Feb 2020 23:50:59 +0100 >Bo Berglund via lazarus wrote: > >>[...] >> It was started on Raspbian, but I had problems with the Lazarus IDE >> (it crashes regularly several times a day and then I lose all edits >> since the last save). > >Can you create stacktraces of the crashes? I think I need to run lazarus from the debugger in that case, right? I tried this before (see my thread started Nov 1, 2019 about this: "Lazarus 2.0.6 IDE suddenly disappeared losing a lot of edits...") > >>[...] >> If I now open the project in Lazarus and command Compile, build or >> Quick compile an error is triggered telling me that a file not used by >> my project cannot find its Linux-only units in the uses clause.... >> Here the show stops! > >Does a clean build work? For example "Run / Clean up and build ..."? When I start this I get to a dialog where the files that will be deleted are listed and there is basically everything about lazarus. Did not dare do that, is there some way to limit the number of files to "clean"? > > >> It complains that it cannot find some unix-only units inside the >> sourcefile PiGpio.pas, which is used by another project residing one >> level up in the tree from the working dir of the current project. > >Compile with flag -vt to find out why the compiler uses PiGpio.pas. How do I set a "flag" like that? I am compiling through use of the menu command Run/build or run/compile.... > >Or in Lazarus use View / Unit Dependencies. >Click left on PiGpio.pas and look on the right for "used by ...". You mean after the problem has appeared and PiGpio appears? After my rename of PiGpio it no longer appears, instead a file uses PiGpio and which does not belong to my project either... > >>[...] >> Questions: >> 1) Is it not allowed to use source files *above* the current project >> dir? > >Of course it is allowed. Can I add a file to uses without also making the directory it is in available for general browsing by Lazarus or the compiler? I don't want Lazarus to find a bunch of other files located next to the two I need.... I tried using ../unitname in my uses clause but then Lazarus barfs at that syntax instead. > > >> 2) If I add a path .. via project properties does this really mean >> that Lazarus will try to compile ALL source files found there even if >> only a couple are part of the current project? > >No. FPC will compile only sources used by your project - direct and >indirect. Maybe you have some indirect dependency or some old ppu file. Well, I don't know about that, but how could that happen? I moved the project files between the systems using subversion only. > > >> 3) What can I do to remedy this problem? > >1. compile clean and check if this makes a difference >2. Compile with -vt flag. >3. Check View / Unit dependencies >4. Since you are using Windows and Unix and have mixed case unit names, >you must make sure, that all uses sections use the correct case. I have noted that when I create a unit in linux and name it say SomeUnit, it gets saved as someunit.pas but the name still remains SomeUnit inside Lazarus. THis is very strange to me and I don't know what to do about it... Seems to work fine anyway inside raspbian linux based Lazarus. >5. give us more information, e.g. directory listings The whole file tree, you mean? >From the top of the master project? -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Tue Feb 4 10:35:30 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Tue, 04 Feb 2020 10:35:30 +0100 Subject: [Lazarus] Projects in a directory hierarchy - what is allowed? References: <88ie3ft20lfjt393jd03h6h99q01lj5qvl@4ax.com> <20200203112915.50d249cc@limapholos.matflo.wg> Message-ID: On Mon, 3 Feb 2020 11:29:15 +0100, Mattias Gaertner via lazarus wrote: >Or in Lazarus use View / Unit Dependencies. >Click left on PiGpio.pas and look on the right for "used by ...". > >>[...] > >> 2) If I add a path .. via project properties does this really mean >> that Lazarus will try to compile ALL source files found there even if >> only a couple are part of the current project? > >No. FPC will compile only sources used by your project - direct and >indirect. Maybe you have some indirect dependency or some old ppu file. > > >> 3) What can I do to remedy this problem? > >3. Check View / Unit dependencies Thanks Mattias! I did not know about the View / Unit dependencies command and usage. But now using that I could trace back through the units brought in via the uses clause and find out why PiGpio was appearing. It starts from an innocent looking class definition unit in the dir above the current projects and wanders through 2 more levels before getting to PiGpio. Seems like I had not isolated class definitions enough so I edited the files a bit concerning what should be used and where so I could clean the class defines to only deal with the appropriate stuff. After that was done my current project does build on Windows. Of course I will now have to fix the other project as well, but that is for a later day. Thanks again!!! -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Tue Feb 4 10:57:44 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Tue, 04 Feb 2020 10:57:44 +0100 Subject: [Lazarus] Lazarus code editor improvement? References: <2c6rre9vdu3u8km12jbd66iurci5m64hlt@4ax.com> <26a85f01-1a60-08e9-9a81-3187a382f870@mfriebe.de> <7cc30530-ec0a-792f-402c-d4a99fa4e845@Joepgen.com> Message-ID: On Sat, 28 Dec 2019 18:08:54 +0100, Bo Berglund via lazarus >AGAIN RETURNING TO THIS THREAD to report new finding... >------------------------------------------------------- >When I was working on my development on Raspberry Pi4B via VNC I was >doing so from a Windows 7 Pro x64 laptop. >Now, for the last few weeks I have migrated to a new laptop running >Windows 10 Pro x64. >I have not changed anything on the RPi4 and I have moved settings etc >over from the old laptop to the new as I was installing all of the >software including VNC. > >Then I have finally connected by VNC to the RPi4 to continue the work >over there. > >Amazingly, now without changing a thing on the RPi4 the issues I have >been hit by earlier when using "special chars" are gone! >There is no tab change or anything like that anymore! > >The only conclusion I can draw is that the VNC client version I >installed on the new laptop (6.19.1115 x64) from Nov 2019 contains a >fix for the reported problem! >The old laptop had VNC version 6.0.1 x64 from Nov 2016.... > I TALKED TOO SOON... After sending the post above I did not work on Lazarus for a while but I noticed later that the VNC window was acting in a way I did not want and it turned out that on Windows 10 RealVNC I was using the target address rpi4-gui rather than rpi4-gui:1 The difference is that with rpi4-gui:1 I will access a virtual desktop, which I have set up on the Rpi4 to be sized 1680x1040 in order for it NOT to fill up my whole screen on Windows. It is done through this at the end of /etc/rc.local: #Start VNC server with virtual desktop #Access via RealVNC application through address :1 #Size of desktop can be adjusted here. sudo -u pi /usr/bin/vncserver -randr=1680x1040 I did not know that with this in rc.local the base VNC screen (hardware display) would still be available for connection... Anyway, when I switched to this virtual screen I have the compose problem again... Using AltGr to start entering for example { or [ causes the Lazarus code editor to switch tabs so the final character drops into a different source file than intended. Maybe someone can confirm that this is indeed the cause and that using Lazarus in the two different ways behaves like I described. Crash related to use of virtual VNC desktop? -------------------------------------------- With this result I am also wondering if maybe my repeated IDE crashes with lost code edits can be attributed to this VNC difference? -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Wed Feb 5 08:53:51 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Wed, 05 Feb 2020 08:53:51 +0100 Subject: [Lazarus] Lazarus code editor improvement? References: <2c6rre9vdu3u8km12jbd66iurci5m64hlt@4ax.com> <26a85f01-1a60-08e9-9a81-3187a382f870@mfriebe.de> <7cc30530-ec0a-792f-402c-d4a99fa4e845@Joepgen.com> Message-ID: On Tue, 04 Feb 2020 10:57:44 +0100, Bo Berglund via lazarus wrote: >Crash related to use of virtual VNC desktop? >-------------------------------------------- >With this result I am also wondering if maybe my repeated IDE crashes >with lost code edits can be attributed to this VNC difference? > > I have now switched to VNC using the normal desktop rather than the virtual one. So I use server rpi4-gui rather than rpi4-gui:1 I will use this for a while to see if the crash reappears or not. The IDE is now usable also with AltGr key to compose the special chars. PS: Due to a server outage hitting https://lists.lazarus-ide.org my post has been delayed a long time. So meanmwhile I have managed to work a few hours on the Lazarus IDE on RPi4 via VNC and all seems now to work. But to be able to say that a crash no longer happens I have to work on for quite a while without problems, whereas I can immediately say that it is still there as soon as it happens... DS -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Wed Feb 5 17:48:12 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Wed, 05 Feb 2020 17:48:12 +0100 Subject: [Lazarus] Lazarus code editor improvement? References: <26a85f01-1a60-08e9-9a81-3187a382f870@mfriebe.de> <7cc30530-ec0a-792f-402c-d4a99fa4e845@Joepgen.com> Message-ID: On Wed, 05 Feb 2020 08:53:51 +0100, Bo Berglund via lazarus wrote: >On Tue, 04 Feb 2020 10:57:44 +0100, Bo Berglund via lazarus > wrote: > >>Crash related to use of virtual VNC desktop? >>-------------------------------------------- >>With this result I am also wondering if maybe my repeated IDE crashes >>with lost code edits can be attributed to this VNC difference? >> >> > >I have now switched to VNC using the normal desktop rather than the >virtual one. So I use server rpi4-gui rather than rpi4-gui:1 > >I will use this for a while to see if the crash reappears or not. >The IDE is now usable also with AltGr key to compose the special >chars. Yes! The crashes still happen! ------------------------------- I got the crash now after editing for an hour or so... Bad stuff! So in summary: When I access the RPi4 using RealVNC from my Win 10 PC using the basic desktop I see this: 1) The composing of special chars using AltGr works fine in the Lazarus IDE as opposed to how it does when using the VNC virtual desktop. 2) But when I am editing in the Lazarus code editor all of a sudden Lazarus just disappears withoiut a trace and with no saving of edited files. So crashes remain. Basically this is a showstopper for serious Lazarus development on the RPi platform using VNC server version: VNC(R) Server 6.6.0 (r41949) ARMv6 (Sep 20 2019 16:44:18) (I don't know how to upgrade the server version on the RPi4, apt update does not find a later version.) On Windows 10 I use VNC Viewer 6.19.1115(r42122)x64 (Nov 11 2019 12:22:30) -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Wed Feb 5 19:09:32 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Wed, 05 Feb 2020 19:09:32 +0100 Subject: [Lazarus] Lazarus code editor improvement? References: <7cc30530-ec0a-792f-402c-d4a99fa4e845@Joepgen.com> Message-ID: On Wed, 05 Feb 2020 17:48:12 +0100, Bo Berglund via lazarus wrote: >Yes! The crashes still happen! >------------------------------- >I got the crash now after editing for an hour or so... Bad stuff! But now I have found a life-saver! In OnLine PackageManager there is a package named Autosave, which I have installed. Now there is a File/AutoSave Options where I can set a save interval of say 10 sec. Doing so my work loss is minimized to 10 s of coding if a crash happens. I can live with that! -- Bo Berglund Developer in Sweden From zikon770 at gmail.com Fri Feb 7 11:16:36 2020 From: zikon770 at gmail.com (Tom Lisjac) Date: Fri, 7 Feb 2020 10:16:36 +0000 Subject: [Lazarus] IDE rebuild fails on raspi4 Message-ID: Trying to get Lazarus working on the raspberry pi 4 with the latest Raspbian (Debian 10.2). Installed 2.0.0+dfsg-2 with synaptic from the Raspbian repos, but haven't been able to install components and rebuild the IDE, due to: VirtualTrees.pas(70,3) Fatal: Cannot find OleUtils used by VirtualTrees. Got past a similar issue with fpdebug buy compiling it manually, but the VirtualTrees source shows OleUtils inside a Windows ifdef which isn't going to resolve on the pi: unit VirtualTrees; {$ifdef Windows} ... OleUtils, Google hasn't been much help. Any suggestions for getting around this would be greatly appreciated. Thanks, -Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From werner.pamler at freenet.de Fri Feb 7 12:06:24 2020 From: werner.pamler at freenet.de (Werner Pamler) Date: Fri, 7 Feb 2020 12:06:24 +0100 Subject: [Lazarus] IDE rebuild fails on raspi4 In-Reply-To: References: Message-ID: <68fc9744-758e-5d74-3853-66f99abc266e@freenet.de> Am 07.02.2020 um 11:16 schrieb Tom Lisjac via lazarus: > Trying to get Lazarus working on the raspberry pi 4 with the latest > Raspbian (Debian 10.2). Installed 2.0.0+dfsg-2 with synaptic from the > Raspbian repos, but haven't been able to install components and > rebuild the IDE, due to: > >   VirtualTrees.pas(70,3) Fatal: Cannot find OleUtils used by VirtualTrees. > > Got past a similar issue with fpdebug buy compiling it manually, but > the VirtualTrees source shows OleUtils inside a Windows ifdef which > isn't going to resolve on the pi: > > unit VirtualTrees; > {$ifdef Windows} >   ... >   OleUtils, I checked several versions of the Lazarus port on Luiz's github ((https://github.com/blikblum/VirtualTreeView-Lazarus - the version included in Lazarus is based on v5)), and they all have OleUtils outside the Windows ifdef, the code is: uses   {$ifdef Windows}   Windows,   ActiveX,   CommCtrl,   {$else}   laz.FakeActiveX,   {$endif}   OleUtils,   .... In fact, OleUtils is a unit which provides some Windows-functionality for other widgetsets. However, it does not belong the VirtualTreeViews - it is contained in the lclextensions package which you must compile first, before touching VirtualTreeViews. Maybe it is sufficient to simply do a clean rebuild of the IDE. From zikon770 at gmail.com Sun Feb 9 10:09:26 2020 From: zikon770 at gmail.com (Tom Lisjac) Date: Sun, 9 Feb 2020 09:09:26 +0000 Subject: [Lazarus] IDE rebuild fails on raspi4 In-Reply-To: <68fc9744-758e-5d74-3853-66f99abc266e@freenet.de> References: <68fc9744-758e-5d74-3853-66f99abc266e@freenet.de> Message-ID: Thanks Werner. You are correct that oleutils is outside the Windows endif... my apologies. The monitor I'm using for the pi is very small and I should have used a magnifying glass to confirm the problem description before posting. Per your comments, I was able to complete the IDE rebuild after manually compiling fpdebug, lclextensions, virtualtreeview and the onlinepackagemanager. However when I restart Lazarus, I have to recompile them again to do another rebuild. Not sure what's causing the lack of persistence, but Otto Dominguez also sent me a link to a set of 2.0.6 packages he's made for the pi4 and I think I'll give those a try. Thanks again for your reply and suggestions, -Tom On Fri, Feb 7, 2020 at 11:09 AM Werner Pamler via lazarus < lazarus at lists.lazarus-ide.org> wrote: > Am 07.02.2020 um 11:16 schrieb Tom Lisjac via lazarus: > > Trying to get Lazarus working on the raspberry pi 4 with the latest > > Raspbian (Debian 10.2). Installed 2.0.0+dfsg-2 with synaptic from the > > Raspbian repos, but haven't been able to install components and > > rebuild the IDE, due to: > > > > VirtualTrees.pas(70,3) Fatal: Cannot find OleUtils used by > VirtualTrees. > > > > Got past a similar issue with fpdebug buy compiling it manually, but > > the VirtualTrees source shows OleUtils inside a Windows ifdef which > > isn't going to resolve on the pi: > > > > unit VirtualTrees; > > {$ifdef Windows} > > ... > > OleUtils, > > I checked several versions of the Lazarus port on Luiz's github > ((https://github.com/blikblum/VirtualTreeView-Lazarus - the version > included in Lazarus is based on v5)), and they all have OleUtils outside > the Windows ifdef, the code is: > > uses > {$ifdef Windows} > Windows, > ActiveX, > CommCtrl, > {$else} > laz.FakeActiveX, > {$endif} > OleUtils, > .... > > In fact, OleUtils is a unit which provides some Windows-functionality > for other widgetsets. However, it does not belong the VirtualTreeViews - > it is contained in the lclextensions package which you must compile > first, before touching VirtualTreeViews. Maybe it is sufficient to > simply do a clean rebuild of the IDE. > > > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Sun Feb 9 10:29:39 2020 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 9 Feb 2020 10:29:39 +0100 (CET) Subject: [Lazarus] Confusing properties Message-ID: Hello, What is the difference between the ActiveDefaultControl and DefaultControl properties in TForm ? And why are none of DefaultControl, ActiveDefaultControl and CancelControl settable in the objectinspector ? Is this on purpose or not ? Michael. From bo.berglund at gmail.com Mon Feb 10 14:41:04 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Mon, 10 Feb 2020 14:41:04 +0100 Subject: [Lazarus] IDE rebuild fails on raspi4 References: Message-ID: On Fri, 7 Feb 2020 10:16:36 +0000, Tom Lisjac via lazarus wrote: >Trying to get Lazarus working on the raspberry pi 4 with the latest >Raspbian (Debian 10.2). I guess you mean Raspbian Buster then? I have FPC/Lazarus on several of my RPi units ranging from RPi2B via RPi3B to RPi4B. I have had no problems installing release versions FPC 3.0.4 + Lazarus 2.0.6 from sources obtained by SVN checkout. I am using an old and trusted install script I wrote several years ago and it "just works" to get the basic stuff installed. It does so to /home/pi/dev/... in order to not mess with anything in /usr/... etc. Also I use pcp directories for every install I have, right now 2.0.2, 2.0.4 and 2.0.6 on my latest RPi4B. Concerning the small screen: I run my systems via VNC from my big screen Windows PC and the only glitch I have had so far is that the Lazarus IDE may suddenly crash unexpectedly. But this has not happened once since I installed AutoSave in Lazarus via OnLine Package Manager, so this is for sure something I recommend using (plus of course subversion for project sources). HTH -- Bo Berglund Developer in Sweden From zikon770 at gmail.com Wed Feb 12 01:21:06 2020 From: zikon770 at gmail.com (Tom Lisjac) Date: Wed, 12 Feb 2020 00:21:06 +0000 Subject: [Lazarus] IDE rebuild fails on raspi4 In-Reply-To: References: Message-ID: HI Bo, Thanks for your reply and comments... very helpful! Since your svn builds work without issue on the pi4, it looks like my persistence problem is with the lazarus package from the raspbian repo. Otto Dominguez also replied privately and provided some details about why. He also generously included a links to a set of 2.0.6 Lazarus packages he made for the pi4: https://app.box.com/s/7g54gml6p9bfn10157go430oyputw2au I'm going to uninstall the raspbian package and try Otto's. Ultimately I'd like to do my own builds on the pi as it appears the 4B is actually usable for serious development were previous versions were too slow for my taste. :) Otto included a link to a forum thread where he announced his build procedure and packages: https://wiki.freepascal.org/Build_current_FPC_and_Lazarus_for_Raspbian Is your build process similar on the pi4? Thanks, -Tom On Mon, Feb 10, 2020 at 1:41 PM Bo Berglund via lazarus < lazarus at lists.lazarus-ide.org> wrote: > On Fri, 7 Feb 2020 10:16:36 +0000, Tom Lisjac via lazarus > wrote: > > >Trying to get Lazarus working on the raspberry pi 4 with the latest > >Raspbian (Debian 10.2). > > I guess you mean Raspbian Buster then? > > I have FPC/Lazarus on several of my RPi units ranging from RPi2B via > RPi3B to RPi4B. > > I have had no problems installing release versions FPC 3.0.4 + Lazarus > 2.0.6 from sources obtained by SVN checkout. > I am using an old and trusted install script I wrote several years ago > and it "just works" to get the basic stuff installed. > > It does so to /home/pi/dev/... in order to not mess with anything in > /usr/... etc. > > Also I use pcp directories for every install I have, right now 2.0.2, > 2.0.4 and 2.0.6 on my latest RPi4B. > > Concerning the small screen: > I run my systems via VNC from my big screen Windows PC and the only > glitch I have had so far is that the Lazarus IDE may suddenly crash > unexpectedly. > But this has not happened once since I installed AutoSave in Lazarus > via OnLine Package Manager, so this is for sure something I recommend > using (plus of course subversion for project sources). > > HTH > > -- > Bo Berglund > Developer in Sweden > > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zikon770 at gmail.com Wed Feb 12 01:21:06 2020 From: zikon770 at gmail.com (Tom Lisjac) Date: Wed, 12 Feb 2020 00:21:06 +0000 Subject: [Lazarus] IDE rebuild fails on raspi4 In-Reply-To: References: Message-ID: HI Bo, Thanks for your reply and comments... very helpful! Since your svn builds work without issue on the pi4, it looks like my persistence problem is with the lazarus package from the raspbian repo. Otto Dominguez also replied privately and provided some details about why. He also generously included a links to a set of 2.0.6 Lazarus packages he made for the pi4: https://app.box.com/s/7g54gml6p9bfn10157go430oyputw2au I'm going to uninstall the raspbian package and try Otto's. Ultimately I'd like to do my own builds on the pi as it appears the 4B is actually usable for serious development were previous versions were too slow for my taste. :) Otto included a link to a forum thread where he announced his build procedure and packages: https://wiki.freepascal.org/Build_current_FPC_and_Lazarus_for_Raspbian Is your build process similar on the pi4? Thanks, -Tom On Mon, Feb 10, 2020 at 1:41 PM Bo Berglund via lazarus < lazarus at lists.lazarus-ide.org> wrote: > On Fri, 7 Feb 2020 10:16:36 +0000, Tom Lisjac via lazarus > wrote: > > >Trying to get Lazarus working on the raspberry pi 4 with the latest > >Raspbian (Debian 10.2). > > I guess you mean Raspbian Buster then? > > I have FPC/Lazarus on several of my RPi units ranging from RPi2B via > RPi3B to RPi4B. > > I have had no problems installing release versions FPC 3.0.4 + Lazarus > 2.0.6 from sources obtained by SVN checkout. > I am using an old and trusted install script I wrote several years ago > and it "just works" to get the basic stuff installed. > > It does so to /home/pi/dev/... in order to not mess with anything in > /usr/... etc. > > Also I use pcp directories for every install I have, right now 2.0.2, > 2.0.4 and 2.0.6 on my latest RPi4B. > > Concerning the small screen: > I run my systems via VNC from my big screen Windows PC and the only > glitch I have had so far is that the Lazarus IDE may suddenly crash > unexpectedly. > But this has not happened once since I installed AutoSave in Lazarus > via OnLine Package Manager, so this is for sure something I recommend > using (plus of course subversion for project sources). > > HTH > > -- > Bo Berglund > Developer in Sweden > > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bo.berglund at gmail.com Wed Feb 12 10:31:20 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Wed, 12 Feb 2020 10:31:20 +0100 Subject: [Lazarus] IDE rebuild fails on raspi4 References: Message-ID: <1vf74f1f2p1lsij0q3001tkr0g4ob9rvob@4ax.com> On Wed, 12 Feb 2020 00:21:06 +0000, Tom Lisjac via lazarus wrote: > >https://wiki.freepascal.org/Build_current_FPC_and_Lazarus_for_Raspbian > >Is your build process similar on the pi4? No, I am not building any packages for my installations. Instead I have written a script that handles everything for the *installation* including dependencies etc. It is designed to be executed on a pristine RPi3B or RPi4B device and the result is an installation within the pi user's home directory, below /home/pi/dev and using /home/pi/bin and a few other local dirs. I have posted the script and RPi seed compilers on my blog site: http://blog.boberglund.com/ The script there is now updated to use the current release versions Fpc 3.0.4 and Lazarus 2.0.6 and download the help files. (Also sent the script privately to Tom Lisjac ) -- Bo Berglund Developer in Sweden From marc at dommelstein.nl Wed Feb 12 10:31:52 2020 From: marc at dommelstein.nl (Marc Weustink) Date: Wed, 12 Feb 2020 10:31:52 +0100 Subject: [Lazarus] Freepascal/Lazarus forum and Lazarus website outage wrap-up Message-ID: Now that everything seems to be normal, time for a wrap-up, what happened: There were happening 2 things simultaneously - an increased interest(?) from china - one or two bots every second looking for SQL injections. This caused a load on the original server configuration, apache using mod_php, so it became unresponsive. Since the amount of traffic was larger than normal, but still realistic, I decided to use fast-cgi to remove the php overhead from the apache main process. With fast-cgi in place I could now use the mpm_event module which can handle way more connections to the server. After some days of config tweaking everything should be fine..... not. The server started to work OK until, according to netstat, about 800 sockets were in use, after which the server failed to respond. This continued till the amount of sockets dropped to about 50 (due to timeouts etc). Then the server was responsive again and the whole cycle started over again. After a lot of googling it appeared that this was caused by this issue in apache https://bz.apache.org/bugzilla/show_bug.cgi?id=53555 A manual upgrade of apache to the latest version solved the problem. Marc From bo.berglund at gmail.com Wed Feb 12 10:50:42 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Wed, 12 Feb 2020 10:50:42 +0100 Subject: [Lazarus] IDE rebuild fails on raspi4 References: Message-ID: On Wed, 12 Feb 2020 00:21:06 +0000, Tom Lisjac via lazarus wrote: >Thanks for your reply and comments... very helpful! > >Since your svn builds work without issue on the pi4, it looks like my >persistence problem is with the lazarus package from the raspbian repo. One heads-up here: ------------------ I have discovered that on my RPi4 with Lazarus IDE when interacting with it via VNC I am experiencing random IDE crashes that leaves me with unsaved source edits. :( This did not happen before Xmas, so it might be a combination of versions of Raspbian Buster, Raspbian VNC server, Real VNC client on Windows 10 and possibly Windows 10 itself (I updated in December from Win7 to Win10). It was very infuriating when working on a project. SOLUTION FOUND: --------------- I started to search for a way to have Lazarus save my project regularly while I am working so as not to lose edits when the crashes happen. Turns out that OnLine Package Manager has a useful package called "AutoSave" already available! I installed it and set the save time to 10 seconds. After this was done the crashes no longer happen! And my sources are constantly saved to disk Win-Win! Highly recommended to use. -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Wed Feb 12 10:53:21 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Wed, 12 Feb 2020 10:53:21 +0100 Subject: [Lazarus] Freepascal/Lazarus forum and Lazarus website outage wrap-up References: Message-ID: On Wed, 12 Feb 2020 10:31:52 +0100, Marc Weustink via lazarus wrote: >After a lot of googling it appeared that this was caused by this issue >in apache https://bz.apache.org/bugzilla/show_bug.cgi?id=53555 >A manual upgrade of apache to the latest version solved the problem. Really good to know! And very grateful for your amazing detective work to find the cure for the forum! -- Bo Berglund Developer in Sweden From werner.pamler at freenet.de Wed Feb 12 12:31:28 2020 From: werner.pamler at freenet.de (Werner Pamler) Date: Wed, 12 Feb 2020 12:31:28 +0100 Subject: [Lazarus] Freepascal/Lazarus forum and Lazarus website outage wrap-up In-Reply-To: References: Message-ID: <53ff26dc-e5df-0624-4a76-b433e0b47e5e@freenet.de> Thank you for all the effort. From bartjunk64 at gmail.com Wed Feb 12 15:01:41 2020 From: bartjunk64 at gmail.com (Bart) Date: Wed, 12 Feb 2020 15:01:41 +0100 Subject: [Lazarus] Freepascal/Lazarus forum and Lazarus website outage wrap-up In-Reply-To: References: Message-ID: On Wed, Feb 12, 2020 at 10:31 AM Marc Weustink via lazarus wrote: > > Now that everything seems to be normal, time for a wrap-up, what happened: Thank you very much. -- Bart From sysrpl at gmail.com Fri Feb 14 11:25:36 2020 From: sysrpl at gmail.com (Anthony Walter) Date: Fri, 14 Feb 2020 05:25:36 -0500 Subject: [Lazarus] Delphi is 25 years old today Message-ID: As the title says, Delphi turns 25 years old today. A discussion is going on over here on hacker news . Feel free to chime in there to let other people know Free Pascal and Lazarus is free open source software, under active development, and is better in so many way. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglists at geldenhuys.co.uk Fri Feb 14 18:50:27 2020 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Fri, 14 Feb 2020 17:50:27 +0000 Subject: [Lazarus] Delphi is 25 years old today In-Reply-To: References: Message-ID: On 14/02/2020 10:25 am, Anthony Walter via lazarus wrote: > As the title says, Delphi turns 25 years old today. Yeah, just read that a few minutes ago. Amazing, and such a pity it never got the fame/popularity it deserved. The language is amazing! Though these days it has seriously stagnated (specially the IDE). https://www.theregister.co.uk/2020/02/14/25_years_of_delphi_programming_not_the_vb_killer_but_enduring_nonetheless/ Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From bo.berglund at gmail.com Sat Feb 15 10:20:00 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Sat, 15 Feb 2020 10:20:00 +0100 Subject: [Lazarus] Delphi is 25 years old today References: Message-ID: <51df4f9qbcbdu3i4d06i87lavr46n6g3na@4ax.com> On Fri, 14 Feb 2020 17:50:27 +0000, Graeme Geldenhuys via lazarus wrote: >On 14/02/2020 10:25 am, Anthony Walter via lazarus wrote: >> As the title says, Delphi turns 25 years old today. > >Yeah, just read that a few minutes ago. Amazing, and such a pity it >never got the fame/popularity it deserved. The language is amazing! >Though these days it has seriously stagnated (specially the IDE). > > >https://www.theregister.co.uk/2020/02/14/25_years_of_delphi_programming_not_the_vb_killer_but_enduring_nonetheless/ > > >Regards, > Graeme Been there all the time... Back in the middle of the 1990:es I headed a development department for industrial automation products where we needed to add PC support for our robotic devices. We tried Windows NT4 and Visual Basic as tools but got ensnared in the coding and deployment problems for a long time. Then we found Delphi 1, which was looking good and when Delphi 2 came along with 32 bit support we switched and never looked back again. We built pretty solid automation systems using Delphi 2-3-4-5-6-7 and then stayed with D7 until I retired 2011. I continued to upgrade until XE5 for my private and consultant work but then I switched to FPC/Lazarus. My old company still uses Delphi 7 as the tool to maintain and expand the automation systems.... I have told them that they should look at FPC/Lazarus, but apparently they are dug down in some 3rd party components that cannot easily be ported. -- Bo Berglund Developer in Sweden From aaa5500 at ya.ru Sun Feb 16 20:56:46 2020 From: aaa5500 at ya.ru (Alexey Tor.) Date: Sun, 16 Feb 2020 22:56:46 +0300 Subject: [Lazarus] TForm.CreateNew - form hides not immediately Message-ID: <41704b2d-a945-5220-9f4e-c42c62d56366@ya.ru> Linux gtk2.   Form:= TForm.CreateNew(Application.MainForm);   Form.Visible:= FOption; if FOption=False, form flickers! it appears for 0.2sec and hides. Can we avoid flicker and just hide? Maybe AVisible param can be added to CreateNew? It is so on all widgetsets? -- Regards, Alexey From zikon770 at gmail.com Mon Feb 17 01:03:54 2020 From: zikon770 at gmail.com (Tom Lisjac) Date: Mon, 17 Feb 2020 00:03:54 +0000 Subject: [Lazarus] IDE rebuild fails on raspi4 In-Reply-To: <1vf74f1f2p1lsij0q3001tkr0g4ob9rvob@4ax.com> References: <1vf74f1f2p1lsij0q3001tkr0g4ob9rvob@4ax.com> Message-ID: Hi Bo, Again, thanks for your many useful replies. Your approach to doing a local user build is a good one and what I'll also do on the problematic Raspbian. May also try it on another distro I like called Devuan. They used to release Pi versions but stopped with the 4B, so I'll have to build their latest 2.1 from scratch as well. Your install script is very readable and clarifies the OS configuration I'll need to support Lazarus builds. It will be time consuming to build both the OS and Lazarus on the PI4, but I'm sure it will be a more enjoyable use of my spare time then trying to find something intelligent to watch on US TV. :) Thanks, -Tom On Wed, Feb 12, 2020 at 9:31 AM Bo Berglund via lazarus < lazarus at lists.lazarus-ide.org> wrote: > On Wed, 12 Feb 2020 00:21:06 +0000, Tom Lisjac via lazarus > wrote: > > > > >https://wiki.freepascal.org/Build_current_FPC_and_Lazarus_for_Raspbian > > > >Is your build process similar on the pi4? > > No, I am not building any packages for my installations. > > Instead I have written a script that handles everything for the > *installation* including dependencies etc. > It is designed to be executed on a pristine RPi3B or RPi4B device and > the result is an installation within the pi user's home directory, > below /home/pi/dev and using /home/pi/bin and a few other local dirs. > > I have posted the script and RPi seed compilers on my blog site: > http://blog.boberglund.com/ > > The script there is now updated to use the current release versions > Fpc 3.0.4 and Lazarus 2.0.6 and download the help files. > > (Also sent the script privately to Tom Lisjac ) > > > -- > Bo Berglund > Developer in Sweden > > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zikon770 at gmail.com Mon Feb 17 01:03:54 2020 From: zikon770 at gmail.com (Tom Lisjac) Date: Mon, 17 Feb 2020 00:03:54 +0000 Subject: [Lazarus] IDE rebuild fails on raspi4 In-Reply-To: <1vf74f1f2p1lsij0q3001tkr0g4ob9rvob@4ax.com> References: <1vf74f1f2p1lsij0q3001tkr0g4ob9rvob@4ax.com> Message-ID: Hi Bo, Again, thanks for your many useful replies. Your approach to doing a local user build is a good one and what I'll also do on the problematic Raspbian. May also try it on another distro I like called Devuan. They used to release Pi versions but stopped with the 4B, so I'll have to build their latest 2.1 from scratch as well. Your install script is very readable and clarifies the OS configuration I'll need to support Lazarus builds. It will be time consuming to build both the OS and Lazarus on the PI4, but I'm sure it will be a more enjoyable use of my spare time then trying to find something intelligent to watch on US TV. :) Thanks, -Tom On Wed, Feb 12, 2020 at 9:31 AM Bo Berglund via lazarus < lazarus at lists.lazarus-ide.org> wrote: > On Wed, 12 Feb 2020 00:21:06 +0000, Tom Lisjac via lazarus > wrote: > > > > >https://wiki.freepascal.org/Build_current_FPC_and_Lazarus_for_Raspbian > > > >Is your build process similar on the pi4? > > No, I am not building any packages for my installations. > > Instead I have written a script that handles everything for the > *installation* including dependencies etc. > It is designed to be executed on a pristine RPi3B or RPi4B device and > the result is an installation within the pi user's home directory, > below /home/pi/dev and using /home/pi/bin and a few other local dirs. > > I have posted the script and RPi seed compilers on my blog site: > http://blog.boberglund.com/ > > The script there is now updated to use the current release versions > Fpc 3.0.4 and Lazarus 2.0.6 and download the help files. > > (Also sent the script privately to Tom Lisjac ) > > > -- > Bo Berglund > Developer in Sweden > > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Mon Feb 17 09:21:55 2020 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 17 Feb 2020 09:21:55 +0100 Subject: [Lazarus] TForm.CreateNew - form hides not immediately In-Reply-To: <41704b2d-a945-5220-9f4e-c42c62d56366@ya.ru> References: <41704b2d-a945-5220-9f4e-c42c62d56366@ya.ru> Message-ID: <20200217092155.5c9530f0@limapholos.matflo.wg> On Sun, 16 Feb 2020 22:56:46 +0300 "Alexey Tor. via lazarus" wrote: > Linux gtk2. > >   Form:= TForm.CreateNew(Application.MainForm); >   Form.Visible:= FOption; Form:=TForm1(TForm1.NewInstance); Form.DisableAutoSizing; Form.CreateNew(Application.MainForm); Form.Visible:=FOption; Form.EnableAutoSizing; Mattias From aaa5500 at ya.ru Tue Feb 18 19:16:41 2020 From: aaa5500 at ya.ru (AlexeyT) Date: Tue, 18 Feb 2020 21:16:41 +0300 Subject: [Lazarus] Win10, clicking taskbar button don't minimize the app Message-ID: <0a687b40-2ce5-e68a-f444-b61dfe33f4fb@ya.ru> I will let you know about CudaText issue, seems LCL issue https://github.com/Alexey-T/CudaText/issues/2322#issuecomment-587597067 -- Regards, Alexey From aaa5500 at ya.ru Sun Feb 23 14:27:58 2020 From: aaa5500 at ya.ru (AlexeyT) Date: Sun, 23 Feb 2020 16:27:58 +0300 Subject: [Lazarus] Patch for Screen.BeginWaitCursor Message-ID: <6e1d479f-5a21-7fb6-8120-00b972e48faf@ya.ru> Docs have wrong name               Override the Cursor property with a temporary value. Use EndTempCursor to release it.                     Release the temporary cursor set with BeginTempCursor.       -- Regards, Alexey From lazarus at kluug.net Sun Feb 23 21:26:32 2020 From: lazarus at kluug.net (Ondrej Pokorny) Date: Sun, 23 Feb 2020 21:26:32 +0100 Subject: [Lazarus] Patch for Screen.BeginWaitCursor In-Reply-To: <6e1d479f-5a21-7fb6-8120-00b972e48faf@ya.ru> References: <6e1d479f-5a21-7fb6-8120-00b972e48faf@ya.ru> Message-ID: <8c51cdb6-8090-65c3-0be2-23191672b8f1@kluug.net> Where is the patch? Maybe you forgot to attach it? Ondrej From aaa5500 at ya.ru Mon Feb 24 10:54:19 2020 From: aaa5500 at ya.ru (AlexeyT) Date: Mon, 24 Feb 2020 12:54:19 +0300 Subject: [Lazarus] Patch for Screen.BeginWaitCursor In-Reply-To: <8c51cdb6-8090-65c3-0be2-23191672b8f1@kluug.net> References: <6e1d479f-5a21-7fb6-8120-00b972e48faf@ya.ru> <8c51cdb6-8090-65c3-0be2-23191672b8f1@kluug.net> Message-ID: Patch is in SVN, sorry now I see the docs are OK. BTW I am not sure it is good to raise an exception in EndTempCursor/EndWaitCursor, better to ignore the er. >Where is the patch? Maybe you forgot to attach it? -- Regards, Alexey From aaa5500 at ya.ru Mon Feb 24 12:19:39 2020 From: aaa5500 at ya.ru (AlexeyT) Date: Mon, 24 Feb 2020 14:19:39 +0300 Subject: [Lazarus] IDE PackageManager crash on placing ATSynEdit on a form Message-ID: <4a5b7173-1b6c-b5d0-1c95-8d51ea4c7c9f@ya.ru> Details here. I see it on Linux gtk2 x64 too. https://forum.lazarus.freepascal.org/index.php/topic,48617.0.html What is wrong with atsynedit? Stacktrace #0 CLASSES$_$TWRITER_$__$$_WRITEPROPERTY$TPERSISTENT$POINTER at :0 0000001 CLASSES$_$TWRITER_$__$$_WRITEPROPERTIES$TPERSISTENT at :0 0000002 ?? at :0 0000003 ?? at :0 0000004 ?? at :0 0000005 ?? at :0 0000006 ?? at :0 0000007 ?? at :0 0000008 ?? at :0 0000009 ?? at :0 0000010 ?? at :0 0000011 ?? at :0 0000012 ?? at :0 0000013 ?? at :0 0000014 ?? at :0 0000015 ?? at :0 0000016 CLASSES$_$TWRITER_$__$$_WRITEPROPERTIES$TPERSISTENT at :0 0000017 ?? at :0 -- Regards, Alexey From juha.manninen62 at gmail.com Mon Feb 24 15:27:47 2020 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Mon, 24 Feb 2020 16:27:47 +0200 Subject: [Lazarus] IDE PackageManager crash on placing ATSynEdit on a form In-Reply-To: <4a5b7173-1b6c-b5d0-1c95-8d51ea4c7c9f@ya.ru> References: <4a5b7173-1b6c-b5d0-1c95-8d51ea4c7c9f@ya.ru> Message-ID: On Mon, Feb 24, 2020 at 1:21 PM AlexeyT via lazarus wrote: > https://forum.lazarus.freepascal.org/index.php/topic,48617.0.html See my forum post. Juha From jmlandmesser at gmx.de Mon Feb 24 16:24:20 2020 From: jmlandmesser at gmx.de (John Landmesser) Date: Mon, 24 Feb 2020 16:24:20 +0100 Subject: [Lazarus] svn update can't be compiled Message-ID: <21e14ce4-8484-4725-a7f3-144111a2dd11@gmx.de> Hi, Info: Lazarus 2.1.0 r62571M FPC 3.0.4 x86_64-linux-gtk2 error compiling the IDE: > Lazarus-Quelltext aufräumen: Erfolg > Kompiliere Package FCL 1.0.1: Erfolg > Kompiliere Package LazUtils 1.0: Erfolg, Warnungen: 2 > laz2_dom.pas(1944,14) Warning: Symbol "BuildList" is deprecated: "Use > NodeFilter instead." > laz2_dom.pas(1952,14) Warning: Symbol "BuildList" is deprecated: "Use > NodeFilter instead." > Kompiliere Package LCLBase 2.1: Exit code 1, Fehler: 1 > screen.inc(438,26) Error: Call by var for arg no. 1 has to match > exactly: Got "TScreen.{Dynamic} Array Of TCursor" expected "UnicodeString" > Kompiliere Package CodeTools 1.0.1: Abgebrochen -------------- next part -------------- An HTML attachment was scrubbed... URL: From juha.manninen62 at gmail.com Mon Feb 24 17:32:03 2020 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Mon, 24 Feb 2020 18:32:03 +0200 Subject: [Lazarus] svn update can't be compiled In-Reply-To: <21e14ce4-8484-4725-a7f3-144111a2dd11@gmx.de> References: <21e14ce4-8484-4725-a7f3-144111a2dd11@gmx.de> Message-ID: On Mon, Feb 24, 2020 at 5:24 PM John Landmesser via lazarus wrote: > Lazarus 2.1.0 r62571M FPC 3.0.4 x86_64-linux-gtk2 > ... > screen.inc(438,26) Error: Call by var for arg no. 1 has to match exactly: Got "TScreen.{Dynamic} Array Of TCursor" expected "UnicodeString" It is reported : https://bugs.freepascal.org/view.php?id=36728 The nasty thing is that the bug in FPC was fixed almost 3.5 years ago but still not included in any released FPC version. See the related issue #30306. FPC project's release policy would need a revamp. Juha From jmlandmesser at gmx.de Mon Feb 24 21:22:09 2020 From: jmlandmesser at gmx.de (John Landmesser) Date: Mon, 24 Feb 2020 21:22:09 +0100 Subject: [Lazarus] svn update can't be compiled In-Reply-To: References: <21e14ce4-8484-4725-a7f3-144111a2dd11@gmx.de> Message-ID: <6c72aec4-306c-811c-d881-de449ced7f65@gmx.de> My solution: For Manjaro (ArchLinux) i installed fpc-svn and fpc-src-svn from AUR with yay and now i have a running: Lazarus 2.1.0 r62669 FPC 3.3.1 x86_64-linux-gtk2 Hope that big jump from 3.0.4 to 3.3.1 causes no troubles ... we'll see! Thanks Juha for your information! From juha.manninen62 at gmail.com Tue Feb 25 10:23:55 2020 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Tue, 25 Feb 2020 11:23:55 +0200 Subject: [Lazarus] svn update can't be compiled In-Reply-To: <6c72aec4-306c-811c-d881-de449ced7f65@gmx.de> References: <21e14ce4-8484-4725-a7f3-144111a2dd11@gmx.de> <6c72aec4-306c-811c-d881-de449ced7f65@gmx.de> Message-ID: On Mon, Feb 24, 2020 at 10:22 PM John Landmesser via lazarus wrote: > For Manjaro (ArchLinux) i installed fpc-svn and fpc-src-svn from AUR > with yay and now i have a running: > > Lazarus 2.1.0 r62669 FPC 3.3.1 x86_64-linux-gtk2 I also run Manjaro Linux but I didn't know that AUR has FPC trunk. I would download it if I didn't build it already myself. Manjaro's official repo always has the latest versions of everything. It is super nice compared to repos of Debian + its derivatives for example. However it doesn't help with FPC because they release so seldom. Ancient FPC 3.0.4 is still the latest. This is almost unbearable. Issue #30306 was an important compatibility feature/fix. It got fixed some 3 and half years ago. When FPC 3.2 finally comes out, it may well be 4 years. Insanity! More and more people must build FPC from sources. It hogs resources also from FPC devels. They have an endless merge exercise. Bug fixes from past years must be dug up and merged to 3.2 branch. Still the release will be outdated already when it finally comes out, because trunk has collected so much new stuff during the years. Other FOSS projects have faced the same problem in past. They typically fixed it by adjusting their release policy. Release early, release often. A principle of "release when it is ready" is doomed. No substantial SW is "ready" ever. There will always be things to fix and improve. I hope there will be more forks of FPC project which concentrate on release schedule. Maybe one of them could replace FPC in distro repos. Maybe Lazarus can switch to use it. Don't know ... Juha From andrea.mauri.75 at gmail.com Tue Feb 25 10:53:01 2020 From: andrea.mauri.75 at gmail.com (Andrea Mauri) Date: Tue, 25 Feb 2020 10:53:01 +0100 Subject: [Lazarus] svn update can't be compiled In-Reply-To: <21e14ce4-8484-4725-a7f3-144111a2dd11@gmx.de> References: <21e14ce4-8484-4725-a7f3-144111a2dd11@gmx.de> Message-ID: I get the same error on MacOS On Mon, 24 Feb 2020 at 16:24, John Landmesser via lazarus < lazarus at lists.lazarus-ide.org> wrote: > Hi, > > Info: > > Lazarus 2.1.0 r62571M FPC 3.0.4 x86_64-linux-gtk2 > > error compiling the IDE: > > Lazarus-Quelltext aufräumen: Erfolg > Kompiliere Package FCL 1.0.1: Erfolg > Kompiliere Package LazUtils 1.0: Erfolg, Warnungen: 2 > laz2_dom.pas(1944,14) Warning: Symbol "BuildList" is deprecated: "Use > NodeFilter instead." > laz2_dom.pas(1952,14) Warning: Symbol "BuildList" is deprecated: "Use > NodeFilter instead." > Kompiliere Package LCLBase 2.1: Exit code 1, Fehler: 1 > screen.inc(438,26) Error: Call by var for arg no. 1 has to match exactly: > Got "TScreen.{Dynamic} Array Of TCursor" expected "UnicodeString" > Kompiliere Package CodeTools 1.0.1: Abgebrochen > > > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From juha.manninen62 at gmail.com Tue Feb 25 11:07:27 2020 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Tue, 25 Feb 2020 12:07:27 +0200 Subject: [Lazarus] svn update can't be compiled In-Reply-To: References: <21e14ce4-8484-4725-a7f3-144111a2dd11@gmx.de> Message-ID: On Tue, Feb 25, 2020 at 11:53 AM Andrea Mauri via lazarus wrote: > I get the same error on MacOS There is a fix/workaround in r62671, commit by Ondrej this morning. Juha From jmlandmesser at gmx.de Tue Feb 25 12:14:35 2020 From: jmlandmesser at gmx.de (John Landmesser) Date: Tue, 25 Feb 2020 12:14:35 +0100 Subject: [Lazarus] svn update can't be compiled In-Reply-To: References: <21e14ce4-8484-4725-a7f3-144111a2dd11@gmx.de> Message-ID: <9c8ded5d-33cf-6d8f-27de-f6d024b62b34@gmx.de> Issue is fixed just now, didn't test ist but do a svn update again! 2020-02-25 07:37 Ondrej Pokorny Resolution open => fixed Am 25.02.20 um 10:53 schrieb Andrea Mauri via lazarus: > I get the same error on MacOS > > On Mon, 24 Feb 2020 at 16:24, John Landmesser via lazarus > > > wrote: > > Hi, > > Info: > > Lazarus 2.1.0 r62571M FPC 3.0.4 x86_64-linux-gtk2 > > error compiling the IDE: > >> Lazarus-Quelltext aufräumen: Erfolg >> Kompiliere Package FCL 1.0.1: Erfolg >> Kompiliere Package LazUtils 1.0: Erfolg, Warnungen: 2 >> laz2_dom.pas(1944,14) Warning: Symbol "BuildList" is deprecated: >> "Use NodeFilter instead." >> laz2_dom.pas(1952,14) Warning: Symbol "BuildList" is deprecated: >> "Use NodeFilter instead." >> Kompiliere Package LCLBase 2.1: Exit code 1, Fehler: 1 >> screen.inc(438,26) Error: Call by var for arg no. 1 has to match >> exactly: Got "TScreen.{Dynamic} Array Of TCursor" expected >> "UnicodeString" >> Kompiliere Package CodeTools 1.0.1: Abgebrochen > > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmlandmesser at gmx.de Tue Feb 25 12:35:08 2020 From: jmlandmesser at gmx.de (John Landmesser) Date: Tue, 25 Feb 2020 12:35:08 +0100 Subject: [Lazarus] svn update can't be compiled In-Reply-To: References: <21e14ce4-8484-4725-a7f3-144111a2dd11@gmx.de> <6c72aec4-306c-811c-d881-de449ced7f65@gmx.de> Message-ID: <33b14ba2-7e5b-58af-05f9-34b95b0de689@gmx.de> Am 25.02.20 um 10:23 schrieb Juha Manninen via lazarus: > I also run Manjaro Linux but I didn't know that AUR has FPC trunk. > I would download it if I didn't build it already myself. My experience: pamac couldn't  build the svn versions from AUR, but yay -S fpc-svn  fpc-src-svn did it after "heavy working" Use yay as user instead of pamac and most trouble with pamac are gone :-) ... and this issue is fixed right now!! But i have to test this, or do i stay with 3.1.1? Lots of fun for a pensioner! From andrea.mauri.75 at gmail.com Tue Feb 25 13:38:39 2020 From: andrea.mauri.75 at gmail.com (Andrea Mauri) Date: Tue, 25 Feb 2020 13:38:39 +0100 Subject: [Lazarus] svn update can't be compiled In-Reply-To: References: <21e14ce4-8484-4725-a7f3-144111a2dd11@gmx.de> Message-ID: Thanks, I can compile Lazarus now. On Tue, 25 Feb 2020 at 11:07, Juha Manninen via lazarus < lazarus at lists.lazarus-ide.org> wrote: > On Tue, Feb 25, 2020 at 11:53 AM Andrea Mauri via lazarus > wrote: > > I get the same error on MacOS > > There is a fix/workaround in r62671, commit by Ondrej this morning. > > Juha > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From juha.manninen62 at gmail.com Tue Feb 25 15:13:36 2020 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Tue, 25 Feb 2020 16:13:36 +0200 Subject: [Lazarus] svn update can't be compiled In-Reply-To: <33b14ba2-7e5b-58af-05f9-34b95b0de689@gmx.de> References: <21e14ce4-8484-4725-a7f3-144111a2dd11@gmx.de> <6c72aec4-306c-811c-d881-de449ced7f65@gmx.de> <33b14ba2-7e5b-58af-05f9-34b95b0de689@gmx.de> Message-ID: On Tue, Feb 25, 2020 at 1:35 PM John Landmesser via lazarus < lazarus at lists.lazarus-ide.org> wrote: > Use yay as user instead of pamac and most trouble with pamac are gone :-) I have used yay _once_ when installing drivers for a Brother printer by following written instructions. Anyway, good to know. > But i have to test this, or do i stay with 3.1.1? FPC 3.1.1 (trunk) seems to work well. It may have experimental code for a new language feature or something but if you don't use that feature it should be OK. Sometimes there are hiccups, broken revisions, but usually they are fixed quickly. If you bump into a bug, you can either wait for a fix or revert to an earlier revision. It seems FPC trunk is used a lot (because there are no recent releases) and thus tested a lot, too. Actually the same applies to development branches of many FOSS projects, including Lazarus. Its developers use it for obvious reasons and spot broken revisions quickly. Many other people seem to use it as well. It is not recommended for production use but if you can afford few hiccups occationally, it is very usable. Juha -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaa5500 at ya.ru Tue Feb 25 19:03:34 2020 From: aaa5500 at ya.ru (AlexeyT) Date: Tue, 25 Feb 2020 21:03:34 +0300 Subject: [Lazarus] IDE trunk cannot build on fpc 3.0.2 Message-ID: <75feb15a-1554-9a59-57d5-a18376499789@ya.ru> macOS 10.8, FPC 3.0.2 2017/02/12 for i386 pkgmanager.pas(77,78) Error (5000) Id not found TObjectArray$2 PS-- I use fpc 3.0.2 because I had problems to compile CudaText with 3.0.4 on macOS in 2019 -- Regards, Alexey From juha.manninen62 at gmail.com Tue Feb 25 19:45:34 2020 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Tue, 25 Feb 2020 20:45:34 +0200 Subject: [Lazarus] IDE trunk cannot build on fpc 3.0.2 In-Reply-To: <75feb15a-1554-9a59-57d5-a18376499789@ya.ru> References: <75feb15a-1554-9a59-57d5-a18376499789@ya.ru> Message-ID: On Tue, Feb 25, 2020 at 8:05 PM AlexeyT via lazarus < lazarus at lists.lazarus-ide.org> wrote: > pkgmanager.pas(77,78) Error (5000) Id not found TObjectArray$2 > The line is: TPackagePackageArray = specialize TObjectArray; I turned TObjectArray into a generics container to reduce typecasts. It uses a very basic syntax, similar to what unit fgl has used for ages. generic TObjectArray = class Does "TObjectArray$2" mean the compiler does not find the second parameter? Why wouldn't it? Both parameters are the same "TLazPackageID". Juha -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.cornflake at gmail.com Thu Feb 27 06:59:18 2020 From: mike.cornflake at gmail.com (Michael Thompson) Date: Thu, 27 Feb 2020 13:59:18 +0800 Subject: [Lazarus] IDE trunk cannot build on fpc 3.0.2 In-Reply-To: References: <75feb15a-1554-9a59-57d5-a18376499789@ya.ru> Message-ID: >> On Tue, Feb 25, 2020 at 8:05 PM AlexeyT wrote >> pkgmanager.pas(77,78) Error (5000) Id not found TObjectArray$2 I'm hitting this error on Windows. fpc 3.0.4 > Does "TObjectArray$2" mean the compiler does not find the second parameter? No idea. Warning - the following does not contain known facts! Wildly guessing (honestly) that for 3.0.4 the code in fgl only accepts types and you compiled with 3.1 which may have improved support for classes? Dunno. My solution for now is to revert to revision 62638 Cheers Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From juha.manninen62 at gmail.com Thu Feb 27 10:03:03 2020 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Thu, 27 Feb 2020 11:03:03 +0200 Subject: [Lazarus] IDE trunk cannot build on fpc 3.0.2 In-Reply-To: References: <75feb15a-1554-9a59-57d5-a18376499789@ya.ru> Message-ID: On Thu, Feb 27, 2020 at 7:59 AM Michael Thompson via lazarus < lazarus at lists.lazarus-ide.org> wrote: > >> On Tue, Feb 25, 2020 at 8:05 PM AlexeyT wrote > >> pkgmanager.pas(77,78) Error (5000) Id not found TObjectArray$2 > > I'm hitting this error on Windows. fpc 3.0.4 > I built Lazarus with with FPC 3.0.4. It works with 100% certainty. No idea. Warning - the following does not contain known facts! Wildly > guessing (honestly) that for 3.0.4 the code in fgl only accepts types and > you compiled with 3.1 which may have improved support for classes? Dunno. > A class is also a type. Generics have worked with classes from the beginning. My solution for now is to revert to revision 62638 > I guess the right solution is to build clean, so that old .ppu files get deleted. The unit ObjectLists (and class TObjectArray) was moved to another place. The left-over compiled files may cause problems. Juha -------------- next part -------------- An HTML attachment was scrubbed... URL: From juha.manninen62 at gmail.com Thu Feb 27 21:06:39 2020 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Thu, 27 Feb 2020 22:06:39 +0200 Subject: [Lazarus] Application.Title and .Scaled automation + logic fix Message-ID: Application.Title in project's main unit is updated automatically based on a project title setting. Unchecking the option "Main unit has Application.Title statement" was originally meant as an alternative in case the automation failed. The text was misleading. If automation was turned off, the main unit could still have Application.Title statement in case a user decided to add it manually. Earlier changes in code followed the flawed text and removed the statement always when the option was turned off. I improved the logic some days ago in r62669 and changed the text to "Update Application.Title statement in main unit". I also improved the automation. Now the LCL GUI specific options cannot be set for a console program any more. The code tests for LCL dependency and Forms unit in uses section. This all fixes issue : https://bugs.freepascal.org/view.php?id=36521 among other unreported issues. Similar change was made for Application.Scaled. I also changed the text for "Application.CreateForm statements" checkbox although I did not change its logic. Comments? Are the texts good? Project template "Console Application" uses TCustomApplication which has Title which is not set automatically now. I guess it is OK because the Title is not used anywhere.(?) Juha -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.cornflake at gmail.com Fri Feb 28 02:17:10 2020 From: mike.cornflake at gmail.com (Michael Thompson) Date: Fri, 28 Feb 2020 09:17:10 +0800 Subject: [Lazarus] IDE trunk cannot build on fpc 3.0.2 In-Reply-To: References: <75feb15a-1554-9a59-57d5-a18376499789@ya.ru> Message-ID: >> My solution for now is to revert to revision 62638 > I guess the right solution is to build clean Yes, thanks for that. Something had gone wrong with my system somewhere. Even after a make clean I was having problems with main.pp. I use Tortoise SVN, and multiple SVN Clean with all options enabled wasn't having an effect. Ended up deleting the whole lazarus_trunk folder and starting again. All good now.. Many thanks Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From sysrpl at gmail.com Fri Feb 28 17:59:40 2020 From: sysrpl at gmail.com (Anthony Walter) Date: Fri, 28 Feb 2020 11:59:40 -0500 Subject: [Lazarus] Multiple type helpers not support by CodeTools Message-ID: I was creating a library with uses the new {$modeswitch multihelpers} with multiple type helpers and it would seems CodeTools has not been updated to support this switch or the functionality of multiple type helpers per type. When you use the switch and multiple helpers CodeTools sees lines which use this feature as being invalid and does not provide any help for those lines. I've filed a bug in Mantis: https://bugs.freepascal.org/view.php?id=36742 -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at kluug.net Fri Feb 28 19:17:01 2020 From: lazarus at kluug.net (Ondrej Pokorny) Date: Fri, 28 Feb 2020 19:17:01 +0100 Subject: [Lazarus] Multiple type helpers not support by CodeTools In-Reply-To: References: Message-ID: <51423e2d-c68a-8fa7-53b4-3b742e289450@kluug.net> On 28.02.2020 17:59, Anthony Walter via lazarus wrote: > I was creating a library with uses the new {$modeswitch multihelpers} > with multiple type helpers and it would seems CodeTools has not been > updated to support this switch or the functionality of multiple type > helpers per type. When you use the switch and multiple helpers > CodeTools sees lines which use this feature as being invalid and does > not provide any help for those lines. > > I've filed a bug in Mantis: > > https://bugs.freepascal.org/view.php?id=36742 Thanks, I resolved it as duplicate :) Ondrej From lazarus at kluug.net Fri Feb 28 20:34:32 2020 From: lazarus at kluug.net (Ondrej Pokorny) Date: Fri, 28 Feb 2020 20:34:32 +0100 Subject: [Lazarus] MDI support for win32 Message-ID: <3d5e7b5c-ab90-d789-697d-55203458fcca@kluug.net> Hello, I added MDI support for win32 based on patch by Kostas Michalopoulos: https://bugs.freepascal.org/view.php?id=36582 Please report any regressions or problems. Ondrej From fpc at pascalprogramming.org Sat Feb 29 14:12:28 2020 From: fpc at pascalprogramming.org (Marco van de Voort) Date: Sat, 29 Feb 2020 14:12:28 +0100 Subject: [Lazarus] spilling related accesviolation when rebuilding lazarus (extgraphics) with 3.3.1 Message-ID: <3f4373d9-34b1-550c-3630-b62e795f309c@pascalprogramming.org> For a while now I have had problems building custom lazarus. The error is always something spilling related, and this case in extgraphics, code that uses an open array of tpoint. I tried to copy and paste the relevant code in a separate unit and compile with the arguments that lazarus lists of "build ide", but no success. Anybody also has this? I have seen this since december occasionally, but recently it got really more frequent. Verbose: Compiling lcltranslator.pas lcltranslator.pas(356,9) Warning: Case statement does not handle all possible cases Verbose: Compiling extdlgs.pas Verbose: Compiling C:\repo\lazarus\lcl\forms\calcform.pas Verbose: Compiling C:\repo\lazarus\lcl\widgetset\wsextdlgs.pp calcform.pas(598,3) Warning: Case statement does not handle all possible cases Verbose: Compiling extgraphics.pas extgraphics.pas(229,7) Error: Compilation raised exception internally Verbose: Compilation aborted Debug: An unhandled exception occurred at $0049383D: Debug: EAccessViolation: Access violation Debug:   $0049383D  GET_ALIAS,  line 1137 of rgobj.pas Debug:   $0049664E  INSTR_SPILL_REGISTER,  line 2575 of rgobj.pas Debug:   $00495E61  SPILL_REGISTERS,  line 2331 of rgobj.pas Debug:   $00492D23  DO_REGISTER_ALLOCATION,  line 637 of rgobj.pas Debug:   $00483DA9  DO_REGISTER_ALLOCATION,  line 896 of cgobj.pas Debug: From kadissov.e at gmail.com Sat Feb 29 14:31:10 2020 From: kadissov.e at gmail.com (=?UTF-8?B?0JXQstCz0LXQvdC40Lkg0JrQsNC00LjRgdC+0LI=?=) Date: Sat, 29 Feb 2020 16:31:10 +0300 Subject: [Lazarus] spilling related accesviolation when rebuilding lazarus (extgraphics) with 3.3.1 In-Reply-To: <3f4373d9-34b1-550c-3630-b62e795f309c@pascalprogramming.org> References: <3f4373d9-34b1-550c-3630-b62e795f309c@pascalprogramming.org> Message-ID: Hi anybody. I have installed lazarus (2.0.2). When there are no more errors (only hints and warnings) and I give the command F9 (run) Lazarus answers with a strange output: "No program file "/home/eugen/aux/lmarka/unit1" found". Can any one say what is wrong? сб, 29 февр. 2020 г. в 16:12, Marco van de Voort via lazarus < lazarus at lists.lazarus-ide.org>: > > For a while now I have had problems building custom lazarus. > > The error is always something spilling related, and this case in > extgraphics, code that uses an open array of tpoint. > > I tried to copy and paste the relevant code in a separate unit and > compile with the arguments that lazarus lists of "build ide", but no > success. > > Anybody also has this? I have seen this since december occasionally, but > recently it got really more frequent. > > Verbose: Compiling lcltranslator.pas > lcltranslator.pas(356,9) Warning: Case statement does not handle all > possible cases > Verbose: Compiling extdlgs.pas > Verbose: Compiling C:\repo\lazarus\lcl\forms\calcform.pas > Verbose: Compiling C:\repo\lazarus\lcl\widgetset\wsextdlgs.pp > calcform.pas(598,3) Warning: Case statement does not handle all possible > cases > Verbose: Compiling extgraphics.pas > extgraphics.pas(229,7) Error: Compilation raised exception internally > Verbose: Compilation aborted > Debug: An unhandled exception occurred at $0049383D: > Debug: EAccessViolation: Access violation > Debug: $0049383D GET_ALIAS, line 1137 of rgobj.pas > Debug: $0049664E INSTR_SPILL_REGISTER, line 2575 of rgobj.pas > Debug: $00495E61 SPILL_REGISTERS, line 2331 of rgobj.pas > Debug: $00492D23 DO_REGISTER_ALLOCATION, line 637 of rgobj.pas > Debug: $00483DA9 DO_REGISTER_ALLOCATION, line 896 of cgobj.pas > Debug: > > > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartjunk64 at gmail.com Sat Feb 29 16:08:11 2020 From: bartjunk64 at gmail.com (Bart) Date: Sat, 29 Feb 2020 16:08:11 +0100 Subject: [Lazarus] spilling related accesviolation when rebuilding lazarus (extgraphics) with 3.3.1 In-Reply-To: References: <3f4373d9-34b1-550c-3630-b62e795f309c@pascalprogramming.org> Message-ID: On Sat, Feb 29, 2020 at 2:31 PM Евгений Кадисов via lazarus wrote: > "No program file "/home/eugen/aux/lmarka/unit1" found". Can any one say what is wrong? Please do not hijack someone elses thread. -- Bart