From juha.manninen62 at gmail.com Tue Dec 1 00:02:04 2020 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Tue, 1 Dec 2020 01:02:04 +0200 Subject: [Lazarus] Issues with apps on Linux... In-Reply-To: <3js9sfhtctchvc3ch93bk6rcad5s4hdeeu@4ax.com> References: <3js9sfhtctchvc3ch93bk6rcad5s4hdeeu@4ax.com> Message-ID: On Mon, Nov 30, 2020 at 3:34 PM Bo Berglund via lazarus < lazarus at lists.lazarus-ide.org> wrote: > I have two questions regarding Lazarus applications on Linux (Ubuntu > 18 Mate): > > 2) Is there a way to make forms transparent on Linux? > Using the AlphaBlend and AlphaBlendValue do not wor while they do on > Windows. > Is there some other way on Linux to make the form body transparent? > I need to see the background through it since I want to "measure" the > object by moving the form on top and adjusting its size to fit. > AlphaBlend + AlphaBlendValue work here with both GTK2 and QT5 bindings. It must be a Mate issue in your case. Juha -------------- next part -------------- An HTML attachment was scrubbed... URL: From bo.berglund at gmail.com Tue Dec 1 00:12:00 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Tue, 01 Dec 2020 00:12:00 +0100 Subject: [Lazarus] Issues with apps on Linux... References: <3js9sfhtctchvc3ch93bk6rcad5s4hdeeu@4ax.com> <0bf0ff83ec22d1c94db3115bf68f3b01@gmx.de> Message-ID: <51vasf9p99d557ff5u1idgujm2f0l3l4h1@4ax.com> On Tue, 1 Dec 2020 00:02:09 +0300, Mehmet Erol Sanliturk via lazarus wrote: >In Fedora with KDE , if you press the left mouse button when the cursor is >on the title bar of a Lazarus form ( and all of the other open windows of >applications ) it becomes transparent to be sufficient to see the >underside of it . Not so in Ubuntu Mate... -- Bo Berglund Developer in Sweden From teresa.williams at gmx.us Wed Dec 2 00:36:29 2020 From: teresa.williams at gmx.us (Teresa Williams) Date: Wed, 2 Dec 2020 00:36:29 +0100 Subject: [Lazarus] CDDB access Message-ID: Hi I need to access CDDB (and also MusicBrainz would be nice) on Linux. I found https://wiki.freepascal.org/CDDB but as that page suggests, the download link is defunct. Are there any other such? In the past I have done this by spawning two bash scripts which use CDDB and write text files. Ugly. Slw. Error-prone (the format of the results is a bit variable). I'm not too proud to do that again, but is there a more elegant way? Teresa From michael at freepascal.org Wed Dec 2 08:02:12 2020 From: michael at freepascal.org (Michael Van Canneyt) Date: Wed, 2 Dec 2020 08:02:12 +0100 (CET) Subject: [Lazarus] CDDB access In-Reply-To: References: Message-ID: On Wed, 2 Dec 2020, Teresa Williams via lazarus wrote: > Hi > > I need to access CDDB (and also MusicBrainz would be nice) on Linux. I found https://wiki.freepascal.org/CDDB but as that page suggests, the download link is defunct. > > Are there any other such? In the past I have done this by spawning two bash scripts which use CDDB and write text files. Ugly. Slw. Error-prone (the format of the results is a bit variable). > > I'm not too proud to do that again, but is there a more elegant way? FPC comes with such units since ages: https://www.freepascal.org/daily/packages/cdrom/index.html Michael. From m.e.sanliturk at gmail.com Wed Dec 2 09:33:21 2020 From: m.e.sanliturk at gmail.com (Mehmet Erol Sanliturk) Date: Wed, 2 Dec 2020 11:33:21 +0300 Subject: [Lazarus] CDDB access In-Reply-To: References: Message-ID: On Wed, Dec 2, 2020 at 2:36 AM Teresa Williams via lazarus < lazarus at lists.lazarus-ide.org> wrote: > Hi > > I need to access CDDB (and also MusicBrainz would be nice) on Linux. I > found https://wiki.freepascal.org/CDDB but as that page suggests, the > download link is defunct. > > Are there any other such? In the past I have done this by spawning two > bash scripts which use CDDB and write text files. Ugly. Slw. Error-prone > (the format of the results is a bit variable). > > I'm not too proud to do that again, but is there a more elegant way? > > Teresa > -- > _______________________________________________ > > freedb.org is down . Instead of that , use https://www.gnudb.org/ Mehmet Erol Sanliturk -------------- next part -------------- An HTML attachment was scrubbed... URL: From pascaldragon at googlemail.com Wed Dec 2 09:59:19 2020 From: pascaldragon at googlemail.com (Sven Barth) Date: Wed, 2 Dec 2020 09:59:19 +0100 Subject: [Lazarus] CDDB access In-Reply-To: References: Message-ID: Michael Van Canneyt via lazarus schrieb am Mi., 2. Dez. 2020, 08:02: > > > On Wed, 2 Dec 2020, Teresa Williams via lazarus wrote: > > > Hi > > > > I need to access CDDB (and also MusicBrainz would be nice) on Linux. I > found https://wiki.freepascal.org/CDDB but as that page suggests, the > download link is defunct. > > > > Are there any other such? In the past I have done this by spawning two > bash scripts which use CDDB and write text files. Ugly. Slw. Error-prone > (the format of the results is a bit variable). > > > > I'm not too proud to do that again, but is there a more elegant way? > > FPC comes with such units since ages: > > https://www.freepascal.org/daily/packages/cdrom/index.html I have added a note to the wiki article that suggests the FPC unit as well as your article about this. Additionally I've added a note about FreeDB being down. Regards, Sven -------------- next part -------------- An HTML attachment was scrubbed... URL: From teresa.williams at gmx.us Wed Dec 2 10:03:55 2020 From: teresa.williams at gmx.us (Teresa Williams) Date: Wed, 2 Dec 2020 10:03:55 +0100 Subject: [Lazarus] CDDB access In-Reply-To: References: Message-ID: Thanks Michael, Sven, Mehmet. I'll investigate in the morning. Teresa > Sent: Wednesday, December 02, 2020 at 8:02 PM > From: "Michael Van Canneyt via lazarus" > To: "Teresa Williams via lazarus" > Cc: "Michael Van Canneyt" > Subject: Re: [Lazarus] CDDB access > > > > On Wed, 2 Dec 2020, Teresa Williams via lazarus wrote: > > > Hi > > > > I need to access CDDB (and also MusicBrainz would be nice) on Linux. I found https://wiki.freepascal.org/CDDB but as that page suggests, the download link is defunct. > > > > Are there any other such? In the past I have done this by spawning two bash scripts which use CDDB and write text files. Ugly. Slw. Error-prone (the format of the results is a bit variable). > > > > I'm not too proud to do that again, but is there a more elegant way? > > FPC comes with such units since ages: > > https://www.freepascal.org/daily/packages/cdrom/index.html > > Michael. > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > From bo.berglund at gmail.com Sun Dec 6 09:34:00 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 06 Dec 2020 09:34:00 +0100 Subject: [Lazarus] Using Chrome API in Lazarus - possible on Linux? Message-ID: I have been looking for ways to create a video downloader for myself using FPC/Lazarus. I already created a video editor using PasLibVlc and ffmpeg and it works pretty well for what I want to do. It needs VLC to be installed in order to show videos and adjust playback speed and audio sync etc. I also would like to make a video downloader with functions not found in programs like for example youtube-dl, specifically being able to download from a streaming site starting from past times. But it clearly should be possible since the browsers (both Chrome and Firefox) have the ability of moving backwards inside the stream and view stuff that was played say a couple of hours ago. Now I have seen a project on-line which uses C# and apparently the Chrome API (since it is a requirement to have Chrome installed). But the author has not published any sources so I cannot see *how* it is being done... And I cannot use that product because I need the downloader to be running on Linux. Is there someone here who has used the Chrome API with Lazarus for anything video related and is willing to share? -- Bo Berglund Developer in Sweden From michael at freepascal.org Sun Dec 6 10:25:52 2020 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 6 Dec 2020 10:25:52 +0100 (CET) Subject: [Lazarus] Using Chrome API in Lazarus - possible on Linux? In-Reply-To: References: Message-ID: On Sun, 6 Dec 2020, Bo Berglund via lazarus wrote: > I have been looking for ways to create a video downloader for myself > using FPC/Lazarus. I already created a video editor using PasLibVlc > and ffmpeg and it works pretty well for what I want to do. It needs > VLC to be installed in order to show videos and adjust playback speed > and audio sync etc. > > I also would like to make a video downloader with functions not found > in programs like for example youtube-dl, specifically being able to > download from a streaming site starting from past times. > > But it clearly should be possible since the browsers (both Chrome and > Firefox) have the ability of moving backwards inside the stream and > view stuff that was played say a couple of hours ago. > > Now I have seen a project on-line which uses C# and apparently the > Chrome API (since it is a requirement to have Chrome installed). > But the author has not published any sources so I cannot see *how* it > is being done... > And I cannot use that product because I need the downloader to be > running on Linux. > > Is there someone here who has used the Chrome API with Lazarus for > anything video related and is willing to share? I never managed to get the Chrome API to work on linux, but an effort is currently underway to make the chromium browser available in Lazarus on all supported platforms. Michael. From fjf.vanleeuwen at quicknet.nl Sun Dec 6 12:22:13 2020 From: fjf.vanleeuwen at quicknet.nl (frans) Date: Sun, 6 Dec 2020 12:22:13 +0100 Subject: [Lazarus] Is TForm.LastActiveControl working correctly? Message-ID: Hi, I'm using Lazarus 2.0.10 on Windows10 and I'm trying to make use of TForm.LastActiveControl. My form has a TButtonpanel with HelpButton and CancelButton visible. There is an Actionlist with 2 actions, each with a Shortcut (F1 and Esc). The form has 3 TLabeledEdit fields. My purpose is that the field that has the focus keeps that (I do that in the FormOnActivate routine) after calling Help by clicking on the HelpButton.  But that is not the case, the focus is placed on that HelpButton. I added some debug lines to check the value of ActiveControl and LastActiveControl in an OnEnter and OnExit routine for each field. The result is that every action I take (use tab of mouse to activate another control) gives the same result: ActiveControl and lastActiveControl allways point to the same control. Is this a bug or is my understanding of lastActiveControl wrong? -- mvg Frans van Leeuwen M 06-51695390 -- Deze e-mail is gecontroleerd op virussen door AVG. http://www.avg.com From wkitty42 at windstream.net Sun Dec 6 16:19:58 2020 From: wkitty42 at windstream.net (wkitty42 at windstream.net) Date: Sun, 6 Dec 2020 10:19:58 -0500 Subject: [Lazarus] Using Chrome API in Lazarus - possible on Linux? In-Reply-To: References: Message-ID: <09a7ed99-ac83-8000-2b0c-56c08eccc415@windstream.net> On 12/6/20 3:34 AM, Bo Berglund via lazarus wrote: > But it clearly should be possible since the browsers (both Chrome and > Firefox) have the ability of moving backwards inside the stream and > view stuff that was played say a couple of hours ago. i'm pretty sure this is allowed or not by the provider in their container used to present the video stream on their page... i say this because i don't see any way of backing up in time on twitch.tv... there is no time progression bar for the stream like on YT... twitch does have a clip function that allows you to go back a few minutes, grab like 60 seconds max in the last maybe 5 minutes and save it to a clip... the only way further back, AFAIK, is to wait for the stream to end and then play back the VOD (video on demand) of the stream... i think if you capture the live stream to a buffer file of some type, then you can go back and forth in your buffer but no further back than where you connected to the stream and started your capture... -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list where it belongs!* From bo.berglund at gmail.com Sun Dec 6 16:50:54 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 06 Dec 2020 16:50:54 +0100 Subject: [Lazarus] Using Chrome API in Lazarus - possible on Linux? References: <09a7ed99-ac83-8000-2b0c-56c08eccc415@windstream.net> Message-ID: <95upsftj54edvf21cvctupec0uhb7aji7v@4ax.com> On Sun, 6 Dec 2020 10:19:58 -0500, wkitty42--- via lazarus wrote: >On 12/6/20 3:34 AM, Bo Berglund via lazarus wrote: >> But it clearly should be possible since the browsers (both Chrome and >> Firefox) have the ability of moving backwards inside the stream and >> view stuff that was played say a couple of hours ago. > > >i'm pretty sure this is allowed or not by the provider in their container used >to present the video stream on their page... i say this because i don't see any >way of backing up in time on twitch.tv... there is no time progression bar for >the stream like on YT... twitch does have a clip function that allows you to go >back a few minutes, grab like 60 seconds max in the last maybe 5 minutes and >save it to a clip... the only way further back, AFAIK, is to wait for the stream >to end and then play back the VOD (video on demand) of the stream... The "rewind" possibility might be limited to some video sources only... But it is easily seen if it is available by opening the stream in say Chrome or FFx and see if one can pull the progress to the left into earlier times. I have looked at twitch and xfinity services but there I am not even able to download *anything* from the command line in Linux. They require a login, which I don't know how to set. >i think if you capture the live stream to a buffer file of some type, then you >can go back and forth in your buffer but no further back than where you >connected to the stream and started your capture... For the streams I want to capture videos from I have now used youtube-dl calls to save the stream as-is from now until as long as it goes. Turns out that these recordings last for exactly 6 hours, then youtube-dl ends the download even if the stream continues. So I set up at jobs spaced 6 hours apart to download the stream as it happens in 6h chunks, as a last resort. These jobs calls a script I have created, which in turn calls youtube-dl, which in the end calls ffmpeg to do the actual job. But then I cannot get the video until the current download process ends so I can extract it from the 6h mp4 file, which is a .mp4.part file until it is finished at which time it converts to mp4. I want to get a specific time slot out of a running youtube stream if possible... (And it *is* possible on Windows using the program I found online, but that is not available for Linux, only Windows and with Chrome installed.) Furhermore, I like to be able to tweak such tools to my liking (using Lazarus) so I need the sourcecode, which is not available. I had a look at how youtube-dl does its thing by using 'ps aux' while it is downloading the stream. Turns out it launches ffmpeg via python for this forward going download with a command line that is almost 1.4 kbytes in length! Cannot understand how they figured that one out... -- Bo Berglund Developer in Sweden From juha.manninen62 at gmail.com Sun Dec 6 19:01:59 2020 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Sun, 6 Dec 2020 20:01:59 +0200 Subject: [Lazarus] Is TForm.LastActiveControl working correctly? In-Reply-To: References: Message-ID: On Sun, Dec 6, 2020 at 1:22 PM frans via lazarus < lazarus at lists.lazarus-ide.org> wrote: > ActiveControl and lastActiveControl always point to the same control. > > Is this a bug or is my understanding of lastActiveControl wrong? > That is how it is implemented. It is set to ActiveControl unless ActiveControl is Nil or a TCustomForm. if (FActiveControl<>nil) and not (FActiveControl is TCustomForm) then FLastActiveControl := FActiveControl; I did not know about LastActiveControl. What is the use of it? TScreen class seems to have it, too. Anyway, you can easily keep track of the previous ActiveControl in your code yourself. Regards, Juha -------------- next part -------------- An HTML attachment was scrubbed... URL: From don.siders at gmail.com Sun Dec 6 21:22:37 2020 From: don.siders at gmail.com (Don Siders) Date: Sun, 6 Dec 2020 15:22:37 -0500 Subject: [Lazarus] Using Chrome API in Lazarus - possible on Linux? Message-ID: >> Is there someone here who has used the Chrome API with >> Lazarus for anything video related and is willing to share? > I never managed to get the Chrome API to work on linux, > but an effort is currently underway to make the chromium > browser available in Lazarus on all supported platforms. @Michael: Is that effort some how related to CEF (Chromium Embedded Framework)? From michael at freepascal.org Sun Dec 6 23:31:21 2020 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 6 Dec 2020 23:31:21 +0100 (CET) Subject: [Lazarus] Using Chrome API in Lazarus - possible on Linux? In-Reply-To: References: Message-ID: On Sun, 6 Dec 2020, Don Siders via lazarus wrote: >>> Is there someone here who has used the Chrome API with >>> Lazarus for anything video related and is willing to share? > >> I never managed to get the Chrome API to work on linux, >> but an effort is currently underway to make the chromium >> browser available in Lazarus on all supported platforms. > > @Michael: > > Is that effort some how related to CEF (Chromium Embedded Framework)? Yes. Michael. From AgriMensor at captiverelease.com Mon Dec 7 23:40:05 2020 From: AgriMensor at captiverelease.com (Stephen Bullas) Date: Mon, 7 Dec 2020 15:40:05 -0700 (MST) Subject: [Lazarus] Elongated sub-menu width using TMainMenu Message-ID: <1607380805251-0.post@n3.nabble.com> I'm getting a weird error when running the latest Lazarus IDE or when running my application's .exe file (see image) under Windows 10.When I run the prog and then click on the 'File' menu I have created, the width of the sub-menus runs off the right-hand side of the screen, but doesn't do so when I click on any other items on the menu bar.The problem has only recently appeared - it was working fine up until a few days ago.I have checked the Caption length for each of the File sub-menus and there is no problem there.Can anyone help, please? -- Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From pascal at riekenberg.eu Tue Dec 8 09:25:33 2020 From: pascal at riekenberg.eu (Pascal Riekenberg) Date: Tue, 8 Dec 2020 09:25:33 +0100 (CET) Subject: [Lazarus] Elongated sub-menu width using TMainMenu In-Reply-To: <1607380805251-0.post@n3.nabble.com> References: <1607380805251-0.post@n3.nabble.com> Message-ID: <1676930142.93455.1607415934217@ox.hosteurope.de> Stephen, please report to bugtracker with minimal sample project and exact version information for Lazarus, FPC and Windows. Pascal > Stephen Bullas via lazarus hat am 07.12.2020 23:40 geschrieben: > > > I'm getting a weird error when running the latest Lazarus IDE or when running my application's .exe file (see image) under Windows 10. When I run the prog and then click on the 'File' menu I have created, the width of the sub-menus runs off the right-hand side of the screen, but doesn't do so when I click on any other items on the menu bar. The problem has only recently appeared - it was working fine up until a few days ago. I have checked the Caption length for each of the File sub-menus and there is no problem there. Can anyone help, please? > > --------------------------------------------- > Sent from the Free Pascal - Lazarus mailing list archive http://free-pascal-lazarus.989080.n3.nabble.com/ at Nabble.com. > -- > _______________________________________________ > 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 Wed Dec 9 01:56:24 2020 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Wed, 9 Dec 2020 02:56:24 +0200 Subject: [Lazarus] Designer speedup, issue #37706, Sven Barth Message-ID: Partly inspired by issue https://bugs.freepascal.org/view.php?id=37706 I profiled Lazarus code with Valgrind to find what could cause such a slowdown in form designer. I didn't see any serious slowdown myself but clearly the designer eats more resources than it should. Registered components were searched all the time by class name. I changed the cache to use class type instead. It actually simplified and sped up things. It is function TBaseComponentPalette.FindRegComponent (was FindComponent) which is called also when mouse moves over the designer. The biggest change is in r64182. In r64184 I changed more code to use the component class type cache. By surprise it caused extreme slowdown. Selecting a component in designer took > 5 seconds with QT5 bindings, but the CPU was not under load. In addition with GTK2 bindings the selection dots didn't show. All that was gone after a clean build! What could cause it? I have no idea. A Sleep() call or Thread.WaitFor could cause a delay without CPU load but the code had neither. Anyway please test with the latest changes. Build clean if you need to. I want to optimize function TPkgManager.GetUnitsAndDepsForComps. It is part of Sven Barth's recent addition. It has 2 nested for-loops. The inner is : for CurUnitIdx:=0 to CurUnitNames.Count-1 do just after an item is added to CurUnitNames. Maybe the loops should go after each other instead of being nested. Now it may indeed be slow with a densely populated form. Comments? Regards, Juha -------------- next part -------------- An HTML attachment was scrubbed... URL: From juha.manninen62 at gmail.com Wed Dec 9 12:53:27 2020 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Wed, 9 Dec 2020 13:53:27 +0200 Subject: [Lazarus] Designer speedup, issue #37706, Sven Barth In-Reply-To: References: Message-ID: On Wed, Dec 9, 2020 at 2:56 AM Juha Manninen wrote: > I want to optimize function TPkgManager.GetUnitsAndDepsForComps. > Actually that function is OK. I finally understood what it does. In r64188 I changed MainIDE.PropHookPersistentAdded so that it gets dependencies only for the newly added component instead of all components on a form. It surely affects speed with densely populated forms. Please test. Regards, Juha -------------- next part -------------- An HTML attachment was scrubbed... URL: From vojtech.cihak at atlas.cz Wed Dec 9 15:39:08 2020 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=c4=9bch_=c4=8cih=c3=a1k?=) Date: Wed, 09 Dec 2020 15:39:08 +0100 Subject: [Lazarus] =?utf-8?q?Lazarus_=28idescout=29_cannot_be_compiled_aft?= =?utf-8?q?er_64182?= Message-ID: <20201209153908.13665F1D@atlas.cz> Hi,   error is unit frmscout.pas, lines 676 and 678 (frmscout.pas(676,35) Error: Identifier idents no member "Comps").   Reason is that the line 294 of componentreg.pas:    property Comps: TRegisteredComponentList read fComps;   was removed (accidentaly? because the private field fComps is still there). See: https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/ideintf/componentreg.pas?root=lazarus&r1=64182&r2=64181&pathrev=64182   Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From juha.manninen62 at gmail.com Wed Dec 9 15:53:20 2020 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Wed, 9 Dec 2020 16:53:20 +0200 Subject: [Lazarus] Lazarus (idescout) cannot be compiled after 64182 In-Reply-To: <20201209153908.13665F1D@atlas.cz> References: <20201209153908.13665F1D@atlas.cz> Message-ID: On Wed, Dec 9, 2020 at 4:39 PM Vojtěch Čihák via lazarus < lazarus at lists.lazarus-ide.org> wrote: > property Comps: TRegisteredComponentList read fComps; > > was removed (accidentaly? because the private field fComps is still there). > Oops, yes. I restored it in r64190. Regards, Juha -------------- next part -------------- An HTML attachment was scrubbed... URL: From vojtech.cihak at atlas.cz Wed Dec 9 16:10:54 2020 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=c4=9bch_=c4=8cih=c3=a1k?=) Date: Wed, 09 Dec 2020 16:10:54 +0100 Subject: [Lazarus] =?utf-8?q?Lazarus_=28idescout=29_cannot_be_compiled_aft?= =?utf-8?q?er_64182?= In-Reply-To: References: <20201209153908.13665F1D@atlas.cz> Message-ID: <20201209161054.D2918CE0@atlas.cz> Thanks. ______________________________________________________________ > Od: "Juha Manninen via lazarus" > Komu: "Lazarus mailing list" > Datum: 09.12.2020 15:53 > Předmět: Re: [Lazarus] Lazarus (idescout) cannot be compiled after 64182 > Oops, yes. I restored it in r64190.Regards,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 Wed Dec 9 19:25:49 2020 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Wed, 9 Dec 2020 20:25:49 +0200 Subject: [Lazarus] Profiling with Valgrind In-Reply-To: References: Message-ID: There is another wiki page about Valgrind : https://wiki.freepascal.org/Debugging_with_Valgrind It is not very good. It does not even mention the callgrind tool. What more, the page name is "Debugging with Valgrind" while it should be "Profiling with Valgrind". If somebody wants to improve instructions for profiling, please remove this Valgrind page after maybe merging useful information to the comprehensive Profiling page. Regards, Juha -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Sat Dec 12 16:01:59 2020 From: michael at freepascal.org (Michael Van Canneyt) Date: Sat, 12 Dec 2020 16:01:59 +0100 (CET) Subject: [Lazarus] Package requirement dialog & OLPM ? Message-ID: Hi, On my Mac, the "new package requirement" dialog shows the IDEIntf package as an online package (see attached screenshot req.png). As a result, I can't select it without 'installing' it first, which is of course total nonsense as it is already installed. The lazarus on my Mac is a 2.0.10, no modifications except it was recompiled with some extra packages... I tried with the original 2.0.10 binary, same behaviour. On Linux, where I use trunk Lazarus and where I have not installed the online package manager, I can select the IDEIntf package (see attached reqlinux.png) But when I uninstall the OLPM on the Mac, I can no longer select the IDEIntf package at all, despite that it is in the packagefiles.xml file. (which looks quite the same as the one on my Linux machine) How can this be, and how can I fix this silly Lazarus behaviour on the Mac ? Michael. -------------- next part -------------- A non-text attachment was scrubbed... Name: req.png Type: image/png Size: 87020 bytes Desc: URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: reqlinux.png Type: image/png Size: 18139 bytes Desc: URL: From juha.manninen62 at gmail.com Sat Dec 12 23:28:37 2020 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Sun, 13 Dec 2020 00:28:37 +0200 Subject: [Lazarus] Package requirement dialog & OLPM ? In-Reply-To: References: Message-ID: On Sat, Dec 12, 2020 at 5:14 PM Michael Van Canneyt via lazarus < lazarus at lists.lazarus-ide.org> wrote: > On my Mac, the "new package requirement" dialog shows the IDEIntf package > as an online > package (see attached screenshot req.png). As a result, I can't select it > without > 'installing' it first, which is of course total nonsense as it is already > installed. The lazarus on my Mac is a 2.0.10, no modifications except it > was > recompiled with some extra packages... > Please try Lazarus trunk. I remember there was a problem caused by uninitialized data which manifested itself only on MacOS for some reason. It was fixed in trunk. Juha -------------- next part -------------- An HTML attachment was scrubbed... URL: From larrydalton71 at gmail.com Mon Dec 14 22:59:26 2020 From: larrydalton71 at gmail.com (Larry Dalton) Date: Mon, 14 Dec 2020 16:59:26 -0500 Subject: [Lazarus] TBitbtn Message-ID: <135DDECE-8659-48C3-9D51-534D7A233B8D@gmail.com> I am trying to create a tcomponent that will be a tpanel with align set at albottom that will have several tbitbtns, the first of which will be kind bkclose. I want to set that button’s onclick procedure to close the form that the tpanel is on. What is the best way to write the onclick procedure? Sent from my iPhone From juha.manninen62 at gmail.com Tue Dec 15 12:16:47 2020 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Tue, 15 Dec 2020 13:16:47 +0200 Subject: [Lazarus] TBitbtn In-Reply-To: <135DDECE-8659-48C3-9D51-534D7A233B8D@gmail.com> References: <135DDECE-8659-48C3-9D51-534D7A233B8D@gmail.com> Message-ID: On Mon, Dec 14, 2020 at 11:59 PM Larry Dalton via lazarus < lazarus at lists.lazarus-ide.org> wrote: > I am trying to create a tcomponent that will be a tpanel with align set at > albottom that will have several tbitbtns, the first of which will be kind > bkclose. I want to set that button’s onclick procedure to close the form > that the tpanel is on. What is the best way to write the onclick procedure? > TButtonPanel already does what you are planning. You can study its code and then either inherit your own component from it or create a new one. Regards, Juha -------------- next part -------------- An HTML attachment was scrubbed... URL: From juha.manninen62 at gmail.com Wed Dec 16 12:03:09 2020 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Wed, 16 Dec 2020 13:03:09 +0200 Subject: [Lazarus] Feedback for a patch supporting of EUDC to PUA for Microsoft mapping Message-ID: Regarding issue : https://bugs.freepascal.org/view.php?id=38206 The latest patch for asiancodepagefunctions.inc compiles OK. Anybody who has knowledge of those encodings, please test and give feedback. I don't know how to test it myself. Regards, Juha -------------- next part -------------- An HTML attachment was scrubbed... URL: From pascal at riekenberg.eu Mon Dec 21 20:12:45 2020 From: pascal at riekenberg.eu (Pascal Riekenberg) Date: Mon, 21 Dec 2020 20:12:45 +0100 (CET) Subject: [Lazarus] Getting sourceline from stacktrace address Message-ID: <693662976.79521.1608577966360@ox.hosteurope.de> Good evening, how can i get the sourceline from a stacktrace address? I use heaptrc to find a double free. The problem is that producing the stacktrace on double free also runs into the error and only produces the list of addresses. KeepReleased is not an option here due to limited memory. 48 GB is not enough ;-( Lazarus trunk, fpc trunk, x86_64, fpDebug, Dwarf3, Windows 10 20H2 Pascal -------------- next part -------------- An HTML attachment was scrubbed... URL: From luca at wetron.es Mon Dec 21 20:21:18 2020 From: luca at wetron.es (Luca Olivetti) Date: Mon, 21 Dec 2020 20:21:18 +0100 Subject: [Lazarus] Getting sourceline from stacktrace address In-Reply-To: <693662976.79521.1608577966360@ox.hosteurope.de> References: <693662976.79521.1608577966360@ox.hosteurope.de> Message-ID: <4be491c2-e253-0385-6354-84d5177904a3@wetron.es> El 21/12/20 a les 20:12, Pascal Riekenberg via lazarus ha escrit: > Good evening, > > how can i get the sourceline from a stacktrace address? > > I use heaptrc to find a double free. The problem is that producing the > stacktrace on double free > also runs into the error and only produces the list of addresses. > KeepReleased is not an option here > due to limited memory. 48 GB is not enough ;-( > > Lazarus trunk, fpc trunk, x86_64, fpDebug, Dwarf3, Windows 10 20H2 > I don't know with X86_64, but with windows 32 I load the exe in gdb then info line *0x01234abcd Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From lazarus at mfriebe.de Mon Dec 21 20:27:52 2020 From: lazarus at mfriebe.de (Martin Frb) Date: Mon, 21 Dec 2020 20:27:52 +0100 Subject: [Lazarus] Getting sourceline from stacktrace address In-Reply-To: <693662976.79521.1608577966360@ox.hosteurope.de> References: <693662976.79521.1608577966360@ox.hosteurope.de> Message-ID: <941a5ba1-ab38-cf63-fe14-7682b4a94348@mfriebe.de> On 21/12/2020 20:12, Pascal Riekenberg via lazarus wrote: > Good evening, > > how can i get the sourceline from a stacktrace address? > > I use heaptrc to find a double free. The problem is that producing the > stacktrace on double free > also runs into the error and only produces the list of addresses. > KeepReleased is not an option here > due to limited memory. 48 GB is not enough ;-( > > Lazarus trunk, fpc trunk, x86_64, fpDebug, Dwarf3, Windows 10 20H2 > If you have the exe, and the exe has debug info: - paste the stacktrace into menu: View > Leaks and traces - Press "Resolve" and select the exe. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at mfriebe.de Mon Dec 21 20:30:22 2020 From: lazarus at mfriebe.de (Martin Frb) Date: Mon, 21 Dec 2020 20:30:22 +0100 Subject: [Lazarus] Getting sourceline from stacktrace address In-Reply-To: <941a5ba1-ab38-cf63-fe14-7682b4a94348@mfriebe.de> References: <693662976.79521.1608577966360@ox.hosteurope.de> <941a5ba1-ab38-cf63-fe14-7682b4a94348@mfriebe.de> Message-ID: <6869edb1-0c29-c3ea-0f9a-da46336f2ce5@mfriebe.de> On 21/12/2020 20:27, Martin Frb via lazarus wrote: > On 21/12/2020 20:12, Pascal Riekenberg via lazarus wrote: >> Good evening, >> >> how can i get the sourceline from a stacktrace address? >> >> I use heaptrc to find a double free. The problem is that producing >> the stacktrace on double free >> Also if you are on Linux: compile with: -gv And use valgrind --tool=memcheck yourapp This should get you much better info. - Trace for access after free - Trace for the free call - Trace where it was allocated Though, your app will run a lot slower in valgrind.... -------------- next part -------------- An HTML attachment was scrubbed... URL: From pascal at riekenberg.eu Mon Dec 21 20:54:42 2020 From: pascal at riekenberg.eu (Pascal Riekenberg) Date: Mon, 21 Dec 2020 20:54:42 +0100 (CET) Subject: [Lazarus] Getting sourceline from stacktrace address In-Reply-To: <4be491c2-e253-0385-6354-84d5177904a3@wetron.es> References: <693662976.79521.1608577966360@ox.hosteurope.de> <4be491c2-e253-0385-6354-84d5177904a3@wetron.es> Message-ID: <1094337126.79598.1608580482901@ox.hosteurope.de> Thanks! That works. But with many manual copy and paste. Pascal > Luca Olivetti via lazarus hat am 21.12.2020 20:21 geschrieben: > > > El 21/12/20 a les 20:12, Pascal Riekenberg via lazarus ha escrit: > > Good evening, > > > > how can i get the sourceline from a stacktrace address? > > > > I use heaptrc to find a double free. The problem is that producing the > > stacktrace on double free > > also runs into the error and only produces the list of addresses. > > KeepReleased is not an option here > > due to limited memory. 48 GB is not enough ;-( > > > > Lazarus trunk, fpc trunk, x86_64, fpDebug, Dwarf3, Windows 10 20H2 > > > > I don't know with X86_64, but with windows 32 I load the exe in gdb then > > info line *0x01234abcd > > Bye > -- > Luca Olivetti > Wetron Automation Technology http://www.wetron.es/ > Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus From pascal at riekenberg.eu Mon Dec 21 20:55:25 2020 From: pascal at riekenberg.eu (Pascal Riekenberg) Date: Mon, 21 Dec 2020 20:55:25 +0100 (CET) Subject: [Lazarus] Getting sourceline from stacktrace address In-Reply-To: <941a5ba1-ab38-cf63-fe14-7682b4a94348@mfriebe.de> References: <693662976.79521.1608577966360@ox.hosteurope.de> <941a5ba1-ab38-cf63-fe14-7682b4a94348@mfriebe.de> Message-ID: <969079213.79600.1608580526039@ox.hosteurope.de> Thanks! This works even better and also with direct jump to source. Pascal > Martin Frb via lazarus hat am 21.12.2020 20:27 geschrieben: > > > On 21/12/2020 20:12, Pascal Riekenberg via lazarus wrote: > > > > Good evening, > > > > how can i get the sourceline from a stacktrace address? > > > > I use heaptrc to find a double free. The problem is that producing the stacktrace on double free > > also runs into the error and only produces the list of addresses. KeepReleased is not an option here > > due to limited memory. 48 GB is not enough ;-( > > > > Lazarus trunk, fpc trunk, x86_64, fpDebug, Dwarf3, Windows 10 20H2 > > > > > > > If you have the exe, and the exe has debug info: > - paste the stacktrace into menu: View > Leaks and traces > - Press "Resolve" and select the exe. > -- > _______________________________________________ > 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 lazarus at mfriebe.de Mon Dec 21 21:09:55 2020 From: lazarus at mfriebe.de (Martin Frb) Date: Mon, 21 Dec 2020 21:09:55 +0100 Subject: [Lazarus] Getting sourceline from stacktrace address In-Reply-To: <1094337126.79598.1608580482901@ox.hosteurope.de> References: <693662976.79521.1608577966360@ox.hosteurope.de> <4be491c2-e253-0385-6354-84d5177904a3@wetron.es> <1094337126.79598.1608580482901@ox.hosteurope.de> Message-ID: <86bf8e14-8a59-24ee-5efe-5f9929edd363@mfriebe.de> On 21/12/2020 20:54, Pascal Riekenberg via lazarus wrote: > Thanks! That works. But with many manual copy and paste. > You can redirect the output to a foo.trc file. Then load it. (must end in trc). You can also paste more than one trace in a single go. (including the lines that heaptrc outputs between the traces / and even include other/random lines/output) From lazarus at mfriebe.de Mon Dec 21 21:11:27 2020 From: lazarus at mfriebe.de (Martin Frb) Date: Mon, 21 Dec 2020 21:11:27 +0100 Subject: [Lazarus] Getting sourceline from stacktrace address In-Reply-To: <969079213.79600.1608580526039@ox.hosteurope.de> References: <693662976.79521.1608577966360@ox.hosteurope.de> <941a5ba1-ab38-cf63-fe14-7682b4a94348@mfriebe.de> <969079213.79600.1608580526039@ox.hosteurope.de> Message-ID: On 21/12/2020 20:55, Pascal Riekenberg via lazarus wrote: > Thanks! This works even better and also with direct jump to source. > The resolved lines from the heaptrc should also jump to source. If not, can I have examples? And  a screenshot what was shown after resolve (or the exe to resolve the example)? -------------- next part -------------- An HTML attachment was scrubbed... URL: From pascal at riekenberg.eu Mon Dec 21 21:33:12 2020 From: pascal at riekenberg.eu (Pascal Riekenberg) Date: Mon, 21 Dec 2020 21:33:12 +0100 (CET) Subject: [Lazarus] Getting sourceline from stacktrace address In-Reply-To: References: <693662976.79521.1608577966360@ox.hosteurope.de> <941a5ba1-ab38-cf63-fe14-7682b4a94348@mfriebe.de> <969079213.79600.1608580526039@ox.hosteurope.de> Message-ID: <511132804.79724.1608582793212@ox.hosteurope.de> > Martin Frb via lazarus hat am 21.12.2020 21:11 geschrieben: > > > On 21/12/2020 20:55, Pascal Riekenberg via lazarus wrote: > > > > Thanks! This works even better and also with direct jump to source. > > > > > > > The resolved lines from the heaptrc should also jump to source. > Yes, works like a charm ;-) What about resolving to exe of current project instead of searching for exe manualy, at least as option? > If not, can I have examples? > > And a screenshot what was shown after resolve (or the exe to resolve the example)? > -- > _______________________________________________ > 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 lazarus at mfriebe.de Mon Dec 21 22:57:22 2020 From: lazarus at mfriebe.de (Martin Frb) Date: Mon, 21 Dec 2020 22:57:22 +0100 Subject: [Lazarus] Getting sourceline from stacktrace address In-Reply-To: <511132804.79724.1608582793212@ox.hosteurope.de> References: <693662976.79521.1608577966360@ox.hosteurope.de> <941a5ba1-ab38-cf63-fe14-7682b4a94348@mfriebe.de> <969079213.79600.1608580526039@ox.hosteurope.de> <511132804.79724.1608582793212@ox.hosteurope.de> Message-ID: <86d98a94-8e24-0be6-ba65-4419d2682eb2@mfriebe.de> On 21/12/2020 21:33, Pascal Riekenberg via lazarus wrote: >> The resolved lines from the heaptrc should also jump to source. > Yes, works like a charm ;-) > > What about resolving to exe of current project instead of searching > for exe manualy, at least as option? > Its an idea, yes. The original use case was for dealing with traces from releases. - build your release (with ability to log traces to a file) with debug line - take a copy - strip the release / ship it Now if anyone got an error in the release, they could send the logfile, and you could use the addresses, to get full source info. But it then also became useful, because the build in trace dump would sometimes stop resolving (if it encountered just ONE address that did not resolve). So for that, the current exe is an option. Important is, that the exe was not rebuild since the trace was done. => New build => new address to line mapping (at least potentially). You can make a feature request. But it will be a while before I can even look at it. -------------- next part -------------- An HTML attachment was scrubbed... URL: From leobronstain at gmail.com Sat Dec 26 01:49:36 2020 From: leobronstain at gmail.com (Leyba Bronstain) Date: Sat, 26 Dec 2020 03:49:36 +0300 Subject: [Lazarus] Issues getting sources from the repository Message-ID: <2b527e26-fd3d-a5e0-beca-02795661a2c1@gmail.com> Hi guys. When I try to get the fpc/lazarus source code from the repository using the svn-client, the server drops the connection. These cases are observed several times during the process. I have to run the svn client several times. It looks something like this C:\Users\leyba>md c:\test C:\Users\leyba>cd c:\test C:\test>svn co https://svn.freepascal.org/svn/fpc/trunk fpc_trunk A    fpc_trunk\compiler svn: E120108: Error running context: The server unexpectedly closed the connection. C:\test>svn cleanup fpc_trunk C:\test>svn co https://svn.freepascal.org/svn/fpc/trunk fpc_trunk etc. Somebody tell me pls, what happened? -- /-- with best regards, Zoltanleo aka Док/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From pascaldragon at googlemail.com Sat Dec 26 10:05:28 2020 From: pascaldragon at googlemail.com (Sven Barth) Date: Sat, 26 Dec 2020 10:05:28 +0100 Subject: [Lazarus] Issues getting sources from the repository In-Reply-To: <2b527e26-fd3d-a5e0-beca-02795661a2c1@gmail.com> References: <2b527e26-fd3d-a5e0-beca-02795661a2c1@gmail.com> Message-ID: Leyba Bronstain via lazarus schrieb am Sa., 26. Dez. 2020, 01:49: > Hi guys. > > When I try to get the fpc/lazarus source code from the repository using > the svn-client, the server drops the connection. These cases are observed > several times during the process. I have to run the svn client several > times. It looks something like this > > C:\Users\leyba>md c:\test > C:\Users\leyba>cd c:\test > C:\test>svn co https://svn.freepascal.org/svn/fpc/trunk fpc_trunk > A fpc_trunk\compiler > > svn: E120108: Error running context: The server unexpectedly closed the > connection. > C:\test>svn cleanup fpc_trunk > C:\test>svn co https://svn.freepascal.org/svn/fpc/trunk fpc_trunk > > etc. > > Somebody tell me pls, what happened? > Instead of cleanup and another checkout simply change into the directory and do a "svn update" which will continue the checkout. Repeat until done. Regards, Sven > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sysrpl at gmail.com Sat Dec 26 10:05:37 2020 From: sysrpl at gmail.com (Anthony Walter) Date: Sat, 26 Dec 2020 04:05:37 -0500 Subject: [Lazarus] Open Source IDE Written Using Delphi Message-ID: I thought this bit of information might be of interest and useful to us Lazarus people. Apparently Embarcadero has forked the Bloodshed IDE and rewritten it to run natively using Delphi. Although this is a C++ IDE, it's lightweight, fast, and free open source software. It may be worth our effort to examine it and see if it contains any parts that are innovative, then either fork or be inspired by some of their code to bring about Lazarus enhancements. I believe this is totally within the spirit of the open source movement. At the minimum it would be nice to look at the Pascal source code of another IDE and determine how someone else has decided to implement existing and different features, laying the way for using that knowledge to improve upon Lazarus. https://blogs.embarcadero.com/dev-c-is-a-low-memory-windows-native-c-ide-built-in-delphi/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From juha.manninen62 at gmail.com Sat Dec 26 10:24:29 2020 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Sat, 26 Dec 2020 11:24:29 +0200 Subject: [Lazarus] Issues getting sources from the repository In-Reply-To: <2b527e26-fd3d-a5e0-beca-02795661a2c1@gmail.com> References: <2b527e26-fd3d-a5e0-beca-02795661a2c1@gmail.com> Message-ID: On Sat, Dec 26, 2020 at 2:49 AM Leyba Bronstain via lazarus < lazarus at lists.lazarus-ide.org> wrote: > Somebody tell me pls, what happened? > It might be the same problem that I had earlier this year. On my Linux I got : svn: E120106: ra_serf: The server sent a truncated HTTP response body. again and again after just a few files were updated. All other internet traffic worked, including streaming videos. I have a Wifi router using 4G mobile phone network. It turned out to be bad. I tested with my Android phone as a Wifi hotspot and "svn co" worked. Then I bought a new router. Maxim Ganetsky had a similar problem on Windows and the reason was buggy WiFi drivers. It is a mystery why only Subversion in the FPC server is sensitive for the internet connection quality. Subversion in SourceForge worked. Regards, Juha -------------- next part -------------- An HTML attachment was scrubbed... URL: From leobronstain at gmail.com Sat Dec 26 10:37:04 2020 From: leobronstain at gmail.com (=?UTF-8?B?0JvQtdCyINCR0YDQvtC90YjRgtC10LnQvQ==?=) Date: Sat, 26 Dec 2020 12:37:04 +0300 Subject: [Lazarus] Issues getting sources from the repository In-Reply-To: References: <2b527e26-fd3d-a5e0-beca-02795661a2c1@gmail.com> Message-ID: <1769e689a00.27ef.bf752abec8ccb817190c8de93e854ab0@gmail.com> Hi Sven. Thank you for answer. But... I wanted to find out the reason why the server is constantly connecting. This has been happening regularly lately. Sven Barth via lazarus 26 декабря 2020 г. 12:05:50 ПП написал: > Leyba Bronstain via lazarus schrieb am Sa., > 26. Dez. 2020, 01:49: > Hi guys. > > When I try to get the fpc/lazarus source code from the repository using the > svn-client, the server drops the connection. These cases are observed > several times during the process. I have to run the svn client several > times. It looks something like this > C:\Users\leyba>md c:\test > C:\Users\leyba>cd c:\test > C:\test>svn co https://svn.freepascal.org/svn/fpc/trunk fpc_trunk > A fpc_trunk\compiler > > svn: E120108: Error running context: The server unexpectedly closed the > connection. > C:\test>svn cleanup fpc_trunk > C:\test>svn co https://svn.freepascal.org/svn/fpc/trunk fpc_trunk > > etc. > > Somebody tell me pls, what happened? > Instead of cleanup and another checkout simply change into the directory > and do a "svn update" which will continue the checkout. Repeat until done. > > Regards, > Sven > > > -- > _______________________________________________ > 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 leobronstain at gmail.com Sat Dec 26 10:41:16 2020 From: leobronstain at gmail.com (=?UTF-8?B?0JvQtdCyINCR0YDQvtC90YjRgtC10LnQvQ==?=) Date: Sat, 26 Dec 2020 12:41:16 +0300 Subject: [Lazarus] Issues getting sources from the repository In-Reply-To: References: <2b527e26-fd3d-a5e0-beca-02795661a2c1@gmail.com> Message-ID: <1769e6c7260.27ef.bf752abec8ccb817190c8de93e854ab0@gmail.com> Hi Juha. Hmmm... You are probably right. I recently changed my wifi router and internet provider Juha Manninen via lazarus 26 декабря 2020 г. 12:24:47 ПП написал: > On Sat, Dec 26, 2020 at 2:49 AM Leyba Bronstain via lazarus > wrote: > > > Somebody tell me pls, what happened? > > It might be the same problem that I had earlier this year. On my Linux I got : > svn: E120106: ra_serf: The server sent a truncated HTTP response body. > again and again after just a few files were updated. All other internet > traffic worked, including streaming videos. > I have a Wifi router using 4G mobile phone network. It turned out to be > bad. I tested with my Android phone as a Wifi hotspot and "svn co" worked. > Then I bought a new router. > Maxim Ganetsky had a similar problem on Windows and the reason was buggy > WiFi drivers. > > > It is a mystery why only Subversion in the FPC server is sensitive for the > internet connection quality. Subversion in SourceForge worked. > > > Regards, > 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 jean.suzineau at wanadoo.fr Sat Dec 26 10:56:30 2020 From: jean.suzineau at wanadoo.fr (Jean SUZINEAU) Date: Sat, 26 Dec 2020 10:56:30 +0100 Subject: [Lazarus] *** SPAM *** Open Source IDE Written Using Delphi In-Reply-To: References: Message-ID: <6e3890ee-ba23-9a0a-48f5-0967b727040a@wanadoo.fr> It's nice that Embarcadero comes back to a Pascal IDE build with Pascal. It's seems this IDE is compiled with Delphi 7, with .bat and .exe files, I imagine it's windows only ? May be it would have been nice that they sponsor Lazarus ;-) ? Lazarus runs on nearly every platform where you want to develop, Windows, x86 Linux, Raspberry, Mac ... I imagine it would be complicated to reconcile the delphi bpl package concept with lazarus package concept. From juha.manninen62 at gmail.com Sat Dec 26 11:28:28 2020 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Sat, 26 Dec 2020 12:28:28 +0200 Subject: [Lazarus] Issues getting sources from the repository In-Reply-To: <1769e6c7260.27ef.bf752abec8ccb817190c8de93e854ab0@gmail.com> References: <2b527e26-fd3d-a5e0-beca-02795661a2c1@gmail.com> <1769e6c7260.27ef.bf752abec8ccb817190c8de93e854ab0@gmail.com> Message-ID: On Sat, Dec 26, 2020 at 11:41 AM Лев Бронштейн via lazarus < lazarus at lists.lazarus-ide.org> wrote: > Hmmm... You are probably right. I recently changed my wifi router and > internet provider > It would be nice to know why only the FPC's Subversion installation is so sensitive. Now at least 3 people have had problems with it. For me everything else worked. Big downloads, streaming HD video, Subversion in Sourceforge ... I guess I would still happily use my old router without this one single problem with FPC's Subversion. Juha -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglists at geldenhuys.co.uk Sat Dec 26 11:29:37 2020 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sat, 26 Dec 2020 10:29:37 +0000 Subject: [Lazarus] Issues getting sources from the repository In-Reply-To: <1769e689a00.27ef.bf752abec8ccb817190c8de93e854ab0@gmail.com> References: <2b527e26-fd3d-a5e0-beca-02795661a2c1@gmail.com> <1769e689a00.27ef.bf752abec8ccb817190c8de93e854ab0@gmail.com> Message-ID: <1eeccee1-c481-fb9f-88cc-7cee644de1f0@geldenhuys.co.uk> On 26/12/2020 9:37 am, Лев Бронштейн via lazarus wrote: > I wanted to find out the reason why the server is constantly connecting. > This has been happening regularly lately. Feel free to try out the unofficial Lazarus Git mirror. It tracks the "master" branch only, fetches the latest commit every 15 minutes. It might be unofficial, but has been running for the last 8 years already. :-) First time only: git clone https://github.com/graemeg/lazarus.git Subsequent updates: cd lazarus git pull More details here: https://wiki.lazarus.freepascal.org/git_mirrors 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 mailinglists at geldenhuys.co.uk Sat Dec 26 11:39:46 2020 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sat, 26 Dec 2020 10:39:46 +0000 Subject: [Lazarus] *** SPAM *** Open Source IDE Written Using Delphi In-Reply-To: <6e3890ee-ba23-9a0a-48f5-0967b727040a@wanadoo.fr> References: <6e3890ee-ba23-9a0a-48f5-0967b727040a@wanadoo.fr> Message-ID: On 26/12/2020 9:56 am, Jean SUZINEAU via lazarus wrote: > It's seems this IDE is compiled with Delphi 7, with .bat and .exe files, > I imagine it's windows only ? > > May be it would have been nice that they sponsor Lazarus ;-) ? In my honest opinion, I don't think there is anything WE can learn from Embarcadero (other than how not to do things). But I do believe there is a lot they can learn from us. The Free Pascal and Larazus community should be leading the future of the Object Pascal languge, not Embarcadero. 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 sysrpl at gmail.com Sat Dec 26 12:15:46 2020 From: sysrpl at gmail.com (Anthony Walter) Date: Sat, 26 Dec 2020 06:15:46 -0500 Subject: [Lazarus] *** SPAM *** Open Source IDE Written Using Delphi In-Reply-To: References: <6e3890ee-ba23-9a0a-48f5-0967b727040a@wanadoo.fr> Message-ID: Why was the subject of my submission changed with "*** SPAM ***" inserted? Curious -------------- next part -------------- An HTML attachment was scrubbed... URL: From jean.suzineau at wanadoo.fr Sat Dec 26 12:21:37 2020 From: jean.suzineau at wanadoo.fr (Jean SUZINEAU) Date: Sat, 26 Dec 2020 12:21:37 +0100 Subject: [Lazarus] Open Source IDE Written Using Delphi In-Reply-To: References: <6e3890ee-ba23-9a0a-48f5-0967b727040a@wanadoo.fr> Message-ID: <2dd31a89-8cc8-df34-2dd3-99c07956340d@wanadoo.fr> +1 I agree From jean.suzineau at wanadoo.fr Sat Dec 26 12:26:44 2020 From: jean.suzineau at wanadoo.fr (Jean SUZINEAU) Date: Sat, 26 Dec 2020 12:26:44 +0100 Subject: [Lazarus] Open Source IDE Written Using Delphi In-Reply-To: References: <6e3890ee-ba23-9a0a-48f5-0967b727040a@wanadoo.fr> Message-ID: Sorry, I didn't notice. I think it's my mail provider Orange/Wanadoo, the french phone operator. Sometimes they arbitrarily insert *** SPAM *** in the subject of some mails before I receive them . I should have removed it by hand. Le 26/12/2020 à 12:15, Anthony Walter via lazarus a écrit : > Why was the subject of my submission changed with "*** SPAM ***" > inserted? > > Curious > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gabor at poczta.onet.pl Sat Dec 26 15:56:17 2020 From: gabor at poczta.onet.pl (gabor) Date: Sat, 26 Dec 2020 15:56:17 +0100 Subject: [Lazarus] Open Source IDE Written Using Delphi In-Reply-To: References: Message-ID: <875c46f4-45b8-5d97-08ed-fdeed6022747@poczta.onet.pl> W dniu 2020-12-26 o 10:05, Anthony Walter via lazarus pisze: > I thought this bit of information might be of interest and useful to us > Lazarus people. > > Apparently Embarcadero has forked the Bloodshed IDE > > and rewritten it to run natively using Delphi. Although this is a C++ > IDE, it's lightweight, fast, and free open source software. It may be > worth our effort to examine it and see if it contains any parts that are > innovative, then either fork or be inspired by some of their code to > bring about Lazarus enhancements. > > I believe this is totally within the spirit of the open source movement. > At the minimum it would be nice to look at the Pascal source code of > another IDE and determine how someone else has decided to implement > existing and different features, laying the way for using that knowledge > to improve upon Lazarus. > > https://blogs.embarcadero.com/dev-c-is-a-low-memory-windows-native-c-ide-built-in-delphi/ > > Dev-Pascal - probably my first contact with Free Pascal (about 20 years ago?). Michał. From freedos.la at gmail.com Sat Dec 26 16:32:06 2020 From: freedos.la at gmail.com (Ralf Quint) Date: Sat, 26 Dec 2020 07:32:06 -0800 Subject: [Lazarus] *** SPAM *** Open Source IDE Written Using Delphi In-Reply-To: References: <6e3890ee-ba23-9a0a-48f5-0967b727040a@wanadoo.fr> Message-ID: <4aba48d8-8cdd-65c5-3335-983bec383382@gmail.com> On 12/26/2020 3:15 AM, Anthony Walter via lazarus wrote: > Why was the subject of my submission changed with "*** SPAM ***" > inserted? > > Curious It is not your submission but the reply of someone else, who's email server had a spam filter triggered, possibly a false positive of your message on their system through a misconfiguration. I see your original message just fine, without the spam tag... -- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From freedos.la at gmail.com Sat Dec 26 16:40:24 2020 From: freedos.la at gmail.com (Ralf Quint) Date: Sat, 26 Dec 2020 07:40:24 -0800 Subject: [Lazarus] *** SPAM *** Open Source IDE Written Using Delphi In-Reply-To: <6e3890ee-ba23-9a0a-48f5-0967b727040a@wanadoo.fr> References: <6e3890ee-ba23-9a0a-48f5-0967b727040a@wanadoo.fr> Message-ID: On 12/26/2020 1:56 AM, Jean SUZINEAU via lazarus wrote: > It's nice that Embarcadero comes back to a Pascal IDE build with Pascal. > > It's seems this IDE is compiled with Delphi 7, with .bat and .exe > files, I imagine it's windows only ? Yes, it is Windows only and it is not a Pascal IDE, but a *C++ IDE*. They picked up an abandoned Open Source C++ IDE called "Dev C++", which by itself was a fork of an abandoned Open Source C++ IDE called "Bloodshed C++". And that one was written in Delphi starting back in 1998, many, many moons ago. Lazarus had it's first beta version out in 2003. https://en.wikipedia.org/wiki/Dev-C%2B%2B Ralf -- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From bo.berglund at gmail.com Sun Dec 27 00:11:45 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 27 Dec 2020 00:11:45 +0100 Subject: [Lazarus] Losing desktop when restarting Lazarus - where are desktop settings saved? Message-ID: <9tffufdc25urcpl5scub4cmfcdi4gnsupb@4ax.com> Now it happened again! I closed Lazarus on a Raspberry Pi4 accessed via VNC. Then I started it again and now only the code editor window appears, all other windows for my desktop have disappeared!!! :( Question: --------- In which file is the desktop settings saved? I need to restore that file so I don't have to frequently start over with a botched Lazarus desktop and reconfigure it as I like. Note that the editor settings seem OK, at least by my custom color scheme, which is present in the single window that now appears. I did copy all of the *files* in ~/.lazarus_2.0.8 into archive settings_20201221.tgz in a backup subdirectory on Dec 21, but I do not know in which file Lazarus stores the desktop settings so I can restore that file. At the time I had saved the custom desktop by a name but that is no longer available when I look at "Tools/Desktops.../Manage Desktops". Lazarus 2.0.8 / Fpc 3.0.4 on Raspberry Pi4 (4GB RAM) -- Bo Berglund Developer in Sweden From jean.suzineau at wanadoo.fr Sun Dec 27 07:43:54 2020 From: jean.suzineau at wanadoo.fr (Jean SUZINEAU) Date: Sun, 27 Dec 2020 07:43:54 +0100 Subject: [Lazarus] Losing desktop when restarting Lazarus - where are desktop settings saved? In-Reply-To: <9tffufdc25urcpl5scub4cmfcdi4gnsupb@4ax.com> References: <9tffufdc25urcpl5scub4cmfcdi4gnsupb@4ax.com> Message-ID: <3810f800-9c7c-1dc5-9976-fb42d183f67e@wanadoo.fr> I guess this settings are saved in the .lps file of your project. In my own lps files, I can find the units opened in the code editor, my debug watches ... From bo.berglund at gmail.com Sun Dec 27 09:12:20 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 27 Dec 2020 09:12:20 +0100 Subject: [Lazarus] Losing desktop when restarting Lazarus - where are desktop settings saved? References: <9tffufdc25urcpl5scub4cmfcdi4gnsupb@4ax.com> <3810f800-9c7c-1dc5-9976-fb42d183f67e@wanadoo.fr> Message-ID: On Sun, 27 Dec 2020 07:43:54 +0100, Jean SUZINEAU via lazarus wrote: >I guess this settings are saved in the .lps file of your project. > >In my own lps files, I can find the units opened in the code editor, my >debug watches ... I think I stated that the code editor is the *only window* that is now visible and it contains the units I had open when I closed the project. All of that is present, but EVERYTHING ELSE I had set up is gone! I was told earlier that the window arrangement (project options, object inspector, code explorer, messages etc, etc) would be saved and possible to return to if one saved the desktop under a name other than default. One can have several such desktops to choose from (optimized for GUI app development or console app etc). And the desktops are not tied to the projects, they are a Lazarus configuration like the color scheme of the source editor etc. So I assume the only related item that would be found in the project lps file should be the *name* of the desktop to use. So I saved my configured environment under such a name and it was returned when I closed and then opened my project until yesterday when it no longer was.... I want to restore it from my backup of Lazarus settings but I don't know where Lazarus saves this information... And I woud like to know *why* Lazarus loses this information, it is not the first time it happened... In fact I just opened a related Lazarus project (the client) on my Windows 10 PC where I run the same 2.0.8/3.0.4 version of Lazarus. Ant it too had lost its desktop settings and is now only displaying the code editor, no other window visible!!!!! Next I started Lazarus 2.0.10 on Windows 10 to check if that too has lost the desktops, but in that case it has not! Is this a known bug in Lazarus 2.0.8? For example if the IDE is open across midnight and then closed does it lose its desktop configuration? I have used both of the 2.0.8 Lazarus (Windows and Raspberry) yesterday and I made sure to close them before I want to bed since my PC would run a weekly backup overnight (not so on the RPi). So both were active at midnight but closed a bit later. But my 2.0.10 Lazarus was *not* running, last time I used that was yesterday morning. -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Sun Dec 27 09:49:15 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 27 Dec 2020 09:49:15 +0100 Subject: [Lazarus] Losing desktop when restarting Lazarus - where are desktop settings saved? References: <9tffufdc25urcpl5scub4cmfcdi4gnsupb@4ax.com> <3810f800-9c7c-1dc5-9976-fb42d183f67e@wanadoo.fr> Message-ID: On Sun, 27 Dec 2020 09:12:20 +0100, Bo Berglund via lazarus wrote: >I want to restore it from my backup of Lazarus settings but I don't >know where Lazarus saves this information... So I searched in the config files that had changed the last day and found environmentsoptions.xml contains a section for Desktop entries. So I could restore that file from my backup made back in October and now the Lazarus desktop operates properly again on Raspberry. >And I would like to know *why* Lazarus loses this information, it is >not the first time it happened... Still what I need to know to understand what I should not do with Lazarus since this has happened way to many times now. On Windows I restored from the weekly backup made Dec 21st and got that back too. When I did so I noticed that the timestamp of the file (modification) was from October even though the backup is from Dec 21st. But on both of my Lazarus 2.0.8 installs (Windows and Raspberry) the timestamp had been set to today on the broken file, so obviously the environment file was rewritten in the last 24 hours for some strange reason on both Windows and Raspberry and losing the desktop settings at that time. WHY? THe only item I have changed recently on both of the installations is the number of recent projects to show in the list from the default 5 to 10. I believe I have modified that on both Windows and Raspberry possibly causing a rewrite of the environment file (and then losing the desktops). I have both the broken and the backed up file available if someone is able to use that to decode what could have happened... -- Bo Berglund Developer in Sweden From nc-gaertnma at netcologne.de Sun Dec 27 11:07:26 2020 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 27 Dec 2020 11:07:26 +0100 Subject: [Lazarus] Losing desktop when restarting Lazarus - where are desktop settings saved? In-Reply-To: <9tffufdc25urcpl5scub4cmfcdi4gnsupb@4ax.com> References: <9tffufdc25urcpl5scub4cmfcdi4gnsupb@4ax.com> Message-ID: <20201227110726.04ad313d@limapholos.matflo.wg> On Sun, 27 Dec 2020 00:11:45 +0100 Bo Berglund via lazarus wrote: > Now it happened again! > I closed Lazarus on a Raspberry Pi4 accessed via VNC. Then I started > it again and now only the code editor window appears, all other > windows for my desktop have disappeared!!! :( > > Question: > --------- > In which file is the desktop settings saved? environmentoptions.xml Mattias From nc-gaertnma at netcologne.de Sun Dec 27 11:09:57 2020 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 27 Dec 2020 11:09:57 +0100 Subject: [Lazarus] Losing desktop when restarting Lazarus - where are desktop settings saved? In-Reply-To: References: <9tffufdc25urcpl5scub4cmfcdi4gnsupb@4ax.com> <3810f800-9c7c-1dc5-9976-fb42d183f67e@wanadoo.fr> Message-ID: <20201227110957.40e3b8a0@limapholos.matflo.wg> On Sun, 27 Dec 2020 09:12:20 +0100 Bo Berglund via lazarus wrote: >[...] > And I woud like to know *why* Lazarus loses this information, it is > not the first time it happened... Maybe your windows are on another screen. Try in menu Window / Center a lost window / ... Mattias From bo.berglund at gmail.com Sun Dec 27 12:31:48 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 27 Dec 2020 12:31:48 +0100 Subject: [Lazarus] Losing desktop when restarting Lazarus - where are desktop settings saved? References: <9tffufdc25urcpl5scub4cmfcdi4gnsupb@4ax.com> <3810f800-9c7c-1dc5-9976-fb42d183f67e@wanadoo.fr> <20201227110957.40e3b8a0@limapholos.matflo.wg> Message-ID: On Sun, 27 Dec 2020 11:09:57 +0100, Mattias Gaertner via lazarus wrote: >On Sun, 27 Dec 2020 09:12:20 +0100 >Bo Berglund via lazarus wrote: > >>[...] >> And I woud like to know *why* Lazarus loses this information, it is >> not the first time it happened... > >Maybe your windows are on another screen. >Try in menu Window / Center a lost window / ... > >Mattias Well, restoring the environmentoptions.xml from my most recent backup on both the Win10 and RPi4 systems gave me back my desktop with all of the expected windows and placements. Note that when I discovered this problem there was a smaller file dated "just now" in the pcp directory and it contained no trace of the desktop I used. So the environment file had for some reason been rewritten with a default content on *both* of my separate systems at the same basic time.... Very strange. And restoring from the last backup which held older files than the backup date fixed the problem.... So now I have scripted the backup of the config dir so it is easier to make a backup (on the RPi4). -- Bo Berglund Developer in Sweden From andrey.sobol.nn at gmail.com Sun Dec 27 15:15:23 2020 From: andrey.sobol.nn at gmail.com (=?koi8-r?B?88/Cz8zYIOHOxNLFyiDl18fFztjF18ne?=) Date: Sun, 27 Dec 2020 17:15:23 +0300 Subject: [Lazarus] lHelp improvements Message-ID: Hi, guys. I am trying to do the lHelp more convenient. 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. - 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. 2. I think that the lHelp (or user) should make a decision myself, 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). 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? From leobronstain at gmail.com Sun Dec 27 21:51:39 2020 From: leobronstain at gmail.com (Leyba Bronstain) Date: Sun, 27 Dec 2020 23:51:39 +0300 Subject: [Lazarus] Issues getting sources from the repository In-Reply-To: <1eeccee1-c481-fb9f-88cc-7cee644de1f0@geldenhuys.co.uk> References: <2b527e26-fd3d-a5e0-beca-02795661a2c1@gmail.com> <1769e689a00.27ef.bf752abec8ccb817190c8de93e854ab0@gmail.com> <1eeccee1-c481-fb9f-88cc-7cee644de1f0@geldenhuys.co.uk> Message-ID: <51be15a8-fa63-40dc-7070-e72d60642595@gmail.com> 26.12.2020 13:29, Graeme Geldenhuys via lazarus пишет: > On 26/12/2020 9:37 am, Лев Бронштейн via lazarus wrote: >> I wanted to find out the reason why the server is constantly connecting. >> This has been happening regularly lately. > Feel free to try out the unofficial Lazarus Git mirror. It tracks the "master" > branch only, fetches the latest commit every 15 minutes. It might be unofficial, > but has been running for the last 8 years already. :-) > > First time only: > git clone https://github.com/graemeg/lazarus.git > > Subsequent updates: > cd lazarus > git pull > > > More details here: > https://wiki.lazarus.freepascal.org/git_mirrors > Regards, > Graeme > Hi Graeme. Thank a lot for more info -- /-- with best regards, Zoltanleo aka Док/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Sun Dec 27 22:11:07 2020 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 27 Dec 2020 22:11:07 +0100 Subject: [Lazarus] Lazarus Release 2.0.10 In-Reply-To: <20200711110543.3898a51e@limapholos.matflo.wg> References: <20200711110543.3898a51e@limapholos.matflo.wg> Message-ID: <20201227221107.7be4ca62@limapholos.matflo.wg> Hi, I uploaded a new macOS binary package, fixing the IDE restart. The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at: ftp://ftp.freepascal.org/pub/lazarus/releases/ Mattias From nc-gaertnma at netcologne.de Sun Dec 27 23:15:50 2020 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 27 Dec 2020 23:15:50 +0100 Subject: [Lazarus] Losing desktop when restarting Lazarus - where are desktop settings saved? In-Reply-To: References: <9tffufdc25urcpl5scub4cmfcdi4gnsupb@4ax.com> <3810f800-9c7c-1dc5-9976-fb42d183f67e@wanadoo.fr> <20201227110957.40e3b8a0@limapholos.matflo.wg> Message-ID: <20201227231550.7d9fa75f@limapholos.matflo.wg> On Sun, 27 Dec 2020 12:31:48 +0100 Bo Berglund via lazarus wrote: >[...] > Note that when I discovered this problem there was a smaller file > dated "just now" in the pcp directory and it contained no trace of the > desktop I used. When the IDE starts, and there is no environmentoptions.xml file it copies it from the secondary config directory. Maybe you are seeing that? When there is no desktop in the environmentoptions.xml the IDE should show the default layout. Mattias From wkitty42 at windstream.net Mon Dec 28 00:58:58 2020 From: wkitty42 at windstream.net (wkitty42 at windstream.net) Date: Sun, 27 Dec 2020 18:58:58 -0500 Subject: [Lazarus] Losing desktop when restarting Lazarus - where are desktop settings saved? In-Reply-To: <20201227231550.7d9fa75f@limapholos.matflo.wg> References: <9tffufdc25urcpl5scub4cmfcdi4gnsupb@4ax.com> <3810f800-9c7c-1dc5-9976-fb42d183f67e@wanadoo.fr> <20201227110957.40e3b8a0@limapholos.matflo.wg> <20201227231550.7d9fa75f@limapholos.matflo.wg> Message-ID: <3da42f17-6427-c51c-8330-e5722d0a65aa@windstream.net> 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... -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list where it belongs!* From nc-gaertnma at netcologne.de Mon Dec 28 01:35:54 2020 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 28 Dec 2020 01:35:54 +0100 Subject: [Lazarus] Losing desktop when restarting Lazarus - where are desktop settings saved? In-Reply-To: <3da42f17-6427-c51c-8330-e5722d0a65aa@windstream.net> References: <9tffufdc25urcpl5scub4cmfcdi4gnsupb@4ax.com> <3810f800-9c7c-1dc5-9976-fb42d183f67e@wanadoo.fr> <20201227110957.40e3b8a0@limapholos.matflo.wg> <20201227231550.7d9fa75f@limapholos.matflo.wg> <3da42f17-6427-c51c-8330-e5722d0a65aa@windstream.net> Message-ID: <20201228013554.09cb6cb5@limapholos.matflo.wg> 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 From nc-gaertnma at netcologne.de Mon Dec 28 02:03:26 2020 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 28 Dec 2020 02:03:26 +0100 Subject: [Lazarus] lHelp improvements In-Reply-To: References: Message-ID: <20201228020326.66ce2e6e@limapholos.matflo.wg> 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 From andrey.sobol.nn at gmail.com Mon Dec 28 05:50:25 2020 From: andrey.sobol.nn at gmail.com (Andrey Sobol) Date: Mon, 28 Dec 2020 07:50:25 +0300 Subject: [Lazarus] lHelp improvements In-Reply-To: <20201228020326.66ce2e6e@limapholos.matflo.wg> References: <20201228020326.66ce2e6e@limapholos.matflo.wg> Message-ID: <4c358f81-7681-443b-8c6b-d93acff452f0@gmail.com> > 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? > You can read here about this https://wiki.lazarus.freepascal.org/Installing_Help_in_the_IDE > >> - 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? > Yes, but now I have strict commands to open files before. For to do such as you said I have to get one command to do search and to know where to get another files. > >> 2. I think that the lHelp (or user) should >> make a decision myself, > > Do you mean "myself" or "by itself"? Yes, it is my mistake. > >> 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. I think should be a preference in the lHelp to open all files on start or not. Then we can change which files to open on start. > >> 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 > Andrey From werner.pamler at freenet.de Mon Dec 28 09:39:08 2020 From: werner.pamler at freenet.de (Werner Pamler) Date: Mon, 28 Dec 2020 09:39:08 +0100 Subject: [Lazarus] lHelp improvements In-Reply-To: <20201228020326.66ce2e6e@limapholos.matflo.wg> References: <20201228020326.66ce2e6e@limapholos.matflo.wg> Message-ID: <3d3a3862-bff6-d80b-d721-6aca11700959@freenet.de> Am 28.12.2020 um 02:03 schrieb Mattias Gaertner via lazarus: > What package opens hh.exe in Lazarus? No special package needed. As I described in https://wiki.freepascal.org/Installing_Help_in_the_IDE#Installing_CHM_help_.28Lazarus_1.0_and_later.29, hh.exe (the Windows help viewer) can be made to display the chm files instead of lhelp. From bo.berglund at gmail.com Mon Dec 28 11:21:00 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Mon, 28 Dec 2020 11:21:00 +0100 Subject: [Lazarus] Losing desktop when restarting Lazarus - where are desktop settings saved? References: <9tffufdc25urcpl5scub4cmfcdi4gnsupb@4ax.com> <3810f800-9c7c-1dc5-9976-fb42d183f67e@wanadoo.fr> <20201227110957.40e3b8a0@limapholos.matflo.wg> <20201227231550.7d9fa75f@limapholos.matflo.wg> <3da42f17-6427-c51c-8330-e5722d0a65aa@windstream.net> <20201228013554.09cb6cb5@limapholos.matflo.wg> Message-ID: 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? I did not know it exists... >> 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? > Impossible to know since I do not look in the config dir every time before starting Lazarus... The file had changed its date from an earlier time (months ago) to the current time, and there was no sign of any custom desktop settings in it. 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. 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... But it does not visibly affect the way Lazarus looks when starting up again. -- Bo Berglund Developer in Sweden From nc-gaertnma at netcologne.de Mon Dec 28 11:45:04 2020 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 28 Dec 2020 11:45:04 +0100 Subject: [Lazarus] Losing desktop when restarting Lazarus - where are desktop settings saved? In-Reply-To: References: <9tffufdc25urcpl5scub4cmfcdi4gnsupb@4ax.com> <3810f800-9c7c-1dc5-9976-fb42d183f67e@wanadoo.fr> <20201227110957.40e3b8a0@limapholos.matflo.wg> <20201227231550.7d9fa75f@limapholos.matflo.wg> <3da42f17-6427-c51c-8330-e5722d0a65aa@windstream.net> <20201228013554.09cb6cb5@limapholos.matflo.wg> Message-ID: <20201228114504.2b6107b3@limapholos.matflo.wg> 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 From fpc at pascalprogramming.org Mon Dec 28 13:41:29 2020 From: fpc at pascalprogramming.org (Marco van de Voort) Date: Mon, 28 Dec 2020 13:41:29 +0100 Subject: [Lazarus] lHelp improvements In-Reply-To: <20201228020326.66ce2e6e@limapholos.matflo.wg> References: <20201228020326.66ce2e6e@limapholos.matflo.wg> Message-ID: <7c4f7f5f-ac72-6ad7-362d-c487afc7c632@pascalprogramming.org> Op 12/28/2020 om 2:03 AM schreef Mattias Gaertner via 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. Afaik most of the binary indexes (index, FTS) can be mergesorted together rather cheaply and then stored on disk. Using these rather than converting everything to text and then parse that again would make it very fast. This is what HH does. Even faster is caching the result of the merge on disk (which HH also does, but only in case of "merged" chm files, which doesn't work with FPC generated CHM files yet), these are then stored as CHW. But to invalidate the cache, it should be stored which CHMs were used to generate it. So that the cache can be invalided. I'll look into the various fpdoc and chm stuff from tomorrow, when I get home again From andrey.sobol.nn at gmail.com Mon Dec 28 16:03:53 2020 From: andrey.sobol.nn at gmail.com (Andrey Sobol) Date: Mon, 28 Dec 2020 18:03:53 +0300 Subject: [Lazarus] lHelp improvements In-Reply-To: <7c4f7f5f-ac72-6ad7-362d-c487afc7c632@pascalprogramming.org> References: <20201228020326.66ce2e6e@limapholos.matflo.wg> <7c4f7f5f-ac72-6ad7-362d-c487afc7c632@pascalprogramming.org> Message-ID: <9034b4c7-bef2-ac4b-4d2e-08add74e97bf@gmail.com> > Afaik most of the binary indexes (index, FTS) can be mergesorted > together rather cheaply and then stored on disk. Using these rather than > converting everything to text and then parse that again would make it > very fast. This is what HH does. > > Even faster is caching the result of the merge on disk (which HH also > does, but only in case of "merged" chm files, which doesn't work with > FPC generated CHM files yet), these are then stored as CHW. > > But to invalidate the cache, it should be stored which CHMs were used to > generate it. So that the cache can be invalided. > > I'll look into the various fpdoc and chm stuff from tomorrow, when I get > home again > I agree with you that need to do a storing on disk or to produce CHW. And I will do this later. Creating a new chm package additions also requires a lot of time. But now I have not any documentation on chm format, I have found only dribs and drabs. The situation is such that the documentation seems an existing, but it is very difficult to use for many reasons. Actual version of lHelp has to work rightly and then I can do next version. First start 1.5-2 sec I think it is well for loading entire packet of chms and indexes. From bo.berglund at gmail.com Mon Dec 28 16:14:09 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Mon, 28 Dec 2020 16:14:09 +0100 Subject: [Lazarus] Creating packages - what to include? Message-ID: I have created a number of classes that are useful in multiple projects. Originally I have copied the source files between the projects in order to use the classes, but it has resulted in differences between the projects regarding the source files when I modify the class. So I am looking for a different approach using packages instead, but I have never created an fpc package myself before, just used those that I could download... What is the best approach? - Create one package for each class - Create a multi-class package I can see that if I create my-nonvisual-classes.lpk and add a number of class files to that package then every project where I use one of these will get *all* of them included, right? But if I make one package for each class then I have to "install" a number of packages every time I install Lazarus for a new version or on a new device.... I don't want every project I do polluted with all classes I am dealing with here but I fear that will be the case if I make a big package for all classes. So how to best approach this? Specifically I am talking about non-GUI classes, since the ones with a GUI are probably best installed into the Lazarus IDE itself. (I am right now in a situation where I have two projects using a class where there are different modifications in both, which I have to resolve.) PS: I am using subversion to manage my sources and now I have dirtied that by putting the class files as copies in several projects, not good.. DS -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Mon Dec 28 16:24:47 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Mon, 28 Dec 2020 16:24:47 +0100 Subject: [Lazarus] Creating packages - what to include? References: Message-ID: On Mon, 28 Dec 2020 16:14:09 +0100, Bo Berglund via lazarus wrote: >I have created a number of classes that are useful in multiple >projects. Originally I have copied the source files between the >projects in order to use the classes, but it has resulted in >differences between the projects regarding the source files when I >modify the class. I forgot to say that whan I used Delphi then I had the components in a specific single location (under CVS control) in my dev environment and Delphi had a global search path set up to find these files in projects using them. But as I unsderstand it Lazarus does not do this... -- Bo Berglund Developer in Sweden From bartjunk64 at gmail.com Mon Dec 28 16:39:32 2020 From: bartjunk64 at gmail.com (Bart) Date: Mon, 28 Dec 2020 16:39:32 +0100 Subject: [Lazarus] Creating packages - what to include? In-Reply-To: References: Message-ID: On Mon, Dec 28, 2020 at 4:24 PM Bo Berglund via lazarus wrote: > >I have created a number of classes that are useful in multiple > >projects. I have all my usefull units in one folder (you can use multiple folders if so desired). This folder is in the -Fu path of all my projects. This can be easily achieved by having the Lazarus IDE create a default compiler settings for you. The only advantage I can see in a package is that you can drop the controls on a form and use OI to set it's properties. If you don't really need that, then the solution I use will suffice. -- Bart From bo.berglund at gmail.com Mon Dec 28 18:13:41 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Mon, 28 Dec 2020 18:13:41 +0100 Subject: [Lazarus] Creating packages - what to include? References: Message-ID: <4s3kufp0ci3h28s06uinn96blfv65mf4rf@4ax.com> On Mon, 28 Dec 2020 16:39:32 +0100, Bart via lazarus wrote: >On Mon, Dec 28, 2020 at 4:24 PM Bo Berglund via lazarus > wrote: > >> >I have created a number of classes that are useful in multiple >> >projects. > >I have all my usefull units in one folder (you can use multiple >folders if so desired). >This folder is in the -Fu path of all my projects. >This can be easily achieved by having the Lazarus IDE create a default >compiler settings for you. Could you please direct me to where in Lazarus this can be done? I looked in the Tools menu but found nothing I thought could be it. If I look at the Project menu then items there presumably are for the current project only, which is not what I want here. I use Project/ProjectOptions/CompilerOptions/Paths/OtherUnitFiles to set a relative path for my bigger projects, which have several different programs which re-use some units which are not in the same dir as the program itself but are relevant just for this family of programs. Usually a path of type ../somedir... But this will not be a global option active for a newly created project... >The only advantage I can see in a package is that you can drop the >controls on a form and use OI to set it's properties. >If you don't really need that, then the solution I use will suffice. Exactly, whatever is handled in RAD fashion in the Lazarus IDE must have been stuffed into a package that get installed into the Lazarus program itself. But I am talking about non-visual things that are used in many different projects. -- Bo Berglund Developer in Sweden From werner.pamler at freenet.de Mon Dec 28 18:31:54 2020 From: werner.pamler at freenet.de (Werner Pamler) Date: Mon, 28 Dec 2020 18:31:54 +0100 Subject: [Lazarus] Creating packages - what to include? In-Reply-To: <4s3kufp0ci3h28s06uinn96blfv65mf4rf@4ax.com> References: <4s3kufp0ci3h28s06uinn96blfv65mf4rf@4ax.com> Message-ID: You are talking of runtime code only. Here are instructions how to create a Lazarus runtime package (I never created an FPC package...): Go to "Package" > "New package", specify name and location of the new package, an empty package will be created automatically. In the package editor which opens right-click on "Files" and add all the files which are supposed to be contained in the package. When the units that you need depend on other units found in other packages you must add these other packages to the node "Required Packages" (right-click, "Add"). Then click "Compile". When everything is correct, go to "options" in the package editor, and in "IDE Integration" select "Runtime package". This means that the package is not installed into the IDE. Save, of course. In order to use this runtime package in a project, open the Project Inspector, right-click on "Required Packages" and select your new package to be added to the project tree. Now you can "use" all units of this package. When you are on a new Lazarus installation the IDE does not yet know your package. Go to "Package" > "Open Package File (*.lpk)". That's all to be done so that the IDE knows the path to the package. When you compile your project the package will be compiled as well. Of course you can click "Compile" also in the Package Editor to make sure that your package is correct in the new installation. There is no need to click "Use" > "Install" for a runtime package. Coming from Delphi you may be tempted to extend the unit path by the path to your package units. Do not do this - you will have lots of trouble. The Lazarus package concept does not require you to set any paths. From fpc at pascalprogramming.org Mon Dec 28 21:05:00 2020 From: fpc at pascalprogramming.org (Marco van de Voort) Date: Mon, 28 Dec 2020 21:05:00 +0100 Subject: [Lazarus] lHelp improvements In-Reply-To: <9034b4c7-bef2-ac4b-4d2e-08add74e97bf@gmail.com> References: <20201228020326.66ce2e6e@limapholos.matflo.wg> <7c4f7f5f-ac72-6ad7-362d-c487afc7c632@pascalprogramming.org> <9034b4c7-bef2-ac4b-4d2e-08add74e97bf@gmail.com> Message-ID: <72784a47-46c6-da16-a5cf-c5141e5ea924@pascalprogramming.org> Op 12/28/2020 om 4:03 PM schreef Andrey Sobol via lazarus: > > >> Afaik most of the binary indexes (index, FTS) can be mergesorted >> together rather cheaply and then stored on disk. Using these rather >> than converting everything to text and then parse that again would >> make it very fast. This is what HH does. >> >> Even faster is caching the result of the merge on disk (which HH also >> does, but only in case of "merged" chm files, which doesn't work with >> FPC generated CHM files yet), these are then stored as CHW. >> >> But to invalidate the cache, it should be stored which CHMs were used >> to generate it. So that the cache can be invalided. >> >> I'll look into the various fpdoc and chm stuff from tomorrow, when I >> get home again >> > I agree with you that need to do a storing on disk or to produce CHW. > And I will do this later. 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. 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. True, but sometimes new is simply needed to not program yourself into the corner > But now I  have not any documentation on chm format,  I have found > only dribs and drabs. Search for "CHMSPEC", but there as many holes as bits that are documented. Specially the process of folding the input data into the datastructure is badly described. Actually the most complete bit is the sources of the chm package and chmls/chmcmd. > The situation is such that the documentation seems an existing, but it > is very difficult to use for many reasons. > Actual version of lHelp has to work rightly and then I can do next > version. First start 1.5-2 sec I think it is well for loading entire > packet of chms and indexes. As for the CHW bit, I would not try to make the saved index in CHW, just in some own format.   Increasing CHM compatibility is hard and difficult work. The main missing problem is that for some unknown reason, hh.exe doesn't FPC generated "merged" chms. Neither slave nor master chm. From serbod at gmail.com Mon Dec 28 21:13:40 2020 From: serbod at gmail.com (Sergey Bodrov) Date: Mon, 28 Dec 2020 23:13:40 +0300 Subject: [Lazarus] lHelp improvements In-Reply-To: References: Message-ID: chm indexes opens and reads in milliseconds. But filling Index TreeView in LHelp takes seconds of time. Place BeginUpdate / EndUpdate around TreeView filling, and delay will gone. hh.exe can use external combined Index and Search for multiple chm's. On Sun, Dec 27, 2020, 17:15 Соболь Андрей Евгеньевич via lazarus < lazarus at lists.lazarus-ide.org> wrote: > Hi, guys. > > I am trying to do the lHelp more convenient. 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. > - 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. > > 2. I think that the lHelp (or user) should make a decision myself, 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). > > 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? > -- > _______________________________________________ > 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 Mon Dec 28 21:27:06 2020 From: bo.berglund at gmail.com (Bo Berglund) Date: Mon, 28 Dec 2020 21:27:06 +0100 Subject: [Lazarus] Creating packages - what to include? References: <4s3kufp0ci3h28s06uinn96blfv65mf4rf@4ax.com> Message-ID: On Mon, 28 Dec 2020 18:31:54 +0100, Werner Pamler via lazarus wrote: >You are talking of runtime code only. Here are instructions how to >create a Lazarus runtime package (I never created an FPC package...): Go >to "Package" > "New package", specify name and location of the new >package, an empty package will be created automatically. In the package >editor which opens right-click on "Files" and add all the files which >are supposed to be contained in the package. When the units that you >need depend on other units found in other packages you must add these >other packages to the node "Required Packages" (right-click, "Add"). >Then click "Compile". When everything is correct, go to "options" in the >package editor, and in "IDE Integration" select "Runtime package". This >means that the package is not installed into the IDE. Save, of course. > >In order to use this runtime package in a project, open the Project >Inspector, right-click on "Required Packages" and select your new >package to be added to the project tree. Now you can "use" all units of >this package. > >When you are on a new Lazarus installation the IDE does not yet know >your package. Go to "Package" > "Open Package File (*.lpk)". That's all >to be done so that the IDE knows the path to the package. When you >compile your project the package will be compiled as well. Of course you >can click "Compile" also in the Package Editor to make sure that your >package is correct in the new installation. There is no need to click >"Use" > "Install" for a runtime package. > >Coming from Delphi you may be tempted to extend the unit path by the >path to your package units. Do not do this - you will have lots of >trouble. The Lazarus package concept does not require you to set any paths. Thanks, I already have a subversion project "cmplaz" which contains a few visual components. These are stored each in separate subdirectories as different packages. The cmplaz project is checked out from svn into the pcp config directory just like onlinepackagemanager does. And the visual components for lazarus are then installed in Lazarus IDE. So now I added a new directory below cmplaz where I stored my first runtime package (a serial port component based on the built-in serial unit) with the pas file defining the class. This worked fine so I am now going over the projects where it is used and changing the usage to the package and removing the copied sourcefiles. Hopefully this will in the end reduce headaches with tracking changes. -- Bo Berglund Developer in Sweden From jean.suzineau at wanadoo.fr Mon Dec 28 21:32:44 2020 From: jean.suzineau at wanadoo.fr (Jean SUZINEAU) Date: Mon, 28 Dec 2020 21:32:44 +0100 Subject: [Lazarus] Creating packages - what to include? In-Reply-To: <4s3kufp0ci3h28s06uinn96blfv65mf4rf@4ax.com> References: <4s3kufp0ci3h28s06uinn96blfv65mf4rf@4ax.com> Message-ID: <704658eb-ee30-598d-e90d-a307ec301436@wanadoo.fr> Le 28/12/2020 à 18:13, Bo Berglund via lazarus a écrit : > Could you please direct me to where in Lazarus this can be done? Usually when I add a unit uA.pas to a project (by opening the unit in the code and then hitting Shift+F11 or Project/Add editor file to project), Lazarus asks me if I want to add this path to the search path for units. There can be a problem if you further create a visual component in a unit uB.pas that uses uA.pas. You will need to create a package for uB.pas or add it to an existing package. Let's call this package pB.lpk . In this case you can no longer add the directory of uA.pas to the search path, because you'll end up with duplicate ppu files. (I'm not sure of the error, but Lazarus and the compiler complain and advise you to use the package). To address this problem, I have a specific package pA.lpk where I put uA.pas, and I add pA to the dependencies of pB .  (eventually, you can put all you common code in a single package too) In my real code pA is the package**OD_DelphiReportEngine_Units.lpk where I put all my units which can run headless in console with no GUI ( https://github.com/jsuzineau/pascal_o_r_mapping/blob/master/pascal_o_r_mapping/2_Units/OD_DelphiReportEngine_Units.lpk ). And pB is OD_DelphiReportEngine_Controls.lpk where I put all my custom controls (visual components) (https://github.com/jsuzineau/pascal_o_r_mapping/blob/master/pascal_o_r_mapping/5_Controls/OD_DelphiReportEngine_Controls.lpk) I even had a third intermediary package OD_DelphiReportEngine_Components.lpk for non visual components which can be used for example in datamodules in console apps working with databases ( https://github.com/jsuzineau/pascal_o_r_mapping/blob/master/pascal_o_r_mapping/4_Components/OD_DelphiReportEngine_Components.lpk*) * * * -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartjunk64 at gmail.com Mon Dec 28 22:51:06 2020 From: bartjunk64 at gmail.com (Bart) Date: Mon, 28 Dec 2020 22:51:06 +0100 Subject: [Lazarus] Creating packages - what to include? In-Reply-To: <4s3kufp0ci3h28s06uinn96blfv65mf4rf@4ax.com> References: <4s3kufp0ci3h28s06uinn96blfv65mf4rf@4ax.com> Message-ID: On Mon, Dec 28, 2020 at 6:13 PM Bo Berglund via lazarus wrote: > Could you please direct me to where in Lazarus this can be done? It is in Complier options. It has a checkbox "Set compiler options as default". My folder layout is like: \\LazarusProjecten\ Each application's main lpi resides in a subfolder of this My usefull unist are in a subfolder called MijnLib So I have e.g. \\LazarusProjecten\MijnLib \\LazarusProjecten\EPlus \\LazarusProjecten\AdresBoek \\LazarusProjecten\sbp etc. In my default compiler options I have "..\MijnLib" as the first entry in -Fu field. This of course only works if you have a folder setup similar to mine: a base folder in which you create new folders for each application you write. -- Bart From nc-gaertnma at netcologne.de Mon Dec 28 23:38:28 2020 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 28 Dec 2020 23:38:28 +0100 Subject: [Lazarus] lHelp improvements In-Reply-To: <72784a47-46c6-da16-a5cf-c5141e5ea924@pascalprogramming.org> References: <20201228020326.66ce2e6e@limapholos.matflo.wg> <7c4f7f5f-ac72-6ad7-362d-c487afc7c632@pascalprogramming.org> <9034b4c7-bef2-ac4b-4d2e-08add74e97bf@gmail.com> <72784a47-46c6-da16-a5cf-c5141e5ea924@pascalprogramming.org> Message-ID: <20201228233828.4d6f1251@limapholos.matflo.wg> 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 From Corpsman at web.de Tue Dec 29 07:47:29 2020 From: Corpsman at web.de (Corpsman at web.de) Date: Tue, 29 Dec 2020 07:47:29 +0100 Subject: [Lazarus] Creating packages - what to include? In-Reply-To: References: <4s3kufp0ci3h28s06uinn96blfv65mf4rf@4ax.com> Message-ID: An HTML attachment was scrubbed... URL: From andrey.sobol.nn at gmail.com Wed Dec 30 19:44:21 2020 From: andrey.sobol.nn at gmail.com (Andrey Sobol) Date: Wed, 30 Dec 2020 21:44:21 +0300 Subject: [Lazarus] lHelp improvements In-Reply-To: <20201228233828.4d6f1251@limapholos.matflo.wg> References: <20201228020326.66ce2e6e@limapholos.matflo.wg> <7c4f7f5f-ac72-6ad7-362d-c487afc7c632@pascalprogramming.org> <9034b4c7-bef2-ac4b-4d2e-08add74e97bf@gmail.com> <72784a47-46c6-da16-a5cf-c5141e5ea924@pascalprogramming.org> <20201228233828.4d6f1251@limapholos.matflo.wg> Message-ID: > 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. > 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? From nc-gaertnma at netcologne.de Wed Dec 30 20:12:56 2020 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 30 Dec 2020 20:12:56 +0100 Subject: [Lazarus] lHelp improvements In-Reply-To: References: <20201228020326.66ce2e6e@limapholos.matflo.wg> <7c4f7f5f-ac72-6ad7-362d-c487afc7c632@pascalprogramming.org> <9034b4c7-bef2-ac4b-4d2e-08add74e97bf@gmail.com> <72784a47-46c6-da16-a5cf-c5141e5ea924@pascalprogramming.org> <20201228233828.4d6f1251@limapholos.matflo.wg> Message-ID: <20201230201256.48c526af@limapholos.matflo.wg> 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