From ganmax at narod.ru Fri Feb 1 00:38:23 2019 From: ganmax at narod.ru (Maxim Ganetsky) Date: Fri, 1 Feb 2019 02:38:23 +0300 Subject: [Lazarus] Multi-line msgid in PO file In-Reply-To: <20190131110115.GA3604@technical09.Axicon2.local> References: <20190130171017.GD3625@technical09.Axicon2.local> <20190131110115.GA3604@technical09.Axicon2.local> Message-ID: <7ba37e31-9c8d-b287-44c5-391a1eefd570@narod.ru> 31.01.2019 14:01, Henry Vermaak via lazarus пишет: > On Wed, Jan 30, 2019 at 08:19:47PM +0300, Maxim Ganetsky via lazarus wrote: >> 30.01.2019 20:10, Henry Vermaak via lazarus пишет: >>> I've had a problem with multi-line translations not working and realised >>> that an extra '\n' was appended to the last line of the msgid in the PO >>> file causing the translation lookup to fail. I'm assuming that this is >>> a bug, but thought I'd ask here first. Should be fixed in r60268. Note that multiline strings seem to be always stored with Unix-style linebreaks in MO file, while in form they can have e.g. Windows-style or maybe even Mac-style linebreaks. Because of this, these strings should be normalized with regards to linebreaks before searching in MO file. Linebreak at the end of multilined string should be present as per PO format examples, most PO editors add it anyway. Also note, that loading multiline resourcestrings from MO files probably won't work in many cases for aforementioned reasons too, because Gettext unit does not account for platform-specific lineending changes at all. -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From henry.vermaak at gmail.com Fri Feb 1 10:43:48 2019 From: henry.vermaak at gmail.com (Henry Vermaak) Date: Fri, 1 Feb 2019 09:43:48 +0000 Subject: [Lazarus] Multi-line msgid in PO file In-Reply-To: <7ba37e31-9c8d-b287-44c5-391a1eefd570@narod.ru> References: <20190130171017.GD3625@technical09.Axicon2.local> <20190131110115.GA3604@technical09.Axicon2.local> <7ba37e31-9c8d-b287-44c5-391a1eefd570@narod.ru> Message-ID: On Thu, 31 Jan 2019 at 23:38, Maxim Ganetsky via lazarus wrote: > 31.01.2019 14:01, Henry Vermaak via lazarus пишет: > > On Wed, Jan 30, 2019 at 08:19:47PM +0300, Maxim Ganetsky via lazarus wrote: > >> 30.01.2019 20:10, Henry Vermaak via lazarus пишет: > >>> I've had a problem with multi-line translations not working and realised > >>> that an extra '\n' was appended to the last line of the msgid in the PO > >>> file causing the translation lookup to fail. I'm assuming that this is > >>> a bug, but thought I'd ask here first. > > Should be fixed in r60268. No, lazarus still adds an extra newline to the end of the msgid entries in the PO files. This is incorrect, the original text does not include a trailing newline (check the lrj file). rstconv also doesn't write spurious newlines to PO files when I feed the lrj to it. > Linebreak at the end of multilined string should be present as per PO > format examples, most PO editors add it anyway. No, this is incorrect. PO editors have nothing to do with what gets added to msgid, but they will preserve the newlines that are in the msgid and make sure that the translation ends in a newline if the original ends in a newline. xgettext is responsible for extracting strings from source and it does not add an extra newline when used with C or lua source, we've been using multiline strings in C and lua for years without issues. Could you explain what was wrong with the patch I sent in the first message? Henry From ganmax at narod.ru Fri Feb 1 13:46:26 2019 From: ganmax at narod.ru (Maxim Ganetsky) Date: Fri, 1 Feb 2019 15:46:26 +0300 Subject: [Lazarus] Multi-line msgid in PO file In-Reply-To: References: <20190130171017.GD3625@technical09.Axicon2.local> <20190131110115.GA3604@technical09.Axicon2.local> <7ba37e31-9c8d-b287-44c5-391a1eefd570@narod.ru> Message-ID: <66fda7ab-f61c-fe22-2413-2c1fe0d8e51c@narod.ru> 01.02.2019 12:43, Henry Vermaak пишет: > On Thu, 31 Jan 2019 at 23:38, Maxim Ganetsky via lazarus > wrote: >> Should be fixed in r60268. > > No, lazarus still adds an extra newline to the end of the msgid > entries in the PO files. This is incorrect, the original text does > not include a trailing newline (check the lrj file). rstconv also > doesn't write spurious newlines to PO files when I feed the lrj to it. > >> Linebreak at the end of multilined string should be present as per PO >> format examples, most PO editors add it anyway. > No, this is incorrect. PO editors have nothing to do with what gets > added to msgid, but they will preserve the newlines that are in the > msgid and make sure that the translation ends in a newline if the > original ends in a newline. xgettext is responsible for extracting > strings from source and it does not add an extra newline when used > with C or lua source, we've been using multiline strings in C and lua > for years without issues. As I remember, it was not the case earlier at least with Poedit. But its current version behaves exactly as you describe. Maybe it is indeed a good idea to avoid changing these newlines. I will look into it. > Could you explain what was wrong with the patch I sent in the first message? It needlessly changes formatting of PO files and is not sufficient to correctly solve the problem at hand anyway. But changes along its lines should be made, yes. -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From ryan at thealchemistguild.com Fri Feb 1 16:27:42 2019 From: ryan at thealchemistguild.com (Ryan Joseph) Date: Fri, 1 Feb 2019 10:27:42 -0500 Subject: [Lazarus] lazbuild question Message-ID: <9C66B049-6185-4998-80FC-3FC925D01A55@thealchemistguild.com> I have project that builds in Lazarus but is getting dependency errors using lazbuild. Simple question, what lazbuild options do I need so it behaves exactly like the build command in lazarus? Thanks. Regards, Ryan Joseph From nc-gaertnma at netcologne.de Fri Feb 1 17:05:14 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Fri, 1 Feb 2019 17:05:14 +0100 Subject: [Lazarus] lazbuild question In-Reply-To: <9C66B049-6185-4998-80FC-3FC925D01A55@thealchemistguild.com> References: <9C66B049-6185-4998-80FC-3FC925D01A55@thealchemistguild.com> Message-ID: <20190201170514.69b1a345@limapholos.matflo.wg> On Fri, 1 Feb 2019 10:27:42 -0500 Ryan Joseph via lazarus wrote: > I have project that builds in Lazarus but is getting dependency > errors using lazbuild. > > Simple question, what lazbuild options do I need so it behaves > exactly like the build command in lazarus? Note that some IDE addons alter the build process, e.g. adding macros. lazbuild cannot support that. Can you give some more details? Mattias From henry.vermaak at gmail.com Fri Feb 1 17:38:55 2019 From: henry.vermaak at gmail.com (Henry Vermaak) Date: Fri, 1 Feb 2019 16:38:55 +0000 Subject: [Lazarus] Multi-line msgid in PO file In-Reply-To: <66fda7ab-f61c-fe22-2413-2c1fe0d8e51c@narod.ru> References: <20190130171017.GD3625@technical09.Axicon2.local> <20190131110115.GA3604@technical09.Axicon2.local> <7ba37e31-9c8d-b287-44c5-391a1eefd570@narod.ru> <66fda7ab-f61c-fe22-2413-2c1fe0d8e51c@narod.ru> Message-ID: On Fri, 1 Feb 2019 at 12:46, Maxim Ganetsky via lazarus wrote: > As I remember, it was not the case earlier at least with Poedit. But its > current version behaves exactly as you describe. Maybe it is indeed a > good idea to avoid changing these newlines. I will look into it. Thanks, much appreciated. Henry From ryan at thealchemistguild.com Fri Feb 1 17:44:32 2019 From: ryan at thealchemistguild.com (Ryan Joseph) Date: Fri, 1 Feb 2019 11:44:32 -0500 Subject: [Lazarus] lazbuild question In-Reply-To: <20190201170514.69b1a345@limapholos.matflo.wg> References: <9C66B049-6185-4998-80FC-3FC925D01A55@thealchemistguild.com> <20190201170514.69b1a345@limapholos.matflo.wg> Message-ID: <4D1838D2-5E2B-47D8-9DFC-93C5AC8667B2@thealchemistguild.com> > On Feb 1, 2019, at 11:05 AM, Mattias Gaertner via lazarus wrote: > > Note that some IDE addons alter the build process, e.g. adding macros. > lazbuild cannot support that. > > Can you give some more details? This project builds in lazarus but a simple lazbuild command on the project file gives me this error. Not sure what is different in lazbuild then the IDE. Ryans-MacBook-Pro-2:laz_tests ryanjoseph$ lazbuild /Users/ryanjoseph/Desktop/laz_tests/MRIcroGL12/MRIcroGL.lpi Warning: (lazarus) suspicious pkg link file found (name): /Users/ryanjoseph/Desktop/laz_tests/lazarus/packager/globallinks/laz.virtualtreeview_package-5.5.3.1.lpl Hint: (lazarus) [RunTool] /usr/local/bin/fpc "-iWTOTP" Hint: (lazarus) [RunTool] /usr/local/bin/fpc "-va" "compilertest.pas" Error: (lazbuild) Broken dependency: lazmetalcontrol 0.0->LCL 2.1->LCLBase 2.1->chm Ryans-MacBook-Pro-2:laz_tests ryanjoseph$ Regards, Ryan Joseph From joost at cnoc.nl Fri Feb 1 21:48:49 2019 From: joost at cnoc.nl (=?utf-8?Q?Joost_van_der_Sluis?=) Date: Fri, 1 Feb 2019 21:48:49 +0100 Subject: [Lazarus] lazbuild question Message-ID: Op Vrijdag 1 februari 2019 schreef Ryan Joseph via lazarus: > > > > On Feb 1, 2019, at 11:05 AM, Mattias Gaertner via lazarus wrote: > > > > Note that some IDE addons alter the build process, e.g. adding macros. > > lazbuild cannot support that. > > > > Can you give some more details? > > This project builds in lazarus but a simple lazbuild command on the project file gives me this error. Not sure what is different in lazbuild then the IDE. > > Ryans-MacBook-Pro-2:laz_tests ryanjoseph$ lazbuild /Users/ryanjoseph/Desktop/laz_tests/MRIcroGL12/MRIcroGL.lpi > Warning: (lazarus) suspicious pkg link file found (name): /Users/ryanjoseph/Desktop/laz_tests/lazarus/packager/globallinks/laz.virtualtreeview_package-5.5.3.1.lpl > Hint: (lazarus) [RunTool] /usr/local/bin/fpc "-iWTOTP" > Hint: (lazarus) [RunTool] /usr/local/bin/fpc "-va" "compilertest.pas" > Error: (lazbuild) Broken dependency: lazmetalcontrol 0.0->LCL 2.1->LCLBase 2.1->chm > Ryans-MacBook-Pro-2:laz_tests ryanjoseph$ chm Is not a Lazarus but a fpc package. Seems that your fppkg configuration is currupt. My guess is that it works in Lazarus itself because you haven't compiled Lazbuild in a while. Regards, Joost From lazarus at mfriebe.de Sat Feb 2 00:18:36 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Sat, 2 Feb 2019 00:18:36 +0100 Subject: [Lazarus] Testers needed: Debugger step-over issue (step over perform step in) Message-ID: <6789d9eb-bec0-2ccf-9c39-e31255cafc42@mfriebe.de> This is a known issue under 64 bit Windows, when using the default debugger of Lazarus (gdb based / GDBMI debugger). There have been sporadic reports that this may occur on other platforms too... Anyway the symptoms of this issue are: - During debugging you press F8 (or otherwise trigger step-over) - The debugger will NOT step to the next line, but stop inside a function that was called by the line you tried to step over. I myself have only reproduced this, in cases where the debugger stepped into code that has debug info. So the source of the stepped-into procedure is shown. If anyone has experienced stepping into assembler I would like feedback on this. I have added some code, that may work around the issue. But that needs testing. It is present in trunk (r60274) and fixes 2.0 branch (merge is actually pending, but is planned to happen before release). Due to the lack of tests this feature is disabled by default. Go to Tools > Option > Debugger Find (in the property grid) "FixIncorrectStepOver" and enable it. If the IDE detects a step-in when expecting a step over, it will try to solve the issue (perform a further step-over and then a step-out / a step out from the "begin" line of a procedure does not always work). If you have cases where this does not work, could you please report with: - a reproducible example (if you have) - always (even if you have an example): a logfile http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session See also http://forum.lazarus-ide.org/index.php?topic=44121 -------------- next part -------------- An HTML attachment was scrubbed... URL: From listbox at martoks-place.de Sat Feb 2 15:54:48 2019 From: listbox at martoks-place.de (Martok) Date: Sat, 2 Feb 2019 15:54:48 +0100 Subject: [Lazarus] lazbuild question In-Reply-To: References: Message-ID: Am 01.02.2019 um 21:48 schrieb Joost van der Sluis via lazarus: > chm Is not a Lazarus but a fpc package. Seems that your fppkg configuration is currupt. > My guess is that it works in Lazarus itself because you haven't compiled Lazbuild in a while. Ryan, can you check what versions of FPC you have installed (and where), which of those is found from the PATH by `which fpc`, and which of those is configured for Lazarus? Fppkg does not play well with user-local installations and wholly ignores the CompPath config of Lazarus, so it may look for an old path that is no longer present. There have been a few changes to that recently, so if your lazbuild is of a different version, it may follow another logic than lazarus. -- Regards, Martok From ryan at thealchemistguild.com Sat Feb 2 16:08:39 2019 From: ryan at thealchemistguild.com (Ryan Joseph) Date: Sat, 2 Feb 2019 10:08:39 -0500 Subject: [Lazarus] lazbuild question In-Reply-To: References: Message-ID: > On Feb 1, 2019, at 3:48 PM, Joost van der Sluis via lazarus wrote: > > chm Is not a Lazarus but a fpc package. Seems that your fppkg configuration is currupt. > My guess is that it works in Lazarus itself because you haven't compiled Lazbuild in a while. That was it! I was using a version of lazbuild from another lazarus installation. Works now that I’m using the correct lazbuild. Thanks. Regards, Ryan Joseph From Special at Joepgen.com Sat Feb 2 21:36:58 2019 From: Special at Joepgen.com (Joe) Date: Sat, 2 Feb 2019 21:36:58 +0100 Subject: [Lazarus] Lazarus Release Candidate 3 of 2.0 In-Reply-To: <20181224112013.6527073e@limapholos.matflo.wg> References: <20181224112013.6527073e@limapholos.matflo.wg> Message-ID: <77d5ee45-af93-038a-5cf3-020803457a88@Joepgen.com> Hi, In this test installation of Lazarus 2.0.0RC3 the IDE does not show the components palette, and under View -> Components the lists are empty. This I did: Installed Linux Mint 18 Sarah 32-Bit on an old x86 notebook. Downloaded fpc-laz_3.0.4-1_i386.deb, fpc-src_3.0.4-1_i386 and lazarus-project_2.0.0RC3-0_i386.deb from http://sourceforge.net/projects/lazarus/files/. Then I installed the three deb files with GDebi and started the Lazarus IDE. A warning "directory lcl not found" appeared. I clicked on "Start IDE". Under Tools -> Options -> Environment, the field  "Lazarus directory" is empty. Regards --  Joe From nc-gaertnma at netcologne.de Sat Feb 2 21:59:25 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sat, 2 Feb 2019 21:59:25 +0100 Subject: [Lazarus] Lazarus Release Candidate 3 of 2.0 In-Reply-To: <77d5ee45-af93-038a-5cf3-020803457a88@Joepgen.com> References: <20181224112013.6527073e@limapholos.matflo.wg> <77d5ee45-af93-038a-5cf3-020803457a88@Joepgen.com> Message-ID: <20190202215925.61ddc553@limapholos.matflo.wg> On Sat, 2 Feb 2019 21:36:58 +0100 Joe via lazarus wrote: > Hi, > > In this test installation of Lazarus 2.0.0RC3 the IDE does not show > the components palette, and under View -> Components the lists are > empty. > > This I did: Installed Linux Mint 18 Sarah 32-Bit on an old x86 > notebook. Downloaded fpc-laz_3.0.4-1_i386.deb, fpc-src_3.0.4-1_i386 > and lazarus-project_2.0.0RC3-0_i386.deb from > http://sourceforge.net/projects/lazarus/files/. > > Then I installed the three deb files with GDebi and started the > Lazarus IDE. A warning "directory lcl not found" appeared. I clicked > on "Start IDE". Under Tools -> Options -> Environment, the field > "Lazarus directory" is empty. If you installed Lazarus the first time on this computer, on start you should see "Welcome to Lazarus 2.0.0RC3" and the Lazarus directory should be set to" /usr/share/lazarus". Are you sure you installed it for the first time? Close the IDE, remove the ~/.lazarus directory and then start the IDE again. Mattias From Special at Joepgen.com Sat Feb 2 22:18:44 2019 From: Special at Joepgen.com (Joe) Date: Sat, 2 Feb 2019 22:18:44 +0100 Subject: [Lazarus] Lazarus Release Candidate 3 of 2.0 In-Reply-To: <77d5ee45-af93-038a-5cf3-020803457a88@Joepgen.com> References: <20181224112013.6527073e@limapholos.matflo.wg> <77d5ee45-af93-038a-5cf3-020803457a88@Joepgen.com> Message-ID: <560c1d84-9ac7-d048-fe4b-07dae44bd014@Joepgen.com> Am 02.02.2019 um 21:36 schrieb Joe via lazarus: > Hi, > > In this test installation of Lazarus 2.0.0RC3 the IDE does not show > the components palette, and under View -> Components the lists are empty. > > This I did: Installed Linux Mint 18 Sarah 32-Bit on an old x86 > notebook. Downloaded fpc-laz_3.0.4-1_i386.deb, fpc-src_3.0.4-1_i386 > and lazarus-project_2.0.0RC3-0_i386.deb from > http://sourceforge.net/projects/lazarus/files/. > > Then I installed the three deb files with GDebi and started the > Lazarus IDE. A warning "directory lcl not found" appeared. I clicked > on "Start IDE". > Under Tools -> Options -> Environment, the field  "Lazarus directory" > is empty. > > Regards --  Joe This problem depends on the user type of the logged on user. If we work as Administrator or Desktop-Benutzer, the components are accessible. If we work as a user of user type Default User, the components are not offered. Joe From Special at Joepgen.com Sat Feb 2 22:36:44 2019 From: Special at Joepgen.com (Joe) Date: Sat, 2 Feb 2019 22:36:44 +0100 Subject: [Lazarus] Lazarus Release Candidate 3 of 2.0 In-Reply-To: <20190202215925.61ddc553@limapholos.matflo.wg> References: <20181224112013.6527073e@limapholos.matflo.wg> <77d5ee45-af93-038a-5cf3-020803457a88@Joepgen.com> <20190202215925.61ddc553@limapholos.matflo.wg> Message-ID: Am 02.02.2019 um 21:59 schrieb Mattias Gaertner via lazarus: > On Sat, 2 Feb 2019 21:36:58 +0100 > Joe via lazarus wrote: > >> Hi, >> >> In this test installation of Lazarus 2.0.0RC3 the IDE does not show >> the components palette, and under View -> Components the lists are >> empty. >> >> This I did: Installed Linux Mint 18 Sarah 32-Bit on an old x86 >> notebook. Downloaded fpc-laz_3.0.4-1_i386.deb, fpc-src_3.0.4-1_i386 >> and lazarus-project_2.0.0RC3-0_i386.deb from >> http://sourceforge.net/projects/lazarus/files/. >> >> Then I installed the three deb files with GDebi and started the >> Lazarus IDE. A warning "directory lcl not found" appeared. I clicked >> on "Start IDE". Under Tools -> Options -> Environment, the field >> "Lazarus directory" is empty. > If you installed Lazarus the first time on this computer, on start you > should see "Welcome to Lazarus 2.0.0RC3" and the Lazarus directory > should be set to" /usr/share/lazarus". > > Are you sure you installed it for the first time? > Close the IDE, remove the ~/.lazarus directory and then start the IDE > again. > > Mattias Hello, Mattias, maybe (am not sure) in a first attempt  I had installed and deinstalled Lazarus 1.6, which  is offered by this distro. Later when I tried to install RC3, GDebi told me, there was an package conflict with fpc. I did  sudo apt-get purge fpc and then sudo apt-get autoremove. Now RC3 could be installed. Following your advice, I removed the ~/.lazarus directory of the default user, and the problem was gone. --  Joe From Special at Joepgen.com Sun Feb 3 00:48:46 2019 From: Special at Joepgen.com (Joe) Date: Sun, 3 Feb 2019 00:48:46 +0100 Subject: [Lazarus] Lazarus Release Candidate 3 of 2.0 In-Reply-To: <77d5ee45-af93-038a-5cf3-020803457a88@Joepgen.com> References: <20181224112013.6527073e@limapholos.matflo.wg> <77d5ee45-af93-038a-5cf3-020803457a88@Joepgen.com> Message-ID: <0139db2d-86c9-5905-23b1-fc0409281271@Joepgen.com> Two minor test findings: Projekt -> Projekt veröffentlichen -> Zielverzeichnis: If the user selects an empty directory, nevertheless a question window "Verzeichnis leeren?" appears. Nonsense in this situation. When a "Debuggerfehler" happens, the user is told "... Drücken Sie <>", but there is no Stop button, only a "Weiter"-Button and a "Halt"-Button. --  Joe From lazarus at mfriebe.de Sun Feb 3 02:00:57 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Sun, 3 Feb 2019 02:00:57 +0100 Subject: [Lazarus] Lazarus Release Candidate 3 of 2.0 In-Reply-To: <0139db2d-86c9-5905-23b1-fc0409281271@Joepgen.com> References: <20181224112013.6527073e@limapholos.matflo.wg> <77d5ee45-af93-038a-5cf3-020803457a88@Joepgen.com> <0139db2d-86c9-5905-23b1-fc0409281271@Joepgen.com> Message-ID: On 03/02/2019 00:48, Joe via lazarus wrote: > > When a "Debuggerfehler" happens, the user is told "... Drücken Sie > <>", but there is no Stop button, only a "Weiter"-Button and a > "Halt"-Button. That must be an issue in the translation. There are a "More" and a "Stop" button in the English version. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: icdndbdiioniecam.png Type: image/png Size: 4895 bytes Desc: not available URL: From ryan at thealchemistguild.com Mon Feb 4 17:38:54 2019 From: ryan at thealchemistguild.com (Ryan Joseph) Date: Mon, 4 Feb 2019 11:38:54 -0500 Subject: [Lazarus] Lazbuild custom options Message-ID: <7E9FA797-DB3A-4612-9110-980CA0D9F571@thealchemistguild.com> Is it possible to send custom options to lazbuild when building a project? .lpi files have a tag which you can use for this but I want to add extra options only when I build from lazbuild (for a running Lazarus in an external editor). Regards, Ryan Joseph From nc-gaertnma at netcologne.de Mon Feb 4 17:56:33 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 4 Feb 2019 17:56:33 +0100 Subject: [Lazarus] Lazbuild custom options In-Reply-To: <7E9FA797-DB3A-4612-9110-980CA0D9F571@thealchemistguild.com> References: <7E9FA797-DB3A-4612-9110-980CA0D9F571@thealchemistguild.com> Message-ID: <20190204175633.3de62b42@limapholos.matflo.wg> On Mon, 4 Feb 2019 11:38:54 -0500 Ryan Joseph via lazarus wrote: > Is it possible to send custom options to lazbuild when building a > project? .lpi files have a tag which you can use for > this but I want to add extra options only when I build from lazbuild > (for a running Lazarus in an external editor). There is no such option. Do you want to add options only to the project or all used packages too? Mattias From gabor at poczta.onet.pl Mon Feb 4 18:01:15 2019 From: gabor at poczta.onet.pl (gabor) Date: Mon, 4 Feb 2019 18:01:15 +0100 Subject: [Lazarus] Lazbuild custom options In-Reply-To: <7E9FA797-DB3A-4612-9110-980CA0D9F571@thealchemistguild.com> References: <7E9FA797-DB3A-4612-9110-980CA0D9F571@thealchemistguild.com> Message-ID: <24af08b9-da1f-64ff-8e03-2583f78f15c2@poczta.onet.pl> You can use "build modes". Regards, Michał. W dniu 2019-02-04 o 17:38, Ryan Joseph via lazarus pisze: > Is it possible to send custom options to lazbuild when building a project? .lpi files have a tag which you can use for this but I want to add extra options only when I build from lazbuild (for a running Lazarus in an external editor). > > Regards, > Ryan Joseph > From ryan at thealchemistguild.com Mon Feb 4 19:19:09 2019 From: ryan at thealchemistguild.com (Ryan Joseph) Date: Mon, 4 Feb 2019 13:19:09 -0500 Subject: [Lazarus] Lazbuild custom options In-Reply-To: <20190204175633.3de62b42@limapholos.matflo.wg> References: <7E9FA797-DB3A-4612-9110-980CA0D9F571@thealchemistguild.com> <20190204175633.3de62b42@limapholos.matflo.wg> Message-ID: <175AC2AB-3DBA-4EB0-BE02-8A83E7A13AFE@thealchemistguild.com> > On Feb 4, 2019, at 11:56 AM, Mattias Gaertner via lazarus wrote: > > There is no such option. > > Do you want to add options only to the project or all used packages > too? I’m running lazbuild from an external editor (Sublime Text) and I need the error output formatted differently (I use -vbr with FPC usually). I could change the .lpi file of course but it belongs to another user who does use the Lazarus IDE and I don’t want to alter his files. Maybe it’s a bit of an edge case but it would be useful to pipe in extra options directly. Regards, Ryan Joseph From Special at Joepgen.com Mon Feb 4 21:55:55 2019 From: Special at Joepgen.com (Joe) Date: Mon, 4 Feb 2019 21:55:55 +0100 Subject: [Lazarus] Translation Problem or IDE Error in Lazarus 2.0 RC3? In-Reply-To: <20181224112013.6527073e@limapholos.matflo.wg> References: <20181224112013.6527073e@limapholos.matflo.wg> Message-ID: <7387a522-59bd-69f6-b754-d123d9ec3ce4@Joepgen.com> If for any reason the '.compiled'-file of a test project can't be written, during compiling a message window "Fehler beim Schreiben der Datei" appears. It contains two buttons: "Abbruch" und "Abbrechen" (something like "Cancellation" and "Cancel"). -- Joe From bartjunk64 at gmail.com Mon Feb 4 22:56:00 2019 From: bartjunk64 at gmail.com (Bart) Date: Mon, 4 Feb 2019 22:56:00 +0100 Subject: [Lazarus] Translation Problem or IDE Error in Lazarus 2.0 RC3? In-Reply-To: <7387a522-59bd-69f6-b754-d123d9ec3ce4@Joepgen.com> References: <20181224112013.6527073e@limapholos.matflo.wg> <7387a522-59bd-69f6-b754-d123d9ec3ce4@Joepgen.com> Message-ID: On Mon, Feb 4, 2019 at 9:56 PM Joe via lazarus wrote: > If for any reason the '.compiled'-file of a test project can't be > written, during compiling a message window "Fehler beim Schreiben der > Datei" appears. It contains two buttons: "Abbruch" und "Abbrechen" > (something like "Cancellation" and "Cancel"). #: lclstrconsts.rsmbabort msgid "Abort" msgstr "Abbruch" #: lclstrconsts.rscancelrecordhint msgctxt "lclstrconsts.rscancelrecordhint" msgid "Cancel" msgstr "Abbrechen" #: lclstrconsts.rsmbcancel msgctxt "lclstrconsts.rsmbcancel" msgid "Cancel" msgstr "Abbrechen" So there seems to be a dialog with [mbCancel,mbAbort] somewehere? (From your post I gather there ar _only_ 2 buttons?) If you set language to English, what do the buttons say? B.t.w. Google translate suggest "Abtreibung" as translation for Abort (it does not give any other suggestions), at least we don't use that one ;-) -- Bart From Special at Joepgen.com Mon Feb 4 23:09:58 2019 From: Special at Joepgen.com (Joe) Date: Mon, 4 Feb 2019 23:09:58 +0100 Subject: [Lazarus] Translation Problem or IDE Error in Lazarus 2.0 RC3? In-Reply-To: References: <20181224112013.6527073e@limapholos.matflo.wg> <7387a522-59bd-69f6-b754-d123d9ec3ce4@Joepgen.com> Message-ID: Am 04.02.2019 um 22:56 schrieb Bart via lazarus: > So there seems to be a dialog with [mbCancel,mbAbort] somewehere? > (From your post I gather there ar_only_ 2 buttons? Yes, the dialog with title "Fehler beim Schreiben der Datei" has only two buttons. I beg your pardon for this silly question: Where do I set the language of Lazarus to English? --  Joe From bartjunk64 at gmail.com Mon Feb 4 23:18:34 2019 From: bartjunk64 at gmail.com (Bart) Date: Mon, 4 Feb 2019 23:18:34 +0100 Subject: [Lazarus] Translation Problem or IDE Error in Lazarus 2.0 RC3? In-Reply-To: References: <20181224112013.6527073e@limapholos.matflo.wg> <7387a522-59bd-69f6-b754-d123d9ec3ce4@Joepgen.com> Message-ID: On Mon, Feb 4, 2019 at 11:10 PM Joe via lazarus wrote: > Yes, the dialog with title "Fehler beim Schreiben der Datei" has only > two buttons. That by itself is silly. > I beg your pardon for this silly question: Where do I set the language > of Lazarus to English? > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus Menu->Tools->Options->Environment->General: select "English [en]" from the dropdownlist. You'll have to restart the IDE for the language to change. -- Bart From bartjunk64 at gmail.com Mon Feb 4 23:21:45 2019 From: bartjunk64 at gmail.com (Bart) Date: Mon, 4 Feb 2019 23:21:45 +0100 Subject: [Lazarus] Translation Problem or IDE Error in Lazarus 2.0 RC3? In-Reply-To: References: <20181224112013.6527073e@limapholos.matflo.wg> <7387a522-59bd-69f6-b754-d123d9ec3ce4@Joepgen.com> Message-ID: On Mon, Feb 4, 2019 at 10:56 PM Bart wrote: > So there seems to be a dialog with [mbCancel,mbAbort] somewehere? > (From your post I gather there ar _only_ 2 buttons?) > > If you set language to English, what do the buttons say? Just tested: [Window Title] Error writing file [Content] Unable to write state file for project Project Error: Unable to create file ".... test.compiled" [Cancel] [Abort] -- Bart From bartjunk64 at gmail.com Mon Feb 4 23:25:40 2019 From: bartjunk64 at gmail.com (Bart) Date: Mon, 4 Feb 2019 23:25:40 +0100 Subject: [Lazarus] Translation Problem or IDE Error in Lazarus 2.0 RC3? In-Reply-To: References: <20181224112013.6527073e@limapholos.matflo.wg> <7387a522-59bd-69f6-b754-d123d9ec3ce4@Joepgen.com> Message-ID: On Mon, Feb 4, 2019 at 11:21 PM Bart wrote: > > So there seems to be a dialog with [mbCancel,mbAbort] somewehere? function TLazarusBuilder.SaveIDEMakeOptions(Profile: TBuildLazarusProfile; Flags: TBuildLazarusFlags): TModalResult; var Filename: String; fs: TFileStreamUTF8; OptionsAsText: String; begin ... except on E: Exception do begin Result:=IDEMessageDialog(lisLazBuildErrorWritingFile, Format(lisLazBuildUnableToWriteFile, [Filename, LineEnding]) +E.Message, mtError,[mbCancel,mbAbort]); <<<===== There it is exit; end; end; Result:=mrOk; end; It does not seem to matter wether the user clicks Cancel or Abort in this dialog though ;-) -- Bart From Special at Joepgen.com Mon Feb 4 23:28:43 2019 From: Special at Joepgen.com (Joe) Date: Mon, 4 Feb 2019 23:28:43 +0100 Subject: [Lazarus] Lazarus 2 RC3 Bug or my fault? In-Reply-To: <20181224112013.6527073e@limapholos.matflo.wg> References: <20181224112013.6527073e@limapholos.matflo.wg> Message-ID: I have a TListBox called LogBox in a test project and write strings with LogBox.Items.Add(stringvar) to LogBox. But the lines don't follow each other without space. There is space with approximately a half line hight between them. In Delphi, the lines in TListBox follow each other without this space.  Is this a Lazarus bug or did I miss something? --  Joe From bartjunk64 at gmail.com Mon Feb 4 23:32:08 2019 From: bartjunk64 at gmail.com (Bart) Date: Mon, 4 Feb 2019 23:32:08 +0100 Subject: [Lazarus] Translation Problem or IDE Error in Lazarus 2.0 RC3? In-Reply-To: References: <20181224112013.6527073e@limapholos.matflo.wg> <7387a522-59bd-69f6-b754-d123d9ec3ce4@Joepgen.com> Message-ID: On Mon, Feb 4, 2019 at 11:25 PM Bart wrote: Sorry, not this one: > function TLazarusBuilder.SaveIDEMakeOptions(Profile: TBuildLazarusProfile; > Flags: TBuildLazarusFlags): TModalResult; but this one (in ide/project.pp): function TProject.SaveStateFile(const CompilerFilename, CompilerParams: string; Complete: boolean): TModalResult; ... except on E: Exception do begin Result:=IDEMessageDialog(lisPkgMangErrorWritingFile, Format(lisProjMangUnableToWriteStateFileForProjectError, [IDAsString, LineEnding, E.Message]), mtError,[mbAbort,mbCancel]); <<== here exit; end; end; Result:=mrOk; end; -- Bart From bartjunk64 at gmail.com Mon Feb 4 23:34:51 2019 From: bartjunk64 at gmail.com (Bart) Date: Mon, 4 Feb 2019 23:34:51 +0100 Subject: [Lazarus] Translation Problem or IDE Error in Lazarus 2.0 RC3? In-Reply-To: References: <20181224112013.6527073e@limapholos.matflo.wg> <7387a522-59bd-69f6-b754-d123d9ec3ce4@Joepgen.com> Message-ID: And there seem to be at least 3 more dialogs with [mbCancel,mbAbort] as buttons in the ide directory ... Bart From Special at Joepgen.com Mon Feb 4 23:36:15 2019 From: Special at Joepgen.com (Joe) Date: Mon, 4 Feb 2019 23:36:15 +0100 Subject: [Lazarus] Translation Problem or IDE Error in Lazarus 2.0 RC3? In-Reply-To: References: <20181224112013.6527073e@limapholos.matflo.wg> <7387a522-59bd-69f6-b754-d123d9ec3ce4@Joepgen.com> Message-ID: Am 04.02.2019 um 23:34 schrieb Bart via lazarus: > And there seem to be at least 3 more dialogs with [mbCancel,mbAbort] > as buttons in the ide directory ... > > Bart Very interesting finding, Bart. --  Joe From bartjunk64 at gmail.com Mon Feb 4 23:39:50 2019 From: bartjunk64 at gmail.com (Bart) Date: Mon, 4 Feb 2019 23:39:50 +0100 Subject: [Lazarus] Translation Problem or IDE Error in Lazarus 2.0 RC3? In-Reply-To: References: <20181224112013.6527073e@limapholos.matflo.wg> <7387a522-59bd-69f6-b754-d123d9ec3ce4@Joepgen.com> Message-ID: On Mon, Feb 4, 2019 at 11:36 PM Joe via lazarus wrote: I asked on devel ML. -- Bart From nc-gaertnma at netcologne.de Mon Feb 4 23:43:15 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 4 Feb 2019 23:43:15 +0100 Subject: [Lazarus] Translation Problem or IDE Error in Lazarus 2.0 RC3? In-Reply-To: References: <20181224112013.6527073e@limapholos.matflo.wg> <7387a522-59bd-69f6-b754-d123d9ec3ce4@Joepgen.com> Message-ID: <20190204234315.3f2fb4d6@limapholos.matflo.wg> On Mon, 4 Feb 2019 23:34:51 +0100 Bart via lazarus wrote: > And there seem to be at least 3 more dialogs with [mbCancel,mbAbort] > as buttons in the ide directory ... On hindsight it probably would be wiser to use mbIgnore and mbAbort. Mattias From lazarus at mfriebe.de Mon Feb 4 23:55:22 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Mon, 4 Feb 2019 23:55:22 +0100 Subject: [Lazarus] Translation Problem or IDE Error in Lazarus 2.0 RC3? In-Reply-To: <20190204234315.3f2fb4d6@limapholos.matflo.wg> References: <20181224112013.6527073e@limapholos.matflo.wg> <7387a522-59bd-69f6-b754-d123d9ec3ce4@Joepgen.com> <20190204234315.3f2fb4d6@limapholos.matflo.wg> Message-ID: <30926377-97d7-a5d6-8670-7e02e8d342ac@mfriebe.de> On 04/02/2019 23:43, Mattias Gaertner via lazarus wrote: > On Mon, 4 Feb 2019 23:34:51 +0100 > Bart via lazarus wrote: > >> And there seem to be at least 3 more dialogs with [mbCancel,mbAbort] >> as buttons in the ide directory ... > On hindsight it probably would be wiser to use mbIgnore and mbAbort. > > Mattias InputFileDialog Reading the code for InputFileDialog.... InputFileDialog is a modal form itself, and if you press ok, it does some tests. If the tests fail, it asks in another modal dlg. (the one with mbAbort/mbCancel Abort =>  InputFileDialog  closes with mrCancel Cancel =>  InputFileDialog   stays open, and lets you select again So maybe some of them did/do diff things, and other got copied and pasted? From nc-gaertnma at netcologne.de Tue Feb 5 11:48:54 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 5 Feb 2019 11:48:54 +0100 Subject: [Lazarus] Lazarus Release 2.0.0 Message-ID: <20190205114854.721bffa8@limapholos.matflo.wg> The Lazarus team is glad to announce the release of Lazarus 2.0.0. This release was built with FPC 3.0.4. The previous release Lazarus 1.8.4 was built with FPC 3.0.4 as well. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_2.0.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.0.4 Here is the list of fixes for Lazarus 2.0.x: http://wiki.freepascal.org/Lazarus_2.0_fixes_branch The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 2.0.0" directory. Checksums for the SourceForge files: http://www.lazarus-ide.org/index.php?page=checksums#2_0_0 Minimum requirements: Windows: 2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit. FreeBSD/Linux: gtk 2.8 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit. Mac OS X: 10.5 to 10.12; Carbon (32bit), Cocoa (64bit, beta), qt and qt5 (32 or 64bit). The svn tag is http://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_0 For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at: ftp://ftp.freepascal.org/pub/lazarus/releases/ and later at (after some time for synchronization) http://mirrors.iwi.me/lazarus/ Mattias From Special at Joepgen.com Tue Feb 5 13:30:19 2019 From: Special at Joepgen.com (Joe) Date: Tue, 5 Feb 2019 13:30:19 +0100 Subject: [Lazarus] Lazarus Release 2.0.0 In-Reply-To: <20190205114854.721bffa8@limapholos.matflo.wg> References: <20190205114854.721bffa8@limapholos.matflo.wg> Message-ID: Great. Should we deinstall Lazarus 2.0.0RC3 and install 2.0.0, or are there only very minor between these versions? Joe From nc-gaertnma at netcologne.de Tue Feb 5 13:55:17 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 5 Feb 2019 13:55:17 +0100 Subject: [Lazarus] Lazarus Release 2.0.0 In-Reply-To: References: <20190205114854.721bffa8@limapholos.matflo.wg> Message-ID: <20190205135517.43874079@limapholos.matflo.wg> On Tue, 5 Feb 2019 13:30:19 +0100 Joe via lazarus wrote: > Great. > Should we deinstall Lazarus 2.0.0RC3 and install 2.0.0, or are there > only very minor between these versions? The 2.0.0 is a bugfix release of 2.0.0RC3. I recommend installing 2.0.0, as the wiki page lists more than a hundred bugfixes: http://wiki.freepascal.org/Lazarus_2.0_fixes_branch Mattias From ryan at thealchemistguild.com Tue Feb 5 15:24:54 2019 From: ryan at thealchemistguild.com (Ryan Joseph) Date: Tue, 5 Feb 2019 09:24:54 -0500 Subject: [Lazarus] Adding Mac specific functionality Message-ID: I’m working on a Lazarus program for another person and I’d like to use a feature of the Mac Cocoa framework which doesn’t exist in Lazarus. I’m happy to add this myself and submit a patch (because it’s helpful for other users) but what is the protocol for doing this? I could add an accessor function into the control (TMemo) but it would route to a Cocoa control and it wouldn’t have any affect on Windows/Linux. Here is the code in question which I’ve added via an ifdef for now but Lazarus should expose “setFocusRingType” in the main interface because it’s important on OS X. {$ifdef DARWIN} NSTextView(Memo1.Handle).setFocusRingType(NSFocusRingTypeNone); {$endif} Regards, Ryan Joseph From ryan at thealchemistguild.com Tue Feb 5 19:32:44 2019 From: ryan at thealchemistguild.com (Ryan Joseph) Date: Tue, 5 Feb 2019 13:32:44 -0500 Subject: [Lazarus] Adding Mac specific functionality In-Reply-To: References: Message-ID: <24E292AE-10E2-49E5-9DD1-EDE751DB926F@thealchemistguild.com> I submitted a patch to correct the problem. WantsTab property of TMemo should affect the focus ring on Mac. https://bugs.freepascal.org/view.php?id=35016 > On Feb 5, 2019, at 9:24 AM, Ryan Joseph via lazarus wrote: > > I’m working on a Lazarus program for another person and I’d like to use a feature of the Mac Cocoa framework which doesn’t exist in Lazarus. > > I’m happy to add this myself and submit a patch (because it’s helpful for other users) but what is the protocol for doing this? I could add an accessor function into the control (TMemo) but it would route to a Cocoa control and it wouldn’t have any affect on Windows/Linux. > > Here is the code in question which I’ve added via an ifdef for now but Lazarus should expose “setFocusRingType” in the main interface because it’s important on OS X. > > {$ifdef DARWIN} > NSTextView(Memo1.Handle).setFocusRingType(NSFocusRingTypeNone); > {$endif} > > Regards, > Ryan Joseph > > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus Regards, Ryan Joseph From ganmax at narod.ru Wed Feb 6 01:58:37 2019 From: ganmax at narod.ru (Maxim Ganetsky) Date: Wed, 6 Feb 2019 03:58:37 +0300 Subject: [Lazarus] Multi-line msgid in PO file In-Reply-To: References: <20190130171017.GD3625@technical09.Axicon2.local> <20190131110115.GA3604@technical09.Axicon2.local> <7ba37e31-9c8d-b287-44c5-391a1eefd570@narod.ru> <66fda7ab-f61c-fe22-2413-2c1fe0d8e51c@narod.ru> Message-ID: <3f0ecf21-04a8-7554-237d-acce26a004a5@narod.ru> 01.02.2019 19:38, Henry Vermaak пишет: > On Fri, 1 Feb 2019 at 12:46, Maxim Ganetsky via lazarus > wrote: >> As I remember, it was not the case earlier at least with Poedit. But its >> current version behaves exactly as you describe. Maybe it is indeed a >> good idea to avoid changing these newlines. I will look into it. > > Thanks, much appreciated. Fixed in r60343. Please test. Note that there can be spurious changes of PO files on first IDE rebuild. You can safely revert them. Also do not forget to rebuild updatepofiles tool if you use it. -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From henry.vermaak at gmail.com Wed Feb 6 13:42:50 2019 From: henry.vermaak at gmail.com (Henry Vermaak) Date: Wed, 6 Feb 2019 12:42:50 +0000 Subject: [Lazarus] Multi-line msgid in PO file In-Reply-To: <3f0ecf21-04a8-7554-237d-acce26a004a5@narod.ru> References: <20190130171017.GD3625@technical09.Axicon2.local> <20190131110115.GA3604@technical09.Axicon2.local> <7ba37e31-9c8d-b287-44c5-391a1eefd570@narod.ru> <66fda7ab-f61c-fe22-2413-2c1fe0d8e51c@narod.ru> <3f0ecf21-04a8-7554-237d-acce26a004a5@narod.ru> Message-ID: <20190206124250.GA3619@technical09.Axicon2.local> On Wed, Feb 06, 2019 at 03:58:37AM +0300, Maxim Ganetsky via lazarus wrote: > 01.02.2019 19:38, Henry Vermaak пишет: > >On Fri, 1 Feb 2019 at 12:46, Maxim Ganetsky via lazarus > > wrote: > >>As I remember, it was not the case earlier at least with Poedit. But its > >>current version behaves exactly as you describe. Maybe it is indeed a > >>good idea to avoid changing these newlines. I will look into it. > > > >Thanks, much appreciated. > > Fixed in r60343. Please test. We've merged them onto fixes_2_0 and everything works well now, thanks! It's a pity we've missed the release, can you merge this onto fixes_2_0? Do you still have to strip trailing newlines from translated strings for lazarus PO files? Henry From ganmax at narod.ru Wed Feb 6 14:16:49 2019 From: ganmax at narod.ru (Maxim Ganetsky) Date: Wed, 6 Feb 2019 16:16:49 +0300 Subject: [Lazarus] Multi-line msgid in PO file In-Reply-To: <20190206124250.GA3619@technical09.Axicon2.local> References: <20190130171017.GD3625@technical09.Axicon2.local> <20190131110115.GA3604@technical09.Axicon2.local> <7ba37e31-9c8d-b287-44c5-391a1eefd570@narod.ru> <66fda7ab-f61c-fe22-2413-2c1fe0d8e51c@narod.ru> <3f0ecf21-04a8-7554-237d-acce26a004a5@narod.ru> <20190206124250.GA3619@technical09.Axicon2.local> Message-ID: <2dc29c75-ce8a-9e93-cbb5-64db653b5341@narod.ru> 06.02.2019 15:42, Henry Vermaak via lazarus пишет: > On Wed, Feb 06, 2019 at 03:58:37AM +0300, Maxim Ganetsky via lazarus wrote: >> 01.02.2019 19:38, Henry Vermaak пишет: >>> On Fri, 1 Feb 2019 at 12:46, Maxim Ganetsky via lazarus >>> wrote: >>>> As I remember, it was not the case earlier at least with Poedit. But its >>>> current version behaves exactly as you describe. Maybe it is indeed a >>>> good idea to avoid changing these newlines. I will look into it. >>> >>> Thanks, much appreciated. >> >> Fixed in r60343. Please test. > > We've merged them onto fixes_2_0 and everything works well now, thanks! Great. > It's a pity we've missed the release, can you merge this onto fixes_2_0? I don't think that this is a good idea at this point of time, the change is too noisy/invasive. Technically this was not a regression, but rather a (mis)feature. > Do you still have to strip trailing newlines from translated strings for > lazarus PO files? All such translations will be marked as fuzzy on their regeneration. All affected Lazarus PO files have already been regenerated. -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From henry.vermaak at gmail.com Wed Feb 6 14:50:56 2019 From: henry.vermaak at gmail.com (Henry Vermaak) Date: Wed, 6 Feb 2019 13:50:56 +0000 Subject: [Lazarus] Multi-line msgid in PO file In-Reply-To: <2dc29c75-ce8a-9e93-cbb5-64db653b5341@narod.ru> References: <20190130171017.GD3625@technical09.Axicon2.local> <20190131110115.GA3604@technical09.Axicon2.local> <7ba37e31-9c8d-b287-44c5-391a1eefd570@narod.ru> <66fda7ab-f61c-fe22-2413-2c1fe0d8e51c@narod.ru> <3f0ecf21-04a8-7554-237d-acce26a004a5@narod.ru> <20190206124250.GA3619@technical09.Axicon2.local> <2dc29c75-ce8a-9e93-cbb5-64db653b5341@narod.ru> Message-ID: <20190206135056.GB3619@technical09.Axicon2.local> On Wed, Feb 06, 2019 at 04:16:49PM +0300, Maxim Ganetsky via lazarus wrote: > 06.02.2019 15:42, Henry Vermaak via lazarus пишет: > > It's a pity we've missed the release, can you merge this onto > > fixes_2_0? > > I don't think that this is a good idea at this point of time, the > change is too noisy/invasive. Technically this was not a regression, > but rather a (mis)feature. I'd argue it was a bug (at least with .mo files), but anyway. We'll just have to patch all of our lazarus trees until we can move off fixes_2_0. > > Do you still have to strip trailing newlines from translated strings > > for lazarus PO files? > > All such translations will be marked as fuzzy on their regeneration. > All affected Lazarus PO files have already been regenerated. Great, thanks. Henry From bo.berglund at gmail.com Wed Feb 6 21:37:52 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Wed, 06 Feb 2019 21:37:52 +0100 Subject: [Lazarus] Lazarus 2 RC3 Bug or my fault? References: <20181224112013.6527073e@limapholos.matflo.wg> Message-ID: On Mon, 4 Feb 2019 23:28:43 +0100, Joe via lazarus wrote: >I have a TListBox called LogBox in a test project and write strings with >LogBox.Items.Add(stringvar) to LogBox. But the lines don't follow each >other without space. There is space with approximately a half line hight >between them. In Delphi, the lines in TListBox follow each other without >this space.  Is this a Lazarus bug or did I miss something? Did you set the font of the list to something unusual? -- Bo Berglund Developer in Sweden From aaa5500 at ya.ru Wed Feb 6 22:11:37 2019 From: aaa5500 at ya.ru (AlexeyT) Date: Thu, 7 Feb 2019 00:11:37 +0300 Subject: [Lazarus] Lazarus 2 RC3 Bug or my fault? In-Reply-To: References: <20181224112013.6527073e@limapholos.matflo.wg> Message-ID: <974305cc-ddb3-cb0a-5073-c5bfca41d530@ya.ru> May be caused by EOL at end of items. on Linux. On 06.02.2019 23:37, Bo Berglund via lazarus wrote: > There is space with approximately a half line hight > between them. -- Regards, Alexey From Special at Joepgen.com Wed Feb 6 22:59:36 2019 From: Special at Joepgen.com (Joe) Date: Wed, 6 Feb 2019 22:59:36 +0100 Subject: [Lazarus] Lazarus 2 RC3 Bug or my fault? In-Reply-To: References: <20181224112013.6527073e@limapholos.matflo.wg> Message-ID: <4df8dd50-3f41-82b2-b427-d11fff45fa66@Joepgen.com> Am 06.02.2019 um 21:37 schrieb Bo Berglund via lazarus: > Did you set the font of the list to something unusual? No, Bo. It's the default font Segoe UI Standard, Size 9. Happens with other fonts, too. --  Joe From Special at Joepgen.com Wed Feb 6 23:02:49 2019 From: Special at Joepgen.com (Joe) Date: Wed, 6 Feb 2019 23:02:49 +0100 Subject: [Lazarus] Lazarus 2 RC3 Bug or my fault? In-Reply-To: <974305cc-ddb3-cb0a-5073-c5bfca41d530@ya.ru> References: <20181224112013.6527073e@limapholos.matflo.wg> <974305cc-ddb3-cb0a-5073-c5bfca41d530@ya.ru> Message-ID: Am 06.02.2019 um 22:11 schrieb AlexeyT via lazarus: > May be caused by EOL at end of items. on Linux. Happens under Windows as well. And it's not an additional line, but only additional space between lines of approximately half a line. --  Joe From werner.pamler at freenet.de Thu Feb 7 00:15:14 2019 From: werner.pamler at freenet.de (Werner Pamler) Date: Thu, 7 Feb 2019 00:15:14 +0100 Subject: [Lazarus] Lazarus 2 RC3 Bug or my fault? In-Reply-To: References: <20181224112013.6527073e@limapholos.matflo.wg> Message-ID: <8e0402dc-1360-a263-0af0-3fdb51e9f0bf@freenet.de> Am 04.02.2019 um 23:28 schrieb Joe via lazarus: > I have a TListBox called LogBox in a test project and write strings > with LogBox.Items.Add(stringvar) to LogBox. But the lines don't follow > each other without space. There is space with approximately a half > line hight between them. In Delphi, the lines in TListBox follow each > other without this space.  Is this a Lazarus bug or did I miss something? Did you set "Style" to "lbOwnerdrawFixed" and "ItemHeight" to a nonzero value? In this case the line height is given by "ItemHeight". Default "Style" is "lbStandard" where "ItemHeight" is forced to 0 which means that the line height is calculated from the font size. From aaa5500 at ya.ru Fri Feb 8 10:23:23 2019 From: aaa5500 at ya.ru (AlexeyT) Date: Fri, 8 Feb 2019 12:23:23 +0300 Subject: [Lazarus] TIFF in LazIntfimage.pas Message-ID: <31cce09b-4a73-1da1-d736-41ea159d46b6@ya.ru> Why not split TIFF classes from %subj% into new unit? This allows to skip using of this unit by define DisableLCLTIFF. -- Regards, Alexey From Special at Joepgen.com Fri Feb 8 10:40:33 2019 From: Special at Joepgen.com (Joe) Date: Fri, 8 Feb 2019 10:40:33 +0100 Subject: [Lazarus] Lazarus 2 RC3 Bug or my fault? In-Reply-To: <8e0402dc-1360-a263-0af0-3fdb51e9f0bf@freenet.de> References: <20181224112013.6527073e@limapholos.matflo.wg> <8e0402dc-1360-a263-0af0-3fdb51e9f0bf@freenet.de> Message-ID: Am 07.02.2019 um 00:15 schrieb Werner Pamler via lazarus: > > Did you set "Style" to "lbOwnerdrawFixed" and "ItemHeight" to a > nonzero value? In this case the line height is given by "ItemHeight". This solved the problem. Thanx, Werner. From juha.manninen62 at gmail.com Fri Feb 8 14:44:00 2019 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Fri, 8 Feb 2019 15:44:00 +0200 Subject: [Lazarus] TIFF in LazIntfimage.pas In-Reply-To: <31cce09b-4a73-1da1-d736-41ea159d46b6@ya.ru> References: <31cce09b-4a73-1da1-d736-41ea159d46b6@ya.ru> Message-ID: On Fri, Feb 8, 2019 at 11:23 AM AlexeyT via lazarus wrote: > Why not split TIFF classes from %subj% into new unit? This allows to > skip using of this unit by define DisableLCLTIFF. What is the benefit? Saving mamory maybe? Juha From Special at Joepgen.com Sat Feb 9 20:31:56 2019 From: Special at Joepgen.com (Joe) Date: Sat, 9 Feb 2019 20:31:56 +0100 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails Message-ID: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> Hi, on a Pi 3B+ under Stretch I did this: ~ $ mkdir lazarus-2a sudo chmod a+w lazarus-2a svn co https://svn.freepascal.org/svn/lazarus/trunk lazarus-2a cd lazarus-2a make clean all I get this error message: ... Compiling fcllaz home/pi/lazarus-2a/packager/registration/fcllaz.pas(11,3)  Fatal: (10022) Can't find unit db used by fcllaz Fatal: (1018) Compilation aborted What's wrong? BTW: fpc -iW returns "3.0.4". Regards --  Joe From Special at Joepgen.com Sat Feb 9 21:27:26 2019 From: Special at Joepgen.com (Joe) Date: Sat, 9 Feb 2019 21:27:26 +0100 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails Message-ID: <88814f7a-668e-c151-9f16-62b08a6d8b95@Joepgen.com> Hi, on a Pi 3B+ under Stretch I did this: ~ $ mkdir lazarus-2a sudo chmod a+w lazarus-2a svn co https://svn.freepascal.org/svn/lazarus/trunk lazarus-2a cd lazarus-2a make clean all I get this error message: ... Compiling fcllaz home/pi/lazarus-2a/packager/registration/fcllaz.pas(11,3)  Fatal: (10022) Can't find unit db used by fcllaz Fatal: (1018) Compilation aborted What's wrong? BTW: fpc -iW returns "3.0.4". Regards --  Joe From nc-gaertnma at netcologne.de Sat Feb 9 21:30:22 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sat, 9 Feb 2019 21:30:22 +0100 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails In-Reply-To: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> References: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> Message-ID: <20190209213022.3f3af122@limapholos.matflo.wg> On Sat, 9 Feb 2019 20:31:56 +0100 Joe via lazarus wrote: > Hi, > > on a Pi 3B+ under Stretch I did this: > > ~ $ mkdir lazarus-2a > sudo chmod a+w lazarus-2a > svn co https://svn.freepascal.org/svn/lazarus/trunk lazarus-2a > cd lazarus-2a > make clean all > > I get this error message: > ... > Compiling fcllaz > home/pi/lazarus-2a/packager/registration/fcllaz.pas(11,3)  Fatal: > (10022) Can't find unit db used by fcllaz > Fatal: (1018) Compilation aborted > > What's wrong? > BTW: fpc -iW returns "3.0.4". Have you tried "make OPT=-vt" to see why fpc can't find unit db? Mattias From Special at Joepgen.com Sat Feb 9 22:19:13 2019 From: Special at Joepgen.com (Joe) Date: Sat, 9 Feb 2019 22:19:13 +0100 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails In-Reply-To: <20190209213022.3f3af122@limapholos.matflo.wg> References: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> <20190209213022.3f3af122@limapholos.matflo.wg> Message-ID: <0038204a-613d-b725-cf99-b2f63662ff3e@Joepgen.com> Am 09.02.2019 um 21:30 schrieb Mattias Gaertner via lazarus: > Have you tried "make OPT=-vt" to see why fpc can't find unit db? Enclosed is the Output of Make with this Option. --  Joe -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: MakeOutput.txt URL: From Special at Joepgen.com Sat Feb 9 22:26:11 2019 From: Special at Joepgen.com (Joe) Date: Sat, 9 Feb 2019 22:26:11 +0100 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails In-Reply-To: <0038204a-613d-b725-cf99-b2f63662ff3e@Joepgen.com> References: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> <20190209213022.3f3af122@limapholos.matflo.wg> <0038204a-613d-b725-cf99-b2f63662ff3e@Joepgen.com> Message-ID: <86fa95b5-d1e8-9c1e-2233-40e7d3a5cdee@Joepgen.com> Am 09.02.2019 um 22:19 schrieb Joe via lazarus: > Enclosed is the Output of Make with this Option. Additionally here you get the output of "whereis fpc". --  Joe -------------- next part -------------- fpc: /usr/bin/fpc /usr/lib/fpc /etc/fpc.bak /etc/fpc.cfg /usr/local/bin/fpc /usr/local/lib/fpc /usr/share/man/man1/fpc.1.gz From nc-gaertnma at netcologne.de Sat Feb 9 23:20:00 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sat, 9 Feb 2019 23:20:00 +0100 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails In-Reply-To: <0038204a-613d-b725-cf99-b2f63662ff3e@Joepgen.com> References: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> <20190209213022.3f3af122@limapholos.matflo.wg> <0038204a-613d-b725-cf99-b2f63662ff3e@Joepgen.com> Message-ID: <20190209232000.628df757@limapholos.matflo.wg> On Sat, 9 Feb 2019 22:19:13 +0100 Joe via lazarus wrote: > Am 09.02.2019 um 21:30 schrieb Mattias Gaertner via lazarus: > > Have you tried "make OPT=-vt" to see why fpc can't find unit db? > Enclosed is the Output of Make with this Option. Check that your /etc/fpc.cfg contains the right -Fu paths. Mattias From lazarus at mfriebe.de Sun Feb 10 00:08:10 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Sun, 10 Feb 2019 00:08:10 +0100 Subject: [Lazarus] Please vote for us at Sourceforge project of the month Message-ID: <516801de-0a37-2292-1237-c405b08c843e@mfriebe.de> Sourceforge nominated us for project of the month March. Please help and vote for us. https://sourceforge.net/p/potm/discussion/vote/thread/29aa49b937/   Voting runs until 2019-02-15 You need an account at sourceforge, and post a comment VOTE: lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From Special at Joepgen.com Sun Feb 10 09:41:08 2019 From: Special at Joepgen.com (Joe) Date: Sun, 10 Feb 2019 09:41:08 +0100 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails In-Reply-To: <20190209232000.628df757@limapholos.matflo.wg> References: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> <20190209213022.3f3af122@limapholos.matflo.wg> <0038204a-613d-b725-cf99-b2f63662ff3e@Joepgen.com> <20190209232000.628df757@limapholos.matflo.wg> Message-ID: <2bf14882-b619-b2a5-d262-1a6c8c075ac4@Joepgen.com> Am 09.02.2019 um 23:20 schrieb Mattias Gaertner via lazarus: > Check that your /etc/fpc.cfg contains the right -Fu paths. /etc/fpc.cfg -> /etc/alternatives/fpc.cfg -> /etc/fpc-3.0.0.cfg It seems, something is wrong with upgrading from fpc 3.0.0 to fpc 3.04. What's the official method to do this? I did sudo apt-get upgrade. cat /etc/fpc-3.0.0.cfg (first for of 278 lines): # # Config file generated by fpcmkcfg on 9-2-19 - 13:29:42 # Example fpc.cfg for Free Pascal Compiler # Regards --  Joe From nc-gaertnma at netcologne.de Sun Feb 10 10:39:36 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 10 Feb 2019 10:39:36 +0100 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails In-Reply-To: <2bf14882-b619-b2a5-d262-1a6c8c075ac4@Joepgen.com> References: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> <20190209213022.3f3af122@limapholos.matflo.wg> <0038204a-613d-b725-cf99-b2f63662ff3e@Joepgen.com> <20190209232000.628df757@limapholos.matflo.wg> <2bf14882-b619-b2a5-d262-1a6c8c075ac4@Joepgen.com> Message-ID: <20190210103936.371b4c04@limapholos.matflo.wg> On Sun, 10 Feb 2019 09:41:08 +0100 Joe via lazarus wrote: > Am 09.02.2019 um 23:20 schrieb Mattias Gaertner via lazarus: > > Check that your /etc/fpc.cfg contains the right -Fu paths. > > /etc/fpc.cfg -> /etc/alternatives/fpc.cfg -> /etc/fpc-3.0.0.cfg > > It seems, something is wrong with upgrading from fpc 3.0.0 to fpc > 3.04. What's the official method to do this? I did sudo apt-get > upgrade. Debian supports installing multiple fpc versions. Create a /etc/fpc-3.0.4.cfg and change the symlink /etc/alternatives/fpc.cfg Mattias From sysrpl at gmail.com Sun Feb 10 11:39:53 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Sun, 10 Feb 2019 05:39:53 -0500 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails In-Reply-To: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> References: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> Message-ID: Joe, Either your fpc config environment is wrong or you are running out of memory. First read this message from the mailing lists: http://lists.lazarus.freepascal.org/pipermail/lazarus/2016-April/162928.html To change GPU memory run "sudo raspi-config" and go to Advanced Options then Memory Split. Set the value to 64 or 32 then reboot and try to recompile. If you still have problems compiling, let me know and I'll post a proper raspberry build script. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Special at Joepgen.com Sun Feb 10 11:50:06 2019 From: Special at Joepgen.com (Joe) Date: Sun, 10 Feb 2019 11:50:06 +0100 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails In-Reply-To: References: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> Message-ID: <5237d62a-5133-d3c1-d0a2-c6b570e5692a@Joepgen.com> Am 10.02.2019 um 11:39 schrieb Anthony Walter via lazarus: > If you still have problems compiling, let me know and I'll post a > proper raspberry build script. Yes, Anthony, please send this script (very appreciated). To the GPU 64 MB are assigned. Thanx --  Joe From Special at Joepgen.com Sun Feb 10 20:07:02 2019 From: Special at Joepgen.com (Joe) Date: Sun, 10 Feb 2019 20:07:02 +0100 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails In-Reply-To: <20190209232000.628df757@limapholos.matflo.wg> References: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> <20190209213022.3f3af122@limapholos.matflo.wg> <0038204a-613d-b725-cf99-b2f63662ff3e@Joepgen.com> <20190209232000.628df757@limapholos.matflo.wg> Message-ID: <096c8095-e993-38f7-11fa-b6b042d9b6dd@Joepgen.com> Am 09.02.2019 um 23:20 schrieb Mattias Gaertner via lazarus: >> Am 09.02.2019 um 21:30 schrieb Mattias Gaertner via lazarus: >> Create a /etc/fpc-3.0.4.cfg and change the symlink >> /etc/alternatives/fpc.cfg I made this cfg file with fpcmkcfg and changed the symlink with ln -sf /etc/fpc-3.0.4.cfg /etc/alternatives/fpc.cfg, but 'make clean bigide' still fails with message "Can't find unit db used by fcllac". Does this 'make' work on your Raspi 3B+? /etc/fpc-3.0.4.cfg -------------- next part -------------- An HTML attachment was scrubbed... URL: From sysrpl at gmail.com Sun Feb 10 21:57:19 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Sun, 10 Feb 2019 15:57:19 -0500 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails In-Reply-To: <096c8095-e993-38f7-11fa-b6b042d9b6dd@Joepgen.com> References: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> <20190209213022.3f3af122@limapholos.matflo.wg> <0038204a-613d-b725-cf99-b2f63662ff3e@Joepgen.com> <20190209232000.628df757@limapholos.matflo.wg> <096c8095-e993-38f7-11fa-b6b042d9b6dd@Joepgen.com> Message-ID: I'll post a build script in a little while. I have to reconfigure another SD raspbian image because my current one is dedicated to another project. Hang in there. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Sun Feb 10 22:31:44 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 10 Feb 2019 22:31:44 +0100 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails In-Reply-To: <096c8095-e993-38f7-11fa-b6b042d9b6dd@Joepgen.com> References: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> <20190209213022.3f3af122@limapholos.matflo.wg> <0038204a-613d-b725-cf99-b2f63662ff3e@Joepgen.com> <20190209232000.628df757@limapholos.matflo.wg> <096c8095-e993-38f7-11fa-b6b042d9b6dd@Joepgen.com> Message-ID: <20190210223144.328d5560@limapholos.matflo.wg> On Sun, 10 Feb 2019 20:07:02 +0100 Joe via lazarus wrote: > Am 09.02.2019 um 23:20 schrieb Mattias Gaertner via lazarus: > >> Am 09.02.2019 um 21:30 schrieb Mattias Gaertner via lazarus: > >> Create a /etc/fpc-3.0.4.cfg and change the symlink > >> /etc/alternatives/fpc.cfg > I made this cfg file with fpcmkcfg and changed the symlink with ln > -sf /etc/fpc-3.0.4.cfg /etc/alternatives/fpc.cfg, > but 'make clean bigide' still fails with message "Can't find unit db > used by fcllac". Again, check with -vut: make bigide OPT=-vut Mattias From Special at Joepgen.com Sun Feb 10 23:33:04 2019 From: Special at Joepgen.com (Joe) Date: Sun, 10 Feb 2019 23:33:04 +0100 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails In-Reply-To: <20190210223144.328d5560@limapholos.matflo.wg> References: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> <20190209213022.3f3af122@limapholos.matflo.wg> <0038204a-613d-b725-cf99-b2f63662ff3e@Joepgen.com> <20190209232000.628df757@limapholos.matflo.wg> <096c8095-e993-38f7-11fa-b6b042d9b6dd@Joepgen.com> <20190210223144.328d5560@limapholos.matflo.wg> Message-ID: <90efe68f-d700-5576-82e5-1cd396cca5e2@Joepgen.com> Am 10.02.2019 um 22:31 schrieb Mattias Gaertner via lazarus: > Again, check with -vut: > make bigide OPT=-vut Mattias, here you get the make output  and the cfg file. --  Joe -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: MakeOutput.txt URL: -------------- next part -------------- # # Config file generated by fpcmkcfg on 10-2-19 - 23:10:52 # Example fpc.cfg for Free Pascal Compiler # # ---------------------- # Defines (preprocessor) # ---------------------- # # nested #IFNDEF, #IFDEF, #ENDIF, #ELSE, #DEFINE, #UNDEF are allowed # # -d is the same as #DEFINE # -u is the same as #UNDEF # # # Some examples (for switches see below, and the -? helppages) # # Try compiling with the -dRELEASE or -dDEBUG on the commandline # # For a release compile with optimizes and strip debuginfo #IFDEF RELEASE -O2 -Xs #WRITE Compiling Release Version #ENDIF # For a debug version compile with debuginfo and all codegeneration checks on #IFDEF DEBUG -gl -Crtoi #WRITE Compiling Debug Version #ENDIF # assembling #ifdef darwin # use pipes instead of temporary files for assembling -ap # path to Xcode 4.3+ utilities (no problem if it doesn't exist) -FD/Applications/Xcode.app/Contents/Developer/usr/bin #endif # ---------------- # Parsing switches # ---------------- # Pascal language mode # -Mfpc free pascal dialect (default) # -Mobjfpc switch some Delphi 2 extensions on # -Mdelphi tries to be Delphi compatible # -Mtp tries to be TP/BP 7.0 compatible # -Mgpc tries to be gpc compatible # -Mmacpas tries to be compatible to the macintosh pascal dialects # # Turn on Object Pascal extensions by default #-Mobjfpc # Assembler reader mode # -Rdefault use default assembler # -Ratt read AT&T style assembler # -Rintel read Intel style assembler # # All assembler blocks are AT&T styled by default #-Ratt # Semantic checking # -S2 same as -Mobjfpc # -Sc supports operators like C (*=,+=,/= and -=) # -Sa include assertion code. # -Sd same as -Mdelphi # -Se error options. is a combination of the following: # : compiler stops after errors (default is 1) # w : compiler stops also after warnings # n : compiler stops also after notes # h : compiler stops also after hints # -Sg allow LABEL and GOTO # -Sh Use ansistrings # -Si support C++ styled INLINE # -Sk load fpcylix unit # -SI set interface style to # -SIcom COM compatible interface (default) # -SIcorba CORBA compatible interface # -Sm support macros like C (global) # -So same as -Mtp # -Sp same as -Mgpc # -Ss constructor name must be init (destructor must be done) # -Sx enable exception keywords (default in Delphi/ObjFPC modes) # # Allow goto, inline, C-operators, C-vars -Sgic # --------------- # Code generation # --------------- # Uncomment the next line if you always want static/dynamic units by default # (can be overruled with -CD, -CS at the commandline) #-CS #-CD # Set the default heapsize to 8Mb #-Ch8000000 # Set default codegeneration checks (iocheck, overflow, range, stack) #-Ci #-Co #-Cr #-Ct # Optimizer switches # -Os generate smaller code # -Oa=N set alignment to N # -O1 level 1 optimizations (quick optimizations, debuggable) # -O2 level 2 optimizations (-O1 + optimizations which make debugging more difficult) # -O3 level 3 optimizations (-O2 + optimizations which also may make the program slower rather than faster) # -Oo switch on optimalization x. See fpc -i for possible values # -OoNO switch off optimalization x. See fpc -i for possible values # -Op set target cpu for optimizing, see fpc -i for possible values #ifdef darwin #ifdef cpui386 -Cppentiumm -Oppentiumm #endif #endif # ----------------------- # Set Filenames and Paths # ----------------------- # Both slashes and backslashes are allowed in paths # path to the messagefile, not necessary anymore but can be used to override # the default language #-Fr/msg/errore.msg #-Fr/msg/errorn.msg #-Fr/msg/errores.msg #-Fr/msg/errord.msg #-Fr/msg/errorr.msg # search path for unicode binary files (FPC 2.x does not know this switch) #ifndef VER2 -FM/unicode/ #endif # searchpath for units and other system dependent things -Fu/units/$fpctarget -Fu/units/$fpctarget/* -Fu/units/$fpctarget/rtl #ifdef cpui8086 -Fu/units/$fpctarget/$fpcsubarch-$fpcmemorymodel -Fu/units/$fpctarget/$fpcsubarch-$fpcmemorymodel/* -Fu/units/$fpctarget/$fpcsubarch-$fpcmemorymodel/rtl #endif #IFDEF FPCAPACHE_1_3 -Fu/units/$fpctarget/httpd13/ #ELSE #IFDEF FPCAPACHE_2_0 -Fu/units/$fpctarget/httpd20 #ELSE -Fu/units/$fpctarget/httpd22 #ENDIF #ENDIF # searchpath for fppkg user-specific packages -Fu~/.fppkg/lib/fpc/$fpcversion/units/$FPCTARGET/* # path to the gcclib # searchpath for libraries #-Fl/lib #-Fl/lib;/usr/lib -Fl/lib/$FPCTARGET # searchpath for tools -FD/bin/$FPCTARGET #DEFINE NEEDCROSSBINUTILS # never need cross-prefix when targeting the JVM # (no native compiler, always cross-compiling) #ifdef cpujvm #undef NEEDCROSSBINUTILS #endif # for android cross-prefix is set by compiler #ifdef android #undef NEEDCROSSBINUTILS #endif # never need cross-prefix when targeting the i8086 # (no native compiler, always cross-compiling) #ifdef cpui8086 #undef NEEDCROSSBINUTILS #endif # never need cross-prefix when targeting the i8086 # (no native compiler, always cross-compiling) #ifdef cpujvm #undef NEEDCROSSBINUTILS #endif # binutils prefix for cross compiling #IFDEF FPC_CROSSCOMPILING #IFDEF NEEDCROSSBINUTILS -XP$FPCTARGET- #ENDIF #ENDIF # ------------- # Linking # ------------- # generate always debugging information for GDB (slows down the compiling # process) # -gc generate checks for pointers # -gd use dbx # -gg use gsym # -gh use heap trace unit (for memory leak debugging) # -gl use line info unit to show more info for backtraces # -gv generates programs tracable with valgrind # -gw generate dwarf debugging info # # Enable debuginfo and use the line info unit by default #-gl # always pass an option to the linker #-k-s # Always strip debuginfo from the executable -Xs # Always use smartlinking on i8086, because the system unit exceeds the 64kb # code limit #ifdef cpui8086 -CX -XX #endif # ------------- # Miscellaneous # ------------- # Write always a nice FPC logo ;) -l # Verbosity # e : Show errors (default) d : Show debug info # w : Show warnings u : Show unit info # n : Show notes t : Show tried/used files # h : Show hints s : Show time stamps # i : Show general info q : Show message numbers # l : Show linenumbers c : Show conditionals # a : Show everything 0 : Show nothing (except errors) # b : Write file names messages r : Rhide/GCC compatibility mode # with full path x : Executable info (Win32 only) # v : write fpcdebug.txt with p : Write tree.log with parse tree # lots of debugging info # # Display Info, Warnings and Notes -viwn # If you don't want so much verbosity use #-vw From nc-gaertnma at netcologne.de Mon Feb 11 00:07:37 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 11 Feb 2019 00:07:37 +0100 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails In-Reply-To: <90efe68f-d700-5576-82e5-1cd396cca5e2@Joepgen.com> References: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> <20190209213022.3f3af122@limapholos.matflo.wg> <0038204a-613d-b725-cf99-b2f63662ff3e@Joepgen.com> <20190209232000.628df757@limapholos.matflo.wg> <096c8095-e993-38f7-11fa-b6b042d9b6dd@Joepgen.com> <20190210223144.328d5560@limapholos.matflo.wg> <90efe68f-d700-5576-82e5-1cd396cca5e2@Joepgen.com> Message-ID: <20190211000737.0e148c28@limapholos.matflo.wg> On Sun, 10 Feb 2019 23:33:04 +0100 Joe via lazarus wrote: > Am 10.02.2019 um 22:31 schrieb Mattias Gaertner via lazarus: > > Again, check with -vut: > > make bigide OPT=-vut > Mattias, > here you get the make output  and the cfg file. Your cfg contains -Fu/units/$fpctarget This path does not exists: ... Hint: (11030) Start of reading config file /etc/fpc.cfg Path "/units/arm-linux/" not found ... Maybe you mean -Fu/usr/local/lib/fpc/$fpctarget/ ? Mattias From Special at Joepgen.com Mon Feb 11 00:55:59 2019 From: Special at Joepgen.com (Joe) Date: Mon, 11 Feb 2019 00:55:59 +0100 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails In-Reply-To: <20190211000737.0e148c28@limapholos.matflo.wg> References: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> <20190209213022.3f3af122@limapholos.matflo.wg> <0038204a-613d-b725-cf99-b2f63662ff3e@Joepgen.com> <20190209232000.628df757@limapholos.matflo.wg> <096c8095-e993-38f7-11fa-b6b042d9b6dd@Joepgen.com> <20190210223144.328d5560@limapholos.matflo.wg> <90efe68f-d700-5576-82e5-1cd396cca5e2@Joepgen.com> <20190211000737.0e148c28@limapholos.matflo.wg> Message-ID: <180f6623-ef90-3043-b508-6b45cfb1da11@Joepgen.com> Am 11.02.2019 um 00:07 schrieb Mattias Gaertner via lazarus: > Maybe you mean > -Fu/usr/local/lib/fpc/$fpctarget/ Do you refer to the content of the cfg file? I created the cfg file automagically with "fpcmkcfg -o /etc/fpc-3.0.4.cfg", but have no idea about its content and did not change anything in it. In the meantime, to be sure fpc 3.0.4 is ok, I updated its sources (to revision 41293) and did "make build" and "sudo make install". No errors. But when trying again to make lazarus, still the same error message pops up. How does it work on your  Raspberry Pi 3B+? Regards --  Joe From aaa5500 at ya.ru Mon Feb 11 12:12:13 2019 From: aaa5500 at ya.ru (AlexeyT) Date: Mon, 11 Feb 2019 14:12:13 +0300 Subject: [Lazarus] IsEditableTextKey bug? Message-ID: function IsEditableTextKey(Key: Word): Boolean; begin  Result := (((Key >= VK_A) and (Key <= VK_Z)) or             ((Key >= VK_NUMPAD0) and (Key <= VK_DIVIDE)) or             ((Key >= VK_0) and (Key <= VK_9)) or             ((Key >= 186) and (Key <= 188)) or             ((Key >= 190) and (Key <= 192)) or             ((Key >= 219) and (Key <= 222))); end; See that 188 here, 189 missed, 190 here. 189 is VK_OEM_MINUS.   VK_OEM_PLUS            = $BB; // For any country/region, the '+' key   VK_OEM_COMMA           = $BC; // For any country/region, the ',' key   VK_OEM_MINUS           = $BD; // For any country/region, the '-' key   VK_OEM_PERIOD          = $BE; // For any country/region, the '.' key why it's missed? -- Regards, Alexey From sysrpl at gmail.com Mon Feb 11 15:12:28 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Mon, 11 Feb 2019 09:12:28 -0500 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available Message-ID: I've made available precompiled bundles of FPC 3.3.1 and Lazarus 2.0 for the Raspberry Pi. You can download this bundle at this location: https://www.getlazarus.org/setup/?download#raspberry_pi This Raspbian bundle is much larger than my previous bundle weighing in at 635MB compared to the previous version's 200MB. The increase in almost entirely size is due to the inclusion of more many FPC packages. If any of you feel that a reduced install size is more important, please let me know and I'll consider removing the same packages which were remove in the previous bundle. Please note, if you are trying to run Lazarus 2.0 on Raspbian and want to rebuild the IDE you'll need at least a 512MB swap file size. Please see the Raspbian documentation on how to enable and manage your Raspbian swap file. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sysrpl at gmail.com Mon Feb 11 15:17:16 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Mon, 11 Feb 2019 09:17:16 -0500 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails In-Reply-To: <180f6623-ef90-3043-b508-6b45cfb1da11@Joepgen.com> References: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> <20190209213022.3f3af122@limapholos.matflo.wg> <0038204a-613d-b725-cf99-b2f63662ff3e@Joepgen.com> <20190209232000.628df757@limapholos.matflo.wg> <096c8095-e993-38f7-11fa-b6b042d9b6dd@Joepgen.com> <20190210223144.328d5560@limapholos.matflo.wg> <90efe68f-d700-5576-82e5-1cd396cca5e2@Joepgen.com> <20190211000737.0e148c28@limapholos.matflo.wg> <180f6623-ef90-3043-b508-6b45cfb1da11@Joepgen.com> Message-ID: Okay Joe, I've create a version of Lazarus 2.0 and it's available here: https://www.getlazarus.org/setup/?download#raspberry_pi Please see this mailing list message titled "Raspbian FPC 3.3.1 and Lazarus 2.0 Available" for the notes. I made this a precompiled bundle rather than an svn build script because it takes MUCH longer to download and build sources on a Raspberry Pi, and also I've reduced the storage footprint by at least 1.5GB, which is a lot given the typical space people have available on their Raspbian SD card. Let me know if you have any questions or problems. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Special at Joepgen.com Mon Feb 11 15:27:44 2019 From: Special at Joepgen.com (Joe) Date: Mon, 11 Feb 2019 15:27:44 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: References: Message-ID: Am 11.02.2019 um 15:12 schrieb Anthony Walter via lazarus: > I've made available precompiled bundles of FPC 3.3.1 and Lazarus 2.0 > for the Raspberry Pi. Great, Antony. Thanx. -- Joe From Special at Joepgen.com Mon Feb 11 17:37:06 2019 From: Special at Joepgen.com (Joe) Date: Mon, 11 Feb 2019 17:37:06 +0100 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails In-Reply-To: References: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> <20190209213022.3f3af122@limapholos.matflo.wg> <0038204a-613d-b725-cf99-b2f63662ff3e@Joepgen.com> <20190209232000.628df757@limapholos.matflo.wg> <096c8095-e993-38f7-11fa-b6b042d9b6dd@Joepgen.com> <20190210223144.328d5560@limapholos.matflo.wg> <90efe68f-d700-5576-82e5-1cd396cca5e2@Joepgen.com> <20190211000737.0e148c28@limapholos.matflo.wg> <180f6623-ef90-3043-b508-6b45cfb1da11@Joepgen.com> Message-ID: <3295b68d-2f28-3a9b-12b9-9a01b88002eb@Joepgen.com> Am 11.02.2019 um 15:17 schrieb Anthony Walter via lazarus: > Okay Joe, I've create a version of Lazarus 2.0 and it's available here: > > https://www.getlazarus.org/setup/?download#raspberry_pi > > Please see this mailing list message titled "Raspbian FPC 3.3.1 and > Lazarus 2.0 Available" for the notes. > > I made this a precompiled bundle rather than an svn build script > because it takes MUCH longer to download and build sources on a > Raspberry Pi, and also I've reduced the storage footprint by at least > 1.5GB, which is a lot given the typical space people have available on > their Raspbian SD card. > > Let me know if you have any questions or problems. > Hi, Anthony, unfortunately this script fails on a Pi3B+ with  a fresh installed Stretch (Version Nov 2018). I have created a bug report with enclosed screen shot and tried to send it to you, but got this answer: Your mail to 'lazarus' with the subject Re: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available/Bug Report Is being held until the list moderator can review it for approval. The reason it is being held: Message body is too big: 161273 bytes with a limit of 100 KB I am going to make the screen shot smaller and to try again. Regards -- Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From sysrpl at gmail.com Mon Feb 11 17:47:51 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Mon, 11 Feb 2019 11:47:51 -0500 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails In-Reply-To: <3295b68d-2f28-3a9b-12b9-9a01b88002eb@Joepgen.com> References: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> <20190209213022.3f3af122@limapholos.matflo.wg> <0038204a-613d-b725-cf99-b2f63662ff3e@Joepgen.com> <20190209232000.628df757@limapholos.matflo.wg> <096c8095-e993-38f7-11fa-b6b042d9b6dd@Joepgen.com> <20190210223144.328d5560@limapholos.matflo.wg> <90efe68f-d700-5576-82e5-1cd396cca5e2@Joepgen.com> <20190211000737.0e148c28@limapholos.matflo.wg> <180f6623-ef90-3043-b508-6b45cfb1da11@Joepgen.com> <3295b68d-2f28-3a9b-12b9-9a01b88002eb@Joepgen.com> Message-ID: > > Just include the output of the setup script. There shouldn't be too much > text in it. Reminder, you'll need to the prerequisite packages before the > install will work. The prerequisites will be listed when you run the setup > script. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bo.berglund at gmail.com Mon Feb 11 18:04:39 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Mon, 11 Feb 2019 18:04:39 +0100 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails References: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> Message-ID: <2u936eh0sus6b3e5h0iehebfuu9caov8qo@4ax.com> On Sat, 9 Feb 2019 20:31:56 +0100, Joe via lazarus wrote: >Hi, > >on a Pi 3B+ under Stretch I did this: > >~ $ mkdir lazarus-2a >sudo chmod a+w lazarus-2a >svn co https://svn.freepascal.org/svn/lazarus/trunk lazarus-2a >cd lazarus-2a >make clean all > >I get this error message: >... >Compiling fcllaz >home/pi/lazarus-2a/packager/registration/fcllaz.pas(11,3)  Fatal: >(10022) Can't find unit db used by fcllaz >Fatal: (1018) Compilation aborted > >What's wrong? >BTW: fpc -iW returns "3.0.4". I have created a script file to use for installing fpc + lazarus on RPi platforms including the dependencies and build tools. I have used it many times on pristine RPi builds and it always worked fine for FPC 3.0.0 to 3.0.4 and Lazarus 1.6 to 1.8.x I have put the script on my website for simplicity (so I can wget it into a new RPi easily). After reading this post I puilled out an RPi3 unit I had used for other stuff so there was no old fpc/lazarus files on it and it was running stretch too. So this is what I did: sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade Then I manually created the user bin dir at /home/pi/bin since this is where my script deposits the binaries. I also logged out and back in to make sure this bin dir was recognized as the user's bin and was on path. I then created a ~/dev dir for my tools and downloaded my build script into it using wget and configured the script regarding versions so that fpc 3.0.4 and lazarus 2.0.0 would be the targets for installation. What happened when I ran the script is that it seemed to go OK as far as all dependencies, subversion etc being installed and fpc 3.0.4 compiled and set up for use. But the last steps where lazarus was to be installed ended after 37 minutes total with this message: (9009) Assembling sourceeditor sourceeditor.pp(11384) Error: (9008) Can't call the assembler, error -1 switching to external assembling sourceeditor.pp(11384) Fatal: (10026) There were 2 errors compiling module, stopping Fatal: (1018) Compilation aborted Makefile:4144: recipe for target 'lazarus' failed make[2]: *** [lazarus] Error 1 make[2]: Leaving directory '/home/pi/dev/lazarus/2.0.0/ide' Makefile:4576: recipe for target 'bigide' failed make[1]: *** [bigide] Error 2 make[1]: Leaving directory '/home/pi/dev/lazarus/2.0.0/ide' Makefile:3378: recipe for target 'idebig' failed make: *** [idebig] Error 2 install_lazfpc_local_pi.sh: 174: Cannot make Lazarus bigide! Aborting I wonder at what step you are getting the missing db error? And of course I wonder what was the reason for my failure? -- Bo Berglund Developer in Sweden From Special at Joepgen.com Mon Feb 11 18:39:51 2019 From: Special at Joepgen.com (Joe) Date: Mon, 11 Feb 2019 18:39:51 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: References: Message-ID: <127fecdc-9a1b-f8e9-349b-dbfa566a6bb9@Joepgen.com> Am 11.02.2019 um 15:12 schrieb Anthony Walter via lazarus: > I've made available precompiled bundles of FPC 3.3.1 and Lazarus 2.0 > for the Raspberry Pi. You can download this bundle at this location: > Hi, Anthony, several attempts failed to send you my bug report with screen shots. Some bytes too large... So here you get a copy of my report without screem shots, but with stderr output of the script. Regards --  Joe ------------------------------------------------------ Copy: Hi, Anthony, I installed a fresh Stretch (Nov 2018) on a new SD card and put it in a Pi 3B+-. Selected 'German' and 'Germany'. Enabled VNC. Then I installed Lazarus 1.6.2 via "Add/Remove software", started Lazarus and got the known error message "The package editor macro script has detected a problerm and was activated". Copied your script in /home/pi, made it executable and started it. I was asked to install libghx-x11-dev and did it. Started the script again, accepted /home/pi/Development/FreePascal as default install location. Said 'y' to the shortcuts question. But then I got an error message from line 206 of the script, and it finished. Tried it again to get a screen shot with the error messages. It is enclosed. How to fix? Thank you --  Joe -------------- next part -------------- /home/pi/.local/share/applications (y/n)? % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 tar: Das sieht nicht wie ein „tar“-Archiv aus. gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now ./setup.sh: Zeile 206: /home/pi/Development/FreePascal/fpc/bin/fpcmkcfg: Datei oder Verzeichnis nicht gefunden find: ‘/home/pi/Development/FreePascal/lazarus/config’: Datei oder Verzeichnis nicht gefunden find: ‘/home/pi/Development/FreePascal/lazarus/config’: Datei oder Verzeichnis nicht gefunden find: ‘/home/pi/Development/FreePascal/lazarus’: Datei oder Verzeichnis nicht gefunden find: ‘/home/pi/Development/FreePascal/lazarus’: Datei oder Verzeichnis nicht gefunden cp: der Aufruf von stat für '/home/pi/Development/FreePascal/lazarus/lazarus.desktop' ist nicht möglich: Datei oder Verzeichnis nicht gefunden mv: der Aufruf von stat für '/home/pi/Development/FreePascal/lazarus/lazarus.desktop' ist nicht möglich: Datei oder Verzeichnis nicht gefunden ./setup.sh: Zeile 237: /home/pi/Development/FreePascal/fpc/bin/fpc-terminal.sh: Datei oder Verzeichnis nicht gefunden ./setup.sh: Zeile 238: /home/pi/Development/FreePascal/fpc/bin/fpc-terminal.sh: Datei oder Verzeichnis nicht gefunden ./setup.sh: Zeile 239: /home/pi/Development/FreePascal/fpc/bin/fpc-terminal.sh: Datei oder Verzeichnis nicht gefunden ./setup.sh: Zeile 240: /home/pi/Development/FreePascal/fpc/bin/fpc-terminal.sh: Datei oder Verzeichnis nicht gefunden chmod: Zugriff auf '/home/pi/Development/FreePascal/fpc/bin/fpc-terminal.sh' nicht möglich: Datei oder Verzeichnis nicht gefunden From sysrpl at gmail.com Mon Feb 11 19:16:38 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Mon, 11 Feb 2019 13:16:38 -0500 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: <127fecdc-9a1b-f8e9-349b-dbfa566a6bb9@Joepgen.com> References: <127fecdc-9a1b-f8e9-349b-dbfa566a6bb9@Joepgen.com> Message-ID: Why are you posting a screenshot image of the terminal output? Just paste the terminal output in here. It looks like your download of the gzipped tar file isn't working. I am guessing you don't have Internet on your Pi? Well you need it to run the install script. Otherwise it is likely a problem with AWS S3 not having a replicated instance of the my files in your region. Try the following command: wget http://cache.getlazarus.org/archives/fpc.lazarus.raspberry.tar.gz That should download the the binary bundle from Amazon's servers. Please verify that it downloads the file fpc.lazarus.raspberry.tar.gz. If the download works: tar xvf fpc.lazarus.raspberry.tar.gz And you it should extract both a fpc and lazarus folder. Let me know what this does for you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bo.berglund at gmail.com Mon Feb 11 19:39:04 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Mon, 11 Feb 2019 19:39:04 +0100 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails References: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> <2u936eh0sus6b3e5h0iehebfuu9caov8qo@4ax.com> Message-ID: <22g36ed4otkt5irfg6ekgumhqdm3hr0d8v@4ax.com> On Mon, 11 Feb 2019 18:04:39 +0100, Bo Berglund via lazarus wrote: >What happened when I ran the script is that it seemed to go OK as far >as all dependencies, subversion etc being installed and fpc 3.0.4 >compiled and set up for use. >But the last steps where lazarus was to be installed ended after 37 >minutes total with this message: > >(9009) Assembling sourceeditor >sourceeditor.pp(11384) Error: (9008) Can't call the assembler, error >-1 switching to external assembling >sourceeditor.pp(11384) Fatal: (10026) There were 2 errors compiling >module, stopping >Fatal: (1018) Compilation aborted >Makefile:4144: recipe for target 'lazarus' failed >make[2]: *** [lazarus] Error 1 >make[2]: Leaving directory '/home/pi/dev/lazarus/2.0.0/ide' >Makefile:4576: recipe for target 'bigide' failed >make[1]: *** [bigide] Error 2 >make[1]: Leaving directory '/home/pi/dev/lazarus/2.0.0/ide' >Makefile:3378: recipe for target 'idebig' failed >make: *** [idebig] Error 2 >install_lazfpc_local_pi.sh: 174: Cannot make Lazarus bigide! Aborting >And of course I wonder what was the reason for my failure? I found the problem! Swap size had not been increased on this RPi3 image! After changing to 1024M swap I ran my lazarus-only install script (it is a cut-down version of the original script) and it finished OK after 13 min and the Stretch menu was updated to include Lazarus 2.0.0 in its Programming section. All is well and good, so I am not able to help the OP with any other advice but making sure his swap is set to 1024 MB. -- Bo Berglund Developer in Sweden From sysrpl at gmail.com Mon Feb 11 19:39:38 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Mon, 11 Feb 2019 13:39:38 -0500 Subject: [Lazarus] Lazarus 2 Installation under Raspbian Stretch fails In-Reply-To: <2u936eh0sus6b3e5h0iehebfuu9caov8qo@4ax.com> References: <38c1c3b8-711a-c296-9042-c557fb44dc27@Joepgen.com> <2u936eh0sus6b3e5h0iehebfuu9caov8qo@4ax.com> Message-ID: Bo, Buliding Lazarus pushes the limits of the hardware and default settings for Raspbian. The 1GB of RAM on the Pi is often not sufficient to build Lazarus. Typically you need to create modify the swap to be 512MB or 1GB. I recommend 1GB. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Special at Joepgen.com Mon Feb 11 20:20:51 2019 From: Special at Joepgen.com (Joe) Date: Mon, 11 Feb 2019 20:20:51 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: References: <127fecdc-9a1b-f8e9-349b-dbfa566a6bb9@Joepgen.com> Message-ID: <6592c033-7cbe-35cf-39f8-88fd621922e1@Joepgen.com> Am 11.02.2019 um 19:16 schrieb Anthony Walter via lazarus: > Let me know what this does for you. Yes, the two folders are created. Thank you. What is the next step? Regards --  Joe From sysrpl at gmail.com Mon Feb 11 20:45:06 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Mon, 11 Feb 2019 14:45:06 -0500 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: <6592c033-7cbe-35cf-39f8-88fd621922e1@Joepgen.com> References: <127fecdc-9a1b-f8e9-349b-dbfa566a6bb9@Joepgen.com> <6592c033-7cbe-35cf-39f8-88fd621922e1@Joepgen.com> Message-ID: Joe, I am pretty sure the problem is that the setup script you downloaded was the old version. I use cloud distribution on Amazon and it wakes a while to replicate files to your area. As a result you received an old copy referencing deleted files. Delete the setup script, download it again, and re-run. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Special at Joepgen.com Mon Feb 11 21:34:11 2019 From: Special at Joepgen.com (Joe) Date: Mon, 11 Feb 2019 21:34:11 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: References: <127fecdc-9a1b-f8e9-349b-dbfa566a6bb9@Joepgen.com> <6592c033-7cbe-35cf-39f8-88fd621922e1@Joepgen.com> Message-ID: Am 11.02.2019 um 20:45 schrieb Anthony Walter via lazarus: > Delete the setup script, download it again, and re-run. Anthony, the two versions are the same, says winmerge. In the mean time, I reinstalled Raspian again, but this time I did not activate Lazarus 1.6.2. Instead I did 'tar xvf fpc.lazarus.raspberry.tar.gz' and now there are the two new directories fpc and lazarus. What is the next step? Rewgards --  Joe From sysrpl at gmail.com Tue Feb 12 00:51:55 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Mon, 11 Feb 2019 18:51:55 -0500 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: References: <127fecdc-9a1b-f8e9-349b-dbfa566a6bb9@Joepgen.com> <6592c033-7cbe-35cf-39f8-88fd621922e1@Joepgen.com> Message-ID: Joe, you should delete setup.sh, download it again: Here is the location of the Rasberry Pi setup script: https://www.getlazarus.org/download/?platform=raspberry chmod + x setup.sh && ./setup.sh After that follow the instructions in the terminal. When the script completes you will have a menu entry in Raspbian under Programming titled Lazarus 2.0. Use that shortcut to launch Lazarus. Alternately you can navigate to the install location and in the lazarus folder run lazarus.sh to start Lazarus 2.0 to with the properly configured environment. You should see the Lazarus splash screen with version 2.0 emboldened at the bottom. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Special at Joepgen.com Tue Feb 12 10:44:08 2019 From: Special at Joepgen.com (Joe) Date: Tue, 12 Feb 2019 10:44:08 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: References: <127fecdc-9a1b-f8e9-349b-dbfa566a6bb9@Joepgen.com> <6592c033-7cbe-35cf-39f8-88fd621922e1@Joepgen.com> Message-ID: <3b56e2f9-dc89-1519-483f-4bffa8061d3c@Joepgen.com> Am 12.02.2019 um 00:51 schrieb Anthony Walter via lazarus: > Joe, you should delete setup.sh, download it again: > > Here is the location of the Rasberry Pi setup script: > > https://www.getlazarus.org/download/?platform=raspberry > > chmod + x setup.sh && ./setup.sh > > After that follow the instructions in the terminal. When the script > completes you will have a menu entry in Raspbian under Programming > titled Lazarus 2.0. Use that shortcut to launch Lazarus. Alternately > you can navigate to the install location and in the lazarus folder run > lazarus.sh to start Lazarus 2.0 to with the properly configured > environment. > > You should see the Lazarus splash screen with version 2.0 emboldened > at the bottom. > Anthony, on executing this setup.sh I just got the same error messages:. Among them: tar: Das sieht nicht wie ein "tar"-Archiv aus gzip: stdin: unexpected end of file ./setup.sh: Zeile 206: /home/pi/Development/FreePascal/fpc/bin/fpcmkcfg: Datei nicht gefunden and much more. Nevertherless  setup.sh finishes with message "Your Free Pascal 3.0 with Lazarus is now installed". Translation: 'Das sieht nicht wie ein "tar"-Archiv aus' -> Doesn't look like a "tar" archive                      'Datei nicht gefunden -> Filre not found Now I am preparing another sd card with Raspian Stretch again, but do not switch to German and try this setup.sh again. Regards --  Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From Special at Joepgen.com Tue Feb 12 12:18:41 2019 From: Special at Joepgen.com (Joe) Date: Tue, 12 Feb 2019 12:18:41 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: <3b56e2f9-dc89-1519-483f-4bffa8061d3c@Joepgen.com> References: <127fecdc-9a1b-f8e9-349b-dbfa566a6bb9@Joepgen.com> <6592c033-7cbe-35cf-39f8-88fd621922e1@Joepgen.com> <3b56e2f9-dc89-1519-483f-4bffa8061d3c@Joepgen.com> Message-ID: Am 12.02.2019 um 10:44 schrieb Joe via lazarus: > Am 12.02.2019 um 00:51 schrieb Anthony Walter via lazarus: >> Joe, you should delete setup.sh, download it again: >> >> Here is the location of the Rasberry Pi setup script: >> >> https://www.getlazarus.org/download/?platform=raspberry >> >> chmod + x setup.sh && ./setup.sh >> >> After that follow the instructions in the terminal. When the script >> completes you will have a menu entry in Raspbian under Programming >> titled Lazarus 2.0. Use that shortcut to launch Lazarus. Alternately >> you can navigate to the install location and in the lazarus folder >> run lazarus.sh to start Lazarus 2.0 to with the properly configured >> environment. >> >> You should see the Lazarus splash screen with version 2.0 emboldened >> at the bottom. >> > > Anthony, > > on executing this setup.sh I just got the same error messages:. Among > them: > > tar: Das sieht nicht wie ein "tar"-Archiv aus > gzip: stdin: unexpected end of file > ./setup.sh: Zeile 206: > /home/pi/Development/FreePascal/fpc/bin/fpcmkcfg: Datei nicht gefunden > and much more. > > Nevertherless  setup.sh finishes with message "Your Free Pascal 3.0 > with Lazarus is now installed". > > Translation: 'Das sieht nicht wie ein "tar"-Archiv aus' -> Doesn't > look like a "tar" archive >                      'Datei nicht gefunden -> Filre not found > > Now I am preparing another sd card with Raspian Stretch again, but do > not switch to German and try this setup.sh again. > > Regards --  Joe > > > Anthony, in English-UK settings, I see the same behaviour of the script. Now it says 'this does not look like an tar arc hive'. Regards --  Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From sysrpl at gmail.com Tue Feb 12 21:33:30 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Tue, 12 Feb 2019 15:33:30 -0500 Subject: [Lazarus] Make Primary Config Path Message-ID: Is is possible to set the Lazarus primary config path when using make? I often put the config path inside my "lazarus" folder. As such, when I rebuild the IDE using the command "make useride" it would be preferable if I could refer the make command to my config folder containing idemake.cfg. Currently when I execute "make useride", the make script attempts to read idemake.cfg from $HOME/.lazarus/ instead of $HOME/Development/FreePascal/lazarus/config/. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaa5500 at ya.ru Tue Feb 12 21:44:33 2019 From: aaa5500 at ya.ru (AlexeyT) Date: Tue, 12 Feb 2019 23:44:33 +0300 Subject: [Lazarus] IDE Run Parameters dlg layout Message-ID: <76976a10-d426-0057-9984-d9f6c6fb6561@ya.ru> I find it cumbersome that two buttons on top [+ -] don't have titles (not TButton), while "Environment" tab (same dialog) has two buttons [+ -] with titles. -- Regards, Alexey From nc-gaertnma at netcologne.de Tue Feb 12 22:24:45 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 12 Feb 2019 22:24:45 +0100 Subject: [Lazarus] Make Primary Config Path In-Reply-To: References: Message-ID: <20190212222445.476e9aea@limapholos.matflo.wg> On Tue, 12 Feb 2019 15:33:30 -0500 Anthony Walter via lazarus wrote: > Is is possible to set the Lazarus primary config path when using make? > > I often put the config path inside my "lazarus" folder. As such, when > I rebuild the IDE using the command "make useride" it would be > preferable if I could refer the make command to my config folder > containing idemake.cfg. > > Currently when I execute "make useride", the make script attempts to > read idemake.cfg from $HOME/.lazarus/ instead of > $HOME/Development/FreePascal/lazarus/config/. Create a file lazarus.cfg into the lazarus directory with: --pcp=config This will store/use all configs in a sub directory "config". Mattias From sysrpl at gmail.com Wed Feb 13 02:46:02 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Tue, 12 Feb 2019 20:46:02 -0500 Subject: [Lazarus] Make Primary Config Path In-Reply-To: <20190212222445.476e9aea@limapholos.matflo.wg> References: <20190212222445.476e9aea@limapholos.matflo.wg> Message-ID: Thanks. I will try that in a little while. -------------- next part -------------- An HTML attachment was scrubbed... URL: From luca at ventoso.org Wed Feb 13 09:30:24 2019 From: luca at ventoso.org (Luca Olivetti) Date: Wed, 13 Feb 2019 09:30:24 +0100 Subject: [Lazarus] Lazarus with fpc 3.2 [was Re: [fpc-devel] Suspicion about TThread.Synchronize] In-Reply-To: <3b3a6732-9762-4495-92c9-c0a7895e3059@ventoso.org> References: <63ad511c-8ae9-3277-19be-4dcd327439fa@mfriebe.de> <76f6b5cf-0eac-5a58-e8ca-cff16f1fa226@googlemail.com> <7d188695-d5d8-0bb3-aebf-79e53553f47a@ventoso.org> <4eff4726-c801-802a-35b5-1ccfdf1b35cd@ventoso.org> <3b3a6732-9762-4495-92c9-c0a7895e3059@ventoso.org> Message-ID: <73d899e4-37c0-cb6a-cf6e-e2728acf612a@ventoso.org> El 6/2/19 a les 19:19, Luca Olivetti ha escrit: [The original thread was in fpc-devel, but this is a lazarus issue I think] > El 6/2/19 a les 18:51, Sven Barth via fpc-devel ha escrit: > >> Would you nevertheless try with 3.2, please? Just in case it happens >> to be the problem I had fixed in regards to Queue(). > > The branch is fixes_3_2? I'm having difficulties compiling lazarus with this branch. First I tried with lazarus 1.8.4, now I'm trying with lazarus 2.0. I compiled that branch, installed (make install), created a fpc.cfg with fpmkcfg, put the new compiler directory (d:\pp\bin\i386-win32) as the first one in PATH, cleaned everything in the lazarus directory (make clean and deleting all lib directories). This is the result of make bigide (3104) Compiling tadiagram.pas D:\laz_test\components\tachart\tadiagram.pas(347,38) Error: (3349) Only static methods and static variables can be referenced through an object type tadiagram.pas(989) Fatal: (10026) There were 1 errors compiling module, stopping make ide generates a lazarus binary, but then I cannot install my components: VirtualTreeView (checked out from git) VirtualTrees.pas(772,19) Error: No matching implementation for interface method "SetData(const tagFORMATETC;var TagSTGMEDIUM;LongBool):LongInt; StdCall;" found OK, remove virtualtreeview (I don't need it in this project, after all this is just a test). Next TAChart fails (wait, this is included with lazarus) tadiagram.pas(347,38) Error: Only static methods and static variables can be referenced through an object type OK, remove it too and jcfidelazarus,turbopoweripro and laz_fpspreadsheet which require it. Now I have a working ide (without those packages) and I can do some tests, but it worries me that there's no virtualtreeview and the tachart included with lazarus doesn't compile. Bye -- Luca From nc-gaertnma at netcologne.de Wed Feb 13 09:42:21 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 13 Feb 2019 09:42:21 +0100 Subject: [Lazarus] Lazarus with fpc 3.2 [was Re: [fpc-devel] Suspicion about TThread.Synchronize] In-Reply-To: <73d899e4-37c0-cb6a-cf6e-e2728acf612a@ventoso.org> References: <63ad511c-8ae9-3277-19be-4dcd327439fa@mfriebe.de> <76f6b5cf-0eac-5a58-e8ca-cff16f1fa226@googlemail.com> <7d188695-d5d8-0bb3-aebf-79e53553f47a@ventoso.org> <4eff4726-c801-802a-35b5-1ccfdf1b35cd@ventoso.org> <3b3a6732-9762-4495-92c9-c0a7895e3059@ventoso.org> <73d899e4-37c0-cb6a-cf6e-e2728acf612a@ventoso.org> Message-ID: <20190213094221.67b5d2fb@limapholos.matflo.wg> On Wed, 13 Feb 2019 09:30:24 +0100 Luca Olivetti via lazarus wrote: > El 6/2/19 a les 19:19, Luca Olivetti ha escrit: > > [The original thread was in fpc-devel, but this is a lazarus issue I > think] > > > > El 6/2/19 a les 18:51, Sven Barth via fpc-devel ha escrit: > > > >> Would you nevertheless try with 3.2, please? Just in case it > >> happens to be the problem I had fixed in regards to Queue(). > > > > The branch is fixes_3_2? > > I'm having difficulties compiling lazarus with this branch. > First I tried with lazarus 1.8.4, now I'm trying with lazarus 2.0. > > I compiled that branch, installed (make install), created a fpc.cfg > with fpmkcfg, put the new compiler directory (d:\pp\bin\i386-win32) > as the first one in PATH, cleaned everything in the lazarus directory > (make clean and deleting all lib directories). > > This is the result of make bigide > > (3104) Compiling tadiagram.pas > D:\laz_test\components\tachart\tadiagram.pas(347,38) Error: (3349) > Only static methods and static variables can be referenced through an > object type tadiagram.pas(989) Fatal: (10026) There were 1 errors > compiling module, stopping Sounds like this bug: https://bugs.freepascal.org/view.php?id=35039 >[...] Mattias From werner.pamler at freenet.de Wed Feb 13 09:50:03 2019 From: werner.pamler at freenet.de (Werner Pamler) Date: Wed, 13 Feb 2019 09:50:03 +0100 Subject: [Lazarus] Lazarus with fpc 3.2 [was Re: [fpc-devel] Suspicion about TThread.Synchronize] In-Reply-To: <73d899e4-37c0-cb6a-cf6e-e2728acf612a@ventoso.org> References: <63ad511c-8ae9-3277-19be-4dcd327439fa@mfriebe.de> <76f6b5cf-0eac-5a58-e8ca-cff16f1fa226@googlemail.com> <7d188695-d5d8-0bb3-aebf-79e53553f47a@ventoso.org> <4eff4726-c801-802a-35b5-1ccfdf1b35cd@ventoso.org> <3b3a6732-9762-4495-92c9-c0a7895e3059@ventoso.org> <73d899e4-37c0-cb6a-cf6e-e2728acf612a@ventoso.org> Message-ID: Please update your Laz-fixes installation: The patch for the issue with VirtualTreeView has been merged to fixes in r60091, that for the issue with TAChart in r60392. From luca at ventoso.org Wed Feb 13 12:08:37 2019 From: luca at ventoso.org (Luca Olivetti) Date: Wed, 13 Feb 2019 12:08:37 +0100 Subject: [Lazarus] Lazarus with fpc 3.2 [was Re: [fpc-devel] Suspicion about TThread.Synchronize] In-Reply-To: References: <63ad511c-8ae9-3277-19be-4dcd327439fa@mfriebe.de> <76f6b5cf-0eac-5a58-e8ca-cff16f1fa226@googlemail.com> <7d188695-d5d8-0bb3-aebf-79e53553f47a@ventoso.org> <4eff4726-c801-802a-35b5-1ccfdf1b35cd@ventoso.org> <3b3a6732-9762-4495-92c9-c0a7895e3059@ventoso.org> <73d899e4-37c0-cb6a-cf6e-e2728acf612a@ventoso.org> Message-ID: <958f0e84-055d-8ab9-db01-ec6cab20aa80@ventoso.org> El 13/2/19 a les 9:50, Werner Pamler via lazarus ha escrit: > Please update your Laz-fixes installation: The patch for the issue with > VirtualTreeView has been merged to fixes in r60091, that for the issue > with TAChart in r60392. I checked out r60392 but I still cannot compile VirtualTreeView (checked out from github https://github.com/blikblum/VirtualTreeView-Lazarus.git, branch lazarus-master) VirtualTrees.pas(772,19) Error: No matching implementation for interface method "SetData(const tagFORMATETC;var TagSTGMEDIUM;LongBool):LongInt; StdCall;" found Bye -- Luca From werner.pamler at freenet.de Wed Feb 13 14:17:14 2019 From: werner.pamler at freenet.de (Werner Pamler) Date: Wed, 13 Feb 2019 14:17:14 +0100 Subject: [Lazarus] Lazarus with fpc 3.2 [was Re: [fpc-devel] Suspicion about TThread.Synchronize] In-Reply-To: <958f0e84-055d-8ab9-db01-ec6cab20aa80@ventoso.org> References: <63ad511c-8ae9-3277-19be-4dcd327439fa@mfriebe.de> <76f6b5cf-0eac-5a58-e8ca-cff16f1fa226@googlemail.com> <7d188695-d5d8-0bb3-aebf-79e53553f47a@ventoso.org> <4eff4726-c801-802a-35b5-1ccfdf1b35cd@ventoso.org> <3b3a6732-9762-4495-92c9-c0a7895e3059@ventoso.org> <73d899e4-37c0-cb6a-cf6e-e2728acf612a@ventoso.org> <958f0e84-055d-8ab9-db01-ec6cab20aa80@ventoso.org> Message-ID: <22d344a0-8d7f-8e52-2535-2c3a2a20be8d@freenet.de> Am 13.02.2019 um 12:08 schrieb Luca Olivetti via lazarus: > El 13/2/19 a les 9:50, Werner Pamler via lazarus ha escrit: > > I checked out r60392 but I still cannot compile VirtualTreeView > (checked out from github > https://github.com/blikblum/VirtualTreeView-Lazarus.git, branch > lazarus-master) > > VirtualTrees.pas(772,19) Error: No matching implementation for > interface method "SetData(const tagFORMATETC;var > TagSTGMEDIUM;LongBool):LongInt; StdCall;" found > > Bye No, you must use the VirtualTreeViews which comes with Lazarus (folder components/virtualtreeview). If you absolutely want to stay with this github version you should replace "var" in the offending methods by a "const". I do not know, however, whether this version will cooperate with the Online-Package-Manager (you absolutely must uninstall the VTV of the Lazarus version!).  If that would not work you'd be forced to use the VTV of the Lazarus installation, or you switch to Lazarus trunk in which this version conflict is resolved. From listbox at martoks-place.de Wed Feb 13 15:21:14 2019 From: listbox at martoks-place.de (Martok) Date: Wed, 13 Feb 2019 15:21:14 +0100 Subject: [Lazarus] Lazarus with fpc 3.2 [was Re: [fpc-devel] Suspicion about TThread.Synchronize] In-Reply-To: <22d344a0-8d7f-8e52-2535-2c3a2a20be8d@freenet.de> References: <63ad511c-8ae9-3277-19be-4dcd327439fa@mfriebe.de> <76f6b5cf-0eac-5a58-e8ca-cff16f1fa226@googlemail.com> <7d188695-d5d8-0bb3-aebf-79e53553f47a@ventoso.org> <4eff4726-c801-802a-35b5-1ccfdf1b35cd@ventoso.org> <3b3a6732-9762-4495-92c9-c0a7895e3059@ventoso.org> <73d899e4-37c0-cb6a-cf6e-e2728acf612a@ventoso.org> <958f0e84-055d-8ab9-db01-ec6cab20aa80@ventoso.org> <22d344a0-8d7f-8e52-2535-2c3a2a20be8d@freenet.de> Message-ID: Am 13.02.2019 um 14:17 schrieb Werner Pamler via lazarus: > No, you must use the VirtualTreeViews which comes with Lazarus (folder > components/virtualtreeview). Sorry to barge in here, but is this version actively maintained again? I distinctly remember from 2016 that it was extremely outdated and did not incorporate upstream development at all. Too many forks... -- Regards, Martok From luca at ventoso.org Wed Feb 13 16:18:25 2019 From: luca at ventoso.org (Luca Olivetti) Date: Wed, 13 Feb 2019 16:18:25 +0100 Subject: [Lazarus] Lazarus with fpc 3.2 [was Re: [fpc-devel] Suspicion about TThread.Synchronize] In-Reply-To: <22d344a0-8d7f-8e52-2535-2c3a2a20be8d@freenet.de> References: <63ad511c-8ae9-3277-19be-4dcd327439fa@mfriebe.de> <76f6b5cf-0eac-5a58-e8ca-cff16f1fa226@googlemail.com> <7d188695-d5d8-0bb3-aebf-79e53553f47a@ventoso.org> <4eff4726-c801-802a-35b5-1ccfdf1b35cd@ventoso.org> <3b3a6732-9762-4495-92c9-c0a7895e3059@ventoso.org> <73d899e4-37c0-cb6a-cf6e-e2728acf612a@ventoso.org> <958f0e84-055d-8ab9-db01-ec6cab20aa80@ventoso.org> <22d344a0-8d7f-8e52-2535-2c3a2a20be8d@freenet.de> Message-ID: <4390ef2d-2979-82d9-64ad-e1f1734ccceb@ventoso.org> El 13/2/19 a les 14:17, Werner Pamler via lazarus ha escrit: > Am 13.02.2019 um 12:08 schrieb Luca Olivetti via lazarus: > >> El 13/2/19 a les 9:50, Werner Pamler via lazarus ha escrit: >> >> I checked out r60392 but I still cannot compile VirtualTreeView >> (checked out from github >> https://github.com/blikblum/VirtualTreeView-Lazarus.git, branch >> lazarus-master) >> >> VirtualTrees.pas(772,19) Error: No matching implementation for >> interface method "SetData(const tagFORMATETC;var >> TagSTGMEDIUM;LongBool):LongInt; StdCall;" found >> >> Bye > > > No, you must use the VirtualTreeViews which comes with Lazarus (folder > components/virtualtreeview). If you absolutely want to stay with this > github version you should replace "var" in the offending methods by a > "const". Actually, I don't care: if the version that comes with lazarus works that's fine for me. In fact I didn't even know that it was included, http://wiki.freepascal.org/VirtualTreeview seems to imply you have to get it from github. Bye -- Luca From luca at ventoso.org Wed Feb 13 17:10:18 2019 From: luca at ventoso.org (Luca Olivetti) Date: Wed, 13 Feb 2019 17:10:18 +0100 Subject: [Lazarus] Lazarus with fpc 3.2 [was Re: [fpc-devel] Suspicion about TThread.Synchronize] In-Reply-To: <4390ef2d-2979-82d9-64ad-e1f1734ccceb@ventoso.org> References: <63ad511c-8ae9-3277-19be-4dcd327439fa@mfriebe.de> <76f6b5cf-0eac-5a58-e8ca-cff16f1fa226@googlemail.com> <7d188695-d5d8-0bb3-aebf-79e53553f47a@ventoso.org> <4eff4726-c801-802a-35b5-1ccfdf1b35cd@ventoso.org> <3b3a6732-9762-4495-92c9-c0a7895e3059@ventoso.org> <73d899e4-37c0-cb6a-cf6e-e2728acf612a@ventoso.org> <958f0e84-055d-8ab9-db01-ec6cab20aa80@ventoso.org> <22d344a0-8d7f-8e52-2535-2c3a2a20be8d@freenet.de> <4390ef2d-2979-82d9-64ad-e1f1734ccceb@ventoso.org> Message-ID: El 13/2/19 a les 16:18, Luca Olivetti via lazarus ha escrit: >> No, you must use the VirtualTreeViews which comes with Lazarus (folder >> components/virtualtreeview). If you absolutely want to stay with this >> github version you should replace "var" in the offending methods by a >> "const". > > > Actually, I don't care: if the version that comes with lazarus works > that's fine for me. In fact I didn't even know that it was included, > http://wiki.freepascal.org/VirtualTreeview seems to imply you have to > get it from github. Oh, I see now that it was *not* included in lazarus 1.8.4, that's why I originally used the version from lazarus-ccr and seeing that it wasn't compiling I tried the one from github. Bye -- Luca From luca at ventoso.org Wed Feb 13 17:18:33 2019 From: luca at ventoso.org (Luca Olivetti) Date: Wed, 13 Feb 2019 17:18:33 +0100 Subject: [Lazarus] Lazarus with fpc 3.2 [was Re: [fpc-devel] Suspicion about TThread.Synchronize] In-Reply-To: References: <63ad511c-8ae9-3277-19be-4dcd327439fa@mfriebe.de> <76f6b5cf-0eac-5a58-e8ca-cff16f1fa226@googlemail.com> <7d188695-d5d8-0bb3-aebf-79e53553f47a@ventoso.org> <4eff4726-c801-802a-35b5-1ccfdf1b35cd@ventoso.org> <3b3a6732-9762-4495-92c9-c0a7895e3059@ventoso.org> <73d899e4-37c0-cb6a-cf6e-e2728acf612a@ventoso.org> <958f0e84-055d-8ab9-db01-ec6cab20aa80@ventoso.org> <22d344a0-8d7f-8e52-2535-2c3a2a20be8d@freenet.de> <4390ef2d-2979-82d9-64ad-e1f1734ccceb@ventoso.org> Message-ID: El 13/2/19 a les 17:10, Luca Olivetti via lazarus ha escrit: > El 13/2/19 a les 16:18, Luca Olivetti via lazarus ha escrit: > >>> No, you must use the VirtualTreeViews which comes with Lazarus >>> (folder components/virtualtreeview). If you absolutely want to stay >>> with this github version you should replace "var" in the offending >>> methods by a "const". >> >> >> Actually, I don't care: if the version that comes with lazarus works >> that's fine for me. In fact I didn't even know that it was included, >> http://wiki.freepascal.org/VirtualTreeview seems to imply you have to >> get it from github. > > Oh, I see now that it was *not* included in lazarus 1.8.4, that's why I > originally used the version from lazarus-ccr and seeing that it wasn't > compiling I tried the one from github. I added a note to the wiki that both lclextensions and virtualtreeview are now included with lazarus. Bye -- Luca From henry.vermaak at gmail.com Wed Feb 13 18:37:10 2019 From: henry.vermaak at gmail.com (Henry Vermaak) Date: Wed, 13 Feb 2019 17:37:10 +0000 Subject: [Lazarus] Windows startup infinite loop Message-ID: <20190213173710.GB3583@technical09.Axicon2.local> We're having a strange problem here, an infinite loop happens on a customer's machine just after the main form is created. It doesn't happen when the program is run inside a debugger and it only happens on the customer's machine(s), so it's probably related to their Windows configuration. The infinite loop is not in our code (probably happens with HandleNeeded() is called for the main form). When I attach gdb manually when the program is run outside the debugger I can get a stack trace that shows the loop: (gdb) thread 1 [Switching to thread 1 (Thread 4484.0x2bc8)] #0 0x76d2566b in USER32!DispatchMessageW () from C:\WINDOWS\System32\user32.dll (gdb) bt #0 0x76d2566b in USER32!DispatchMessageW () from C:\WINDOWS\System32\user32.dll #1 0x76d1b387 in USER32!CallWindowProcW () from C:\WINDOWS\System32\user32.dll #2 0x005076ab in CALLDEFAULTWINDOWPROC (WINDOW=592304, MSG=48, WPARAM=-854972773, LPARAM=0) at ./win32/win32callback.inc:97 #3 0x0050bb80 in TWINDOWPROCHELPER__DOWINDOWPROC (this=0xf3e7e1c) at ./win32/win32callback.inc:2419 #4 0x0050c4fb in WINDOWPROC (WINDOW=592304, MSG=48, WPARAM=-854972773, LPARAM=0) at ./win32/win32callback.inc:2673 #5 0x76d334bb in USER32!AddClipboardFormatListener () from C:\WINDOWS\System32\user32.dll #6 0x76d25913 in USER32!DispatchMessageW () from C:\WINDOWS\System32\user32.dll #7 0x76d1b387 in USER32!CallWindowProcW () from C:\WINDOWS\System32\user32.dll #8 0x72e6fd6d in ?? () #9 0x72e6f8ef in ?? () #10 0x76d334bb in USER32!AddClipboardFormatListener () from C:\WINDOWS\System32\user32.dll #11 0x76d25913 in USER32!DispatchMessageW () from C:\WINDOWS\System32\user32.dll #12 0x76d1b387 in USER32!CallWindowProcW () from C:\WINDOWS\System32\user32.dll #13 0x005076ab in CALLDEFAULTWINDOWPROC (WINDOW=592304, MSG=48, WPARAM=-854972773, LPARAM=0) at ./win32/win32callback.inc:97 #14 0x0050bb80 in TWINDOWPROCHELPER__DOWINDOWPROC (this=0xf3e7cf4) at ./win32/win32callback.inc:2419 #15 0x0050c4fb in WINDOWPROC (WINDOW=592304, MSG=48, WPARAM=-854972773, LPARAM=0) at ./win32/win32callback.inc:2673 #16 0x76d334bb in USER32!AddClipboardFormatListener () from C:\WINDOWS\System32\user32.dll #17 0x76d25913 in USER32!DispatchMessageW () from C:\WINDOWS\System32\user32.dll #18 0x76d1b387 in USER32!CallWindowProcW () from C:\WINDOWS\System32\user32.dll #19 0x72e6fd6d in ?? () #20 0x72e6f8ef in ?? () #21 0x76d334bb in USER32!AddClipboardFormatListener () from C:\WINDOWS\System32\user32.dll #22 0x76d25913 in USER32!DispatchMessageW () from C:\WINDOWS\System32\user32.dll #23 0x76d1b387 in USER32!CallWindowProcW () from C:\WINDOWS\System32\user32.dll #24 0x005076ab in CALLDEFAULTWINDOWPROC (WINDOW=592304, MSG=48, WPARAM=-854972773, LPARAM=0) at ./win32/win32callback.inc:97 #25 0x0050bb80 in TWINDOWPROCHELPER__DOWINDOWPROC (this=0xf3e7bcc) at ./win32/win32callback.inc:2419 It carries on like this until you stop with ctrl-c. I was wondering if this rang a bell for anyone? I'm running on the fixes_2_0 branch now, but the problem existed with fixes_1_8 too. Is there anything I can do to help get to the bottom of this? Will rebuilding the LCL with MSG_DEBUG help? Henry From octopushole at gmail.com Wed Feb 13 19:40:53 2019 From: octopushole at gmail.com (duilio foschi) Date: Wed, 13 Feb 2019 19:40:53 +0100 Subject: [Lazarus] alternative to web programming? In-Reply-To: References: <20190205114854.721bffa8@limapholos.matflo.wg> Message-ID: https://www.cybelesoft.com/thinfinity/virtualui/ has somebody tried the product above? Can it be a real alternative to web programming? Thank you Peppe Polpo -------------- next part -------------- An HTML attachment was scrubbed... URL: From fluisgirardi at gmail.com Wed Feb 13 20:23:50 2019 From: fluisgirardi at gmail.com (Fabio Luis Girardi) Date: Wed, 13 Feb 2019 17:23:50 -0200 Subject: [Lazarus] alternative to web programming? In-Reply-To: References: <20190205114854.721bffa8@limapholos.matflo.wg> Message-ID: Maybe it's something similar to gtk3 Broadway? Em Qua, 13 de fev de 2019 16:41, duilio foschi via lazarus < lazarus at lists.lazarus-ide.org escreveu: > https://www.cybelesoft.com/thinfinity/virtualui/ > > has somebody tried the product above? > > Can it be a real alternative to web programming? > > Thank you > > Peppe Polpo > -- > _______________________________________________ > 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 sysrpl at gmail.com Wed Feb 13 20:53:06 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Wed, 13 Feb 2019 14:53:06 -0500 Subject: [Lazarus] alternative to web programming? In-Reply-To: References: <20190205114854.721bffa8@limapholos.matflo.wg> Message-ID: IMO the best things about creating and using html + css for web applications is the power of the design. That is, you can easily style the look of a web application to be practically anything, including dead simple animations and transforms. So then using a framework where you have to design the interface by using a non html + css tool, you end up with difficult to stylize user interfaces. That type of toolchain seems very counter productive to me. I've even say it wastes a lot of time for developers and graphic designers since adding elements and changing styles can be tweaked by anyone on your team purely through built in browser developer tools (F12 on Windows and Linux with most all browsers). If you're going to be dropping in html or css changes, your workflow is going to be more difficult if you're fighting fight with some non html + css layout tools. -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Wed Feb 13 21:25:54 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Wed, 13 Feb 2019 21:25:54 +0100 (CET) Subject: [Lazarus] alternative to web programming? In-Reply-To: References: <20190205114854.721bffa8@limapholos.matflo.wg> Message-ID: On Wed, 13 Feb 2019, duilio foschi via lazarus wrote: > https://www.cybelesoft.com/thinfinity/virtualui/ > > has somebody tried the product above? > > Can it be a real alternative to web programming? Not really. It's basically a remote desktop session in a browser. Some kind of terminal server solution. How they can claim this is super scalable is beyond me. I tried once something similar (https://www.awingu.com/), but had to give up. The application was too complex and the setup was too demanding. And you're still running a desktop app, so no responsiveness, no CSS tricks. With today's variety in devices, it's a dead end IMO. Michael. From lazarus at mfriebe.de Wed Feb 13 23:24:22 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Wed, 13 Feb 2019 23:24:22 +0100 Subject: [Lazarus] GIT sha1 vs svn numbers Message-ID: <1efaa119-33b2-0da0-f184-c14d344646a2@mfriebe.de> I looked at a few ideas, if something like the svn numbers could be retained. One approach would be to have a tag on each commit. That would mean that r54123 would be a replacement for the sha1 in almost all (if not all)  situations. Not tested, but likely that the server can add the tags, when stuff gets pushed. The downsides: -  might slightly slow down "git log" (not much really) - "git tag" which usually lists tags like releases, will list 50000+ revisions too   viewing tags in GUI frontends may take serious time, as GUI frontends seem not to expect this (tested with tortoise / tortoise revision graph even crashes with that) - may interfere otherwise when tagging releases etc / need to push new tags individually by name. Another approach would be to include such info in the commit-message. But that has to be done with the commit. That is locally by each user. (by a local git hook script). Therefore those refs would not be unique. Duplicates are possible. This is similar to the "git-svn-id" present in the commit message of all imported commits. From werner.pamler at freenet.de Wed Feb 13 23:56:14 2019 From: werner.pamler at freenet.de (Werner Pamler) Date: Wed, 13 Feb 2019 23:56:14 +0100 Subject: [Lazarus] Lazarus with fpc 3.2 [was Re: [fpc-devel] Suspicion about TThread.Synchronize] In-Reply-To: References: <63ad511c-8ae9-3277-19be-4dcd327439fa@mfriebe.de> <76f6b5cf-0eac-5a58-e8ca-cff16f1fa226@googlemail.com> <7d188695-d5d8-0bb3-aebf-79e53553f47a@ventoso.org> <4eff4726-c801-802a-35b5-1ccfdf1b35cd@ventoso.org> <3b3a6732-9762-4495-92c9-c0a7895e3059@ventoso.org> <73d899e4-37c0-cb6a-cf6e-e2728acf612a@ventoso.org> <958f0e84-055d-8ab9-db01-ec6cab20aa80@ventoso.org> <22d344a0-8d7f-8e52-2535-2c3a2a20be8d@freenet.de> <4390ef2d-2979-82d9-64ad-e1f1734ccceb@ventoso.org> Message-ID: <09443c8d-3cea-4be6-0127-90bb42d84909@freenet.de> Am 13.02.2019 um 17:18 schrieb Luca Olivetti via lazarus: > I added a note to the wiki that both lclextensions and virtualtreeview > are now included with lazarus. Which article? I want to have a look and check whether it is correct. Because the situation is more complicated: In Laz trunk (or v2.2 in the future) all VTV files were renamed to have a "laz." prefix, and the registered components were renamed as TLaz* (e.g. TLazVirtualStringTree instead of TVirtualStringTree). This was made to avoid a naming conflict if a user wants to install older oder newer versions of VTV from git or somewhere else. From mailinglists at geldenhuys.co.uk Thu Feb 14 00:02:21 2019 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Wed, 13 Feb 2019 23:02:21 +0000 Subject: [Lazarus] GIT sha1 vs svn numbers In-Reply-To: <1efaa119-33b2-0da0-f184-c14d344646a2@mfriebe.de> References: <1efaa119-33b2-0da0-f184-c14d344646a2@mfriebe.de> Message-ID: <5aedd106-e326-9a47-4fb2-f3a0c0767ff1@geldenhuys.co.uk> On 13/02/2019 22:24, Martin Frb via lazarus wrote: > I looked at a few ideas, if something like the svn numbers could be > retained. Why would you want to shoehorn Git (a distributed version control system) into the way SubVersion (a client/server based version control system) works? They are fundamentally different. Yes Git can be used kind-of like a client/server version control system, but then you loose pretty much all the functionality that makes a distributed version control system so much better. Anyway, I'm not 100% sure what you want to achieve, but do you know the git-describe command? https://git-scm.com/docs/git-describe It gives you a version-like result. A version (tag or branch name - tag by default), number of commits since that 'major event' in the repository history, and then the SHA1 of the actual commit you are on. eg: $ git describe v1.4.1-903-g6e8a7fbb That output means the current HEAD commit is a descendant of "v1.4.1" tag. It has 903 commits since the "v1.4.1" tag. The HEAD commit's SHA1 value is 6e8a7fbb. The "g" prefix is simply to say "git" was used. 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 lazarus at mfriebe.de Thu Feb 14 00:23:23 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Thu, 14 Feb 2019 00:23:23 +0100 Subject: [Lazarus] GIT sha1 vs svn numbers In-Reply-To: <5aedd106-e326-9a47-4fb2-f3a0c0767ff1@geldenhuys.co.uk> References: <1efaa119-33b2-0da0-f184-c14d344646a2@mfriebe.de> <5aedd106-e326-9a47-4fb2-f3a0c0767ff1@geldenhuys.co.uk> Message-ID: <3e1707b0-b4cc-4779-3c4d-e973cafbe3d3@mfriebe.de> This was meant to go to some one else. autocompletion of mail addresses From luca at ventoso.org Thu Feb 14 08:36:13 2019 From: luca at ventoso.org (Luca Olivetti) Date: Thu, 14 Feb 2019 08:36:13 +0100 Subject: [Lazarus] Lazarus with fpc 3.2 [was Re: [fpc-devel] Suspicion about TThread.Synchronize] In-Reply-To: <09443c8d-3cea-4be6-0127-90bb42d84909@freenet.de> References: <63ad511c-8ae9-3277-19be-4dcd327439fa@mfriebe.de> <76f6b5cf-0eac-5a58-e8ca-cff16f1fa226@googlemail.com> <7d188695-d5d8-0bb3-aebf-79e53553f47a@ventoso.org> <4eff4726-c801-802a-35b5-1ccfdf1b35cd@ventoso.org> <3b3a6732-9762-4495-92c9-c0a7895e3059@ventoso.org> <73d899e4-37c0-cb6a-cf6e-e2728acf612a@ventoso.org> <958f0e84-055d-8ab9-db01-ec6cab20aa80@ventoso.org> <22d344a0-8d7f-8e52-2535-2c3a2a20be8d@freenet.de> <4390ef2d-2979-82d9-64ad-e1f1734ccceb@ventoso.org> <09443c8d-3cea-4be6-0127-90bb42d84909@freenet.de> Message-ID: El 13/2/19 a les 23:56, Werner Pamler via lazarus ha escrit: > Am 13.02.2019 um 17:18 schrieb Luca Olivetti via lazarus: >> I added a note to the wiki that both lclextensions and virtualtreeview >> are now included with lazarus. > > Which article? I want to have a look and check whether it is correct. http://wiki.freepascal.org/VirtualTreeview > Because the situation is more complicated: In Laz trunk (or v2.2 in the > future) all VTV files were renamed to have a "laz." prefix, and the > registered components were renamed as TLaz* (e.g. TLazVirtualStringTree > instead of TVirtualStringTree). This was made to avoid a naming conflict > if a user wants to install older oder newer versions of VTV from git or > somewhere else. :-( Bye -- Luca From luca at ventoso.org Thu Feb 14 08:53:02 2019 From: luca at ventoso.org (Luca Olivetti) Date: Thu, 14 Feb 2019 08:53:02 +0100 Subject: [Lazarus] Lazarus Release 2.0.0 In-Reply-To: <20190205114854.721bffa8@limapholos.matflo.wg> References: <20190205114854.721bffa8@limapholos.matflo.wg> Message-ID: <8c52eb4d-d566-16a8-a1bd-3f1a70b8093b@ventoso.org> El 5/2/19 a les 11:48, Mattias Gaertner via lazarus ha escrit: > The Lazarus team is glad to announce the release of Lazarus 2.0.0. > > This release was built with FPC 3.0.4. > The previous release Lazarus 1.8.4 was built with FPC 3.0.4 as well. > > Here is the list of changes for Lazarus and Free Pascal: > http://wiki.lazarus.freepascal.org/Lazarus_2.0.0_release_notes I found that changing a value of a spinedit by code now triggers the OnChange handler, it didn't happen in 1.8.4 and it isn't listed in the release notes. Bye -- Luca From luca at ventoso.org Thu Feb 14 09:03:11 2019 From: luca at ventoso.org (Luca Olivetti) Date: Thu, 14 Feb 2019 09:03:11 +0100 Subject: [Lazarus] Lazarus Release 2.0.0 In-Reply-To: <8c52eb4d-d566-16a8-a1bd-3f1a70b8093b@ventoso.org> References: <20190205114854.721bffa8@limapholos.matflo.wg> <8c52eb4d-d566-16a8-a1bd-3f1a70b8093b@ventoso.org> Message-ID: <989df2fa-a859-1cb2-2b39-99e15eff0f68@ventoso.org> El 14/2/19 a les 8:53, Luca Olivetti via lazarus ha escrit: > El 5/2/19 a les 11:48, Mattias Gaertner via lazarus ha escrit: >> The Lazarus team is glad to announce the release of Lazarus 2.0.0. >> >> This release was built with FPC 3.0.4. >> The previous release Lazarus 1.8.4 was built with FPC 3.0.4 as well. >> >> Here is the list of changes for Lazarus and Free Pascal: >> http://wiki.lazarus.freepascal.org/Lazarus_2.0.0_release_notes > > I found that changing a value of a spinedit by code now triggers the > OnChange handler, it didn't happen in 1.8.4 and it isn't listed in the > release notes. Actually it did that even with 1.8.4 but only after FormCreate, i.e., if I change the value in FormCreate it doesn't trigger OnChange, in FormShow and later it does. 2.0 triggers it even during FormCreate. Bye -- Luca From MSchnell at lumino.de Thu Feb 14 09:56:31 2019 From: MSchnell at lumino.de (Michael Schnell) Date: Thu, 14 Feb 2019 08:56:31 +0000 Subject: [Lazarus] alternative to web programming? In-Reply-To: References: <20190205114854.721bffa8@limapholos.matflo.wg> Message-ID: <087fb3b3897944fd9e3d566ccab9ade6@lumino.de> There are application that require a „stylish“ GUI for optimum user satisfaction, …. And there are applications that do their thing more or less on their own, requiring human attention only for configuration and service. -Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: From badsectoracula at gmail.com Fri Feb 15 14:45:41 2019 From: badsectoracula at gmail.com (Kostas Michalopoulos) Date: Fri, 15 Feb 2019 14:45:41 +0100 Subject: [Lazarus] alternative to web programming? In-Reply-To: <087fb3b3897944fd9e3d566ccab9ade6@lumino.de> References: <20190205114854.721bffa8@limapholos.matflo.wg> <087fb3b3897944fd9e3d566ccab9ade6@lumino.de> Message-ID: The idea is interesting, but the implementation not so. All demos are unusably slow and unless this spawns a VM for each instance, i wouldn't trust any sort of "FS virtualization" they have to not be broken - Win32 desktop APIs were not designed for applications to be isolated from each other. This could make it only usable for intranets, but even then the performance is so abysmal as to severely impact any sort of productivity. And honestly, would you want to be the poor clerk who'd have this sort of crappy responsiveness imposed on them 8h/day? There might be some very few uses for this, but i'm certain that there are also better solutions for those few uses too (and some would be solved with something like noVNC). On Thu, Feb 14, 2019 at 9:56 AM Michael Schnell via lazarus wrote: > > There are application that require a „stylish“ GUI for optimum user satisfaction, …. And there are applications that do their thing more or less on their own, requiring human attention only for configuration and service. > > > > -Michael > > > > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus From henry.vermaak at gmail.com Fri Feb 15 14:53:54 2019 From: henry.vermaak at gmail.com (Henry Vermaak) Date: Fri, 15 Feb 2019 13:53:54 +0000 Subject: [Lazarus] Windows startup infinite loop In-Reply-To: <20190213173710.GB3583@technical09.Axicon2.local> References: <20190213173710.GB3583@technical09.Axicon2.local> Message-ID: <20190215135354.GA3623@technical09.Axicon2.local> On Wed, Feb 13, 2019 at 05:37:10PM +0000, Henry Vermaak wrote: > We're having a strange problem here, an infinite loop happens on a customer's > machine just after the main form is created. It doesn't happen when the > program is run inside a debugger and it only happens on the customer's > machine(s), so it's probably related to their Windows configuration. > > The infinite loop is not in our code (probably happens with HandleNeeded() is > called for the main form). When I attach gdb manually when the program is run > outside the debugger I can get a stack trace that shows the loop: > > (gdb) thread 1 > [Switching to thread 1 (Thread 4484.0x2bc8)] > #0 0x76d2566b in USER32!DispatchMessageW () from C:\WINDOWS\System32\user32.dll > (gdb) bt > #0 0x76d2566b in USER32!DispatchMessageW () from C:\WINDOWS\System32\user32.dll > #1 0x76d1b387 in USER32!CallWindowProcW () from C:\WINDOWS\System32\user32.dll > #2 0x005076ab in CALLDEFAULTWINDOWPROC (WINDOW=592304, MSG=48, WPARAM=-854972773, LPARAM=0) > at ./win32/win32callback.inc:97 > #3 0x0050bb80 in TWINDOWPROCHELPER__DOWINDOWPROC (this=0xf3e7e1c) at ./win32/win32callback.inc:2419 > #4 0x0050c4fb in WINDOWPROC (WINDOW=592304, MSG=48, WPARAM=-854972773, LPARAM=0) at ./win32/win32callback.inc:2673 > #5 0x76d334bb in USER32!AddClipboardFormatListener () from C:\WINDOWS\System32\user32.dll > #6 0x76d25913 in USER32!DispatchMessageW () from C:\WINDOWS\System32\user32.dll > #7 0x76d1b387 in USER32!CallWindowProcW () from C:\WINDOWS\System32\user32.dll > #8 0x72e6fd6d in ?? () > #9 0x72e6f8ef in ?? () > #10 0x76d334bb in USER32!AddClipboardFormatListener () from C:\WINDOWS\System32\user32.dll > #11 0x76d25913 in USER32!DispatchMessageW () from C:\WINDOWS\System32\user32.dll > #12 0x76d1b387 in USER32!CallWindowProcW () from C:\WINDOWS\System32\user32.dll > #13 0x005076ab in CALLDEFAULTWINDOWPROC (WINDOW=592304, MSG=48, WPARAM=-854972773, LPARAM=0) > at ./win32/win32callback.inc:97 > #14 0x0050bb80 in TWINDOWPROCHELPER__DOWINDOWPROC (this=0xf3e7cf4) at ./win32/win32callback.inc:2419 > #15 0x0050c4fb in WINDOWPROC (WINDOW=592304, MSG=48, WPARAM=-854972773, LPARAM=0) at ./win32/win32callback.inc:2673 > #16 0x76d334bb in USER32!AddClipboardFormatListener () from C:\WINDOWS\System32\user32.dll > #17 0x76d25913 in USER32!DispatchMessageW () from C:\WINDOWS\System32\user32.dll > #18 0x76d1b387 in USER32!CallWindowProcW () from C:\WINDOWS\System32\user32.dll > #19 0x72e6fd6d in ?? () > #20 0x72e6f8ef in ?? () > #21 0x76d334bb in USER32!AddClipboardFormatListener () from C:\WINDOWS\System32\user32.dll > #22 0x76d25913 in USER32!DispatchMessageW () from C:\WINDOWS\System32\user32.dll > #23 0x76d1b387 in USER32!CallWindowProcW () from C:\WINDOWS\System32\user32.dll > #24 0x005076ab in CALLDEFAULTWINDOWPROC (WINDOW=592304, MSG=48, WPARAM=-854972773, LPARAM=0) > at ./win32/win32callback.inc:97 > #25 0x0050bb80 in TWINDOWPROCHELPER__DOWINDOWPROC (this=0xf3e7bcc) at ./win32/win32callback.inc:2419 > > It carries on like this until you stop with ctrl-c. I was wondering if this > rang a bell for anyone? I'm running on the fixes_2_0 branch now, but the > problem existed with fixes_1_8 too. > > Is there anything I can do to help get to the bottom of this? Will rebuilding > the LCL with MSG_DEBUG help? Rebuilding the LCL with MSG_DEBUG shows that it has something to do with WM_SETFONT: Done: Main form WindowProc called for window=00020C12 msg=WM_GETMINMAXINFO wparam=00000000 lparam=040AF69C WindowProc called for window=00020C12 msg=WM_NCCREATE wparam=00000000 lparam=040AF690 WindowProc called for window=00020C12 msg=WM_NCCALCSIZE wparam=00000000 lparam=040AF67C WindowProc called for window=00020C12 msg=WM_CREATE wparam=00000000 lparam=040AF690 WindowProc called for window=00020C12 msg=WM_SETFONT wparam=E60A1591 lparam=00000000 #WindowProc called for window=00020C12 msg=WM_SETFONT wparam=E60A1591 lparam=00000000 ##WindowProc called for window=00020C12 msg=WM_SETFONT wparam=E60A1591 lparam=00000000 ###WindowProc called for window=00020C12 msg=WM_SETFONT wparam=E60A1591 lparam=00000000 ####WindowProc called for window=00020C12 msg=WM_SETFONT wparam=E60A1591 lparam=00000000 #####WindowProc called for window=00020C12 msg=WM_SETFONT wparam=E60A1591 lparam=00000000 ######WindowProc called for window=00020C12 msg=WM_SETFONT wparam=E60A1591 lparam=00000000 #######WindowProc called for window=00020C12 msg=WM_SETFONT wparam=E60A1591 lparam=00000000 ########WindowProc called for window=00020C12 msg=WM_SETFONT wparam=E60A1591 lparam=00000000 That just continues until you kill the program. Any ideas? Henry From dec12 at avidsoft.com.hk Sat Feb 16 08:06:03 2019 From: dec12 at avidsoft.com.hk (Dennis) Date: Sat, 16 Feb 2019 15:06:03 +0800 Subject: [Lazarus] Windows startup infinite loop In-Reply-To: <20190213173710.GB3583@technical09.Axicon2.local> References: <20190213173710.GB3583@technical09.Axicon2.local> Message-ID: <9309c178-8486-e528-7a41-3b8fa64608c8@avidsoft.com.hk> Henry Vermaak via lazarus wrote: > We're having a strange problem here, an infinite loop happens on a customer's > machine just after the main form is created. It doesn't happen when the > program is run inside a debugger and it only happens on the customer's > machine(s), so it's probably related to their Windows configuration. > > The infinite loop is not in our code (probably happens with HandleNeeded() is > called for the main form). When I attach gdb manually when the program is run > outside the debugger I can get a stack trace that shows the loop: Does it happen on all windows versions i.e. windows 10, windows 7 etc? I myself experience different behaviour in setting a control's parent under windows 10 and windows 7. In Windows 10, it takes 10 seconds to create children controls within a TFrame's constructor if its parent is already set. No problem in windows 7. Eventually, I only create the children controls before setting the TFrame's parent. If your problem only appear in windows 10, maybe the parent property is where you should look at. Dennis From michael at freepascal.org Sat Feb 16 09:36:44 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Sat, 16 Feb 2019 09:36:44 +0100 (CET) Subject: [Lazarus] Bootstrap problem Message-ID: Hi, After updating & recompiling FPC trunk, I tried to compile a LCL program and got the following in Lazarus which is configured to use trunk: Compile package LazUtils 1.0: Exit code 1, Errors: 1, Warnings: 1 Warning: Recompiling LazarusPackageIntf, checksum changed for /usr/local/lib/fpc/3.3.1/units/x86_64-linux/rtl/classes.ppu lazutils.pas(25,47) Fatal: Cannot find LazarusPackageIntf used by LazUtils. Check if package FCL is in the dependencies. It seems somehow the change of FPC didn't trigger a recompile of the FCL package. I managed to get out of this problem by compiling the program with a lazarus configured to use fpc 3.0.4, and then recompiling it again with the lazarus configured to use trunk. Michael. From nc-gaertnma at netcologne.de Sat Feb 16 09:56:42 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sat, 16 Feb 2019 09:56:42 +0100 Subject: [Lazarus] Bootstrap problem In-Reply-To: References: Message-ID: <20190216095642.26f74cb5@limapholos.matflo.wg> On Sat, 16 Feb 2019 09:36:44 +0100 (CET) Michael Van Canneyt via lazarus wrote: > Hi, > > After updating & recompiling FPC trunk, I tried to compile a LCL > program and got the following in Lazarus which is configured to use > trunk: > > Compile package LazUtils 1.0: Exit code 1, Errors: 1, Warnings: 1 > Warning: Recompiling LazarusPackageIntf, checksum changed > for /usr/local/lib/fpc/3.3.1/units/x86_64-linux/rtl/classes.ppu > lazutils.pas(25,47) Fatal: Cannot find LazarusPackageIntf used by > LazUtils. Check if package FCL is in the dependencies. Can you reproduce the problem and check the FCL.compiled file to find out why Lazarus did not recompile fcl.lpk? > It seems somehow the change of FPC didn't trigger a recompile of the > FCL package. > > I managed to get out of this problem by compiling the program with a > lazarus configured to use fpc 3.0.4, and then recompiling it again > with the lazarus configured to use trunk. Mattias From henry.vermaak at gmail.com Sat Feb 16 12:10:17 2019 From: henry.vermaak at gmail.com (Henry Vermaak) Date: Sat, 16 Feb 2019 11:10:17 +0000 Subject: [Lazarus] Windows startup infinite loop In-Reply-To: <9309c178-8486-e528-7a41-3b8fa64608c8@avidsoft.com.hk> References: <20190213173710.GB3583@technical09.Axicon2.local> <9309c178-8486-e528-7a41-3b8fa64608c8@avidsoft.com.hk> Message-ID: On Sat, 16 Feb 2019 at 07:06, Dennis via lazarus wrote: > Henry Vermaak via lazarus wrote: > > We're having a strange problem here, an infinite loop happens on a customer's > > machine just after the main form is created. It doesn't happen when the > > program is run inside a debugger and it only happens on the customer's > > machine(s), so it's probably related to their Windows configuration. > > > > The infinite loop is not in our code (probably happens with HandleNeeded() is > > called for the main form). When I attach gdb manually when the program is run > > outside the debugger I can get a stack trace that shows the loop: > Does it happen on all windows versions i.e. windows 10, windows 7 etc? It happens to all the computers in one organisation (win10), nowhere else that I know of. My first thought was something like anti-virus, but It's only our program that behaves badly, which is why I suspect a bug in the win32 lcl interface. We have many installs from XP up to 10 and I've never had any issues like this. > I myself experience different behaviour in setting a control's parent > under windows 10 and windows 7. > In Windows 10, it takes 10 seconds to create children controls within a > TFrame's constructor if its parent is already set. > No problem in windows 7. > Eventually, I only create the children controls before setting the > TFrame's parent. That's very interesting, thanks. We do create frames as part of the main form constructor and we set the parent first. Perhaps I should even delay that to when the form is shown. Henry From listbox at martoks-place.de Sat Feb 16 15:50:05 2019 From: listbox at martoks-place.de (Martok) Date: Sat, 16 Feb 2019 15:50:05 +0100 Subject: [Lazarus] fppkg - autodetect on Windows Message-ID: Hi, I've just rebuilt Lazarus and FPC, and noticed that fppkg is a lot less intrusive again, which is good. In the setup dialog, which directory is one supposed to specify (see attached screenshot)? I have modified the installer so that the fpmkinst-directory is also deployed, but nothing I enter seems to enable the "Create Config" button. I tried: $(LazarusDir)\fpc\$(FPCVer) (this is what intuitively makes sense) $(LazarusDir)\fpc\ (this is what the text asks for) $(LazarusDir)\fpc\$(FPCVer)\bin At least it is safe to ignore again (without it creating a faulty config) and Lazbuild also works, so automated builds work again. -- Regards, Martok -------------- next part -------------- A non-text attachment was scrubbed... Name: fppkg.png Type: image/png Size: 47251 bytes Desc: not available URL: From aaa5500 at ya.ru Sat Feb 16 20:03:02 2019 From: aaa5500 at ya.ru (AlexeyT) Date: Sat, 16 Feb 2019 22:03:02 +0300 Subject: [Lazarus] How to configure Fppkg in IDE startup dialog with FPC 3.2 ? Message-ID: -I deleted FPC 3.0.4 from Linux x64 OS path (/usr/.....) -Instead installed FPC fixes3.2 via FpcUpDeluxe into ~/fpcupdeluxe/fpc IDE after recompiling via FPC 3.2 now asks FPPKG path!! in startup dialog. I cannot solve it. I tried all paths from ~/fpcupdeluxe dir and tried to press [Create new fppkg cfg] (sometimes this btn is enabled but gives no result- "fppkg config is corrupt"). Dialog asks me every time. -- Regards, Alexey From Special at Joepgen.com Sun Feb 17 15:44:46 2019 From: Special at Joepgen.com (Joe) Date: Sun, 17 Feb 2019 15:44:46 +0100 Subject: [Lazarus] Makefile error or what else? Message-ID: <0009734d-5fb3-5677-48eb-db2f38d0e8cd@Joepgen.com> Hi, under Raspbian Stretch (current version) on a Pi 3B+,  making of Lazarus 2 fails. What's the reason, how to fix? Log: Executing: /usr/bin/svn info /home/pi/fpcupdeluxe/lazarus (working dir: ) URL: https://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_0 Revision: 60442 Letzter Autor: mattias Letzte geänderte Rev: 60307 Letztes Änderungsdatum: 2019-02-02 21:09:45 +0100 (Sam, 02. Feb 2019) ... fpcupdeluxe: info: LazarusNativeInstaller (BuildModuleCustom: Lazarus): Running make all fpcupdeluxe: info: LazarusNativeInstaller (BuildModuleCustom: Lazarus): make. Params: FPC=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/fpc.sh,PP=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/ppcarm,USESVN2REVISIONINC=0,--directory=.,INSTALL_PREFIX=/home/pi/fpcupdeluxe/lazarus,FPCDIR=/home/pi/fpcupdeluxe/fpcsrc,FPCMAKE=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/fpcmake,PPUMOVE=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/ppumove,OPT=-vw-n-h-l-d-u-t-p-c-,all Executing: make FPC=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/fpc.sh PP=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/ppcarm USESVN2REVISIONINC=0 --directory=. INSTALL_PREFIX=/home/pi/fpcupdeluxe/lazarus FPCDIR=/home/pi/fpcupdeluxe/fpcsrc FPCMAKE=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/fpcmake PPUMOVE=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/ppumove OPT=-vw-n-h-l-d-u-t-p-c- all (working dir: /home/pi/fpcupdeluxe/lazarus) make: Verzeichnis »/home/pi/fpcupdeluxe/lazarus« wird betreten Makefile:3388: *** Es ist nur ein »else« pro Bedingung erlaubt. Schluss. make: Verzeichnis »/home/pi/fpcupdeluxe/lazarus« wird verlassen fpcupdeluxe: ERROR: LazarusNativeInstaller (BuildModuleCustom: Lazarus): make returned error code #512 Regards --  Joe From bo.berglund at gmail.com Sun Feb 17 17:01:40 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 17 Feb 2019 17:01:40 +0100 Subject: [Lazarus] Makefile error or what else? References: <0009734d-5fb3-5677-48eb-db2f38d0e8cd@Joepgen.com> Message-ID: On Sun, 17 Feb 2019 15:44:46 +0100, Joe via lazarus wrote: >under Raspbian Stretch (current version) on a Pi 3B+,  making of Lazarus >2 fails. What's the reason, how to fix? I do not know enough to parse an error dump, but as I have reported here in another hread about building Lazarus 2.0.0 using Fpc 3.0.4 I got it working fine *after* I changed the swap size to 1GB. I had forgotten all about thta in the time since I built Lazarus 1.6 on another RPi. So change the swap space to 1GB and retry, chances are it will work. If you are already using 1GB swap, then disregard this message. The problem is elsewhere. But my build script, which I use on all RPi devices I make, works just fine wity 1GB swap. I wrote it specifically to not forget stuff I need to do to get Fpc/lazarus on to a new RPi unit. But I cannot script the swap space... Is there any way to script a test for swap space so I can display an error in my script and exit if swap is too small? (Not good at bash scripting) -- Bo Berglund Developer in Sweden From Special at Joepgen.com Sun Feb 17 18:21:44 2019 From: Special at Joepgen.com (Joe) Date: Sun, 17 Feb 2019 18:21:44 +0100 Subject: [Lazarus] Makefile error or what else? In-Reply-To: References: <0009734d-5fb3-5677-48eb-db2f38d0e8cd@Joepgen.com> Message-ID: <1b9b32af-dd60-4033-7231-4d7d547d478c@Joepgen.com> Am 17.02.2019 um 17:01 schrieb Bo Berglund via lazarus: > So change the swap space to 1GB and retry, chances are it will work. Bo, I changed the swap file size from 100 to 1000 and just got the same error. Anyway - Thank you! Regards --  Joe From werner.pamler at freenet.de Mon Feb 18 00:02:26 2019 From: werner.pamler at freenet.de (Werner Pamler) Date: Mon, 18 Feb 2019 00:02:26 +0100 Subject: [Lazarus] How to configure Fppkg in IDE startup dialog with FPC 3.2 ? In-Reply-To: References: Message-ID: <7d4315e2-d883-e559-322e-9c6dc33237ee@freenet.de> Am 16.02.2019 um 20:03 schrieb AlexeyT via lazarus: > -I deleted FPC 3.0.4 from Linux x64 OS path (/usr/.....) > > -Instead installed FPC fixes3.2 via FpcUpDeluxe into ~/fpcupdeluxe/fpc > > IDE after recompiling via FPC 3.2 now asks FPPKG path!! in startup > dialog. I cannot solve it. I tried all paths from ~/fpcupdeluxe dir > and tried to press [Create new fppkg cfg] (sometimes this btn is > enabled but gives no result- "fppkg config is corrupt"). Dialog asks > me every time. Yes, the same for me (Laz trunk / fpc trunk, Win10). The "Create new fppkg cfg" button always yields for me an error message "Problem with Fppkg configuration / Failed to create a new Fppkg configuration. You will have to fix the configuration manually or reinstall Free Pascal." Clicking on "Start IDE" afterwards, however, starts Lazarus without any issues. From Special at Joepgen.com Mon Feb 18 00:39:14 2019 From: Special at Joepgen.com (Joe) Date: Mon, 18 Feb 2019 00:39:14 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: References: <127fecdc-9a1b-f8e9-349b-dbfa566a6bb9@Joepgen.com> <6592c033-7cbe-35cf-39f8-88fd621922e1@Joepgen.com> Message-ID: <48afbb5d-89fb-9721-2803-90f59b02670c@Joepgen.com> Am 12.02.2019 um 00:51 schrieb Anthony Walter via lazarus: > Joe, you should delete setup.sh, download it again: > > Here is the location of the Rasberry Pi setup script: > > https://www.getlazarus.org/download/?platform=raspberry > > chmod + x setup.sh && ./setup.sh > > After that follow the instructions in the terminal. When the script > completes you will have a menu entry in Raspbian under Programming > titled Lazarus 2.0. Use that shortcut to launch Lazarus. Alternately > you can navigate to the install location and in the lazarus folder run > lazarus.sh to start Lazarus 2.0 to with the properly configured > environment. > > You should see the Lazarus splash screen with version 2.0 emboldened > at the bottom. > Anthony, eventually  i increased the swap file size from 100 to 1000 MB, and now your script succeeded. Thanx --  Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From bo.berglund at gmail.com Mon Feb 18 08:44:41 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Mon, 18 Feb 2019 08:44:41 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available References: <127fecdc-9a1b-f8e9-349b-dbfa566a6bb9@Joepgen.com> <6592c033-7cbe-35cf-39f8-88fd621922e1@Joepgen.com> <48afbb5d-89fb-9721-2803-90f59b02670c@Joepgen.com> Message-ID: <7hok6e149c1coucrei07lt9e6d4noiukh8@4ax.com> On Mon, 18 Feb 2019 00:39:14 +0100, Joe via lazarus wrote: >Am 12.02.2019 um 00:51 schrieb Anthony Walter via lazarus: >> Joe, you should delete setup.sh, download it again: >> >> Here is the location of the Rasberry Pi setup script: >> >> https://www.getlazarus.org/download/?platform=raspberry >> >> chmod + x setup.sh && ./setup.sh >> >> After that follow the instructions in the terminal. When the script >> completes you will have a menu entry in Raspbian under Programming >> titled Lazarus 2.0. Use that shortcut to launch Lazarus. Alternately >> you can navigate to the install location and in the lazarus folder run >> lazarus.sh to start Lazarus 2.0 to with the properly configured >> environment. >> >> You should see the Lazarus splash screen with version 2.0 emboldened >> at the bottom. >> > >Anthony, eventually  i increased the swap file size from 100 to 1000 MB, >and now your script succeeded. >Thanx --  Joe I just added the following to the top of my own FPC/Lazarus install scipt: # Check swap space since building Lazarus uses lots of resources and swap. Need 1 GB swap. SWAPSPACE=$(free | grep Swap | grep -P -o "[0-9]+" | head -1) if [ "$SWAPSPACE" -lt 1000000 ]; then echo "Swap space $SWAPSPACE too small! You must set 1 GB swap!" exit 1 fi echo "Swap space $SWAPSPACE OK!" -- Bo Berglund Developer in Sweden From Special at Joepgen.com Mon Feb 18 11:52:20 2019 From: Special at Joepgen.com (Joe) Date: Mon, 18 Feb 2019 11:52:20 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: <7hok6e149c1coucrei07lt9e6d4noiukh8@4ax.com> References: <127fecdc-9a1b-f8e9-349b-dbfa566a6bb9@Joepgen.com> <6592c033-7cbe-35cf-39f8-88fd621922e1@Joepgen.com> <48afbb5d-89fb-9721-2803-90f59b02670c@Joepgen.com> <7hok6e149c1coucrei07lt9e6d4noiukh8@4ax.com> Message-ID: Am 18.02.2019 um 08:44 schrieb Bo Berglund via lazarus: > I just added the following to the top of my own FPC/Lazarus install > scipt: Check swap space Excellent idea. Where can I get it this new version? Have to update to Lazarus 2 some some more Pi-3s. From aforsprl at gmail.com Mon Feb 18 12:23:01 2019 From: aforsprl at gmail.com (AFOR) Date: Mon, 18 Feb 2019 12:23:01 +0100 Subject: [Lazarus] using TFPHTTPClient Message-ID: <83ca746b-5bbe-c82f-fa8c-177710193e70@gmail.com> Hi Folks. Since last week, I experience some trouble using TFPHTTPClient component on Windows 10. Until last Tuesday, an application built with Lazarus 1.8.4 was running perfectly well. Since then access  to any URL is denied. I have upgraded Lazarus to 2.0 but this changes nothing. The main task of the program is to access URL's using GET procedure and store results into a Firebird database for future use. When I post the request directly onto the internet navigator, I get get the answers correctly. I wonder what suddenly happened ? Trouble with SSL (requests are https requests) ? I can't trace the operations with Lazarus debugger as some where another thread is probably launched and sockets play in the middle. Do you have any ideas on which direction to go ? Many thanks, Antonio -- AFOR Software Engineering A. Fortuny Gérant From michael at freepascal.org Mon Feb 18 12:27:55 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Mon, 18 Feb 2019 12:27:55 +0100 (CET) Subject: [Lazarus] using TFPHTTPClient In-Reply-To: <83ca746b-5bbe-c82f-fa8c-177710193e70@gmail.com> References: <83ca746b-5bbe-c82f-fa8c-177710193e70@gmail.com> Message-ID: On Mon, 18 Feb 2019, AFOR via lazarus wrote: > Hi Folks. > > Since last week, I experience some trouble using TFPHTTPClient component > on Windows 10. Until last Tuesday, an application built with Lazarus > 1.8.4 was running perfectly well. Since then access  to any URL is > denied. I have upgraded Lazarus to 2.0 but this changes nothing. The > main task of the program is to access URL's using GET procedure and > store results into a Firebird database for future use. When I post the > request directly onto the internet navigator, I get get the answers > correctly. I wonder what suddenly happened ? Trouble with SSL (requests > are https requests) ? I can't trace the operations with Lazarus debugger > as some where another thread is probably launched and sockets play in > the middle. > > Do you have any ideas on which direction to go ? Clearly something changed last tuesday. Did you change anything on your windows machine ? Did you change your FPC installation ? Could it be that the SSL libs were changed/upgraded ? Michael. From chavoux at gmail.com Mon Feb 18 13:59:19 2019 From: chavoux at gmail.com (Chavoux Luyt) Date: Mon, 18 Feb 2019 14:59:19 +0200 Subject: [Lazarus] Tools for self-extracting executables? In-Reply-To: References: Message-ID: Hi all, Many moons ago I wrote small self-extracting executable programs in Delphi... the executable would basically include both the program itself as well as some INI and data files; when running it would access itself on disk, find the addresses within the exe file where each data file starts (and its size) and then extract and write them to disk. I think I installed a component for this in Delphi. The component would both create the self-extracting exe and be included in the exe in order to extract the files. Before I start writing something from scratch, I just wanted to ask if there are any such components (or components that would make writing it easier) for Lazarus? Thanks in advance! Chavoux -------------- next part -------------- An HTML attachment was scrubbed... URL: From aforsprl at gmail.com Mon Feb 18 14:38:48 2019 From: aforsprl at gmail.com (AFOR) Date: Mon, 18 Feb 2019 14:38:48 +0100 Subject: [Lazarus] using TFPHTTPClient Message-ID: <1547c7ae-a06a-fa16-ffa9-39b5de6ed55d@gmail.com> Hi Michael. Sorry using this method, answering via the group doesn't work actually. Definitely yes. The same application ran without problems on my laptop, where now the applications fails. The only change done on both machines is a Windows update. Neither SSL nor other components did change. More curious, in my development machine (VM using VirtualBox in a Linux box using Windows 10 as well and up to date) continues to run (and compile) the application without problems. I'm looking on what possible difference exists between my development machine and the two others. One difference though: in my development machine, OpenSSl (light version 1.02e x86) has been installed, no SSL libs in the two others. Antonio -- AFOR Software Engineering A. Fortuny Gérant From michael at freepascal.org Mon Feb 18 14:43:26 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Mon, 18 Feb 2019 14:43:26 +0100 (CET) Subject: [Lazarus] using TFPHTTPClient In-Reply-To: <1547c7ae-a06a-fa16-ffa9-39b5de6ed55d@gmail.com> References: <1547c7ae-a06a-fa16-ffa9-39b5de6ed55d@gmail.com> Message-ID: On Mon, 18 Feb 2019, AFOR via lazarus wrote: > Hi Michael. > > Sorry using this method, answering via the group doesn't work actually. > Definitely yes. The same application ran without problems on my laptop, > where now the applications fails. The only change done on both machines > is a Windows update. Neither SSL nor other components did change. More > curious, in my development machine (VM using VirtualBox in a Linux box > using Windows 10 as well and up to date) continues to run (and compile) > the application without problems. I'm looking on what possible > difference exists between my development machine and the two others. > One difference though: in my development machine, OpenSSl (light version > 1.02e x86) has been installed, no SSL libs in the two others. The application cannot run without SSL libs if you use https, so there must be openssl libraries somewhere on the production machines ? If the update installed openssl 1.1 libraries, that could be the cause. Michael. From aforsprl at gmail.com Mon Feb 18 15:03:11 2019 From: aforsprl at gmail.com (AFOR) Date: Mon, 18 Feb 2019 15:03:11 +0100 Subject: [Lazarus] using TFPHTTPClient In-Reply-To: References: <1547c7ae-a06a-fa16-ffa9-39b5de6ed55d@gmail.com> Message-ID: <8506324b-20e1-164f-3b7e-d97bffe9db4e@gmail.com> Le 18/02/2019 à 14:43, Michael Van Canneyt via lazarus a écrit : > > > On Mon, 18 Feb 2019, AFOR via lazarus wrote: > >> Hi Michael. >> >> Sorry using this method, answering via the group doesn't work actually. >> Definitely yes. The same application ran without problems on my >> laptop, where now the applications fails. The only change done on both >> machines is a Windows update. Neither SSL nor other components did >> change. More curious, in my development machine (VM using VirtualBox >> in a Linux box using Windows 10 as well and up to date) continues to >> run (and compile) the application without problems. I'm looking on >> what possible difference exists between my development machine and the >> two others. >> One difference though: in my development machine, OpenSSl (light >> version 1.02e x86) has been installed, no SSL libs in the two others. > > The application cannot run without SSL libs if you use https, so there > must be openssl libraries somewhere on the production machines ? > > If the update installed openssl 1.1 libraries, that could be the cause. > > Michael. > So you mean that installing OpenSSL 1.1 could help ? -- AFOR Software Engineering A. Fortuny Gérant From michael at freepascal.org Mon Feb 18 15:05:55 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Mon, 18 Feb 2019 15:05:55 +0100 (CET) Subject: [Lazarus] using TFPHTTPClient In-Reply-To: <8506324b-20e1-164f-3b7e-d97bffe9db4e@gmail.com> References: <1547c7ae-a06a-fa16-ffa9-39b5de6ed55d@gmail.com> <8506324b-20e1-164f-3b7e-d97bffe9db4e@gmail.com> Message-ID: On Mon, 18 Feb 2019, AFOR via lazarus wrote: > Le 18/02/2019 à 14:43, Michael Van Canneyt via lazarus a écrit : >> >> >> On Mon, 18 Feb 2019, AFOR via lazarus wrote: >> >>> Hi Michael. >>> >>> Sorry using this method, answering via the group doesn't work actually. >>> Definitely yes. The same application ran without problems on my >>> laptop, where now the applications fails. The only change done on both >>> machines is a Windows update. Neither SSL nor other components did >>> change. More curious, in my development machine (VM using VirtualBox >>> in a Linux box using Windows 10 as well and up to date) continues to >>> run (and compile) the application without problems. I'm looking on >>> what possible difference exists between my development machine and the >>> two others. >>> One difference though: in my development machine, OpenSSl (light >>> version 1.02e x86) has been installed, no SSL libs in the two others. >> >> The application cannot run without SSL libs if you use https, so there >> must be openssl libraries somewhere on the production machines ? >> >> If the update installed openssl 1.1 libraries, that could be the cause. >> >> Michael. >> > So you mean that installing OpenSSL 1.1 could help ? > No, the opposite: it will destroy the setup. The openssl unit does not yet support openssl 1.1. Michael. From aforsprl at gmail.com Mon Feb 18 15:35:47 2019 From: aforsprl at gmail.com (AFOR) Date: Mon, 18 Feb 2019 15:35:47 +0100 Subject: [Lazarus] using TFPHTTPClient In-Reply-To: References: <1547c7ae-a06a-fa16-ffa9-39b5de6ed55d@gmail.com> <8506324b-20e1-164f-3b7e-d97bffe9db4e@gmail.com> Message-ID: <74a4c000-071e-a3a5-25df-ab109de22095@gmail.com> Le 18/02/2019 à 15:05, Michael Van Canneyt via lazarus a écrit : > > > On Mon, 18 Feb 2019, AFOR via lazarus wrote: > >> Le 18/02/2019 à 14:43, Michael Van Canneyt via lazarus a écrit : >>> >>> >>> On Mon, 18 Feb 2019, AFOR via lazarus wrote: >>> >>>> Hi Michael. >>>> >>>> Sorry using this method, answering via the group doesn't work actually. >>>> Definitely yes. The same application ran without problems on my >>>> laptop, where now the applications fails. The only change done on >>>> both machines is a Windows update. Neither SSL nor other components >>>> did change. More curious, in my development machine (VM using >>>> VirtualBox in a Linux box using Windows 10 as well and up to date) >>>> continues to run (and compile) the application without problems. I'm >>>> looking on what possible difference exists between my development >>>> machine and the two others. >>>> One difference though: in my development machine, OpenSSl (light >>>> version 1.02e x86) has been installed, no SSL libs in the two others. >>> >>> The application cannot run without SSL libs if you use https, so >>> there must be openssl libraries somewhere on the production machines ? >>> >>> If the update installed openssl 1.1 libraries, that could be the cause. >>> >>> Michael. >>> >> So you mean that installing OpenSSL 1.1 could help ? >> > > No, the opposite: it will destroy the setup. The openssl unit does not yet > support openssl 1.1. > > Michael. > Installing OpenSSL 1.1.0e (Win32OpenSSL_light-1_1_0e.exe) in the laptop changes nothing. Any other hope ? -- AFOR Software Engineering A. Fortuny Gérant From sysrpl at gmail.com Mon Feb 18 15:47:39 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Mon, 18 Feb 2019 09:47:39 -0500 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: References: <127fecdc-9a1b-f8e9-349b-dbfa566a6bb9@Joepgen.com> <6592c033-7cbe-35cf-39f8-88fd621922e1@Joepgen.com> <48afbb5d-89fb-9721-2803-90f59b02670c@Joepgen.com> <7hok6e149c1coucrei07lt9e6d4noiukh8@4ax.com> Message-ID: You can put it at the top after #!/bin/bash -------------- next part -------------- An HTML attachment was scrubbed... URL: From tony.whyman at mccallumwhyman.com Mon Feb 18 15:51:26 2019 From: tony.whyman at mccallumwhyman.com (Tony Whyman) Date: Mon, 18 Feb 2019 14:51:26 +0000 Subject: [Lazarus] Tools for self-extracting executables? In-Reply-To: References: Message-ID: <041f0bb9-fd8e-c0d7-d121-ef3b79ec6139@mccallumwhyman.com> Before spending any time on this I would look at the Open Source 7-zip compression utility (https://www.7-zip.org/). This is available for both Windows and Linux and I use it to package my own Windows/FPC/Lazarus builds for self-extraction and installation under Windows (I also use Microsoft WIX to build the MSI files). 7z is readily scripted to archive your files into a single zip. All you then need to do is to concatenate a pre-built 7z.sfx stub executable with a text file containing the installation parameters and the zip file. The result is a self-extracting archive. This is described in its documentation under the -sfx (Create SFX archive) switch. On 18/02/2019 12:59, Chavoux Luyt via lazarus wrote: > > Hi all, > > Many moons ago I wrote small self-extracting executable programs in > Delphi... the executable would basically include both the program > itself as well as some INI and data files; when running it would > access itself on disk, find the addresses within the exe file where > each data file starts (and its size) and then extract and write them > to disk. I think I installed a component for this in Delphi. The > component would both create the self-extracting exe and be included in > the exe in order to extract the files. > > Before I start writing something from scratch, I just wanted to ask if > there are any such components (or components that would make writing > it easier) for Lazarus? > > Thanks in advance! > Chavoux > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dec12 at avidsoft.com.hk Mon Feb 18 16:35:23 2019 From: dec12 at avidsoft.com.hk (Dennis) Date: Mon, 18 Feb 2019 23:35:23 +0800 Subject: [Lazarus] using TFPHTTPClient In-Reply-To: <74a4c000-071e-a3a5-25df-ab109de22095@gmail.com> References: <1547c7ae-a06a-fa16-ffa9-39b5de6ed55d@gmail.com> <8506324b-20e1-164f-3b7e-d97bffe9db4e@gmail.com> <74a4c000-071e-a3a5-25df-ab109de22095@gmail.com> Message-ID: Maybe first of all, you use the dll "dependancy walker" find out which ssl dll your exe is using and then right click at the dll file to find out the version number of that dll. Dennis From bo.berglund at gmail.com Mon Feb 18 18:58:33 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Mon, 18 Feb 2019 18:58:33 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available References: <6592c033-7cbe-35cf-39f8-88fd621922e1@Joepgen.com> <48afbb5d-89fb-9721-2803-90f59b02670c@Joepgen.com> <7hok6e149c1coucrei07lt9e6d4noiukh8@4ax.com> Message-ID: <79sl6el1fhj2irhi43vmbmotj9218gnv3t@4ax.com> On Mon, 18 Feb 2019 11:52:20 +0100, Joe via lazarus wrote: >Am 18.02.2019 um 08:44 schrieb Bo Berglund via lazarus: >> I just added the following to the top of my own FPC/Lazarus install >> scipt: Check swap space > >Excellent idea. Where can I get it this new version? Have to update to >Lazarus 2 some some more Pi-3s. Do you mean my own installation script or Anthony Walter's? Mine works strictly from sources via svn. I think Anthony's include compiled binaries and his files are hosted elsewhere than at https://svn.freepascal.org/svn/ . I use that server for both fpc and lazarus (but I do have a compiled binary as seed compiler for ARM hosted on my own site but all else comes from svn. -- Bo Berglund Developer in Sweden From aforsprl at gmail.com Mon Feb 18 19:33:54 2019 From: aforsprl at gmail.com (AFOR) Date: Mon, 18 Feb 2019 19:33:54 +0100 Subject: [Lazarus] using TFPHTTPClient In-Reply-To: References: <1547c7ae-a06a-fa16-ffa9-39b5de6ed55d@gmail.com> <8506324b-20e1-164f-3b7e-d97bffe9db4e@gmail.com> <74a4c000-071e-a3a5-25df-ab109de22095@gmail.com> Message-ID: Le 18/02/2019 à 16:35, Dennis via lazarus a écrit : > Maybe first of all, you use the dll "dependancy walker" find out which > ssl dll your exe is using and then right click at the dll file to find > out the version number of that dll. > > Dennis Hi Dennis. It works. Within the program the unis OpenSSLis used. In the code, names "ssleay32.dll", "libssl32.dll" and "libeay32.dll" are used. This means that version 1.1 cannot be used. After reinstalling version 1.0.2q and copying all three DLLs in the program's folder, everything returns to work. Well done. Have a lot of thanks. This means also that Michael was on the good track too. Windows has probably changed to SSl 1.1 . -- AFOR Software Engineering A. Fortuny Gérant From Special at Joepgen.com Mon Feb 18 19:49:45 2019 From: Special at Joepgen.com (Joe) Date: Mon, 18 Feb 2019 19:49:45 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: <79sl6el1fhj2irhi43vmbmotj9218gnv3t@4ax.com> References: <6592c033-7cbe-35cf-39f8-88fd621922e1@Joepgen.com> <48afbb5d-89fb-9721-2803-90f59b02670c@Joepgen.com> <7hok6e149c1coucrei07lt9e6d4noiukh8@4ax.com> <79sl6el1fhj2irhi43vmbmotj9218gnv3t@4ax.com> Message-ID: <59f3d8fe-5513-67f1-cad7-82c7b507af30@Joepgen.com> Am 18.02.2019 um 18:58 schrieb Bo Berglund via lazarus: > Do you mean my own installation script or Anthony Walter's? Bo, in the mean time Anthony's script and fpupdeluxe work well. For comparison purposes, I would be glad I could test your script as well. --  Joe From friess at gmx.at Mon Feb 18 20:33:14 2019 From: friess at gmx.at (Andreas =?UTF-8?B?RnJpZcOf?=) Date: Mon, 18 Feb 2019 20:33:14 +0100 Subject: [Lazarus] Makefile error or what else? In-Reply-To: References: <0009734d-5fb3-5677-48eb-db2f38d0e8cd@Joepgen.com> Message-ID: See https://bugs.freepascal.org/view.php?id=34787 i delete the whole installation and it works. At this time i think i was alone with this issue. But now i see more and more people with the same issue. For a fast fix, delete the extra lines in the makefile. Andreas Joe via lazarus wrote: > Hi, > > under Raspbian Stretch (current version) on a Pi 3B+,  making of > Lazarus 2 fails. What's the reason, how to fix? > > Log: > Executing: /usr/bin/svn info /home/pi/fpcupdeluxe/lazarus (working > dir: ) url: https://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_0 > Revision: 60442 > Letzter Autor: mattias > Letzte geänderte Rev: 60307 > Letztes Änderungsdatum: 2019-02-02 21:09:45 +0100 (Sam, 02. Feb 2019) > ... > fpcupdeluxe: info: LazarusNativeInstaller (BuildModuleCustom: > Lazarus): Running make all > fpcupdeluxe: info: LazarusNativeInstaller (BuildModuleCustom: > Lazarus): make. Params: > FPC=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/fpc.sh,PP=/home/pi/fpcupdel > uxe/fpc/bin/arm-linux/ppcarm,USESVN2REVISIONINC=0,--directory=.,INSTAL > L_PREFIX=/home/pi/fpcupdeluxe/lazarus,FPCDIR=/home/pi/fpcupdeluxe/fpcs > rc,FPCMAKE=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/fpcmake,PPUMOVE=/hom > e/pi/fpcupdeluxe/fpc/bin/arm-linux/ppumove,OPT=-vw-n-h-l-d-u-t-p-c-,al > l Executing: make FPC=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/fpc.sh > PP=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/ppcarm USESVN2REVISIONINC=0 > --directory=. INSTALL_PREFIX=/home/pi/fpcupdeluxe/lazarus > FPCDIR=/home/pi/fpcupdeluxe/fpcsrc > FPCMAKE=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/fpcmake > PPUMOVE=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/ppumove > OPT=-vw-n-h-l-d-u-t-p-c- all (working dir: > /home/pi/fpcupdeluxe/lazarus) make: Verzeichnis > »/home/pi/fpcupdeluxe/lazarus« wird betreten Makefile:3388: *** Es > ist nur ein »else« pro Bedingung erlaubt. Schluss. make: Verzeichnis > »/home/pi/fpcupdeluxe/lazarus« wird verlassen fpcupdeluxe: ERROR: > LazarusNativeInstaller (BuildModuleCustom: Lazarus): make returned > error code #512 > > Regards --  Joe From sysrpl at gmail.com Mon Feb 18 22:40:22 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Mon, 18 Feb 2019 16:40:22 -0500 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: <59f3d8fe-5513-67f1-cad7-82c7b507af30@Joepgen.com> References: <6592c033-7cbe-35cf-39f8-88fd621922e1@Joepgen.com> <48afbb5d-89fb-9721-2803-90f59b02670c@Joepgen.com> <7hok6e149c1coucrei07lt9e6d4noiukh8@4ax.com> <79sl6el1fhj2irhi43vmbmotj9218gnv3t@4ax.com> <59f3d8fe-5513-67f1-cad7-82c7b507af30@Joepgen.com> Message-ID: My script uses prebuilt binaries for the Raspberry Pi to save network bandwidth time, compile speed, sd card space, and swap space. It downloads gzipped files, extracts the, sets up configuration files, and created desktop files to launch either an FPC terminal or Lazarus 2.0 both referencing the correct folders and variables. The process to build the compiler yourself results in approximately the same thing, but hopefully my methodology reduces possible problems during installation. The snippet Bo supplied could work with any setup script, and 512MB or more of swap is needed to build Lazarus 2.0 on Raspberry. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bo.berglund at gmail.com Mon Feb 18 23:34:02 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Mon, 18 Feb 2019 23:34:02 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available References: <48afbb5d-89fb-9721-2803-90f59b02670c@Joepgen.com> <7hok6e149c1coucrei07lt9e6d4noiukh8@4ax.com> <79sl6el1fhj2irhi43vmbmotj9218gnv3t@4ax.com> <59f3d8fe-5513-67f1-cad7-82c7b507af30@Joepgen.com> Message-ID: <48cm6ehve9a7hd2m7v66k45d4lfsr88kie@4ax.com> On Mon, 18 Feb 2019 19:49:45 +0100, Joe via lazarus wrote: >Am 18.02.2019 um 18:58 schrieb Bo Berglund via lazarus: >> Do you mean my own installation script or Anthony Walter's? > >Bo, in the mean time Anthony's script and fpupdeluxe work well. For >comparison purposes, I would be glad I could test your script as well. > http://blog.boberglund.com/install_lazfpc_local_pi_blog.sh -- Bo Berglund Developer in Sweden From sysrpl at gmail.com Tue Feb 19 15:14:23 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Tue, 19 Feb 2019 09:14:23 -0500 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: <48cm6ehve9a7hd2m7v66k45d4lfsr88kie@4ax.com> References: <48afbb5d-89fb-9721-2803-90f59b02670c@Joepgen.com> <7hok6e149c1coucrei07lt9e6d4noiukh8@4ax.com> <79sl6el1fhj2irhi43vmbmotj9218gnv3t@4ax.com> <59f3d8fe-5513-67f1-cad7-82c7b507af30@Joepgen.com> <48cm6ehve9a7hd2m7v66k45d4lfsr88kie@4ax.com> Message-ID: Bo, You should probably put a shebang at the top of your script. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bo.berglund at gmail.com Tue Feb 19 18:09:04 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Tue, 19 Feb 2019 18:09:04 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available References: <48afbb5d-89fb-9721-2803-90f59b02670c@Joepgen.com> <7hok6e149c1coucrei07lt9e6d4noiukh8@4ax.com> <79sl6el1fhj2irhi43vmbmotj9218gnv3t@4ax.com> <59f3d8fe-5513-67f1-cad7-82c7b507af30@Joepgen.com> <48cm6ehve9a7hd2m7v66k45d4lfsr88kie@4ax.com> Message-ID: On Tue, 19 Feb 2019 09:14:23 -0500, Anthony Walter via lazarus wrote: >Bo, > >You should probably put a shebang at the top of your script. Sorry, I don't understand. What is a "shebang"? -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Tue Feb 19 18:13:35 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Tue, 19 Feb 2019 18:13:35 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available References: <48afbb5d-89fb-9721-2803-90f59b02670c@Joepgen.com> <7hok6e149c1coucrei07lt9e6d4noiukh8@4ax.com> <79sl6el1fhj2irhi43vmbmotj9218gnv3t@4ax.com> <59f3d8fe-5513-67f1-cad7-82c7b507af30@Joepgen.com> <48cm6ehve9a7hd2m7v66k45d4lfsr88kie@4ax.com> Message-ID: On Tue, 19 Feb 2019 18:09:04 +0100, Bo Berglund via lazarus wrote: >On Tue, 19 Feb 2019 09:14:23 -0500, Anthony Walter via lazarus > wrote: > >>Bo, >> >>You should probably put a shebang at the top of your script. > >Sorry, I don't understand. What is a "shebang"? OK, googled it and I guess this is what you mean: #!/bin/bash Added it and updated the web version. -- Bo Berglund Developer in Sweden From sysrpl at gmail.com Tue Feb 19 18:47:03 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Tue, 19 Feb 2019 12:47:03 -0500 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: References: <48afbb5d-89fb-9721-2803-90f59b02670c@Joepgen.com> <7hok6e149c1coucrei07lt9e6d4noiukh8@4ax.com> <79sl6el1fhj2irhi43vmbmotj9218gnv3t@4ax.com> <59f3d8fe-5513-67f1-cad7-82c7b507af30@Joepgen.com> <48cm6ehve9a7hd2m7v66k45d4lfsr88kie@4ax.com> Message-ID: Bo, A shebang is important because it tells Unix like systems which interpreter to when a script is run. You might have written a script an executed it using "sh" rather than "bash". For example you might have been running your script as follows: sh myscript.sh The problem you create when doing this is that sh and bash are not the same. They have dialects with different rules, and if you use sh to run your script when other people get your script they have no way of knowing which interpreter you are using and the script may fail for them. The solution is to include a shebang, or #!/path/to/interpreter, as the first line of you script. This allows people to run your script by changing it to an executable and running it directly rather than specifying the interpreter. So if your script was writer to be used with sh, you would make the first line: #!/bin/sh And then people would run your script using the following code to mark it executable: chmod +x myscript.sh ./myscript.sh Then whenever you script is executed it will be run through sh, which would be what you designed the script to use. And by the way, I used sh as an example in this message. I have no idea what interpreter you used when writing your script. You know which one it was, so put that interpreter in the first line. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sysrpl at gmail.com Tue Feb 19 18:47:03 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Tue, 19 Feb 2019 12:47:03 -0500 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: References: <48afbb5d-89fb-9721-2803-90f59b02670c@Joepgen.com> <7hok6e149c1coucrei07lt9e6d4noiukh8@4ax.com> <79sl6el1fhj2irhi43vmbmotj9218gnv3t@4ax.com> <59f3d8fe-5513-67f1-cad7-82c7b507af30@Joepgen.com> <48cm6ehve9a7hd2m7v66k45d4lfsr88kie@4ax.com> Message-ID: Bo, A shebang is important because it tells Unix like systems which interpreter to when a script is run. You might have written a script an executed it using "sh" rather than "bash". For example you might have been running your script as follows: sh myscript.sh The problem you create when doing this is that sh and bash are not the same. They have dialects with different rules, and if you use sh to run your script when other people get your script they have no way of knowing which interpreter you are using and the script may fail for them. The solution is to include a shebang, or #!/path/to/interpreter, as the first line of you script. This allows people to run your script by changing it to an executable and running it directly rather than specifying the interpreter. So if your script was writer to be used with sh, you would make the first line: #!/bin/sh And then people would run your script using the following code to mark it executable: chmod +x myscript.sh ./myscript.sh Then whenever you script is executed it will be run through sh, which would be what you designed the script to use. And by the way, I used sh as an example in this message. I have no idea what interpreter you used when writing your script. You know which one it was, so put that interpreter in the first line. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bo.berglund at gmail.com Tue Feb 19 20:35:49 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Tue, 19 Feb 2019 20:35:49 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available References: <7hok6e149c1coucrei07lt9e6d4noiukh8@4ax.com> <79sl6el1fhj2irhi43vmbmotj9218gnv3t@4ax.com> <59f3d8fe-5513-67f1-cad7-82c7b507af30@Joepgen.com> <48cm6ehve9a7hd2m7v66k45d4lfsr88kie@4ax.com> Message-ID: On Tue, 19 Feb 2019 12:47:03 -0500, Anthony Walter via lazarus wrote: >The solution is to include a shebang, or #!/path/to/interpreter, as the >first line of you script. This allows people to run your script by changing >it to an executable and running it directly rather than specifying the >interpreter. That is what I do all the time with the scripts I create. After finishing editing the script file: chmod +x scriptname.sh >So if your script was writer to be used with sh, you would make the first >line: > >#!/bin/sh actually I used bash (I believe) so I have now added thus as the first line: #!/bin/bash > >Then whenever you script is executed it will be run through sh, which would >be what you designed the script to use. And by the way, I used sh as an >example in this message. I have no idea what interpreter you used when >writing your script. You know which one it was, so put that interpreter in >the first line. Yes, it was actually bash so: #!/bin/bash I am not fluent in linux scripting so usually I start with someone elses script as an example and work from there... -- Bo Berglund Developer in Sweden From Special at Joepgen.com Tue Feb 19 23:43:21 2019 From: Special at Joepgen.com (Joe) Date: Tue, 19 Feb 2019 23:43:21 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: References: <7hok6e149c1coucrei07lt9e6d4noiukh8@4ax.com> <79sl6el1fhj2irhi43vmbmotj9218gnv3t@4ax.com> <59f3d8fe-5513-67f1-cad7-82c7b507af30@Joepgen.com> <48cm6ehve9a7hd2m7v66k45d4lfsr88kie@4ax.com> Message-ID: Bo, on a Pi 3B+, I created a new system with Raspbian Stretch Nov 2018 Edition, set 'locale' to German, connected it to the WLAN, increased the swap file size to 1000 and started your script 'sh.com' (yes, the one with SheBang) It failed with this messages: " A  2.0.0/test/manual/png/testsuite_check/basn0g08.png.gif  svn: E120108: Fehler beim Ausführen des: Kontextes: The server unexpectedly closed the connection.  setup.sh: 156: Cannot download Lazarus sources for 2.0.0! Aborting". This is just to let you know. I currently don't need it, since fpcupdeluxe and Anthony Walter's script both did this job for us. Regards --  Joe From Special at Joepgen.com Wed Feb 20 00:01:08 2019 From: Special at Joepgen.com (Joe) Date: Wed, 20 Feb 2019 00:01:08 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: References: <7hok6e149c1coucrei07lt9e6d4noiukh8@4ax.com> <79sl6el1fhj2irhi43vmbmotj9218gnv3t@4ax.com> <59f3d8fe-5513-67f1-cad7-82c7b507af30@Joepgen.com> <48cm6ehve9a7hd2m7v66k45d4lfsr88kie@4ax.com> Message-ID: <0e2911c8-ea9e-6cc9-d85e-33e9e4c4745c@Joepgen.com> Bo, I see in line 156 of your script this: svn co "https:// svn.freepascal.org/ ... But in line 152, I see svn co https://svn.freepascal.org/ .. . --  Joe From bo.berglund at gmail.com Wed Feb 20 18:47:52 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Wed, 20 Feb 2019 18:47:52 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available References: <59f3d8fe-5513-67f1-cad7-82c7b507af30@Joepgen.com> <48cm6ehve9a7hd2m7v66k45d4lfsr88kie@4ax.com> <0e2911c8-ea9e-6cc9-d85e-33e9e4c4745c@Joepgen.com> Message-ID: On Wed, 20 Feb 2019 00:01:08 +0100, Joe via lazarus wrote: >Bo, I see in line 156 of your script this: > >svn co "https:// svn.freepascal.org/ ... >But in line 152, I see >svn co https://svn.freepascal.org/ .. . > Yes I see the differences between lines 152 and 156 being a double quote around the command to run. This has not been an issue before (even though it is inconsistent). Maybe on Raspbian sh is used rather than bash by default and in sh this does not matter? The two lines are (for those who do not download the script): 152: svn co https://svn.freepascal.org/svn/fpc/tags/$FPCTAG/ $FPCVER 156: svn co "https://svn.freepascal.org/svn/lazarus/tags/$LAZTAG/" "$LAZVER" I will make a test by changing the shebang to use sh instead. Is there any way inside a script to determine what interpreter is running? -- Bo Berglund Developer in Sweden From linker.storm at gmail.com Wed Feb 20 19:11:13 2019 From: linker.storm at gmail.com (linkerstorm) Date: Wed, 20 Feb 2019 11:11:13 -0700 (MST) Subject: [Lazarus] "Rename identifier" issues In-Reply-To: <20141106233634.213341a8@limapholos> References: <20141106233634.213341a8@limapholos> Message-ID: <1550686273612-0.post@n3.nabble.com> Hello. As for 20/02/2019, fpc 3.0.4, lazarus 2.0.0, Windows 10 x64, this bug still exists !!! -- Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/ From bo.berglund at gmail.com Thu Feb 21 00:09:17 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Thu, 21 Feb 2019 00:09:17 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available References: <79sl6el1fhj2irhi43vmbmotj9218gnv3t@4ax.com> <59f3d8fe-5513-67f1-cad7-82c7b507af30@Joepgen.com> <48cm6ehve9a7hd2m7v66k45d4lfsr88kie@4ax.com> Message-ID: On Tue, 19 Feb 2019 23:43:21 +0100, Joe via lazarus wrote: >Bo, >on a Pi 3B+, I created a new system with Raspbian Stretch Nov 2018 >Edition, set 'locale' to German, connected it to the WLAN, increased the >swap file size to 1000 and started your script 'sh.com' (yes, the one >with SheBang) > >It failed with this messages: > >" A  2.0.0/test/manual/png/testsuite_check/basn0g08.png.gif >  svn: E120108: Fehler beim Ausführen des: Kontextes: The server >unexpectedly closed the connection. >  setup.sh: 156: Cannot download Lazarus sources for 2.0.0! Aborting". > While examining your error message above I see that the checkout has reached into the Lazarus svn command and stopped at the test stuff, so this really means that it has started working on the svn co command and downloaded FPC plus a lot of Lazarus files, but failed due to networking errors. I have copied out the lines in my script that use svn to get the sources and modified the LAZTAG, FPCTAG, FPCVER and LAZVER variables so it all reads as follows: #!/bin/bash LAZDIR=/home/pi/dev/lazarus FPCDIR=/home/pi/dev/fpc FPCTAG=release_3_0_4/tests FPCVER=3.0.4_tst LAZTAG=lazarus_2_0_0/test LAZVER=2.0.0_tst function error_exit { # ---------------------------------------------------------------- # Function for exit due to fatal program error # Accepts 1 argument: # string containing descriptive error message #---------------------------------------------------------------- echo "${PROGNAME}: ${1:-"Unknown Error"}" 1>&2 exit 1 } echo "Downloading version $FPCVER of FPC" cd "$FPCDIR" || error_exit "$LINENO: Cannot access directory $FPCDIR! Aborting" svn co "https://svn.freepascal.org/svn/fpc/tags/$FPCTAG" "$FPCVER" || error_exit "$LINENO: Cannot download fpc sources! Aborting" echo "Downloading version $LAZVER of Lazarus" cd "$LAZDIR" || error_exit "$LINENO: Cannot access dir $LAZDIR! Aborting" svn co "https://svn.freepascal.org/svn/lazarus/tags/$LAZTAG/test" "$LAZVER" || error_exit "$LINENO: Cannot download Lazarus sources for $LAZVER! Aborting" Then I ran this new script on the RPi3-Stretch machine I had earlier installed on. There were no errors shown and the reported file in your error was successfully checked out. What kind of network connection do you have? I am on 250/100 Mbit/s fiber myself. -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Thu Feb 21 00:11:42 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Thu, 21 Feb 2019 00:11:42 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available References: <48cm6ehve9a7hd2m7v66k45d4lfsr88kie@4ax.com> <0e2911c8-ea9e-6cc9-d85e-33e9e4c4745c@Joepgen.com> Message-ID: On Wed, 20 Feb 2019 18:47:52 +0100, Bo Berglund via lazarus wrote: >I will make a test by changing the shebang to use sh instead. I did not change the shebang, but cut down the script to the two svn commands and the variable definitions and ran it successfully without any problems... Must have been a network glitch for you. The quotes do not make a difference at all (and should not). -- Bo Berglund Developer in Sweden From dec12 at avidsoft.com.hk Thu Feb 21 05:43:55 2019 From: dec12 at avidsoft.com.hk (Dennis) Date: Thu, 21 Feb 2019 12:43:55 +0800 Subject: [Lazarus] Lazarus 2.0 for win 64, on update packages->rebuild failed Message-ID: <3debe059-4a78-053d-4320-6fc0d6d77cb5@avidsoft.com.hk> I got the many of following errors. In the end, I had to restart Lazarus and ran it as Administrator to solve it. Maybe the lazarus installer can be modified to avoid these in the future. Dennis -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: kmpdbpbapmkanoof.png Type: image/png Size: 3916 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: coljbelieigkkohc.png Type: image/png Size: 3970 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gjbcacjpbjfelbln.png Type: image/png Size: 3928 bytes Desc: not available URL: From nc-gaertnma at netcologne.de Thu Feb 21 08:18:37 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 21 Feb 2019 08:18:37 +0100 Subject: [Lazarus] Lazarus 2.0 for win 64, on update packages->rebuild failed In-Reply-To: <3debe059-4a78-053d-4320-6fc0d6d77cb5@avidsoft.com.hk> References: <3debe059-4a78-053d-4320-6fc0d6d77cb5@avidsoft.com.hk> Message-ID: <20190221081837.38d2d136@limapholos.matflo.wg> On Thu, 21 Feb 2019 12:43:55 +0800 Dennis via lazarus wrote: > I got the many of following errors. When Lazarus compiles a package it checks if the package output directory is writable. If not writable it uses uses a directory in its config directory (default under Windows C:\Users\username\AppData\local\Lazarus\bin\packagename\) Which means, either you found a bug, or you have a broken installation. How did you install Lazarus? Please create a bug report and include the content of View / IDE Internals / About IDE > In the end, I had to restart Lazarus and ran it as Administrator to > solve it. > > Maybe the lazarus installer can be modified to avoid these in the > future. Mattias From Special at Joepgen.com Thu Feb 21 11:38:45 2019 From: Special at Joepgen.com (Joe) Date: Thu, 21 Feb 2019 11:38:45 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: References: <79sl6el1fhj2irhi43vmbmotj9218gnv3t@4ax.com> <59f3d8fe-5513-67f1-cad7-82c7b507af30@Joepgen.com> <48cm6ehve9a7hd2m7v66k45d4lfsr88kie@4ax.com> Message-ID: Am 21.02.2019 um 00:09 schrieb Bo Berglund via lazarus: > What kind of network connection do you have? I am on 250/100 Mbit/s > fiber myself. We have a VDSL connection with 265/42 Mbit/s. I tried (at 11:30 hours local time) to download the newest version of your script from http://blog.boberglund.com/install_lazfpc_local_pi_blog.sh, but still got this: #!/bin/bash # This script is used to install FreePascal 3.0.0 and Lazarus 1.6 on a Raspberry Pi2/3 running Raspbian Jessie # Original script by Jim Kueneman (http://www.mustangpeak.net/install_laz.sh) # Modified 2016-01-07 by Bo Berglund as follows: ... #Fpc and Lazarus tags and versions FPCTAG=release_3_0_4 FPCVER=3.0.4 LAZTAG=lazarus_2_0_0 LAZVER=2.0.0 ... -- Joe From aaa5500 at ya.ru Thu Feb 21 11:40:26 2019 From: aaa5500 at ya.ru (AlexeyT) Date: Thu, 21 Feb 2019 13:40:26 +0300 Subject: [Lazarus] Fppkg error on IDE start with FPC 3.2 fixes Message-ID: <955631ce-6c7e-9277-3fb3-408e3b6bdfc4@ya.ru> function TFppkgHelper.IsProperlyConfigured: Boolean; {$IF FPC_FULLVERSION>30100} var   CompilerFilename: string; {$ENDIF FPC_FULLVERSION>30100} begin   {$IF FPC_FULLVERSION>30100}   if Assigned(FFPpkg) and (FIsProperlyConfigured=fpcUnknown) then     begin     FIsProperlyConfigured := fpcYes;     if not HasPackage('rtl') then       FIsProperlyConfigured := fpcNo here I see req for package "rtl", while FPC fixes3.2 don't have "rtl" folder in /home/user/fpcupdeluxe/fpcsrc/packages. It has folders rtl-console, rtl-extra, rtl-generics, rtl-objpas, rtl-unicode. -- Regards, Alexey From pascaldragon at googlemail.com Thu Feb 21 13:14:04 2019 From: pascaldragon at googlemail.com (Sven Barth) Date: Thu, 21 Feb 2019 13:14:04 +0100 Subject: [Lazarus] Fppkg error on IDE start with FPC 3.2 fixes In-Reply-To: <955631ce-6c7e-9277-3fb3-408e3b6bdfc4@ya.ru> References: <955631ce-6c7e-9277-3fb3-408e3b6bdfc4@ya.ru> Message-ID: Am Do., 21. Feb. 2019, 11:40 hat AlexeyT via lazarus < lazarus at lists.lazarus-ide.org> geschrieben: > function TFppkgHelper.IsProperlyConfigured: Boolean; > {$IF FPC_FULLVERSION>30100} > var > CompilerFilename: string; > {$ENDIF FPC_FULLVERSION>30100} > begin > {$IF FPC_FULLVERSION>30100} > if Assigned(FFPpkg) and (FIsProperlyConfigured=fpcUnknown) then > begin > FIsProperlyConfigured := fpcYes; > > if not HasPackage('rtl') then > FIsProperlyConfigured := fpcNo > > here I see req for package "rtl", while FPC fixes3.2 don't have "rtl" > folder in /home/user/fpcupdeluxe/fpcsrc/packages. It has folders > rtl-console, rtl-extra, rtl-generics, rtl-objpas, rtl-unicode. > The RTL package is not part of the packages directory, but is parallel to that. Nevertheless it contains an fpmake.pp declaring it as a package. Regards, Sven > -------------- next part -------------- An HTML attachment was scrubbed... URL: From listbox at martoks-place.de Thu Feb 21 14:39:35 2019 From: listbox at martoks-place.de (Martok) Date: Thu, 21 Feb 2019 14:39:35 +0100 Subject: [Lazarus] Fppkg error on IDE start with FPC 3.2 fixes In-Reply-To: References: <955631ce-6c7e-9277-3fb3-408e3b6bdfc4@ya.ru> Message-ID: Am 21.02.2019 um 13:14 schrieb Sven Barth via lazarus: > The RTL package is not part of the packages directory, but is parallel to that. > Nevertheless it contains an fpmake.pp declaring it as a package. It also doesn't create a fpmkinst file, is that intentional? Only the packages from /packages/ do. -- Regards, Martok From bo.berglund at gmail.com Thu Feb 21 15:06:39 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Thu, 21 Feb 2019 15:06:39 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available References: <48cm6ehve9a7hd2m7v66k45d4lfsr88kie@4ax.com> Message-ID: <00ct6et4f38qfmlkurvkr756linq8mtpuv@4ax.com> On Thu, 21 Feb 2019 11:38:45 +0100, Joe via lazarus wrote: >but still got this: The only change should be that I removed the double quotes around the svn arguments in the command that had it. I tested that in a cut down version of the script just having the parameter definitions and svn commands. -- Bo Berglund Developer in Sweden From wkitty42 at windstream.net Thu Feb 21 15:14:40 2019 From: wkitty42 at windstream.net (wkitty42 at windstream.net) Date: Thu, 21 Feb 2019 09:14:40 -0500 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: References: <79sl6el1fhj2irhi43vmbmotj9218gnv3t@4ax.com> <59f3d8fe-5513-67f1-cad7-82c7b507af30@Joepgen.com> <48cm6ehve9a7hd2m7v66k45d4lfsr88kie@4ax.com> Message-ID: <37c4eacb-a45d-ddea-4ff0-84ce9751a962@windstream.net> On 2/21/19 5:38 AM, Joe via lazarus wrote: > Am 21.02.2019 um 00:09 schrieb Bo Berglund via lazarus: >> What kind of network connection do you have? I am on 250/100 Mbit/s >> fiber myself. > > We have a VDSL connection with 265/42 Mbit/s. > > I tried (at 11:30 hours local time) to download the newest version of your > script from > > http://blog.boberglund.com/install_lazfpc_local_pi_blog.sh, > > but still got this: if you are still getting the same file even after it has been changed, that means that something between you and the source server is caching it and hasn't updated the cache since the version you keep getting was originally pulled and cached... FWIW: attached is the version that i just pulled and this is the first time i've pulled it... -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list unless* *a signed and pre-paid contract is in effect with us.* -------------- next part -------------- A non-text attachment was scrubbed... Name: install_lazfpc_local_pi_blog.sh Type: application/x-shellscript Size: 10377 bytes Desc: not available URL: From bo.berglund at gmail.com Thu Feb 21 15:48:17 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Thu, 21 Feb 2019 15:48:17 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available References: <37c4eacb-a45d-ddea-4ff0-84ce9751a962@windstream.net> Message-ID: <68et6epp1fmn0pb297j9ehjkq528ovodqu@4ax.com> On Thu, 21 Feb 2019 09:14:40 -0500, wkitty42--- via lazarus wrote: >On 2/21/19 5:38 AM, Joe via lazarus wrote: >> Am 21.02.2019 um 00:09 schrieb Bo Berglund via lazarus: >>> What kind of network connection do you have? I am on 250/100 Mbit/s >>> fiber myself. >> >> We have a VDSL connection with 265/42 Mbit/s. >> >> I tried (at 11:30 hours local time) to download the newest version of your >> script from >> >> http://blog.boberglund.com/install_lazfpc_local_pi_blog.sh, >> >> but still got this: > > >if you are still getting the same file even after it has been changed, that >means that something between you and the source server is caching it and hasn't >updated the cache since the version you keep getting was originally pulled and >cached... > I did not upload the modified script where I had removed the double quotes from the svn command to retrieve lazarus sources since I proved that the command would work anyway and the person reporting the problem he had showed a network access erroer well into the svn download. However, I have now uploaded the script where the quotes are cleaned out also for the svn lazarus command. Also changed the modification notes -- Bo Berglund Developer in Sweden From wkitty42 at windstream.net Thu Feb 21 18:06:27 2019 From: wkitty42 at windstream.net (wkitty42 at windstream.net) Date: Thu, 21 Feb 2019 12:06:27 -0500 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: <68et6epp1fmn0pb297j9ehjkq528ovodqu@4ax.com> References: <37c4eacb-a45d-ddea-4ff0-84ce9751a962@windstream.net> <68et6epp1fmn0pb297j9ehjkq528ovodqu@4ax.com> Message-ID: <3f77486c-e3fd-fb2b-76cc-ce6120bfdbf3@windstream.net> On 2/21/19 9:48 AM, Bo Berglund via lazarus wrote: > On Thu, 21 Feb 2019 09:14:40 -0500, wkitty42--- via lazarus >> if you are still getting the same file even after it has been changed, >> that means that something between you and the source server is caching it >> and hasn't updated the cache since the version you keep getting was >> originally pulled and cached... > > I did not upload the modified script where I had removed the double > quotes from the svn command ahh! that would explain it :) -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list unless* *a signed and pre-paid contract is in effect with us.* From Special at Joepgen.com Thu Feb 21 19:06:48 2019 From: Special at Joepgen.com (Joe) Date: Thu, 21 Feb 2019 19:06:48 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: <3f77486c-e3fd-fb2b-76cc-ce6120bfdbf3@windstream.net> References: <37c4eacb-a45d-ddea-4ff0-84ce9751a962@windstream.net> <68et6epp1fmn0pb297j9ehjkq528ovodqu@4ax.com> <3f77486c-e3fd-fb2b-76cc-ce6120bfdbf3@windstream.net> Message-ID: <0f30dd97-a09f-3b89-2d56-f9bcede54a86@Joepgen.com> Hi, now Bo's script (current version as of this afternoon) created Lazarus 2.0, SVN Revision 60471. But unfortunately, this Lazarus didn't compile my test programs. Error message: "Project1.lpr(23,0): Error: resource compiler "fpcres" not found, switching to external mode" Steps to reproduce: Create a new Raspian Stretch (Nov 2018) system, switch locale to German, create Lazarus 2.0.0 with Bo's script. with this Lazarus create a new project. Put a ToggleBox ToggleBox1 on Form1; Create an On Change event handler for ToggleBox1, content "ShowMessage ('Hello')". Try to compile. 'sum'-Checksum of the script: 12667 Hardware: Pi 3B+ Result of 'sudo find / -name fpcres': /home/pi/dev/fpc/3.0.4/utils/fpcres /home/pi/bin/fpcres /home/pi/share/src/fpc-3.0.4/fpc/utils/fpcres --  Joe From bo.berglund at gmail.com Thu Feb 21 20:50:41 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Thu, 21 Feb 2019 20:50:41 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available References: <37c4eacb-a45d-ddea-4ff0-84ce9751a962@windstream.net> <68et6epp1fmn0pb297j9ehjkq528ovodqu@4ax.com> <3f77486c-e3fd-fb2b-76cc-ce6120bfdbf3@windstream.net> <0f30dd97-a09f-3b89-2d56-f9bcede54a86@Joepgen.com> Message-ID: On Thu, 21 Feb 2019 19:06:48 +0100, Joe via lazarus wrote: >But unfortunately, this Lazarus didn't compile my test programs. Error >message: >"Project1.lpr(23,0): Error: resource compiler "fpcres" not found, >switching to external mode" > >Steps to reproduce: >Create a new Raspian Stretch (Nov 2018) system, switch locale to German, >create Lazarus 2.0.0 with Bo's script. >with this Lazarus create a new project. Put a ToggleBox ToggleBox1 on >Form1; Create an On Change >event handler for ToggleBox1, content "ShowMessage ('Hello')". Try to >compile. > >'sum'-Checksum of the script: 12667 >Hardware: Pi 3B+ >Result of 'sudo find / -name fpcres': >/home/pi/dev/fpc/3.0.4/utils/fpcres >/home/pi/bin/fpcres >/home/pi/share/src/fpc-3.0.4/fpc/utils/fpcres As I have written in the script it deposits the fpc and lazarus entirely within the users home dir, thus not polluting the system. So /home/pi/bin is on path and where the binaries built by make all and deposited by make install results in using this dir. On my test machine: $ which fpcres /home/pi/bin/fpcres I.e. exactly like you have. So I proceeded to do what you described to replicate. Compile messages: Compile Project, Target: /home/pi/tmp/project1: Success, Warnings: 2 project1.lpr(23,0) Warning: "crtbegin.o" not found, this will probably cause a linking failure project1.lpr(23,0) Warning: "crtend.o" not found, this will probably cause a linking failure (I have seen this crtbegin-crtend warning before, but have forgotten how to fix it, it is caused by something inside fpc.conf, I believe.) And finally if I hit the green arrow to run the project it compiles again and then runs and shows the form with the togglebox. When clicked the message is show normally. The only difference from your steps is that I have not changed locale of my Pi.... And Raspbian is what I already have: $ lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 9.6 (stretch) Release: 9.6 Codename: stretch I don't know any command to use to get any more info regarding Raspbian... -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Thu Feb 21 21:09:09 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Thu, 21 Feb 2019 21:09:09 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available References: <37c4eacb-a45d-ddea-4ff0-84ce9751a962@windstream.net> <68et6epp1fmn0pb297j9ehjkq528ovodqu@4ax.com> <3f77486c-e3fd-fb2b-76cc-ce6120bfdbf3@windstream.net> <0f30dd97-a09f-3b89-2d56-f9bcede54a86@Joepgen.com> Message-ID: On Thu, 21 Feb 2019 20:50:41 +0100, Bo Berglund via lazarus wrote: >project1.lpr(23,0) Warning: "crtbegin.o" not found, this will probably >cause a linking failure >project1.lpr(23,0) Warning: "crtend.o" not found, this will probably >cause a linking failure >(I have seen this crtbegin-crtend warning before, but have forgotten >how to fix it, it is caused by something inside fpc.conf, I believe.) > I found a solution to this: nano ~/.fpc.cnf A few pages down there is a section like this: # searchpath for libraries #-Fl/home/pi/lib/fpc/$fpcversion/lib #-Fl/lib;/usr/lib -Fl/home/pi/lib/fpc/$fpcversion/lib/$FPCTARGET Here I added this after the above line: #Added to get rid of crtbegin.o and crtend.o warnings when compiling in Lazarus -Fl/usr/lib/gcc/arm-linux-gnueabihf/6/ The path was found by doing a search: $ sudo find / -name crtend.o find: ‘/proc/761/task/761/net’: Invalid argument find: ‘/proc/761/net’: Invalid argument /usr/lib/gcc/arm-linux-gnueabihf/6/crtend.o After this was added I compiled the project again and now these warnings were gone. -- Bo Berglund Developer in Sweden From Special at Joepgen.com Thu Feb 21 22:01:19 2019 From: Special at Joepgen.com (Joe) Date: Thu, 21 Feb 2019 22:01:19 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: References: <37c4eacb-a45d-ddea-4ff0-84ce9751a962@windstream.net> <68et6epp1fmn0pb297j9ehjkq528ovodqu@4ax.com> <3f77486c-e3fd-fb2b-76cc-ce6120bfdbf3@windstream.net> <0f30dd97-a09f-3b89-2d56-f9bcede54a86@Joepgen.com> Message-ID: Hi, Bo, I switched the test system from locale German to locale English-UK and rebooted. Then I started  Lazarus 2.0 and run my ToggleBox test again. This time it run flawslesly!  How can a locale setting influence the inner workings of Lararus 2.0 in such a manner? Any ideas in the community? Could you perhaps switch temporarely to German locale and try to run the ToggleBox test again? Your solution for the crtbegin/crtend-phenomenon is very interesting. I'll try it tomorrow. --  Joe From Special at Joepgen.com Thu Feb 21 22:44:48 2019 From: Special at Joepgen.com (Joe) Date: Thu, 21 Feb 2019 22:44:48 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: References: <37c4eacb-a45d-ddea-4ff0-84ce9751a962@windstream.net> <68et6epp1fmn0pb297j9ehjkq528ovodqu@4ax.com> <3f77486c-e3fd-fb2b-76cc-ce6120bfdbf3@windstream.net> <0f30dd97-a09f-3b89-2d56-f9bcede54a86@Joepgen.com> Message-ID: <44ab7925-ac64-3318-57aa-09f78a426eb1@Joepgen.com> Am 21.02.2019 um 22:01 schrieb Joe via lazarus: > Hi, Bo, > > I switched the test system from locale German to locale English-UK and > rebooted. Then I started  Lazarus 2.0 and run my ToggleBox test again. > This time it run flawslesly!  How can a locale setting influence the > inner workings of Lararus 2.0 in such a manner? Any ideas in the > community? > > Could you perhaps switch temporarely to German locale and try to run > the ToggleBox test again? > > Your solution for the crtbegin/crtend-phenomenon is very interesting. > I'll try it tomorrow. > > --  Joe > > Hi, all, another finding: After this test with locale English-UK  I switched the system back to locale German and to character set UTF-8. This time, the Toggle Box test program was compiled and run - despite the German environment. Looks like the charcter set could be the culprit as well. -- Joe From michael at freepascal.org Fri Feb 22 09:16:03 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Fri, 22 Feb 2019 09:16:03 +0100 (CET) Subject: [Lazarus] rename identifier Message-ID: Hi, The code browser has the option to rename an identifier (e.g. a class). After using it, I would expect the code browser to refresh itself. Currently it still displays the old name of a class. Michael. From Special at Joepgen.com Fri Feb 22 09:20:21 2019 From: Special at Joepgen.com (Joe) Date: Fri, 22 Feb 2019 09:20:21 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available In-Reply-To: References: <37c4eacb-a45d-ddea-4ff0-84ce9751a962@windstream.net> <68et6epp1fmn0pb297j9ehjkq528ovodqu@4ax.com> <3f77486c-e3fd-fb2b-76cc-ce6120bfdbf3@windstream.net> <0f30dd97-a09f-3b89-2d56-f9bcede54a86@Joepgen.com> Message-ID: <391c1d92-35e6-ed8d-445d-a16df33f2da9@Joepgen.com> Am 21.02.2019 um 21:09 schrieb Bo Berglund via lazarus: > After this was added I compiled the project again and now these > warnings were gone. Confirmed. From bo.berglund at gmail.com Fri Feb 22 11:57:19 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Fri, 22 Feb 2019 11:57:19 +0100 Subject: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available References: <37c4eacb-a45d-ddea-4ff0-84ce9751a962@windstream.net> <68et6epp1fmn0pb297j9ehjkq528ovodqu@4ax.com> <3f77486c-e3fd-fb2b-76cc-ce6120bfdbf3@windstream.net> <0f30dd97-a09f-3b89-2d56-f9bcede54a86@Joepgen.com> <391c1d92-35e6-ed8d-445d-a16df33f2da9@Joepgen.com> Message-ID: On Fri, 22 Feb 2019 09:20:21 +0100, Joe via lazarus wrote: >Am 21.02.2019 um 21:09 schrieb Bo Berglund via lazarus: >> After this was added I compiled the project again and now these >> warnings were gone. > >Confirmed. Good! :-) -- Bo Berglund Developer in Sweden From Special at Joepgen.com Fri Feb 22 15:34:07 2019 From: Special at Joepgen.com (Joe) Date: Fri, 22 Feb 2019 15:34:07 +0100 Subject: [Lazarus] Can't install LazSerial 0.2 in Lazarus 2.0 under Raspbian Message-ID: <689f7ea5-f4a6-fc8e-7386-49b7d31c8e4f@Joepgen.com> Hi, the package can't be compiled. Reason: The file "lazsynaser.pas" in lines 252..262 references undefined constants. They should be defined in file 'termios.inc'. In other operating systems and/or Lazarus versions they are, but not in Lazarus 2.0 under Raspbian Stretch, Nov 2018 edition. As a quick and very dirty intermediate fix I replaced the constants in these lines with literal expressions. This worked, but of course that's no tidy solution. I could not get the mail address of 'JurassicPork', the author of LazSerial. Does someone know this address? Regards --  Joe From hdpc at talktalk.net Fri Feb 22 15:42:16 2019 From: hdpc at talktalk.net (Howard Page-Clark) Date: Fri, 22 Feb 2019 14:42:16 +0000 Subject: [Lazarus] Can't install LazSerial 0.2 in Lazarus 2.0 under Raspbian In-Reply-To: <689f7ea5-f4a6-fc8e-7386-49b7d31c8e4f@Joepgen.com> References: <689f7ea5-f4a6-fc8e-7386-49b7d31c8e4f@Joepgen.com> Message-ID: <20a6822d-02ff-301e-3f7e-de040749496a@talktalk.net> On 22/02/2019 14:34, Joe via lazarus wrote: > Hi, > > the package can't be compiled. Reason: The file "lazsynaser.pas" in > lines 252..262 references undefined constants. They should be defined > in file 'termios.inc'. In other operating systems and/or Lazarus > versions they are, but not in Lazarus 2.0 under Raspbian Stretch, Nov > 2018 edition. > > As a quick and very dirty intermediate fix I replaced the constants in > these lines with literal expressions. This worked, but of course > that's no tidy solution. > > I could not get the mail address of 'JurassicPork', the author of > LazSerial. Does someone know this address? Why not use the Lazarus forum members' section to send him a private message? After login: http://forum.lazarus-ide.org/index.php?action=profile;u=51097 Just click "Send PM" He'll see the message the next time he logs on. From Special at Joepgen.com Fri Feb 22 15:51:03 2019 From: Special at Joepgen.com (Joe) Date: Fri, 22 Feb 2019 15:51:03 +0100 Subject: [Lazarus] Can't install LazSerial 0.2 in Lazarus 2.0 under Raspbian In-Reply-To: <20a6822d-02ff-301e-3f7e-de040749496a@talktalk.net> References: <689f7ea5-f4a6-fc8e-7386-49b7d31c8e4f@Joepgen.com> <20a6822d-02ff-301e-3f7e-de040749496a@talktalk.net> Message-ID: <4ed56bb1-3d00-132a-5102-6d6c6138e438@Joepgen.com> Am 22.02.2019 um 15:42 schrieb Howard Page-Clark via lazarus: > Why not use the Lazarus forum members' section to send him a private > message? I clicked this link. After login, I got the error message 'An Error Has Occurred. You are not allowed to access this section'. From hdpc at talktalk.net Fri Feb 22 17:38:48 2019 From: hdpc at talktalk.net (Howard Page-Clark) Date: Fri, 22 Feb 2019 16:38:48 +0000 Subject: [Lazarus] Can't install LazSerial 0.2 in Lazarus 2.0 under Raspbian In-Reply-To: <4ed56bb1-3d00-132a-5102-6d6c6138e438@Joepgen.com> References: <689f7ea5-f4a6-fc8e-7386-49b7d31c8e4f@Joepgen.com> <20a6822d-02ff-301e-3f7e-de040749496a@talktalk.net> <4ed56bb1-3d00-132a-5102-6d6c6138e438@Joepgen.com> Message-ID: <9c5ccfc3-deac-1fc7-5b48-511cc54eca90@talktalk.net> On 22/02/2019 14:51, Joe via lazarus wrote: > Am 22.02.2019 um 15:42 schrieb Howard Page-Clark via lazarus: >> Why not use the Lazarus forum members' section to send him a private >> message? > > I clicked this link. After login, I got the error message 'An Error > Has Occurred. You are not allowed to access this section'. Perhaps access via a link is not allowed. Try logging in as you normally would to the Lazarus forum. Then find Jurassic Pork's members page either by clicking on his underlined name in one of the posts he has made, or by searching for his name in the Members section. Then try sending him a PM. From Special at Joepgen.com Fri Feb 22 18:30:56 2019 From: Special at Joepgen.com (Joe) Date: Fri, 22 Feb 2019 18:30:56 +0100 Subject: [Lazarus] Can't install LazSerial 0.2 in Lazarus 2.0 under Raspbian In-Reply-To: <9c5ccfc3-deac-1fc7-5b48-511cc54eca90@talktalk.net> References: <689f7ea5-f4a6-fc8e-7386-49b7d31c8e4f@Joepgen.com> <20a6822d-02ff-301e-3f7e-de040749496a@talktalk.net> <4ed56bb1-3d00-132a-5102-6d6c6138e438@Joepgen.com> <9c5ccfc3-deac-1fc7-5b48-511cc54eca90@talktalk.net> Message-ID: <30ac9e4d-d8c8-89d6-28d6-c80e7a378c68@Joepgen.com> Am 22.02.2019 um 17:38 schrieb Howard Page-Clark via lazarus: > > Try logging in as you normally would to the Lazarus forum. > > Then find Jurassic Pork's members page either by clicking on his > underlined name in one of the posts he has made, or by searching for > his name in the Members section. Then try sending him a PM. This didn't work. But I could append the text to a thread, which was originated and seems to be read by J. P. Thank you, Howard. Regards --  Joe From restrepopj at gmail.com Sat Feb 23 00:57:22 2019 From: restrepopj at gmail.com (Pedro Restrepo) Date: Fri, 22 Feb 2019 17:57:22 -0600 Subject: [Lazarus] Can't install LazSerial 0.2 in Lazarus 2.0 under Raspbian In-Reply-To: <689f7ea5-f4a6-fc8e-7386-49b7d31c8e4f@Joepgen.com> References: <689f7ea5-f4a6-fc8e-7386-49b7d31c8e4f@Joepgen.com> Message-ID: Joe, I am running LazSerial v0.2 on Raspbian. I ran into the same problems you did, but finally got it installed. I can't remember exactly what I did, but in my source code I commented out lines 251..263. I can send you the source and the compiled versions. It has been working flawlessly for about 4 months Pedro On Fri, Feb 22, 2019 at 8:34 AM Joe via lazarus < lazarus at lists.lazarus-ide.org> wrote: > Hi, > > the package can't be compiled. Reason: The file "lazsynaser.pas" in > lines 252..262 references undefined constants. They should be defined in > file 'termios.inc'. In other operating systems and/or Lazarus versions > they are, but not in Lazarus 2.0 under Raspbian Stretch, Nov 2018 edition. > > As a quick and very dirty intermediate fix I replaced the constants in > these lines with literal expressions. This worked, but of course that's > no tidy solution. > > I could not get the mail address of 'JurassicPork', the author of > LazSerial. Does someone know this address? > > Regards -- Joe > > > > > -- > _______________________________________________ > 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 pch at ap-i.net Sat Feb 23 09:13:19 2019 From: pch at ap-i.net (Patrick Chevalley) Date: Sat, 23 Feb 2019 08:13:19 +0000 Subject: [Lazarus] Can't install LazSerial 0.2 in Lazarus 2.0 under Raspbian In-Reply-To: References: <689f7ea5-f4a6-fc8e-7386-49b7d31c8e4f@Joepgen.com> Message-ID: here my patch, it is for the original synaser so line number can differ a bit in lazsynaser: https://github.com/pchev/skychart/blob/master/skychart/component/synapse/cdc_arm.patch (https://github.com/pchev/skychart/blob/master/skychart/component/synapse/cdc_arm.patch) -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Sun Feb 24 12:00:26 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 24 Feb 2019 12:00:26 +0100 (CET) Subject: [Lazarus] IDE unstable - Online Package manager bug Message-ID: Hello, I find that the IDE has become very unstable lately. I didn't install any new packages, didn't update FPC (still on FPC 3.0.4). Just updated lazarus from SVN. 4 out of 5 attempts to close the IDE using the window manager button fails: lazarus hangs and I must kill it using killall -KILL lazarus from a terminal. It's very reproducible. Start lazarus Open package Compile package Switch to form editor of start project Close (window manager or menu file - exit) -> hang I can attach to it using gdb. Here is the stack trace: 0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225 #1 0x000000000044f306 in INTRTLEVENTWAITFORTIMEOUT (AEVENT=0x7f460e943040, TIMEOUT=100) at ../unix/cthreads.pp:973 #2 0x000000000043f66f in RTLEVENTWAITFOR (STATE=0x7f460e943040, TIMEOUT=100) at ../inc/thread.inc:325 #3 0x000000000052fc3c in CHECKSYNCHRONIZE (TIMEOUT=100) at ../objpas/classes/classes.inc:395 #4 0x000000000199177a in DOONIDECLOSE (this=0x7f45fff9ba80, SENDER=0x7f46057bfdb0) at opkman_intf.pas:125 #5 0x00000000006a30c7 in CALLNOTIFYEVENTS (this=0x7f45f4c6d440, SENDER=0x7f46057bfdb0) at lazmethodlist.pas:315 #6 0x00000000009749f5 in DOCALLNOTIFYHANDLER (this=0x7f46057bfdb0, HANDLERTYPE=LIHTIDECLOSE) at lazideintf.pas:659 #7 0x00000000004ad026 in MAINIDEFORMCLOSE (this=0x7f46057bfdb0, SENDER=0x7f45f73f98f0, CLOSEACTION=CAFREE) at main.pp:2058 #8 0x0000000000487698 in DOCLOSE (this=0x7f45f73f98f0, CLOSEACTION=CAFREE) at include/customform.inc:959 #9 0x000000000048af81 in CLOSE (this=0x7f45f73f98f0) at include/customform.inc:2196 #10 0x00000000004c1afd in QUITIDE (this=0x7f46057bfdb0) at main.pp:6622 #11 0x00000000004b50dd in MNUQUITCLICKED (this=0x7f46057bfdb0, SENDER=0x7f45f7e9cfc0) at main.pp:3655 #12 0x000000000096f40f in MENUITEMCLICK (this=0x7f45f7e9cfc0, SENDER=0x7f45fff05d40) at menuintf.pas:544 #13 0x00000000009733b1 in MENUITEMCLICK (this=0x7f45f7e9cfc0, SENDER=0x7f45fff05d40) at menuintf.pas:1695 Seems a bug in the online package manager. Who said once that threads are evil ? :) For now I uninstalled the online package manager, but a fix would be really appreciated :-) Michael. From michael at freepascal.org Sun Feb 24 13:30:29 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 24 Feb 2019 13:30:29 +0100 (CET) Subject: [Lazarus] New code tools error dialog ? Message-ID: Hi, It seems that the code tools now pop up an error dialog when they encounter an error if you're trying to do something (code completion, add component). Is there an option to disable this ? I really don't want to have to close the dialog every time. If memory serves well, they used to simply not execute the requested action, and I think sometimes they displayed a message in the message dialog window. That make far more sense to me. Michael. From lazarus at mfriebe.de Sun Feb 24 13:56:40 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Sun, 24 Feb 2019 13:56:40 +0100 Subject: [Lazarus] IDE unstable - Online Package manager bug In-Reply-To: References: Message-ID: <76e33417-0933-2aa6-ebd3-c461430d90b3@mfriebe.de> Laz 2.1 trunk, or 2.0.1 fixes? Can you attach a list of all threads, and traces of other threads please? On 24/02/2019 12:00, Michael Van Canneyt via lazarus wrote: > > Hello, > > I find that the IDE has become very unstable lately. I didn't install any > new packages, didn't update FPC (still on FPC 3.0.4). Just updated > lazarus > from SVN. > > 4 out of 5 attempts to close the IDE using the window manager button > fails: > lazarus hangs and I must kill it using > killall -KILL lazarus > from a terminal. > > It's very reproducible. > > Start lazarus > Open package > Compile package > Switch to form editor of start project > Close (window manager or menu file - exit) > -> hang > > I can attach to it using gdb. Here is the stack trace: > > 0  pthread_cond_timedwait@@GLIBC_2.3.2 () at > ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225 > #1  0x000000000044f306 in INTRTLEVENTWAITFORTIMEOUT > (AEVENT=0x7f460e943040, TIMEOUT=100) at ../unix/cthreads.pp:973 > #2  0x000000000043f66f in RTLEVENTWAITFOR (STATE=0x7f460e943040, > TIMEOUT=100) at ../inc/thread.inc:325 > #3  0x000000000052fc3c in CHECKSYNCHRONIZE (TIMEOUT=100) at > ../objpas/classes/classes.inc:395 > #4  0x000000000199177a in DOONIDECLOSE (this=0x7f45fff9ba80, > SENDER=0x7f46057bfdb0) at opkman_intf.pas:125 > #5  0x00000000006a30c7 in CALLNOTIFYEVENTS (this=0x7f45f4c6d440, > SENDER=0x7f46057bfdb0) at lazmethodlist.pas:315 > #6  0x00000000009749f5 in DOCALLNOTIFYHANDLER (this=0x7f46057bfdb0, > HANDLERTYPE=LIHTIDECLOSE) at lazideintf.pas:659 > #7  0x00000000004ad026 in MAINIDEFORMCLOSE (this=0x7f46057bfdb0, > SENDER=0x7f45f73f98f0, CLOSEACTION=CAFREE) at main.pp:2058 > #8  0x0000000000487698 in DOCLOSE (this=0x7f45f73f98f0, > CLOSEACTION=CAFREE) at include/customform.inc:959 > #9  0x000000000048af81 in CLOSE (this=0x7f45f73f98f0) at > include/customform.inc:2196 > #10 0x00000000004c1afd in QUITIDE (this=0x7f46057bfdb0) at main.pp:6622 > #11 0x00000000004b50dd in MNUQUITCLICKED (this=0x7f46057bfdb0, > SENDER=0x7f45f7e9cfc0) at main.pp:3655 > #12 0x000000000096f40f in MENUITEMCLICK (this=0x7f45f7e9cfc0, > SENDER=0x7f45fff05d40) at menuintf.pas:544 > #13 0x00000000009733b1 in MENUITEMCLICK (this=0x7f45f7e9cfc0, > SENDER=0x7f45fff05d40) at menuintf.pas:1695 > > Seems a bug in the online package manager. Who said once that threads > are evil ? :) > > For now I uninstalled the online package manager, but a fix would be > really appreciated :-) > > Michael. From michael at freepascal.org Sun Feb 24 14:06:35 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 24 Feb 2019 14:06:35 +0100 (CET) Subject: [Lazarus] IDE unstable - Online Package manager bug In-Reply-To: <76e33417-0933-2aa6-ebd3-c461430d90b3@mfriebe.de> References: <76e33417-0933-2aa6-ebd3-c461430d90b3@mfriebe.de> Message-ID: On Sun, 24 Feb 2019, Martin Frb via lazarus wrote: > Laz 2.1 trunk, or 2.0.1 fixes? Trunk. > Can you attach a list of all threads, and traces of other threads please? How am I supposed to do that ? Michael. From michael at freepascal.org Sun Feb 24 14:09:50 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 24 Feb 2019 14:09:50 +0100 (CET) Subject: [Lazarus] Adding component to IDE Message-ID: Hi, How can I add a component instance to a datamodule or form ? I know these 2: procedure AddComponent(const NewRegisteredComponent: TRegisteredComponent; const NewComponentClass: TComponentClass; const NewParent: TComponent; const NewLeft,NewTop,NewWidth,NewHeight: Integer); virtual; abstract; procedure AddComponentCheckParent(var NewParent: TComponent; const OriginComponent: TComponent; const OriginWinControl: TWinControl; const NewComponentClass: TComponentClass); virtual; abstract; But they are not suitable for my purpose. The component instance is already created in memory. I just need to be able to "put it on the form". Michael. From lazarus at mfriebe.de Sun Feb 24 14:14:51 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Sun, 24 Feb 2019 14:14:51 +0100 Subject: [Lazarus] IDE unstable - Online Package manager bug In-Reply-To: References: <76e33417-0933-2aa6-ebd3-c461430d90b3@mfriebe.de> Message-ID: On 24/02/2019 14:06, Michael Van Canneyt via lazarus wrote: > > >> Can you attach a list of all threads, and traces of other threads >> please? > > How am I supposed to do that ? once attached info threads and for each thread t 1 bt t 2 bt ... From michael at freepascal.org Sun Feb 24 15:11:56 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 24 Feb 2019 15:11:56 +0100 (CET) Subject: [Lazarus] IDE unstable - Online Package manager bug In-Reply-To: References: <76e33417-0933-2aa6-ebd3-c461430d90b3@mfriebe.de> Message-ID: On Sun, 24 Feb 2019, Martin Frb via lazarus wrote: > On 24/02/2019 14:06, Michael Van Canneyt via lazarus wrote: >> >> >>> Can you attach a list of all threads, and traces of other threads >>> please? >> >> How am I supposed to do that ? > > once attached > > info threads > > and for each thread > t 1 > bt > > t 2 > bt Threads 1 and 4 are interesting: One is Main thread. 4 is package manager thread. Seems that the thread is waiting for result of an HTTPS request Michael. ---------------------------- t 1 bt Reading in symbols for lazarus.pp...const value length mismatch for 'REVISIONSTR', got 6, expected 256...done. #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225 #1 0x000000000044f306 in INTRTLEVENTWAITFORTIMEOUT (AEVENT=0x7fa3160ea040, TIMEOUT=100) at ../unix/cthreads.pp:973 #2 0x000000000043f66f in RTLEVENTWAITFOR (STATE=0x7fa3160ea040, TIMEOUT=100) at ../inc/thread.inc:325 #3 0x000000000052fc3c in CHECKSYNCHRONIZE (TIMEOUT=100) at ../objpas/classes/classes.inc:395 #4 0x0000000001995f6a in DOONIDECLOSE (this=0x7fa307742a80, SENDER=0x7fa30a0fc630) at opkman_intf.pas:125 #5 0x00000000006a30c7 in CALLNOTIFYEVENTS (this=0x7fa2fc650100, SENDER=0x7fa30a0fc630) at lazmethodlist.pas:315 #6 0x00000000009749f5 in DOCALLNOTIFYHANDLER (this=0x7fa30a0fc630, HANDLERTYPE=LIHTIDECLOSE) at lazideintf.pas:659 #7 0x00000000004ad026 in MAINIDEFORMCLOSE (this=0x7fa30a0fc630, SENDER=0x7fa3064e6df0, CLOSEACTION=CAFREE) at main.pp:2058 #8 0x0000000000487698 in DOCLOSE (this=0x7fa3064e6df0, CLOSEACTION=CAFREE) at include/customform.inc:959 #9 0x000000000048af81 in CLOSE (this=0x7fa3064e6df0) at include/customform.inc:2196 #10 0x000000000048b1ed in WMCLOSEQUERY (this=0x7fa3064e6df0, MESSAGE=...) at include/customform.inc:2276 #11 0x0000000000436812 in DISPATCH (this=0x7fa3064e6df0, MESSAGE=0) at ../inc/objpas.inc:602 #12 0x00000000005bfe9d in WNDPROC (this=0x7fa3064e6df0, THEMESSAGE=...) at include/control.inc:2242 #13 0x00000000005b2a2c in WNDPROC (this=0x7fa3064e6df0, MESSAGE=...) at include/wincontrol.inc:5419 #14 0x0000000000488bde in WNDPROC (this=0x7fa3064e6df0, THEMESSAGE=...) at include/customform.inc:1477 #15 0x0000000000c8ea41 in WNDPROC (this=0x7fa3064e6df0, MESSAGE=...) at mainbar.pas:551 #16 0x000000000078bf6c in DELIVERMESSAGE (TARGET=0x7fa3064e6df0, AMESSAGE=0) at lclmessageglue.pas:112 #17 0x000000000067f271 in DELIVERMESSAGE (TARGET=0x7fa3064e6df0, AMESSAGE=0) at gtk2/gtk2proc.inc:3780 #18 0x000000000068c604 in GTKDELETECB (WIDGET=0x4b87380, EVENT=0x5413590, DATA=0x7fa3064e6df0) at gtk2/gtk2callback.inc:1230 #19 0x00007fa314e05aec in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 #20 0x00007fa314a8ffa5 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #21 0x00007fa314aa1fc1 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #22 0x00007fa314aaa7f9 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #23 0x00007fa314aab08f in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #24 0x00007fa314f1d93c in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 #25 0x00007fa314e0484d in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 #26 0x00007fa3158d4c8c in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0 #27 0x00007fa3147b9197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #28 0x00007fa3147b93f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #29 0x00007fa3147b949c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #30 0x00000000004fbf81 in APPWAITMESSAGE (this=0x7fa3160f3230) at gtk2/gtk2widgetset.inc:2431 #31 0x0000000000492a0a in IDLE (this=0x7fa3160f2bf0, WAIT=true) at include/application.inc:414 #32 0x0000000000494d38 in HANDLEMESSAGE (this=0x7fa3160f2bf0) at include/application.inc:1283 #33 0x000000000049526c in RUNLOOP (this=0x7fa3160f2bf0) at include/application.inc:1419 #34 0x000000000066a826 in APPRUN (this=0x7fa3160f3230, ALOOP=...) at include/interfacebase.inc:54 #35 0x0000000000495210 in RUN (this=0x7fa3160f2bf0) at include/application.inc:1407 #36 0x00000000004203d3 in main () at lazarus.pp:153 (gdb) t 2 [Switching to thread 2 (Thread 0x7fa30512d700 (LWP 9831))] incomplete CFI data; unspecified registers (e.g., rax) at 0x7fa313708760...incomplete CFI data; unspecified registers (e.g., rdx) at 0x7fa313708760...incomplete CFI data; unspecified registers (e.g., rcx) at 0x7fa313708760...incomplete CFI data; unspecified registers (e.g., rbx) at 0x7fa313708760...incomplete CFI data; unspecified registers (e.g., rsi) at 0x7fa313708760...incomplete CFI data; unspecified registers (e.g., rdi) at 0x7fa313708760...incomplete CFI data; unspecified registers (e.g., rbp) at 0x7fa313708760...incomplete CFI data; unspecified registers (e.g., r8) at 0x7fa313708760...incomplete CFI data; unspecified registers (e.g., r9) at 0x7fa313708760...incomplete CFI data; unspecified registers (e.g., r10) at 0x7fa313708760...incomplete CFI data; unspecified registers (e.g., r11) at 0x7fa313708760...incomplete CFI data; unspecified registers (e.g., r12) at 0x7fa313708760...incomplete CFI data; unspecified registers (e.g., r13) at 0x7fa313708760...incomplete CFI data; unsp ecified registers (e.g., r14) at 0x7fa313708760...incomplete CFI data; unspecified registers (e.g., r15) at 0x7fa313708760...#0 0x00007fa31370874d in poll () at ../sysdeps/unix/syscall-template.S:84 84 ../sysdeps/unix/syscall-template.S: No such file or directory. (gdb) bt incomplete CFI data; unspecified registers (e.g., rax) at 0x7fa3147b9288...incomplete CFI data; unspecified registers (e.g., rdx) at 0x7fa3147b9288...incomplete CFI data; unspecified registers (e.g., rcx) at 0x7fa3147b9288...incomplete CFI data; unspecified registers (e.g., rsi) at 0x7fa3147b9288...incomplete CFI data; unspecified registers (e.g., rdi) at 0x7fa3147b9288...incomplete CFI data; unspecified registers (e.g., r8) at 0x7fa3147b9288...incomplete CFI data; unspecified registers (e.g., r9) at 0x7fa3147b9288...incomplete CFI data; unspecified registers (e.g., r10) at 0x7fa3147b9288...incomplete CFI data; unspecified registers (e.g., r11) at 0x7fa3147b9288...incomplete CFI data; unspecified registers (e.g., rax) at 0x7fa3147b94aa...incomplete CFI data; unspecified registers (e.g., rdx) at 0x7fa3147b94aa...incomplete CFI data; unspecified registers (e.g., rcx) at 0x7fa3147b94aa...incomplete CFI data; unspecified registers (e.g., rsi) at 0x7fa3147b94aa...incomplete CFI data; unsp ecified registers (e.g., rdi) at 0x7fa3147b94aa...incomplete CFI data; unspecified registers (e.g., r8) at 0x7fa3147b94aa...incomplete CFI data; unspecified registers (e.g., r9) at 0x7fa3147b94aa...incomplete CFI data; unspecified registers (e.g., r10) at 0x7fa3147b94aa...incomplete CFI data; unspecified registers (e.g., r11) at 0x7fa3147b94aa...incomplete CFI data; unspecified registers (e.g., r12) at 0x7fa3147b94aa...incomplete CFI data; unspecified registers (e.g., r13) at 0x7fa3147b94aa...incomplete CFI data; unspecified registers (e.g., r14) at 0x7fa3147b94aa...incomplete CFI data; unspecified registers (e.g., r15) at 0x7fa3147b94aa...incomplete CFI data; unspecified registers (e.g., rax) at 0x7fa3147b94c4...incomplete CFI data; unspecified registers (e.g., rdx) at 0x7fa3147b94c4...incomplete CFI data; unspecified registers (e.g., rcx) at 0x7fa3147b94c4...incomplete CFI data; unspecified registers (e.g., rbx) at 0x7fa3147b94c4...incomplete CFI data; unspecified registers (e.g., rsi) at 0x7fa3147b94c4...incomplete CFI data; unspecified registers (e.g., rdi) at 0x7fa3147b94c4...incomplete CFI data; unspecified registers (e.g., rbp) at 0x7fa3147b94c4...incomplete CFI data; unspecified registers (e.g., r8) at 0x7fa3147b94c4...incomplete CFI data; unspecified registers (e.g., r9) at 0x7fa3147b94c4...incomplete CFI data; unspecified registers (e.g., r10) at 0x7fa3147b94c4...incomplete CFI data; unspecified registers (e.g., r11) at 0x7fa3147b94c4...incomplete CFI data; unspecified registers (e.g., r12) at 0x7fa3147b94c4...incomplete CFI data; unspecified registers (e.g., r13) at 0x7fa3147b94c4...incomplete CFI data; unspecified registers (e.g., r14) at 0x7fa3147b94c4...incomplete CFI data; unspecified registers (e.g., r15) at 0x7fa3147b94c4...incomplete CFI data; unspecified registers (e.g., rax) at 0x7fa3147dfc5c...incomplete CFI data; unspecified registers (e.g., rdx) at 0x7fa3147dfc5c...incomplete CFI data; unspecified registers (e.g., rcx) at 0x7fa3147dfc5c. ..incomplete CFI data; unspecified registers (e.g., rsi) at 0x7fa3147dfc5c...incomplete CFI data; unspecified registers (e.g., rdi) at 0x7fa3147dfc5c...incomplete CFI data; unspecified registers (e.g., rbp) at 0x7fa3147dfc5c...incomplete CFI data; unspecified registers (e.g., r8) at 0x7fa3147dfc5c...incomplete CFI data; unspecified registers (e.g., r9) at 0x7fa3147dfc5c...incomplete CFI data; unspecified registers (e.g., r10) at 0x7fa3147dfc5c...incomplete CFI data; unspecified registers (e.g., r11) at 0x7fa3147dfc5c...incomplete CFI data; unspecified registers (e.g., r12) at 0x7fa3147dfc5c...incomplete CFI data; unspecified registers (e.g., r13) at 0x7fa3147dfc5c...incomplete CFI data; unspecified registers (e.g., r14) at 0x7fa3147dfc5c...incomplete CFI data; unspecified registers (e.g., r15) at 0x7fa3147dfc5c...Reading in symbols for pthread_create.c...cannot get low and high bounds for subprogram DIE at 35255...cannot get low and high bounds for subprogram DIE at 35263...cannot g et low and high bounds for subprogram DIE at 35438...cannot get low and high bounds for subprogram DIE at 35468...cannot get low and high bounds for subprogram DIE at 35503...cannot get low and high bounds for subprogram DIE at 35655...cannot get low and high bounds for subprogram DIE at 35714...cannot get low and high bounds for subprogram DIE at 35885...cannot get low and high bounds for subprogram DIE at 35932...cannot get low and high bounds for subprogram DIE at 35979...cannot get low and high bounds for subprogram DIE at 36014...cannot get low and high bounds for subprogram DIE at 36038...cannot get low and high bounds for subprogram DIE at 36064...cannot get low and high bounds for subprogram DIE at 36099...cannot get low and high bounds for subprogram DIE at 36438...cannot get low and high bounds for subprogram DIE at 36514...cannot get low and high bounds for subprogram DIE at 36597...Child DIE 0x949a and its abstract origin 0x8b82 have different parents...Child DIE 0x9572 and its abstract origin 0x8b47 have different parents...Child DIE 0x9862 and its abstract origin 0x8a6e have different parents...Child DIE 0x996d and its abstract origin 0x8a6e have different parents...Child DIE 0x99da and its abstract origin 0x8a8c have different parents...Child DIE 0x9a84 and its abstract origin 0x8a6e have different parents...Child DIE 0x99b0 and its abstract origin 0x8c8b have different parents...Child DIE 0x9a05 and its abstract origin 0x97bd have different parents...Child DIE 0x994c and its abstract origin 0x8cae have different parents...Child DIE 0x998f and its abstract origin 0x8cc6 have different parents...cannot get low and high bounds for subprogram DIE at 39704...Child DIE 0x9e5a and its abstract origin 0x8a6e have different parents...Child DIE 0xadd5 and its abstract origin 0x8a6e have different parents...Child DIE 0xae42 and its abstract origin 0x8a8c have different parents...Child DIE 0xaeec and its abstract origin 0x8a6e have different parents...Chil d DIE 0xae18 and its abstract origin 0x8c8b have different parents...Child DIE 0xae6d and its abstract origin 0x97bd have different parents...Child DIE 0xadb4 and its abstract origin 0x8cae have different parents...Child DIE 0xadf7 and its abstract origin 0x8cc6 have different parents...cannot get low and high bounds for subprogram DIE at 46673...cannot get low and high bounds for subprogram DIE at 46859...Child DIE 0xba1e and its abstract origin 0x8a6e have different parents...Child DIE 0xba6d and its abstract origin 0x8a8c have different parents...Child DIE 0xbb95 and its abstract origin 0x8a8c have different parents...Child DIE 0xbccd and its abstract origin 0x8a6e have different parents...DW_AT_GNU_call_site_target target DIE has invalid low pc, for referencing DIE 0xc430 [in module /usr/lib/debug/.build-id/ce/17e023542265fc11d9bc8f534bb4f070493d30.debug]...done. incomplete CFI data; unspecified registers (e.g., rax) at 0x7fa315d3a830...incomplete CFI data; unspecified registers (e.g., rdx) at 0x7fa315d3a830...incomplete CFI data; unspecified registers (e.g., rcx) at 0x7fa315d3a830...incomplete CFI data; unspecified registers (e.g., rsi) at 0x7fa315d3a830...incomplete CFI data; unspecified registers (e.g., rdi) at 0x7fa315d3a830...incomplete CFI data; unspecified registers (e.g., rbp) at 0x7fa315d3a830...incomplete CFI data; unspecified registers (e.g., r8) at 0x7fa315d3a830...incomplete CFI data; unspecified registers (e.g., r9) at 0x7fa315d3a830...incomplete CFI data; unspecified registers (e.g., r10) at 0x7fa315d3a830...incomplete CFI data; unspecified registers (e.g., r11) at 0x7fa315d3a830...incomplete CFI data; unspecified registers (e.g., r12) at 0x7fa315d3a830...incomplete CFI data; unspecified registers (e.g., r13) at 0x7fa315d3a830...incomplete CFI data; unspecified registers (e.g., r14) at 0x7fa315d3a830...incomplete CFI data; unsp ecified registers (e.g., r15) at 0x7fa315d3a830...Reading in symbols for ../sysdeps/unix/sysv/linux/x86_64/clone.S...done. incomplete CFI data; unspecified registers (e.g., rax) at 0x7fa3137143e9...incomplete CFI data; unspecified registers (e.g., rdx) at 0x7fa3137143e9...incomplete CFI data; unspecified registers (e.g., rcx) at 0x7fa3137143e9...incomplete CFI data; unspecified registers (e.g., rbx) at 0x7fa3137143e9...incomplete CFI data; unspecified registers (e.g., rsi) at 0x7fa3137143e9...incomplete CFI data; unspecified registers (e.g., rdi) at 0x7fa3137143e9...incomplete CFI data; unspecified registers (e.g., rbp) at 0x7fa3137143e9...incomplete CFI data; unspecified registers (e.g., r8) at 0x7fa3137143e9...incomplete CFI data; unspecified registers (e.g., r9) at 0x7fa3137143e9...incomplete CFI data; unspecified registers (e.g., r10) at 0x7fa3137143e9...incomplete CFI data; unspecified registers (e.g., r11) at 0x7fa3137143e9...incomplete CFI data; unspecified registers (e.g., r12) at 0x7fa3137143e9...incomplete CFI data; unspecified registers (e.g., r13) at 0x7fa3137143e9...incomplete CFI data; unsp ecified registers (e.g., r14) at 0x7fa3137143e9...incomplete CFI data; unspecified registers (e.g., r15) at 0x7fa3137143e9...#0 0x00007fa31370874d in poll () at ../sysdeps/unix/syscall-template.S:84 #1 0x00007fa3147b938c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007fa3147b949c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007fa3147b94d9 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #4 0x00007fa3147dfc55 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #5 0x00007fa315d3a6ba in start_thread (arg=0x7fa30512d700) at pthread_create.c:333 #6 0x00007fa31371441d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 (gdb) t 3 #1 0x00007fa3147b938c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007fa3147b9712 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007fa3133699d6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 #4 0x00007fa3147dfc55 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #5 0x00007fa315d3a6ba in start_thread (arg=0x7fa30492c700) at pthread_create.c:333 #6 0x00007fa31371441d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 (gdb) t 4 #1 0x00007fa2f1d47c3c in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so #2 0x00007fa2f1d45bdc in BIO_read () from /usr/lib/x86_64-linux-gnu/libcrypto.so #3 0x00007fa2f19f180a in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so #4 0x00007fa2f19f30ad in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so #5 0x00007fa2f19efc64 in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so #6 0x000000000192107c in SSLREAD (SSL=0x7fa2e403ac30, BUF=0x7fa2fc104dc8, NUM=4096) at openssl/src/openssl.pas:2156 #7 0x0000000001929618 in READ (this=0x7fa2f2332e20, BUF=0x7fa2fc104dc8, NUM=4096) at openssl/src/fpopenssl.pp:475 #8 0x000000000192033f in RECV (this=0x7fa2f2139280, BUFFER=0, COUNT=4096) at fcl-net/src/sslsockets.pp:436 #9 0x00000000019175c4 in READ (this=0x7fa2f214b6e0, BUFFER=0, COUNT=4096) at fcl-net/src/ssockets.pp:449 #10 0x000000000199bcdd in FILLBUFFER (parentfp=0x7fa2fc603230) at fpcmod/opkman_httpclient.pas:708 #11 0x000000000199ba31 in READSTRING (this=0x7fa3058e08e0, S=0x0) at fpcmod/opkman_httpclient.pas:730 #12 0x000000000199c165 in READRESPONSEHEADERS (this=0x7fa3058e08e0) at fpcmod/opkman_httpclient.pas:835 #13 0x000000000199cb9f in READRESPONSE (this=0x7fa3058e08e0, STREAM=0x7fa2f22efbc0, ALLOWEDRESPONSECODES=..., highALLOWEDRESPONSECODES=-1, HEADERSONLY=false) at fpcmod/opkman_httpclient.pas:1110 #14 0x000000000199d7e8 in DONORMALREQUEST (this=0x7fa3058e08e0, AURI=..., AMETHOD=0x1d62410 'GET', ASTREAM=0x7fa2f22efbc0, AALLOWEDRESPONSECODES=..., highAALLOWEDRESPONSECODES=-1, AHEADERSONLY=false, AISHTTPS=true) at fpcmod/opkman_httpclient.pas:1205 #15 0x000000000199dc6e in DOMETHOD (this=0x7fa3058e08e0, AMETHOD=0x1d62410 'GET', AURL=0x7fa2f215a6d8 'https://excellmedia.dl.sourceforge.net/project/lazarus-ccr/ColorPalette/OPM/update_ColorPalette.json', STREAM=0x7fa2f22efbc0, ALLOWEDRESPONSECODES=..., highALLOWEDRESPONSECODES=-1) at fpcmod/opkman_httpclient.pas:1263 #16 0x000000000199e4a1 in HTTPMETHOD (this=0x7fa3058e08e0, AMETHOD=0x1d62410 'GET', AURL=0x7fa2f215aef8 'https://sourceforge.net/projects/lazarus-ccr/files/ColorPalette/OPM/update_ColorPalette.json/download', STREAM=0x7fa2f22efbc0, ALLOWEDRESPONSECODES=..., highALLOWEDRESPONSECODES=-1) at fpcmod/opkman_httpclient.pas:1372 #17 0x000000000198d025 in GETUPDATEINFO (this=0x7fa2ffce81c0, AURL=0x7fa2f215aef8 'https://sourceforge.net/projects/lazarus-ccr/files/ColorPalette/OPM/update_ColorPalette.json/download', AJSON=0x0) at opkman_updates.pas:386 #18 0x000000000198d3e3 in CHECKFORUPDATES (this=0x7fa2ffce81c0) at opkman_updates.pas:438 #19 0x000000000198d9a4 in EXECUTE (this=0x7fa2ffce81c0) at opkman_updates.pas:527 #20 0x000000000052eee2 in THREADFUNC (PARAMETER=0x7fa2ffce81c0) at ../unix/tthread.inc:94 #21 0x000000000044e61d in THREADMAIN (PARAM=0x7fa30561f160) at ../unix/cthreads.pp:300 #22 0x00007fa315d3a6ba in start_thread (arg=0x7fa2fc604700) at pthread_create.c:333 #23 0x00007fa31371441d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 > > ... > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > From lazarus at mfriebe.de Sun Feb 24 15:21:52 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Sun, 24 Feb 2019 15:21:52 +0100 Subject: [Lazarus] IDE unstable - Online Package manager bug In-Reply-To: References: <76e33417-0933-2aa6-ebd3-c461430d90b3@mfriebe.de> Message-ID: <7cbbe78d-c601-dea3-49bf-bccfbc7add7e@mfriebe.de> So it hangs in openssl. Which means the http request can not be aborted. (gracefully) How up to date is your openssl? I recently had an issue with git on windows, due to an openssl bug https://github.com/git-for-windows/git/issues/1993 The openssl bug seems older, but some activity referring to a fix is very recent. So just maybe...? -------------------- It might be possible to limit the IDE wait time though. Since this is on shutdown, the IDE can wait with the thread still running. That would report a memory leak.... (but not a problem, since it is a one off / will not accumulate) That is assuming the OS manages to kill the thread then. On windows it was not possible to kill any app hanging in that openssl bug (A system restart was required) On 24/02/2019 15:11, Michael Van Canneyt via lazarus wrote: > > (gdb) t 4 > > #1  0x00007fa2f1d47c3c in ?? () from > /usr/lib/x86_64-linux-gnu/libcrypto.so > #2  0x00007fa2f1d45bdc in BIO_read () from > /usr/lib/x86_64-linux-gnu/libcrypto.so > #3  0x00007fa2f19f180a in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so > #4  0x00007fa2f19f30ad in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so > #5  0x00007fa2f19efc64 in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so > #6  0x000000000192107c in SSLREAD (SSL=0x7fa2e403ac30, > BUF=0x7fa2fc104dc8, NUM=4096) at openssl/src/openssl.pas:2156 > #7  0x0000000001929618 in READ (this=0x7fa2f2332e20, > BUF=0x7fa2fc104dc8, NUM=4096) at openssl/src/fpopenssl.pp:475 > #8  0x000000000192033f in RECV (this=0x7fa2f2139280, BUFFER=0, > COUNT=4096) at fcl-net/src/sslsockets.pp:436 > #9  0x00000000019175c4 in READ (this=0x7fa2f214b6e0, BUFFER=0, > COUNT=4096) at fcl-net/src/ssockets.pp:449 > #10 0x000000000199bcdd in FILLBUFFER (parentfp=0x7fa2fc603230) at > fpcmod/opkman_httpclient.pas:708 > #11 0x000000000199ba31 in READSTRING (this=0x7fa3058e08e0, S=0x0) at > fpcmod/opkman_httpclient.pas:730 > #12 0x000000000199c165 in READRESPONSEHEADERS (this=0x7fa3058e08e0) at > fpcmod/opkman_httpclient.pas:835 > #13 0x000000000199cb9f in READRESPONSE (this=0x7fa3058e08e0, > STREAM=0x7fa2f22efbc0, ALLOWEDRESPONSECODES=..., > highALLOWEDRESPONSECODES=-1, HEADERSONLY=false) at > fpcmod/opkman_httpclient.pas:1110 > #14 0x000000000199d7e8 in DONORMALREQUEST (this=0x7fa3058e08e0, > AURI=..., AMETHOD=0x1d62410 'GET', ASTREAM=0x7fa2f22efbc0, > AALLOWEDRESPONSECODES=..., highAALLOWEDRESPONSECODES=-1, > AHEADERSONLY=false, >     AISHTTPS=true) at fpcmod/opkman_httpclient.pas:1205 > #15 0x000000000199dc6e in DOMETHOD (this=0x7fa3058e08e0, > AMETHOD=0x1d62410 'GET', AURL=0x7fa2f215a6d8 > 'https://excellmedia.dl.sourceforge.net/project/lazarus-ccr/ColorPalette/OPM/update_ColorPalette.json', >     STREAM=0x7fa2f22efbc0, ALLOWEDRESPONSECODES=..., > highALLOWEDRESPONSECODES=-1) at fpcmod/opkman_httpclient.pas:1263 From michael at freepascal.org Sun Feb 24 15:55:20 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 24 Feb 2019 15:55:20 +0100 (CET) Subject: [Lazarus] IDE unstable - Online Package manager bug In-Reply-To: <7cbbe78d-c601-dea3-49bf-bccfbc7add7e@mfriebe.de> References: <76e33417-0933-2aa6-ebd3-c461430d90b3@mfriebe.de> <7cbbe78d-c601-dea3-49bf-bccfbc7add7e@mfriebe.de> Message-ID: On Sun, 24 Feb 2019, Martin Frb via lazarus wrote: > So it hangs in openssl. I think that is a premature conclusion :) > Which means the http request can not be aborted. (gracefully) > > How up to date is your openssl? System installed version, so 1.0.x. I recently updated my packages. Assuming linux mint includes upstream fixes it should be reasonably OK. > > I recently had an issue with git on windows, due to an openssl bug > https://github.com/git-for-windows/git/issues/1993 > > The openssl bug seems older, but some activity referring to a fix is > very recent. > So just maybe...? ... ? Maybe switch to GnuTLS as the default driver for HTTPS ;) Michael. From lazarus at mfriebe.de Sun Feb 24 16:30:34 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Sun, 24 Feb 2019 16:30:34 +0100 Subject: [Lazarus] IDE unstable - Online Package manager bug In-Reply-To: References: <76e33417-0933-2aa6-ebd3-c461430d90b3@mfriebe.de> <7cbbe78d-c601-dea3-49bf-bccfbc7add7e@mfriebe.de> Message-ID: <62d04553-099f-91fd-f2f0-32bcda869bcc@mfriebe.de> On 24/02/2019 15:55, Michael Van Canneyt via lazarus wrote: > > > On Sun, 24 Feb 2019, Martin Frb via lazarus wrote: > >> So it hangs in openssl. > > I think that is a premature conclusion :) I should have said: "In this specific case, it was in openssl" Which then is an observation. But you could, next time, set a breakpoint at the line/address where it returns to opm (or pascal code). #8  0x000000000192033f in RECV (this=0x7fa2f2139280, BUFFER=0, COUNT=4096) at fcl-net/src/sslsockets.pp:436 #9  0x00000000019175c4 in READ (this=0x7fa2f214b6e0, BUFFER=0, COUNT=4096) at fcl-net/src/ssockets.pp:449 #10 0x000000000199bcdd in FILLBUFFER (parentfp=0x7fa2fc603230) at fpcmod/opkman_httpclient.pas:708 #11 0x000000000199ba31 in READSTRING (this=0x7fa3058e08e0, S=0x0) at fpcmod/opkman_httpclient.pas:730 #12 0x000000000199c165 in READRESPONSEHEADERS (this=0x7fa3058e08e0) at fpcmod/opkman_httpclient.pas:835 |select-frame 10 b +0 ^^^^ select the frame, set a breakpoint then r ^^ run That should tell, if the socket call returns. (and then allow to find where in the pascal code it loops (how many further frames back will it go?) | > >> Which means the http request can not be aborted. (gracefully) >> >> How up to date is your openssl? > > System installed version, so 1.0.x. I recently updated my packages. From the discussions on the git buck, it appears (I may be wrong) the issue was fixed about one week back. (and then it depends when that made it into your distro). So if you recently updated, you may have updated to include the issue (depends on the outcome of the above) Anyway that is only one possibility. Above gdb steps should get as closer to the issue (either if it is ssl, or where in the pascal code to look for it). ---- As usual, the issue is that it does not (has not yet) happened to me (Windows/Fedora 28). Also I am not the maintainer of httpclient, nor of opm. So I can only offer limited help. (I did have a look at opm in the past, so that's why I jumped in) -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Sun Feb 24 17:46:49 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 24 Feb 2019 17:46:49 +0100 (CET) Subject: [Lazarus] New feature: SQLDB Rest bridge Message-ID: Hello, We received some feedback about Pas2JS - our effort to bring Pascal to the browser - that easy database connectivity is an issue, hampering easy development. To alleviate the problem I have created the SQLDB Rest bridge. This is a set of components that allow you to expose any database supported by FPC's SQLDB as a REST service. It is designed to be simple to use, yet extensible. A database can be exposed using a single line of code: FDisp.ExposeDatabase('PostGreSQL','localhost','expensetracker','me','secret',Nil,[foFilter,foInInsert,foInUpdate,foOrderByDesc]); But no code is needed, the whole can be configured in the IDE if so desired. This is not meant as a general REST service framework, (you can look for instance at the Brook framework for this) but is meant to easily expose SQL databases using a REST protocol. Not-so-Short summary of possibilities: SQL/REST: * Every REST resource is defined by up to 4 SQL statements, corresponding to the 4 CRUD operations. But statements can be auto-generated. * The CRUD Statements can be auto generated on the fly, based on a table name and field definitions. * For every field, an alias can be provided. * The following client-side types are available, automatically mapped from the native database type: String, 32/64-bit integer, float, Boolean, Date, Time, DateTime, Blob * Support for a sequence to generate IDs is built-in. * Full control over which operations (GET,POST,PUT,DELETE) are allowed. * Resources are collected in a schema. * Multiple schemas can be attached to the service. * Multiple databases (connections) can be defined. * A schema can be tied to a single connection, or connections can share a schemas (use case: a different connection per client). * Business processor components can be hooked to a resource, to make it easier to implement business logic. (not yet committed) * SQL Statements can contain parameters, values for the parameters will be picked up from the request URL. * Support to get custom datasets. * Support for client-side provided SQL SELECT statements (optional, disabled by default) * Full support for configuration through an .ini file out of the box. HTTP: * Authentication is handled using the HTTP protocol. * Basic authentication is included by default, but is completely pluggable. * Basic authentication can look up valid users in a database (by default the database being exposed) * Output format can be fixed or detected per request (?fmt=format). Detection based on content-type is also available. * list of fields to include in output can be specified in the URL: ?fl=field1,field2 * Field list of fields to exclude from output can be specified in the URL: ?fe=field1,field2 * Various input/output formats are available out of the box JSON (the default),XML,CSV, CDS (Format used by Delphi Datasnap) * A factory pattern is used, new formats can be added at will. * Simple URL schemes. 2 basic schemes are available: BASEURL/Resource[/ID] BASEURL/Connection/Resource[/ID] * Support for introspection/discovery or metadata. * limit,offset URL parameters for paging of results: ?limit=10&Offset=50 * A maximum limit can be enforced. When the SQL statements support it, the limit and offset are translated to SQL fetch/offset clauses. * Sort order can be specified in the request URL, if the resource definition allows it, using?sort=fieldname ( The ability to sort can be specified on a field basis) * Filtering can be specified on a field basis in the request URL, and the filter operation is translated to SQL Where: ?MyField=10 ?MyField_null=1 ?MyField_null=0 ?MyField_lt=10 ?MyField_lte=10 ?MyField_gt=10 ?MyField_gte=10 * The ability to filter on a field can be specified in the schema for each field. * The request can specify whether metadata should be included in the response: ?metadata=1 * The request can specify whether the result should be human-readable (nicely formatted) or not: ?humanreadable=1 A more complete explanation is in the WIKI http://wiki.freepascal.org/SQLDBRestBridge 2 demo programs exist, more are planned (there is even a Delphi demo showing how to read the data with Delphi's TClientDataset) Lazarus integration is also available, the components are compilable with FPC 3.0.4. This is an initial version (fully functional), several extensions are planned: - Zero-config API (a single generic binary can be shipped, no config files should be needed) - ADO packages - Integrate in lazarus Database desktop for easy development - Integrate in pas2JS compile server for easy development. Remarks, comments, suggestions welcome. (to a lesser extent: bugreports ;) ) Michael. From werner.pamler at freenet.de Sun Feb 24 22:07:10 2019 From: werner.pamler at freenet.de (Werner Pamler) Date: Sun, 24 Feb 2019 22:07:10 +0100 Subject: [Lazarus] IDE unstable - Online Package manager bug In-Reply-To: References: Message-ID: <2913b934-00c2-3baa-d86c-0cc4d04343eb@freenet.de> Am 24.02.2019 um 12:00 schrieb Michael Van Canneyt via lazarus: > I find that the IDE has become very unstable lately. I didn't install any > new packages, didn't update FPC (still on FPC 3.0.4). Just updated > lazarus > from SVN. > > 4 out of 5 attempts to close the IDE using the window manager button > fails: > lazarus hangs and I must kill it using > killall -KILL lazarus > from a terminal. > > It's very reproducible. > > Start lazarus > Open package > Compile package > Switch to form editor of start project > Close (window manager or menu file - exit) > -> hang Just to confirm: I can observe the same on Windows and have to kill the IDE with the task manager. Sometimes the IDE does not close any more even after compiling a simple project. After uninstalling OPM the issue is gone. From lazarus at mfriebe.de Sun Feb 24 22:35:18 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Sun, 24 Feb 2019 22:35:18 +0100 Subject: [Lazarus] IDE unstable - Online Package manager bug In-Reply-To: <2913b934-00c2-3baa-d86c-0cc4d04343eb@freenet.de> References: <2913b934-00c2-3baa-d86c-0cc4d04343eb@freenet.de> Message-ID: On 24/02/2019 22:07, Werner Pamler via lazarus wrote: > Am 24.02.2019 um 12:00 schrieb Michael Van Canneyt via lazarus: >> >> Start lazarus >> Open package >> Compile package >> Switch to form editor of start project >> Close (window manager or menu file - exit) >> -> hang > > > Just to confirm: I can observe the same on Windows and have to kill > the IDE with the task manager. Sometimes the IDE does not close any > more even after compiling a simple project. After uninstalling OPM the > issue is gone. > Same question, any change of finding where it hangs? - attach - view stack - set breakpoints further up the stack - see what's the furthest out breakpoint is that gets reached? From pascaldragon at googlemail.com Mon Feb 25 07:54:19 2019 From: pascaldragon at googlemail.com (Sven Barth) Date: Mon, 25 Feb 2019 07:54:19 +0100 Subject: [Lazarus] New feature: SQLDB Rest bridge In-Reply-To: References: Message-ID: Michael Van Canneyt via lazarus schrieb am So., 24. Feb. 2019, 17:46: > > Hello, > > We received some feedback about Pas2JS - our effort to bring Pascal to the > browser - that easy database connectivity is an issue, hampering easy > development. > > To alleviate the problem I have created the SQLDB Rest bridge. > > This is a set of components that allow you to expose any database supported > by FPC's SQLDB as a REST service. It is designed to be simple to use, yet > extensible. > Cool! Great work! Now I only need to get the parts for implementing an Interface using RTTI working and I'd be all but set :D HTTP: > * Authentication is handled using the HTTP protocol. > > * Basic authentication is included by default, but is completely pluggable. > > * Basic authentication can look up valid users in a database (by default > the database being exposed) > How would one check whether the user is allowed to execute an action? Regards, Sven > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Mon Feb 25 08:07:40 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Mon, 25 Feb 2019 08:07:40 +0100 (CET) Subject: [Lazarus] New feature: SQLDB Rest bridge In-Reply-To: References: Message-ID: On Mon, 25 Feb 2019, Sven Barth via lazarus wrote: > Michael Van Canneyt via lazarus schrieb am > So., 24. Feb. 2019, 17:46: > >> >> Hello, >> >> We received some feedback about Pas2JS - our effort to bring Pascal to the >> browser - that easy database connectivity is an issue, hampering easy >> development. >> >> To alleviate the problem I have created the SQLDB Rest bridge. >> >> This is a set of components that allow you to expose any database supported >> by FPC's SQLDB as a REST service. It is designed to be simple to use, yet >> extensible. >> > > Cool! Great work! > Now I only need to get the parts for implementing an Interface using RTTI > working and I'd be all but set :D You mean for an RPC mechanism ? Isn't Invoke() working already ? I have a JSON RPC implemention on my list, and thought to use Invoke() for that. > > HTTP: >> * Authentication is handled using the HTTP protocol. >> >> * Basic authentication is included by default, but is completely pluggable. >> >> * Basic authentication can look up valid users in a database (by default >> the database being exposed) >> > > How would one check whether the user is allowed to execute an action? There is an OnAllowResource event, after the authentication. One of the parameters is the operation: GET, PUT etc. If you set the 'allow' to false, you'll get a 403, 'Forbidden'. It's not yet committed, because I wanted that together with the business processor component, which will make implementing all kinds of events simpler. There are stilll several improvements waiting to be tested and committed. Michael. From michael at freepascal.org Mon Feb 25 09:49:51 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Mon, 25 Feb 2019 09:49:51 +0100 (CET) Subject: [Lazarus] IDE unstable - Online Package manager bug In-Reply-To: References: <2913b934-00c2-3baa-d86c-0cc4d04343eb@freenet.de> Message-ID: On Sun, 24 Feb 2019, Martin Frb via lazarus wrote: > On 24/02/2019 22:07, Werner Pamler via lazarus wrote: >> Am 24.02.2019 um 12:00 schrieb Michael Van Canneyt via lazarus: >>> >>> Start lazarus >>> Open package >>> Compile package >>> Switch to form editor of start project >>> Close (window manager or menu file - exit) >>> -> hang >> >> >> Just to confirm: I can observe the same on Windows and have to kill >> the IDE with the task manager. Sometimes the IDE does not close any >> more even after compiling a simple project. After uninstalling OPM the >> issue is gone. >> > Same question, any change of finding where it hangs? > - attach > - view stack > - set breakpoints further up the stack > - see what's the furthest out breakpoint is that gets reached? Allow me a counter question (maybe not for you, Martin) Clearly the online package manager is doing work behind my back. I do not want the online package manager to do any requests or actions unless I instruct it to. Can this 'behind the scenes' work be disabled ? Michael. From pascaldragon at googlemail.com Mon Feb 25 11:24:29 2019 From: pascaldragon at googlemail.com (Sven Barth) Date: Mon, 25 Feb 2019 11:24:29 +0100 Subject: [Lazarus] New feature: SQLDB Rest bridge In-Reply-To: References: Message-ID: Michael Van Canneyt via lazarus schrieb am Mo., 25. Feb. 2019, 08:07: > > > On Mon, 25 Feb 2019, Sven Barth via lazarus wrote: > > > Michael Van Canneyt via lazarus schrieb > am > > So., 24. Feb. 2019, 17:46: > > > >> > >> Hello, > >> > >> We received some feedback about Pas2JS - our effort to bring Pascal to > the > >> browser - that easy database connectivity is an issue, hampering easy > >> development. > >> > >> To alleviate the problem I have created the SQLDB Rest bridge. > >> > >> This is a set of components that allow you to expose any database > supported > >> by FPC's SQLDB as a REST service. It is designed to be simple to use, > yet > >> extensible. > >> > > > > Cool! Great work! > > Now I only need to get the parts for implementing an Interface using RTTI > > working and I'd be all but set :D > > You mean for an RPC mechanism ? > > Isn't Invoke() working already ? I have a JSON RPC implemention on my list, > and thought to use Invoke() for that. > RTTI.Invoke() itself is working as is TRTTIMethod.Invoke(), so the server side wouldn't be a problem, but what I'm still missing is TVirtualInterface for the client side. > > > > HTTP: > >> * Authentication is handled using the HTTP protocol. > >> > >> * Basic authentication is included by default, but is completely > pluggable. > >> > >> * Basic authentication can look up valid users in a database (by default > >> the database being exposed) > >> > > > > How would one check whether the user is allowed to execute an action? > > There is an OnAllowResource event, after the authentication. One of the > parameters is the operation: GET, PUT etc. > If you set the 'allow' to false, you'll get a 403, 'Forbidden'. > It's not yet committed, because I wanted that together with the business > processor component, > which will make implementing all kinds of events simpler. > There are stilll several improvements waiting to be tested and committed. > Great! Looking forward to that! Regards, Sven > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Mon Feb 25 12:22:07 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 25 Feb 2019 12:22:07 +0100 Subject: [Lazarus] New feature: SQLDB Rest bridge In-Reply-To: References: Message-ID: <20190225122207.349cdbda@limapholos.matflo.wg> On Mon, 25 Feb 2019 11:24:29 +0100 Sven Barth via lazarus wrote: >[...] > RTTI.Invoke() itself is working as is TRTTIMethod.Invoke(), so the > server side wouldn't be a problem, but what I'm still missing is > TVirtualInterface for the client side. Do you mean fpc's unit RTTI? pas2js has TVirtualInterface. Mattias From getmem1 at gmail.com Mon Feb 25 13:23:11 2019 From: getmem1 at gmail.com (=?UTF-8?B?QmFsw6F6cyBTesOpa2VseQ==?=) Date: Mon, 25 Feb 2019 14:23:11 +0200 Subject: [Lazarus] IDE unstable - Online Package manager bug In-Reply-To: References: <2913b934-00c2-3baa-d86c-0cc4d04343eb@freenet.de> Message-ID: This is my second try. Apparently the previous mail needs moderator aproval(I attached a screenshot which is bigger then 100K). Hi Michel, Clearly the online package manager is doing work behind my back. > By "work behind my back" I suppose you mean that OPM will try to connect to various webpages. Here is the reason: 1. In order to download the package list, on IDE startup OPM will attempt to connect to: https://packages.lazarus-ide.org/(this is the official Lazarus repository) 2. More over a package maintainer has the posibility to push his/her latest release through OPM, so from time to times OPM will download and parse a json file from the package maintainer webpage(to get the latest information about the packages). The behaviour is configurable in Lazarus trunk. Please open OPM, then go to *Options-->Check for Package Updates* and select Never. Never is the default option by the way, unless you have some old configuration file. Other then this OPM never sends any kind of information, only downloads json files. PS: The hanging IDE issue should be fixed in r. 60492. If you have some free time please run a few test again.Thank you. regards, Balázs -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Mon Feb 25 13:45:00 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Mon, 25 Feb 2019 13:45:00 +0100 (CET) Subject: [Lazarus] IDE unstable - Online Package manager bug In-Reply-To: References: <2913b934-00c2-3baa-d86c-0cc4d04343eb@freenet.de> Message-ID: On Mon, 25 Feb 2019, Balázs Székely via lazarus wrote: > This is my second try. Apparently the previous mail needs moderator > aproval(I attached a screenshot which is bigger then 100K). > > Hi Michel, > > Clearly the online package manager is doing work behind my back. >> > By "work behind my back" I suppose you mean that OPM will try to connect > to various webpages. Here is the reason: > 1. In order to download the package list, on IDE startup OPM will attempt > to connect to: https://packages.lazarus-ide.org/(this is the official > Lazarus repository) > 2. More over a package maintainer has the posibility to push his/her latest > release through OPM, so from time to times OPM will download and parse a > json file from the package maintainer webpage(to get the latest information > about the packages). > > The behaviour is configurable in Lazarus trunk. Please open OPM, then > go to *Options-->Check > for Package Updates* and select Never. Never is the default option by the > way, unless you have some old configuration file. Other then this OPM never > sends any kind of information, only downloads json files. OK. Probably it is because I have an old config. > > PS: The hanging IDE issue should be fixed in r. 60492. If you have some > free time please run a few test again.Thank you. I will test it, thanks for the fast response ! Michael. From silvioprog at gmail.com Mon Feb 25 15:49:15 2019 From: silvioprog at gmail.com (silvioprog) Date: Mon, 25 Feb 2019 11:49:15 -0300 Subject: [Lazarus] New feature: SQLDB Rest bridge In-Reply-To: References: Message-ID: On Sun, Feb 24, 2019 at 1:46 PM Michael Van Canneyt via lazarus < lazarus at lists.lazarus-ide.org> wrote: > Hello, > > We received some feedback about Pas2JS - our effort to bring Pascal to the > browser - that easy database connectivity is an issue, hampering easy > development. > > To alleviate the problem I have created the SQLDB Rest bridge. > > This is a set of components that allow you to expose any database supported > by FPC's SQLDB as a REST service. It is designed to be simple to use, yet > extensible. > This is amazing news! 😀 Thanks the effort to make it available for the community. I'm going to upgrade my laz/fpc copy and test it at home... best, -- Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: From silvioprog at gmail.com Mon Feb 25 15:58:17 2019 From: silvioprog at gmail.com (silvioprog) Date: Mon, 25 Feb 2019 11:58:17 -0300 Subject: [Lazarus] New feature: SQLDB Rest bridge In-Reply-To: References: Message-ID: On Mon, Feb 25, 2019 at 4:07 AM Michael Van Canneyt via lazarus < lazarus at lists.lazarus-ide.org> wrote: [...] > Isn't Invoke() working already ? I have a JSON RPC implemention on my list, > and thought to use Invoke() for that. Sven implemented it for Windows and it is working fine. I've implemented it for Linux (sysv x64) and it is almost done, we just need some fixes in the assembly code to handle functions with results of 128-bit. Sven helped me a lot (thanks dude! :-) ) to understand all the tests. (I'm finishing a small project at company and I'll return to this work to fix invoke() for Linux :-) ) -- Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: From pascaldragon at googlemail.com Mon Feb 25 17:12:34 2019 From: pascaldragon at googlemail.com (Sven Barth) Date: Mon, 25 Feb 2019 17:12:34 +0100 Subject: [Lazarus] New feature: SQLDB Rest bridge In-Reply-To: <20190225122207.349cdbda@limapholos.matflo.wg> References: <20190225122207.349cdbda@limapholos.matflo.wg> Message-ID: Mattias Gaertner via lazarus schrieb am Mo., 25. Feb. 2019, 12:22: > On Mon, 25 Feb 2019 11:24:29 +0100 > Sven Barth via lazarus wrote: > > >[...] > > RTTI.Invoke() itself is working as is TRTTIMethod.Invoke(), so the > > server side wouldn't be a problem, but what I'm still missing is > > TVirtualInterface for the client side. > > Do you mean fpc's unit RTTI? > pas2js has TVirtualInterface. > Yes, I mean FPC's RTTI unit. After all one could use this also for native FPC clients ;) Regards, Sven > -------------- next part -------------- An HTML attachment was scrubbed... URL: From luca at wetron.es Tue Feb 26 09:34:29 2019 From: luca at wetron.es (Luca Olivetti) Date: Tue, 26 Feb 2019 09:34:29 +0100 Subject: [Lazarus] Convert record to JSON? In-Reply-To: References: <8fd10242-6267-c006-da9b-bf903d84db3a@googlemail.com> Message-ID: El 21/7/18 a les 18:26, Sven Barth via Lazarus ha escrit: >> !! :) > There are definitely still some problems with it, e.g. a field of type > TObject (or any descendant) currently can't be deserialized as I didn't > want to rewrite DeStreamClassProperty. Then there are the sets which for > non-published properties can be greater than 32-bit (up to 256-bit > currently). Support for dynamic arrays could be added as well. > Also I didn't check whether all types serialize/deserialize correctly, > e.g. especially the special floating point types Comp and Currency. > You'd need to check what Get-/SetFloatProp are doing there. I tested this unit and I see that it doesn't manage bitpacked records inside the record, and the field names are "Field1", "Field2", etc. (I wanted to test what happens if I add fields to a record then try to deserialize into it a previously serialized version, but without real field names I suppose that wouldn't work properly). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From pascaldragon at googlemail.com Tue Feb 26 11:11:09 2019 From: pascaldragon at googlemail.com (Sven Barth) Date: Tue, 26 Feb 2019 11:11:09 +0100 Subject: [Lazarus] Convert record to JSON? In-Reply-To: References: <8fd10242-6267-c006-da9b-bf903d84db3a@googlemail.com> Message-ID: Luca Olivetti via lazarus schrieb am Di., 26. Feb. 2019, 09:34: > El 21/7/18 a les 18:26, Sven Barth via Lazarus ha escrit: > > >> !! :) > > There are definitely still some problems with it, e.g. a field of type > > TObject (or any descendant) currently can't be deserialized as I didn't > > want to rewrite DeStreamClassProperty. Then there are the sets which for > > non-published properties can be greater than 32-bit (up to 256-bit > > currently). Support for dynamic arrays could be added as well. > > Also I didn't check whether all types serialize/deserialize correctly, > > e.g. especially the special floating point types Comp and Currency. > > You'd need to check what Get-/SetFloatProp are doing there. > > I tested this unit and I see that it doesn't manage bitpacked records > inside the record, and the field names are "Field1", "Field2", etc. > (I wanted to test what happens if I add fields to a record then try to > deserialize into it a previously serialized version, but without real > field names I suppose that wouldn't work properly). > I didn't test bitbacked records so those might indeed fail. And field names are currently not available. This would require the extended RTTI which is still work-in-progress. Regards, Sven > -------------- next part -------------- An HTML attachment was scrubbed... URL: From luca at wetron.es Tue Feb 26 12:05:24 2019 From: luca at wetron.es (Luca Olivetti) Date: Tue, 26 Feb 2019 12:05:24 +0100 Subject: [Lazarus] Convert record to JSON? In-Reply-To: References: <8fd10242-6267-c006-da9b-bf903d84db3a@googlemail.com> Message-ID: <598d623d-bd96-bafd-60a3-446a13284841@wetron.es> El 26/2/19 a les 11:11, Sven Barth via lazarus ha escrit: > > I didn't test bitbacked records so those might indeed fail. The RTTI information gives TkUnknown for a bitpacked record. > And field names are currently not available. This would require the > extended RTTI which is still work-in-progress. No big issue, I will serialize those records manually. Being lazy I would have avoided it ;-) Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From pascaldragon at googlemail.com Tue Feb 26 14:28:01 2019 From: pascaldragon at googlemail.com (Sven Barth) Date: Tue, 26 Feb 2019 14:28:01 +0100 Subject: [Lazarus] Convert record to JSON? In-Reply-To: <598d623d-bd96-bafd-60a3-446a13284841@wetron.es> References: <8fd10242-6267-c006-da9b-bf903d84db3a@googlemail.com> <598d623d-bd96-bafd-60a3-446a13284841@wetron.es> Message-ID: Luca Olivetti via lazarus schrieb am Di., 26. Feb. 2019, 12:05: > El 26/2/19 a les 11:11, Sven Barth via lazarus ha escrit: > > > > > I didn't test bitbacked records so those might indeed fail. > > The RTTI information gives TkUnknown for a bitpacked record. > Ah, right, they don't get RTTI at all... 😅 Regards, Sven > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bo.berglund at gmail.com Thu Feb 28 10:12:02 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Thu, 28 Feb 2019 10:12:02 +0100 Subject: [Lazarus] Can I use fpc/Lazarus to edit mp4 files? Message-ID: I am looking for a way to edit mp4 video files by cutting away parts of the file. So I am not looking for a way to view and edit the video visually, rather a file cutting tool where I can use times into the video to cut away parts between two timestamps. Preferably as a command line utility that can be scripted. Is such a thing even possible and if so is it already done? Something like: videocut -x33.4-41.1 -x134.9-148.6 myvideo.mp4 where the -x parameter specifies a section to remove. I don't think that it is possible to just open the file as binary and write some sections of it into an output file since that would have to be done based on file position in bytes and I have no idea how video times relate to the actual file position... -- Bo Berglund Developer in Sweden From joshyfun at gmail.com Thu Feb 28 10:17:38 2019 From: joshyfun at gmail.com (=?UTF-8?Q?Jos=c3=a9_Mejuto?=) Date: Thu, 28 Feb 2019 10:17:38 +0100 Subject: [Lazarus] Can I use fpc/Lazarus to edit mp4 files? In-Reply-To: References: Message-ID: El 28/02/2019 a las 10:12, Bo Berglund via lazarus escribió: > I am looking for a way to edit mp4 video files by cutting away parts > of the file. > So I am not looking for a way to view and edit the video visually, > rather a file cutting tool where I can use times into the video to cut > away parts between two timestamps. > > Preferably as a command line utility that can be scripted. Hello, Just use ad-hoc tools like ffmpeg (I'm using it for everything audio/video related) as its command line is powerful enough. If you have problems with it mail me private with expected result and I'll try to give you a command line params to achieve it. -- From bo.berglund at gmail.com Thu Feb 28 10:56:43 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Thu, 28 Feb 2019 10:56:43 +0100 Subject: [Lazarus] Can I use fpc/Lazarus to edit mp4 files? References: Message-ID: On Thu, 28 Feb 2019 10:17:38 +0100, José Mejuto via lazarus wrote: >El 28/02/2019 a las 10:12, Bo Berglund via lazarus escribió: >> I am looking for a way to edit mp4 video files by cutting away parts >> of the file. >> So I am not looking for a way to view and edit the video visually, >> rather a file cutting tool where I can use times into the video to cut >> away parts between two timestamps. >> >> Preferably as a command line utility that can be scripted. > >Hello, > >Just use ad-hoc tools like ffmpeg (I'm using it for everything >audio/video related) as its command line is powerful enough. Thanks for the input! Yes, I had googled for the function and thought about ffmpeg too but when I located a stackoverflow post about cutting video it turns out to work the opposite way! https://stackoverflow.com/questions/18444194/cutting-the-videos-based-on-start-and-end-time-using-ffmpeg Instead of cutting *away* the section it instead cut away everything else leaving only the part that I wanted to remove... I used this as a test to *remove* a section from 1:30 to 2:30 in the video, but instead it extracted a 2:30 long part from the video starting at 1:30... ffmpeg -i testvideo.mp4 -ss 00:01:30 -t 00:02:30 -async 1 cut.mp4 Then I also used another command later in the post: ffmpeg -ss 00:01:30 -i testvideo.mp4 -to 00:02:30 -c copy cut2.mp4 This created the same length output containing the same video section but was MUCH faster... But still it did not do what I want, instead it extracts into a new video the part what I want to get rid of... >If you have problems with it mail me private with expected result and >I'll try to give you a command line params to achieve it. Thanks for the offer, but I don't know your email address (I am interfacing with the mail list via GMane news gateway only)... What I would like to do is to specify multiple cutaways in a file based on time from the start so the process would be a one-time operation where the final video does not contain any of the specified video sections. And I could probably use Lazarus to create a program enabling me to specify the time sections and such and send a properly formatted command line to ffmpeg... (These cmd line utilities have such complex commands that one is prone to forget between uses.) -- Bo Berglund Developer in Sweden From joshyfun at gmail.com Thu Feb 28 17:06:55 2019 From: joshyfun at gmail.com (=?UTF-8?Q?Jos=c3=a9_Mejuto?=) Date: Thu, 28 Feb 2019 17:06:55 +0100 Subject: [Lazarus] Can I use fpc/Lazarus to edit mp4 files? In-Reply-To: References: Message-ID: El 28/02/2019 a las 10:56, Bo Berglund via lazarus escribió: > Yes, I had googled for the function and thought about ffmpeg too but > when I located a stackoverflow post about cutting video it turns out > to work the opposite way! Hello, It could be done thinking opposite... :-) > Thanks for the offer, but I don't know your email address (I am > interfacing with the mail list via GMane news gateway only)... I'll mail you in private, it is too much off topic here. -- From bo.berglund at gmail.com Thu Feb 28 17:54:44 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Thu, 28 Feb 2019 17:54:44 +0100 Subject: [Lazarus] Can I use fpc/Lazarus to edit mp4 files? References: Message-ID: On Thu, 28 Feb 2019 17:06:55 +0100, José Mejuto via lazarus wrote: >El 28/02/2019 a las 10:56, Bo Berglund via lazarus escribió: > >> Yes, I had googled for the function and thought about ffmpeg too but >> when I located a stackoverflow post about cutting video it turns out >> to work the opposite way! > >Hello, > >It could be done thinking opposite... :-) > >> Thanks for the offer, but I don't know your email address (I am >> interfacing with the mail list via GMane news gateway only)... > >I'll mail you in private, it is too much off topic here. > Thanks, I have found other threads etc where people have asked the same as I did and clarified what they meant. Whereupon the solution seemed to have been to make good pieces of the video and then merge these together into one, all using ffmpeg. I am looking forward to your email. -- Bo Berglund Developer in Sweden