From crone at cua.edu Tue Jan 1 03:44:51 2019 From: crone at cua.edu (Thomas Crone) Date: Mon, 31 Dec 2018 21:44:51 -0500 Subject: [Lazarus] Fwd: TRadioGroup not found error References: <0F86CC7D-423E-4ADC-B17E-B0D56A5B9CC6@cua.edu> Message-ID: <9E198926-67E1-405B-84C2-7200E3C0A035@cua.edu> If this is not the right forum for this, Please tell me where I can post it. I am getting the same type of message as I got a few weeks ago: … '‘EClassNoFound’ with message: Class ‘TButton’ not found at address 10004A515 I have tried to move to Lazarus from Delphi 4 several times over the past 5 or 6 years, and always given up in frustration. Errors seem to pop up, go away , and come back for no apparent reasons. (some of that, of course, could be windows problems…) I’ve been programming since 1970, first in FORTRAN II, then Algol, Simula, snobol, icon, DEC10 assembly, various BASICs, Pascal (Turbo V2 thru Delphi, and on VAX VMS), etc. The most recent new language was python on the Raspberry Pi. Before I retired a few years ago, I volunteered to help with the Lazarus documentation, when I couldn’t figure out how to move my collection of units (2D & 3d geometry, i/o routines, geographic projections & mapping, music synthesis, etc.) to Lazarus. In Delphi, I could just put the .dcu files in the Delphi /lib directory; for the programs I’m now working on, I had to include the entire source of my TIndexString unit in the program source. maybe I should rewrite all my objects in python… Tom Crone > Begin forwarded message: > > From: Thomas Crone > Subject: Re: [Lazarus] TRadioGroup not found error > Date: December 15, 2018 at 9:42:45 PM EST > To: Lazarus mailing list > > I had some of the TForm as private and some not. > > When I took everything to of private, the error went away. > > tom > >> On Dec 11, 2018, at 5:23 PM, Vojtěch Čihák via lazarus > wrote: >> >> TRadioGroup is in unit ExtCtrls. Lazarus, however, adds it automatically to "uses" when you insert it to form at design-time. >> >> V. >> ______________________________________________________________ >> > Od: "Thomas Crone via lazarus" > >> > Komu: lazarus at lists.lazarus-ide.org >> > Datum: 11.12.2018 22:58 >> > Předmět: [Lazarus] TRadioGroup not found error >> > >> My latest attempt to use Lazarus has given some odd errors… >> >> First it complained about TEdit, so I replaced that with TMemo. >> >> Now it is saying: Class “TRadioGroup” not found >> >> Do I have to add something manually to the Uses statement? >> >> I’m on Win 7 pro 64bit with Lazarus 1.8.4, 2018-05-19, FPC Ver 3.0.4, SVN Rev. 57972, x86_64 - win64 - win32/win64 >> >> Tom Crone crone at cua.edu >> >> ---------- >> >> -- >> _______________________________________________ >> lazarus mailing list >> lazarus at lists.lazarus-ide.org >> https://lists.lazarus-ide.org/listinfo/lazarus >> -- >> _______________________________________________ >> 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 dec12 at avidsoft.com.hk Tue Jan 1 11:08:30 2019 From: dec12 at avidsoft.com.hk (Dennis) Date: Tue, 1 Jan 2019 18:08:30 +0800 Subject: [Lazarus] Trying FPDebug In-Reply-To: References: <94a1453a-affc-a3a8-c88b-7cdf18388582@ciberpiula.net> <631d3ac4-cae9-c70f-85e4-affb2fa8135c@ciberpiula.net> Message-ID: I am using Lazarus 1.9.0, FPC 3.1.1 I am testing fpDebug. When there an exception is raised during debug, the following dialog popped up. I tried to click the "Ignore this exception type" then then click 'continue' but the debugger does not add the exception to the Language Exception list, so it keeps stopping at this exception type. Dennis -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: kemmamphpdgkdgml.png Type: image/png Size: 5350 bytes Desc: not available URL: From tony.whyman at mccallumwhyman.com Tue Jan 1 11:47:40 2019 From: tony.whyman at mccallumwhyman.com (Tony Whyman) Date: Tue, 1 Jan 2019 10:47:40 +0000 Subject: [Lazarus] Fwd: TRadioGroup not found error In-Reply-To: <9E198926-67E1-405B-84C2-7200E3C0A035@cua.edu> References: <0F86CC7D-423E-4ADC-B17E-B0D56A5B9CC6@cua.edu> <9E198926-67E1-405B-84C2-7200E3C0A035@cua.edu> Message-ID: Tom, I made transition from Delphi about 9 years ago and never looked back. Yes, there are some conceptual differences, especially in the way the IDE works and which you have to get your head around but, generally, the problems are to do with the occasional name change for library functions, or the need to include a different mix of units and these can usually be resolved quickly at compile time. Looking at your comments, I am trying to work out where you are going wrong. Further down the EMail, you seem to be tripping over problems with which units to include. Expect this as a one-off cost of moving from Delphi to Lazarus. The easiest way of resolving the problem with LCL objects is to just drop another copy of the object on the form, save the form and then delete the new object. The effect is to add the missing unit to the uses clause. EClassNotFound is an odd one. This is a run time error in the streaming system - which is very similar to Delphi's streaming system. It suggests that you have somehow managed to include a .lfm file that includes a reference to a TButton, while the corresponding .pas has lost the Form's reference to the button. e.g. a line such as FButton1: TButton; is missing. I would search the .pas file for a match on "TButton". This can be the result of a simple "fat finger" error deleting a line by mistake - I have done that myself, but normally this results in an error message that tells you that the form reference is missing. However, if this was the only reference and stdctrls is not otherwise linked in then perhaps the error you are seeing is the result. Referring to your point about Delphi /lib, your problem here may be the difference between Delphi and Lazarus packages. It's probably best to think of Lazarus packages as compile time conveniences rather than as code libraries that are nicely packaged together in a single file. When you create a GUI application in Lazarus, you automatically get the LCL package "added" to you project. Its compiled units path then gets included in the Project's compiler and linker search paths. The same thing happens when you include a component in a third party package. You can also explicitly add packages as "New Requirements". To see this in action, in any GUI Lazarus project open the Project Options dialog, select "Compiler Options->Compilation and Linking" in the left hand pane and then click on the "Show Options button. You should then see the full list of options passed to the compiler including each package's units directory. This feature is your friend when you are trying to work out why a unit is "not found". When you compile a project, any dependent packages should also get compiled if their source code has been modified since they were last compiled, their object code then gets linked into the program. Your problem with your TIndexString unit may have a similar root. When you add a unit to a project, if its path is not already in the project's search path, this should get added - and you can see the result with "Show Options". If the unit is not added or, in particular, when its search path is not included in the project's "Other Unit paths" then the compiler will not able to find it. Hope the above helps - it really is worth making the effort to move to Lazarus. Regards Tony Whyman MWA Software On 01/01/2019 02:44, Thomas Crone via lazarus wrote: > If this is not the right forum for this,  Please tell me where I can > post it. > > I am getting the same type of message as I got a few weeks ago: > >    … '‘EClassNoFound’  with message: >    Class ‘TButton’ not found >    at address 10004A515 > > I have tried to move to Lazarus from Delphi 4 several times over the > past 5 or 6 years, > and always given up in frustration. > > Errors seem to pop up, go away , and come back for no apparent > reasons. (some of that, > of course, could be windows problems…) > > I’ve been programming since 1970, first in FORTRAN II, then Algol, > Simula, snobol, icon, > DEC10 assembly, various BASICs, Pascal (Turbo V2 thru Delphi, and on > VAX VMS), etc. > The most recent new language was python on the Raspberry Pi. > > Before I retired a few years ago, I volunteered to help with the > Lazarus documentation, > when I couldn’t figure out how to move my collection of units (2D & 3d > geometry, i/o routines, > geographic projections & mapping, music synthesis, etc.) to Lazarus. > In Delphi, I could just > put the .dcu files in the Delphi /lib directory; for the programs I’m > now working on, I had to > include the entire source of my TIndexString unit in the program source. > > maybe I should rewrite all my objects in python… > > Tom Crone >> Begin forwarded message: >> >> *From: *Thomas Crone > >> *Subject: **Re: [Lazarus] TRadioGroup not found error* >> *Date: *December 15, 2018 at 9:42:45 PM EST >> *To: *Lazarus mailing list > > >> >> I had some of the TForm as private and some not. >> >> When I took everything to of private, the error went away. >> >> tom >>> On Dec 11, 2018, at 5:23 PM, Vojtěch Čihák via lazarus >>> >> > wrote: >>> >>> TRadioGroup is in unit ExtCtrls. Lazarus, however, adds it >>> automatically to "uses" when you insert it to form at design-time. >>> >>> V. >>> ______________________________________________________________ >>> > Od: "Thomas Crone via lazarus" >> > >>> > Komu: lazarus at lists.lazarus-ide.org >>> >>> > Datum: 11.12.2018 22:58 >>> > Předmět: [Lazarus] TRadioGroup not found error >>> > >>> My latest attempt to use Lazarus has given some odd errors… >>> >>> First it complained about TEdit, so I replaced that with TMemo. >>> >>> Now it is saying: Class “TRadioGroup” not found >>> >>> Do I have to add something manually to the Uses statement? >>> >>> I’m on Win 7 pro 64bit with Lazarus 1.8.4, 2018-05-19, FPC Ver >>> 3.0.4, SVN Rev. 57972, x86_64 - win64 - win32/win64 >>> >>> Tom Cronecrone at cua.edu >>> >>> ---------- >>> >>> -- >>> _______________________________________________ >>> lazarus mailing list >>> lazarus at lists.lazarus-ide.org >>> https://lists.lazarus-ide.org/listinfo/lazarus >>> -- >>> _______________________________________________ >>> lazarus mailing list >>> lazarus at lists.lazarus-ide.org >>> https://lists.lazarus-ide.org/listinfo/lazarus >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at mfriebe.de Tue Jan 1 11:58:14 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Tue, 1 Jan 2019 11:58:14 +0100 Subject: [Lazarus] Trying FPDebug In-Reply-To: References: <94a1453a-affc-a3a8-c88b-7cdf18388582@ciberpiula.net> <631d3ac4-cae9-c70f-85e4-affb2fa8135c@ciberpiula.net> Message-ID: <9d8aacf4-66b9-57a0-dc72-2809c1a44c41@mfriebe.de> On 01/01/2019 11:08, Dennis via lazarus wrote: > I am using Lazarus 1.9.0, FPC 3.1.1 You need either 2.1 or fixes 2.0 It works for me. I do not remember that it did not add it... but I know it did not ignore the ones that had been added. revision 59655 Anyway it works in latest trunk. > I am testing fpDebug. > > When there an exception is raised during debug, the following dialog > popped up. > I tried to click the "Ignore this exception type" then then click > 'continue' > but the debugger does not add the exception to the Language Exception > list, so it keeps stopping at this exception type. From aaa5500 at ya.ru Tue Jan 1 12:09:23 2019 From: aaa5500 at ya.ru (Alexey) Date: Tue, 1 Jan 2019 14:09:23 +0300 Subject: [Lazarus] Fwd: TRadioGroup not found error In-Reply-To: References: <0F86CC7D-423E-4ADC-B17E-B0D56A5B9CC6@cua.edu> <9E198926-67E1-405B-84C2-7200E3C0A035@cua.edu> Message-ID: <0A389C7A-57B1-4BA2-8CFC-FE657D430BD3@ya.ru> To use your units in Lazarus, make a new package, then copy all units to a single subdir (with the Lpk package), then add all pas units to this package. So user needs to install this package. So all pas files will be auto found by program if program uses this package. AT From dec12 at avidsoft.com.hk Tue Jan 1 12:20:38 2019 From: dec12 at avidsoft.com.hk (Dennis) Date: Tue, 1 Jan 2019 19:20:38 +0800 Subject: [Lazarus] Trying FPDebug In-Reply-To: <9d8aacf4-66b9-57a0-dc72-2809c1a44c41@mfriebe.de> References: <94a1453a-affc-a3a8-c88b-7cdf18388582@ciberpiula.net> <631d3ac4-cae9-c70f-85e4-affb2fa8135c@ciberpiula.net> <9d8aacf4-66b9-57a0-dc72-2809c1a44c41@mfriebe.de> Message-ID: <51dfceb4-e69b-ae4e-8502-27d7ddb1ef56@avidsoft.com.hk> Martin Frb via lazarus wrote: > On 01/01/2019 11:08, Dennis via lazarus wrote: >> I am using Lazarus 1.9.0, FPC 3.1.1 > You need either 2.1 or fixes 2.0 > > It works for me. > > I do not remember that it did not add it... but I know it did not > ignore the ones that had been added. revision 59655 > > Anyway it works in latest trunk. > It is fine if it has been fixed. By the way, I want to express my gratitude toward fpDebug. It is so much faster than GDB and the inline variable inspection seems to work better as well. Good jobs guys. Dennis From b_lists at patandbrian.org Wed Jan 2 00:46:02 2019 From: b_lists at patandbrian.org (Brian) Date: Tue, 1 Jan 2019 18:46:02 -0500 Subject: [Lazarus] Suggestion for an IDE enhancement Message-ID: <001f939e-d79c-b6c1-458e-d75063c276ca@patandbrian.org> I'm in no way competent to try to do this sort of thing myself with the IDE, otherwise I would have a go at it. :( It also reflects the fact that I'm an untidy coder - I just write the code flat, and then let the formatter tidy things up for me. That way of doing things leads me to one suggestion, I have no idea how difficult this would be to implement, I just thought I'd float it in case there were a bunch of "me too"s. What I would find really useful is if, when I change the case of an identifier in the code, there were an entry in the context menu to add that identifier to JCF's list of standard capitalisations, so that a future run with the formatter would make the same change to all the other occurrences of that identifier. If I'm missing something, and there is a way to do this rather than source | JCF | format settings | identifiers then I've missed it, and would be very grateful if someone would point it out to me! Thanks, Brian. From mailinglists at geldenhuys.co.uk Wed Jan 2 12:07:46 2019 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Wed, 2 Jan 2019 11:07:46 +0000 Subject: [Lazarus] Crowdfunding to speed up the development of pas2js in Lazarus Widgetset and fpDebug to FPC In-Reply-To: <423b11ee-3a08-fe1f-24fb-fd1393215198@cnoc.nl> References: <1545235107020-0.post@n3.nabble.com> <1545410673938-0.post@n3.nabble.com> <4e1044f6-ca00-50e6-f894-f99add869364@geldenhuys.co.uk> <06af2122-ab14-50f7-6f56-cc9476eda04a@windstream.net> <423b11ee-3a08-fe1f-24fb-fd1393215198@cnoc.nl> Message-ID: <88226d2e-79db-77ac-7416-e72e344bbd57@geldenhuys.co.uk> On 29/12/2018 16:35, Joost van der Sluis via lazarus wrote: > Then, when that person wants to withdraw the money, he/she has to pay > transaction costs. (Again, when you do this less often, there are less > transaction costs) Isn't that how PayPal works too? You pay a transaction cost when dealing with _real_ money (into PayPal or out of PayPal), but don't when you use money that is already in your 'digital wallet'. Actually I'm not sure, I get so confused between all these online wallet things (PayPal, Google Wallet etc). Real banks should just get with the times and make international payments easier. 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 thomas.schmickl at uni-graz.at Wed Jan 2 12:39:59 2019 From: thomas.schmickl at uni-graz.at (pascal_tom) Date: Wed, 2 Jan 2019 04:39:59 -0700 (MST) Subject: [Lazarus] TSynEdit highlighter with simple spell-checker (almost working nicely) Message-ID: <1546429199069-0.post@n3.nabble.com> I want to share a simple solution to spell-checking with TSynEdit (Lazarus) which I just implemented. It is super-simple, thus maybe trivial. However, in my internet search I found that many people are seeking spell-checking for Lazarus and Delphi, so this might help some people or even trigger the development of a TSynSpellcheck component for being included to Lazarus. It works already nice with English text (no umlauts) and almost nice in German text (only words with umlauts are not highlighted). Background and problem formulation: As a university teacher I am building a small editor tool which should have parallel spell checking for german and Solution: ====== I found I nice trick to simply create a language spell-check for English and German (should work for all languages basically): 1.) I use a TSynEdit (lazarus 1.8.4) and place a TSynAnySyn with it on my main Form. 2.) I downloaded the English and German dictionary from hunspell (LibreOffice), opened and merged them in Excel (with right codepage selected to preserve German umlauts). In Excel I split the hunspell dictionary in two columns, removed the unneeded second column and sorted the words alphabetically (this speeds up the approach enormously). Then I saved it to an UTF-8 encoded codepage to a file 'dictionary.txt' (double-checked this in atom editor). 3.) At the opening of my main form I load this dictionary.txt file into a TStringList which I then set as 'constants' or 'objects' in the corresponding TSynAnySyn property that is set as a highlighter in my TSynEdit. This process takes only 4-5 seconds on my 4 year old MacBookPro, so that can be covered nicely by a splash screen at the start up of the application. Results: ====== Actually everything works out of the box, the text entering works fast and all known words are highlighted. Possible improvements: ================= I think it is easy to add an 'add word to dictionary' feature as a context menu. Maybe the reading of the dictionary can be even faster if the dictionary is compiled into the app's executable as a resource and then be read from there. Still existing problems: ================ The only two problems I encountered and maybe some of the experts here may help to improve : - Words with german umlauts are not recognized. I think this is due to the fact that these characters can not be added to the IdentifierChars property, they are just replaced by question marks if one edits them to the string of '!$&+,-./0123456789:;?ABCDEFGHIJKLMNOPQRSTUVXYZ_abcdefghijklmnopqrstuvwxyz' that is set as a default there. I tried to add those characters also in the code of TSynAnySyn, but it seems to be restricted to deal with only the first 256 characters of the ASCII (or ANSI) table. I have to admit I do not really know all these codepage-related things. - It is a bit strange that the highlighter highlights correctly spelled words (found in the dictionary) and not the other way around (marking not-detected words with a little wave below, as usual). I found no way to achieve this. Any help from the community is appreciated, I would love to contribute this approach as a coding example for lazarus, as it works at least nicely for English words, but I don't know how/where I could upload the example code. -- Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/ From l at c-m-w.me.uk Wed Jan 2 16:46:19 2019 From: l at c-m-w.me.uk (C Western) Date: Wed, 2 Jan 2019 15:46:19 +0000 Subject: [Lazarus] Can't start lazarus trunk Message-ID: To start the current lazarus trunk, I had to delete ~/.fppkg, as otherwise lazarus crashed after trying to execute a compiler that didn't exist. Traceback is: [FORMS.PP] ExceptionOccurred   Sender=EProcess   Exception=Executable not found: "/home/me/fpc-3.0.2-64/lib/fpc/../../bin/fpc"   Stack trace:   $0000000000754320  EXECUTE,  line 345 of fcl-process/src/unix/process.inc   $0000000000FB39B8  GETCOMPILERINFO,  line 370 of fppkg/src/pkgglobals.pp   $0000000000FB863B  CHECKCOMPILERVALUES,  line 1084 of fppkg/src/pkgoptions.pp   $0000000000FABECF  INSTANCE,  line 90 of ../packager/fppkghelper.pas   $0000000000AAA134  OPENDEPENDENCY,  line 5840 of ../packager/packagesystem.pas   $0000000000A965C7  ADDPACKAGE,  line 2122 of ../packager/packagesystem.pas   $0000000000A91C0E  OPENDEPENDENCYWITHPACKAGELINK,  line 998 of ../packager/packagesystem.pas   $0000000000AA9C30  OPENDEPENDENCY,  line 5787 of ../packager/packagesystem.pas   $0000000000AAAEBB  OPENINSTALLEDDEPENDENCY,  line 5997 of ../packager/packagesystem.pas   $0000000000A96D4E  LOADLAZARUSBASEPACKAGE,  line 2213 of ../packager/packagesystem.pas   $0000000000A96BBF  LOADSTATICBASEPACKAGES,  line 2217 of ../packager/packagesystem.pas   $0000000000AB6A56  LOADINSTALLEDPACKAGES,  line 3086 of ../packager/pkgmanager.pas   $00000000004A9203  CREATE,  line 1590 of main.pp   $000000000041F256  main,  line 140 of lazarus.pp I am not aware of using .fppkg specifically, and the file ~/.fppkg/config/default did indeed reference a invalid compiler (a test version I had installed at some point). I suspect a test for the compiler file existing needs adding somewhere. Colin From silvioprog at gmail.com Wed Jan 2 16:51:16 2019 From: silvioprog at gmail.com (silvioprog) Date: Wed, 2 Jan 2019 12:51:16 -0300 Subject: [Lazarus] Can't start lazarus trunk In-Reply-To: References: Message-ID: On Wed, Jan 2, 2019 at 12:46 PM C Western via lazarus < lazarus at lists.lazarus-ide.org> wrote: > To start the current lazarus trunk, I had to delete ~/.fppkg, as > otherwise lazarus crashed after trying to execute a compiler that didn't > exist. Traceback is: > > [FORMS.PP] ExceptionOccurred > Sender=EProcess > Exception=Executable not found: > "/home/me/fpc-3.0.2-64/lib/fpc/../../bin/fpc" > Stack trace: > $0000000000754320 EXECUTE, line 345 of > fcl-process/src/unix/process.inc > $0000000000FB39B8 GETCOMPILERINFO, line 370 of fppkg/src/pkgglobals.pp > $0000000000FB863B CHECKCOMPILERVALUES, line 1084 of > fppkg/src/pkgoptions.pp > $0000000000FABECF INSTANCE, line 90 of ../packager/fppkghelper.pas > $0000000000AAA134 OPENDEPENDENCY, line 5840 of > ../packager/packagesystem.pas > $0000000000A965C7 ADDPACKAGE, line 2122 of > ../packager/packagesystem.pas > $0000000000A91C0E OPENDEPENDENCYWITHPACKAGELINK, line 998 of > ../packager/packagesystem.pas > $0000000000AA9C30 OPENDEPENDENCY, line 5787 of > ../packager/packagesystem.pas > $0000000000AAAEBB OPENINSTALLEDDEPENDENCY, line 5997 of > ../packager/packagesystem.pas > $0000000000A96D4E LOADLAZARUSBASEPACKAGE, line 2213 of > ../packager/packagesystem.pas > $0000000000A96BBF LOADSTATICBASEPACKAGES, line 2217 of > ../packager/packagesystem.pas > $0000000000AB6A56 LOADINSTALLEDPACKAGES, line 3086 of > ../packager/pkgmanager.pas > $00000000004A9203 CREATE, line 1590 of main.pp > $000000000041F256 main, line 140 of lazarus.pp > > I am not aware of using .fppkg specifically, and the file > ~/.fppkg/config/default did indeed reference a invalid compiler (a test > version I had installed at some point). I suspect a test for the > compiler file existing needs adding somewhere. > > Colin The same problem here. In my case, 'Executable not found: "/home/silvioprog/fpc-3.0.4/lib/fpc/../../bin/fpc"'. -- Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: From juha.manninen62 at gmail.com Wed Jan 2 17:13:19 2019 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Wed, 2 Jan 2019 18:13:19 +0200 Subject: [Lazarus] Fwd: TRadioGroup not found error In-Reply-To: <9E198926-67E1-405B-84C2-7200E3C0A035@cua.edu> References: <0F86CC7D-423E-4ADC-B17E-B0D56A5B9CC6@cua.edu> <9E198926-67E1-405B-84C2-7200E3C0A035@cua.edu> Message-ID: On Tue, Jan 1, 2019 at 4:44 AM Thomas Crone via lazarus wrote: > Errors seem to pop up, go away , and come back for no apparent reasons. (some of that, > of course, could be windows problems…) It can also be that your Lazarus installation is screwed by some old leftover installations. Please remove all such directories and especially compiled units. Remove user configuration, too. Then install a new version. I recommend the latest 2.0RC3. Juha From werner.pamler at freenet.de Wed Jan 2 18:22:57 2019 From: werner.pamler at freenet.de (Werner Pamler) Date: Wed, 2 Jan 2019 18:22:57 +0100 Subject: [Lazarus] Can't start lazarus trunk In-Reply-To: References: Message-ID: <969cccb4-5e05-5574-69fe-65344cce5a41@freenet.de> Am 02.01.2019 um 16:51 schrieb silvioprog via lazarus: > The same problem here. In my case, 'Executable not found: > "/home/silvioprog/fpc-3.0.4/lib/fpc/../../bin/fpc"'. Today I saw the "Could not find a fpc executable in the PATH" error when starting Lazarus. It came in in r59934, the preceding revision, r59933, is still working correctly. Maybe a different issue, because for me, it happens only with FPC trunk. See also: http://forum.lazarus-ide.org/index.php/topic,43764.msg306795.html or https://bugs.freepascal.org/view.php?id=34792 -------------- next part -------------- An HTML attachment was scrubbed... URL: From silvioprog at gmail.com Wed Jan 2 18:29:31 2019 From: silvioprog at gmail.com (silvioprog) Date: Wed, 2 Jan 2019 14:29:31 -0300 Subject: [Lazarus] Can't start lazarus trunk In-Reply-To: <969cccb4-5e05-5574-69fe-65344cce5a41@freenet.de> References: <969cccb4-5e05-5574-69fe-65344cce5a41@freenet.de> Message-ID: On Wed, Jan 2, 2019 at 2:25 PM Werner Pamler via lazarus < lazarus at lists.lazarus-ide.org> wrote: > Am 02.01.2019 um 16:51 schrieb silvioprog via lazarus: > > The same problem here. In my case, 'Executable not found: > "/home/silvioprog/fpc-3.0.4/lib/fpc/../../bin/fpc"'. > > > Today I saw the "Could not find a fpc executable in the PATH" error when > starting Lazarus. It came in in r59934, the preceding revision, r59933, is > still working correctly. Maybe a different issue, because for me, it > happens only with FPC trunk. > > See also: > http://forum.lazarus-ide.org/index.php/topic,43764.msg306795.html or > https://bugs.freepascal.org/view.php?id=34792 > After a new update (Wed Jan 2 14:28:53 -03 2019) from trunk the IDE raises "Lazarus instance is running but not responding" and need a kill to close. -- Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: From joost at cnoc.nl Thu Jan 3 00:31:23 2019 From: joost at cnoc.nl (Joost van der Sluis) Date: Thu, 3 Jan 2019 00:31:23 +0100 Subject: [Lazarus] Can't start lazarus trunk In-Reply-To: References: Message-ID: Op 02-01-19 om 16:46 schreef C Western via lazarus: > To start the current lazarus trunk, I had to delete ~/.fppkg, as > otherwise lazarus crashed after trying to execute a compiler that didn't > exist. Traceback is: > > [FORMS.PP] ExceptionOccurred >   Sender=EProcess >   Exception=Executable not found: > "/home/me/fpc-3.0.2-64/lib/fpc/../../bin/fpc" >   Stack trace: >   $0000000000754320  EXECUTE,  line 345 of > fcl-process/src/unix/process.inc >   $0000000000FB39B8  GETCOMPILERINFO,  line 370 of fppkg/src/pkgglobals.pp >   $0000000000FB863B  CHECKCOMPILERVALUES,  line 1084 of > fppkg/src/pkgoptions.pp >   $0000000000FABECF  INSTANCE,  line 90 of ../packager/fppkghelper.pas >   $0000000000AAA134  OPENDEPENDENCY,  line 5840 of > ../packager/packagesystem.pas >   $0000000000A965C7  ADDPACKAGE,  line 2122 of > ../packager/packagesystem.pas >   $0000000000A91C0E  OPENDEPENDENCYWITHPACKAGELINK,  line 998 of > ../packager/packagesystem.pas >   $0000000000AA9C30  OPENDEPENDENCY,  line 5787 of > ../packager/packagesystem.pas >   $0000000000AAAEBB  OPENINSTALLEDDEPENDENCY,  line 5997 of > ../packager/packagesystem.pas >   $0000000000A96D4E  LOADLAZARUSBASEPACKAGE,  line 2213 of > ../packager/packagesystem.pas >   $0000000000A96BBF  LOADSTATICBASEPACKAGES,  line 2217 of > ../packager/packagesystem.pas >   $0000000000AB6A56  LOADINSTALLEDPACKAGES,  line 3086 of > ../packager/pkgmanager.pas >   $00000000004A9203  CREATE,  line 1590 of main.pp >   $000000000041F256  main,  line 140 of lazarus.pp > > I am not aware of using .fppkg specifically, and the file > ~/.fppkg/config/default did indeed reference a invalid compiler (a test > version I had installed at some point). I suspect a test for the > compiler file existing needs adding somewhere. Thanks for the stacktrace, even with debug-info for fppkg! These tests 'in the wild' help me a lot. Should be fixed. In FPC (added the check if the compiler exists) and in Lazarus (do not choke on it when an exception occurs) Can you re-test? Regards, Joost. From listbox at martoks-place.de Thu Jan 3 03:23:56 2019 From: listbox at martoks-place.de (Martok) Date: Thu, 3 Jan 2019 03:23:56 +0100 Subject: [Lazarus] Can't start lazarus trunk In-Reply-To: References: Message-ID: Am 03.01.2019 um 00:31 schrieb Joost van der Sluis via lazarus: > Should be fixed. In FPC (added the check if the compiler exists) and in > Lazarus (do not choke on it when an exception occurs) This may be a stupid question, but why do I now have to click through a message "An error occured during the initialization of Fppkg: Could not find a fpc executable in the PATH. Check your Fppkg configuration and restart Lazarus to be able to use Fppkg's functionality." ever time I start Lazarus? I'm not aware of ever installing/enabling/whatever-one-does any sort of package manager, neither fppkg nor OPM... -- Regards, Martok From thomas.schmickl at uni-graz.at Thu Jan 3 10:39:22 2019 From: thomas.schmickl at uni-graz.at (pascal_tom) Date: Thu, 3 Jan 2019 02:39:22 -0700 (MST) Subject: [Lazarus] TSynEdit highlighter with simple spell-checker (almost working nicely) In-Reply-To: <1546429199069-0.post@n3.nabble.com> References: <1546429199069-0.post@n3.nabble.com> Message-ID: <1546508362881-0.post@n3.nabble.com> BTW, if this is the wrong mailing list for this type of post, I would be glad if someone could point me to a better fitting mailingliste or forum. best, thomas. -- Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/ From joost at cnoc.nl Thu Jan 3 11:00:47 2019 From: joost at cnoc.nl (Joost van der Sluis) Date: Thu, 3 Jan 2019 11:00:47 +0100 Subject: [Lazarus] Can't start lazarus trunk In-Reply-To: References: Message-ID: <80f8ee86-b4d4-80ef-b4e4-da74b0a4345a@cnoc.nl> Op 03-01-19 om 03:23 schreef Martok via lazarus: > Am 03.01.2019 um 00:31 schrieb Joost van der Sluis via lazarus: >> Should be fixed. In FPC (added the check if the compiler exists) and in >> Lazarus (do not choke on it when an exception occurs) > > This may be a stupid question, but why do I now have to click through a message > "An error occured during the initialization of Fppkg: Could not find a fpc > executable in the PATH. > Check your Fppkg configuration and restart Lazarus to be able to use Fppkg's > functionality." ever time I start Lazarus? The same holds if you remove gdb, make or the source-files of fpc's packages. While in principle Lazarus could be used without those. There are a lot of features in Lazarus and almost no-one will ever use all of them. But they have to be configured properly so that when someone wants to use this particular feature, he or she does not drown in a swamp of vague problems. Like with the other configuration problems that pop-up frequently, this functionality should be checked during startup with a pop-up to fix it. That's all work in progress. (Install the fppkg-package, and you can see how it could be done) > I'm not aware of ever installing/enabling/whatever-one-does any sort of package > manager, neither fppkg nor OPM... That's because it's build-in into fpc. You can not compile fpc without using at least fpmake (not entirely true, but it's the default). So you've never configured it yourself, this is done for you. Question is where it did go wrong. You probably altered the configuration yourself, and thought that you did that properly, because no-one ever noticed you that there was a mistake somewhere. Lazarus now notifies you about the mistake. Then the question remains: why should Lazarus warn you when you do not use the functionality? Well, see above. Ok, and one more answer to a question that you did not pose: the new changes in Lazarus make it possible to integrate the build-system (fpmake) that Free Pascal uses into Lazarus. This opens a lot of oppurtunities, like compiling LCL-based applications on the command-line or other IDE's. Or even IDE-less environments like with Studio Code. Other ways to do dependency-checking (this is what Lazarus is currently having troubles with, checking the dependencies on Free Pascal packages, which was not done previously) and improved compilation times. It's just some new functionality, needs some time to mature. Regards, Joost. From l at c-m-w.me.uk Thu Jan 3 11:01:13 2019 From: l at c-m-w.me.uk (C Western) Date: Thu, 3 Jan 2019 10:01:13 +0000 Subject: [Lazarus] Can't start lazarus trunk In-Reply-To: References: Message-ID: <7c7270a9-9b61-20e8-4430-1b3030a6796c@c-m-w.me.uk> On 02/01/2019 23:31, Joost van der Sluis via lazarus wrote: > Op 02-01-19 om 16:46 schreef C Western via lazarus: >> To start the current lazarus trunk, I had to delete ~/.fppkg, as >> otherwise lazarus crashed after trying to execute a compiler that >> didn't exist. Traceback is: >> >> [FORMS.PP] ExceptionOccurred >>    Sender=EProcess >>    Exception=Executable not found: >> "/home/me/fpc-3.0.2-64/lib/fpc/../../bin/fpc" >>    Stack trace: >>    $0000000000754320  EXECUTE,  line 345 of >> fcl-process/src/unix/process.inc >>    $0000000000FB39B8  GETCOMPILERINFO,  line 370 of >> fppkg/src/pkgglobals.pp >>    $0000000000FB863B  CHECKCOMPILERVALUES,  line 1084 of >> fppkg/src/pkgoptions.pp >>    $0000000000FABECF  INSTANCE,  line 90 of ../packager/fppkghelper.pas >>    $0000000000AAA134  OPENDEPENDENCY,  line 5840 of >> ../packager/packagesystem.pas >>    $0000000000A965C7  ADDPACKAGE,  line 2122 of >> ../packager/packagesystem.pas >>    $0000000000A91C0E  OPENDEPENDENCYWITHPACKAGELINK,  line 998 of >> ../packager/packagesystem.pas >>    $0000000000AA9C30  OPENDEPENDENCY,  line 5787 of >> ../packager/packagesystem.pas >>    $0000000000AAAEBB  OPENINSTALLEDDEPENDENCY,  line 5997 of >> ../packager/packagesystem.pas >>    $0000000000A96D4E  LOADLAZARUSBASEPACKAGE,  line 2213 of >> ../packager/packagesystem.pas >>    $0000000000A96BBF  LOADSTATICBASEPACKAGES,  line 2217 of >> ../packager/packagesystem.pas >>    $0000000000AB6A56  LOADINSTALLEDPACKAGES,  line 3086 of >> ../packager/pkgmanager.pas >>    $00000000004A9203  CREATE,  line 1590 of main.pp >>    $000000000041F256  main,  line 140 of lazarus.pp >> >> I am not aware of using .fppkg specifically, and the file >> ~/.fppkg/config/default did indeed reference a invalid compiler (a >> test version I had installed at some point). I suspect a test for the >> compiler file existing needs adding somewhere. > > Thanks for the stacktrace, even with debug-info for fppkg! These tests > 'in the wild' help me a lot. > > Should be fixed. In FPC (added the check if the compiler exists) and > in Lazarus (do not choke on it when an exception occurs) > > Can you re-test? > > Regards, > > Joost. That seems to have fixed the issue - restoring the config file with the invalid compiler present no longer causes an issue. (This is updating to both trunk fpc and lazarus). Colin From l at c-m-w.me.uk Thu Jan 3 11:04:59 2019 From: l at c-m-w.me.uk (C Western) Date: Thu, 3 Jan 2019 10:04:59 +0000 Subject: [Lazarus] Can't start lazarus trunk In-Reply-To: <80f8ee86-b4d4-80ef-b4e4-da74b0a4345a@cnoc.nl> References: <80f8ee86-b4d4-80ef-b4e4-da74b0a4345a@cnoc.nl> Message-ID: <787fbeaa-0baf-0d73-7b25-2fcfa7da5138@c-m-w.me.uk> On 03/01/2019 10:00, Joost van der Sluis via lazarus wrote: > "An error occured during the initialization of Fppkg: Could not find a > fpc > executable in the PATH. > Check your Fppkg configuration and restart Lazarus to be able to use > Fppkg's > functionality." ever time I start Lazarus? I don't see this message (either before or after the update)? Colin From nc-gaertnma at netcologne.de Thu Jan 3 11:37:15 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 3 Jan 2019 11:37:15 +0100 Subject: [Lazarus] Can't start lazarus trunk In-Reply-To: <80f8ee86-b4d4-80ef-b4e4-da74b0a4345a@cnoc.nl> References: <80f8ee86-b4d4-80ef-b4e4-da74b0a4345a@cnoc.nl> Message-ID: <20190103113715.4f741a1a@limapholos.matflo.wg> On Thu, 3 Jan 2019 11:00:47 +0100 Joost van der Sluis via lazarus wrote: >[...] > > This may be a stupid question, but why do I now have to click > > through a message "An error occured during the initialization of > > Fppkg: Could not find a fpc executable in the PATH. > > Check your Fppkg configuration and restart Lazarus to be able to > > use Fppkg's functionality." ever time I start Lazarus? > > The same holds if you remove gdb, make or the source-files of fpc's > packages. While in principle Lazarus could be used without those. But this is handled in one dialog. And the dialog searches in all common places and checks for common mistakes. >[...] > Then the question remains: why should Lazarus warn you when you do > not use the functionality? Well, see above. If if it something I don't need then I would expect that it asks only once and it can be disabled/uninstalled. >[...] like compiling LCL-based applications on the command-line That's not new. It's new that you can use fpmake instead of lazbuild. >[...] and improved compilation times. Please elaborate. Mattias From nc-gaertnma at netcologne.de Thu Jan 3 11:55:58 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 3 Jan 2019 11:55:58 +0100 Subject: [Lazarus] TSynEdit highlighter with simple spell-checker (almost working nicely) In-Reply-To: <1546429199069-0.post@n3.nabble.com> References: <1546429199069-0.post@n3.nabble.com> Message-ID: <20190103115558.156626a3@limapholos.matflo.wg> On Wed, 2 Jan 2019 04:39:59 -0700 (MST) pascal_tom via lazarus wrote: > I want to share a simple solution to spell-checking with TSynEdit > (Lazarus) which I just implemented. It is super-simple, thus maybe > trivial. However, in my internet search I found that many people are > seeking spell-checking for Lazarus and Delphi, so this might help > some people or even trigger the development of a TSynSpellcheck > component for being included to Lazarus. That is indeed a missing feature. >[...] > I found I nice trick to simply create a language spell-check for > English and German (should work for all languages basically): > > 1.) I use a TSynEdit (lazarus 1.8.4) and place a TSynAnySyn with it > on my main Form. Note: For the IDE a solution is needed that uses source marks instead of highlighter. > 2.) I downloaded the English and German dictionary from hunspell > (LibreOffice), opened and merged them in Excel (with right codepage > selected to preserve German umlauts). In Excel I split the hunspell > dictionary in two columns, removed the unneeded second column and > sorted the words alphabetically (this speeds up the approach > enormously). Then I saved it to an UTF-8 encoded codepage to a file > 'dictionary.txt' (double-checked this in atom editor). Under Linux it would be nice to use ispell or aspell. I believe Mac has spelling lib as well. Maybe you can design it so the backend can be overridden? > 3.) At the opening of my main form I load this dictionary.txt file > into a TStringList which I then set as 'constants' or 'objects' in the > corresponding TSynAnySyn property that is set as a highlighter in my > TSynEdit. This process takes only 4-5 seconds on my 4 year old > MacBookPro, so that can be covered nicely by a splash screen at the > start up of the application. Or better: load it in a thread. So the user can already use the application. Btw, how big is the txt file? >[...] > - Words with german umlauts are not recognized. I think this is due > to the fact that these characters can not be added to the > IdentifierChars property, they are just replaced by question marks if > one edits them to the string of The IdentifierChars is set of chars. To use UTF-8 I guess adding range #196..#247 should do the trick. >[...] > - It is a bit strange that the highlighter highlights correctly > spelled words (found in the dictionary) and not the other way around > (marking not-detected words with a little wave below, as usual). I > found no way to achieve this. Search for TSynEditMarkupMark. Maybe Martin knows a nice example how to use them. Mattias From joost at cnoc.nl Thu Jan 3 14:03:15 2019 From: joost at cnoc.nl (Joost van der Sluis) Date: Thu, 3 Jan 2019 14:03:15 +0100 Subject: [Lazarus] Can't start lazarus trunk In-Reply-To: <20190103113715.4f741a1a@limapholos.matflo.wg> References: <80f8ee86-b4d4-80ef-b4e4-da74b0a4345a@cnoc.nl> <20190103113715.4f741a1a@limapholos.matflo.wg> Message-ID: Op 03-01-19 om 11:37 schreef Mattias Gaertner via lazarus: > On Thu, 3 Jan 2019 11:00:47 +0100 > Joost van der Sluis via lazarus wrote: > >> [...] >>> This may be a stupid question, but why do I now have to click >>> through a message "An error occured during the initialization of >>> Fppkg: Could not find a fpc executable in the PATH. >>> Check your Fppkg configuration and restart Lazarus to be able to >>> use Fppkg's functionality." ever time I start Lazarus? >> >> The same holds if you remove gdb, make or the source-files of fpc's >> packages. While in principle Lazarus could be used without those. > > But this is handled in one dialog. And the dialog searches in all > common places and checks for common mistakes. Yes, that's what I meant. It has to be added there. But ideally I want to have it added by a package. But this is not possible at the moment. But on the other side: even without the fppkg package you can get into these troubles, so maybe just add this check within the IDE itself. >> [...] >> Then the question remains: why should Lazarus warn you when you do >> not use the functionality? Well, see above. > > If if it something I don't need then I would expect that it asks only > once and it can be disabled/uninstalled. When I remove fpc's sources, it will ask me again and again and again... See the response above. When the problem is fixed, you won't see it anymore. >> [...] like compiling LCL-based applications on the command-line > > That's not new. > It's new that you can use fpmake instead of lazbuild. [joost at fed4k laztestpackage]$ ppcx64 project1.lpr Free Pascal Compiler version 3.3.1 [2018/12/29] for x86_64 Copyright (c) 1993-2018 by Florian Klaempfl and others Target OS: Linux for x86-64 Compiling project1.lpr Compiling unit1.pas Compiling resource project1.or Linking project1 project1.lpr(21,1) Warning: "crtbegin.o" not found, this will probably cause a linking failure project1.lpr(21,1) Warning: "crtend.o" not found, this will probably cause a linking failure 48 lines compiled, 3.2 sec 2 warning(s) issued [joost at fed4k laztestpackage]$ And yes, project1 in this case is the default project1 Lazarus comes up with, with one simple form. But, yes. I had to adapt fpc.cfg to tell it which widgetset it has to use: -Fu~/.fppkg/lib/fpc/$fpcversion/units/$FPCTARGET/*/gtk2 >> [...] and improved compilation times. > > Please elaborate. This one needs more work and proof. In principle fpmake does almost the same as lazbuild. We have to experiment if it's any better in using multiple threads to compile packages. But in principle fpmake should be better in detecting which packages it should re-compile. And it passes less search-paths to the compiler, a thing of which Florian always ways it helps compilation times a lot. But it's debatable, yes. Regards, Joost. From nc-gaertnma at netcologne.de Thu Jan 3 14:35:07 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 3 Jan 2019 14:35:07 +0100 Subject: [Lazarus] Can't start lazarus trunk In-Reply-To: References: <80f8ee86-b4d4-80ef-b4e4-da74b0a4345a@cnoc.nl> <20190103113715.4f741a1a@limapholos.matflo.wg> Message-ID: <20190103143507.070e3775@limapholos.matflo.wg> On Thu, 3 Jan 2019 14:03:15 +0100 Joost van der Sluis via lazarus wrote: >[...] > > If if it something I don't need then I would expect that it asks > > only once and it can be disabled/uninstalled. > > When I remove fpc's sources, it will ask me again and again and > again... See the response above. There was no project yet that didn't need the fpc sources. With pas2js this has changed. So this needs an ignore button now. Are there any plans to make fppkg a requirement for all fpc projects? >[...] When the problem is fixed, you won't see it anymore. > > >> [...] like compiling LCL-based applications on the command-line > > > > That's not new. > > It's new that you can use fpmake instead of lazbuild. > > [joost at fed4k laztestpackage]$ ppcx64 project1.lpr >[...] > And yes, project1 in this case is the default project1 Lazarus comes > up with, with one simple form. > > But, yes. I had to adapt fpc.cfg to tell it which widgetset it has to > use: -Fu~/.fppkg/lib/fpc/$fpcversion/units/$FPCTARGET/*/gtk2 You cheater! ;) Mattias From thomas.schmickl at uni-graz.at Thu Jan 3 14:39:06 2019 From: thomas.schmickl at uni-graz.at (pascal_tom) Date: Thu, 3 Jan 2019 06:39:06 -0700 (MST) Subject: [Lazarus] TSynEdit highlighter with simple spell-checker (almost working nicely) In-Reply-To: <20190103115558.156626a3@limapholos.matflo.wg> References: <1546429199069-0.post@n3.nabble.com> <20190103115558.156626a3@limapholos.matflo.wg> Message-ID: <1546522746817-0.post@n3.nabble.com> Thanks Mattias for your reply, please see in the following my response. > Under Linux it would be nice to use ispell or aspell. I believe Mac > has spelling lib as well. Maybe you can design it so the backend can be > overridden? It is just a text file that contains the words. I described in my first post how I produced this from hunspell with Excel (can surely be done in Libre Office Calc as well) in a few minutes by hand. I guess an automated import from an existing Libre Office installation would be possible too, maybe it will slow down the application startup a bit as the processing and sorting takes time. However, sorting is only necessary if you (like me) add up several dictionaries, as the hunspell dictionaries seemed to be sorted already. For my application it is good enough to have this text file produced once by hand and packaged together with the application (later maybe as a resource file compiled with the executable). If the user wants to add words this may be done via a second text file for user-added words (the sorting issue then reappears, however). > Or better: load it in a thread. So the user can already use the > application. > Btw, how big is the txt file? Good idea. I will look into this. For each language the files are about 4.5 MB. >>[...] >> - Words with german umlauts are not recognized. I think this is due >> to the fact that these characters can not be added to the >> IdentifierChars property, they are just replaced by question marks if >> one edits them to the string of > The IdentifierChars is set of chars. > To use UTF-8 I guess adding range #196..#247 should do the trick. I looked in the source code of TSynAnySyn and I see several things like 'Identifiers: array[#0..#255] of ByteBool' and loops like 'for I := #0 to #255 do', thus I assumed that the character ranges up to #256 are already covered. However, german Umlauts do not work as Constants or Objects, making the spell-check trick failing with such words. What is especially bad as spell checking is especially helpful with those characters, e.g. "ss" versus the 'ß' (not sure if you will see the second one correctly displayed in the post, I meant a 'scharfes s' in German). Any help to get also those words working would be appreciated, maybe you are referring to other places in the source code than those that I have identified and tested. I also thought maybe one has to set somewhere the right codepage first and only then the upper half (#128-#256) of the char range is used correctly? Maybe TSynAnySyn or TSynEdit should have a 'codepage' property and use the set codepage then? > Search for TSynEditMarkupMark. > Maybe Martin knows a nice example how to use them. Thanks for the advice. I will look for that. It would have to mark all text as 'incorrect' by default (e.g., red waves below the text) and then override this for correctly found words (no red waves). Is this what you mean? > Mattias Thomas. -- Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/ From joost at cnoc.nl Thu Jan 3 14:56:50 2019 From: joost at cnoc.nl (Joost van der Sluis) Date: Thu, 3 Jan 2019 14:56:50 +0100 Subject: [Lazarus] Can't start lazarus trunk In-Reply-To: <20190103143507.070e3775@limapholos.matflo.wg> References: <80f8ee86-b4d4-80ef-b4e4-da74b0a4345a@cnoc.nl> <20190103113715.4f741a1a@limapholos.matflo.wg> <20190103143507.070e3775@limapholos.matflo.wg> Message-ID: <4f5e52dd-e743-4a23-e778-759515afc366@cnoc.nl> Op 03-01-19 om 14:35 schreef Mattias Gaertner via lazarus: > On Thu, 3 Jan 2019 14:03:15 +0100 > Joost van der Sluis via lazarus wrote: > > There was no project yet that didn't need the fpc sources. > With pas2js this has changed. So this needs an ignore button now. > > Are there any plans to make fppkg a requirement for all fpc projects? No, not at all. >> [...] When the problem is fixed, you won't see it anymore. >> >>>> [...] like compiling LCL-based applications on the command-line >>> >>> That's not new. >>> It's new that you can use fpmake instead of lazbuild. >> >> [joost at fed4k laztestpackage]$ ppcx64 project1.lpr >> [...] >> And yes, project1 in this case is the default project1 Lazarus comes >> up with, with one simple form. >> >> But, yes. I had to adapt fpc.cfg to tell it which widgetset it has to >> use: -Fu~/.fppkg/lib/fpc/$fpcversion/units/$FPCTARGET/*/gtk2 > > You cheater! ;) Yeah, but now I think of it.... At first I tried to keep the directory-structure similar to Lazarus' file-structure. But I decided to let this go and use just what's the easiest... Nothing forbids me to place the units of the default packagevariant (widgetset in this case) in the root.... Then I don't need this trick anymore. Regards, Joost. From listbox at martoks-place.de Thu Jan 3 21:17:28 2019 From: listbox at martoks-place.de (Martok) Date: Thu, 3 Jan 2019 21:17:28 +0100 Subject: [Lazarus] Can't start lazarus trunk In-Reply-To: <80f8ee86-b4d4-80ef-b4e4-da74b0a4345a@cnoc.nl> References: <80f8ee86-b4d4-80ef-b4e4-da74b0a4345a@cnoc.nl> Message-ID: Am 03.01.2019 um 11:00 schrieb Joost van der Sluis via lazarus: > The same holds if you remove gdb, make or the source-files of fpc's > packages. While in principle Lazarus could be used without those. Okay, now I feel even more confused than before... I didn't remove anything? I build clean Lazarus (not even bigide) + FPC from trunk using fpclazup, start it, and now receive a warning that wasn't there on last week's build. What steps do I need to take to fix this? I will most definitely *not* put fpc in my %PATH%, which the dialog wants me to do. Can't it just use the $(CompPath) macro? > Question is where it did go wrong. You probably altered the > configuration yourself, and thought that you did that properly, because > no-one ever noticed you that there was a mistake somewhere. Lazarus now > notifies you about the mistake. Nope. Even tested with a new clean Lazarus profile dir (so there is absolutely nothing left from previous versions), same result. Also, you write about fpmake but the problem is fppkg? > like compiling LCL-based applications on the command-line lazbuild? Seriously confused regards, Martok From joost at cnoc.nl Thu Jan 3 22:27:51 2019 From: joost at cnoc.nl (Joost van der Sluis) Date: Thu, 3 Jan 2019 22:27:51 +0100 Subject: [Lazarus] Can't start lazarus trunk In-Reply-To: References: <80f8ee86-b4d4-80ef-b4e4-da74b0a4345a@cnoc.nl> Message-ID: Op 03-01-19 om 21:17 schreef Martok via lazarus: > Am 03.01.2019 um 11:00 schrieb Joost van der Sluis via lazarus: > I build clean Lazarus (not even bigide) + FPC from trunk using fpclazup, start > it, and now receive a warning that wasn't there on last week's build. What steps > do I need to take to fix this? I will most definitely *not* put fpc in my > %PATH%, which the dialog wants me to do. Can't it just use the $(CompPath) macro? You could add it to the path, start Lazarus once, and then remove it again. Will that do? On unices (Linux/Darwin) you can use the 'samplecfg' script to create a new configuration. (It wil also create a new fpc.cfg, so if you modified that one, be carefull. Samplecfg will create a backup, though.) I actually don't know how to create the configuration files on Windows. (Except from letting Lazarus create them automatically based on the path, as described above. Or create them manually, or use fpcmkcfg... well... damn..) There is another option: install the Lazarus fppkgpackagemanager package. Then select from the menu 'package' -> 'extra packages' -> 'Show Fppkg Package Manager'. It will present a dialog to create the right configuration files. Or, maybe, just wait for a better solution. Regards, Joost From listbox at martoks-place.de Fri Jan 4 00:00:48 2019 From: listbox at martoks-place.de (Martok) Date: Fri, 4 Jan 2019 00:00:48 +0100 Subject: [Lazarus] Can't start lazarus trunk In-Reply-To: References: <80f8ee86-b4d4-80ef-b4e4-da74b0a4345a@cnoc.nl> Message-ID: Am 03.01.2019 um 22:27 schrieb Joost van der Sluis via lazarus: > I actually don't know how to create the configuration files on Windows. > (Except from letting Lazarus create them automatically based on the > path, as described above. Or create them manually, or use fpcmkcfg... > well... damn..) Calling fpcmkcfg for all provided compilers is part of the procedure for my snapshots anyway - if there is a way to generate one for fppkg as well, I'll be happy to include that. > Or, maybe, just wait for a better solution. Will do. Non-actionable messages are just always bugging me ;-) -- Regards, Martok From florian at freepascal.org Fri Jan 4 12:08:56 2019 From: florian at freepascal.org (=?UTF-8?Q?Florian_Kl=c3=a4mpfl?=) Date: Fri, 4 Jan 2019 12:08:56 +0100 Subject: [Lazarus] Auto session store etc. Message-ID: Is there any possibility that lazarus auto stores the current session (project file, source files, session information etc.) every xxxx s? Background is that I am starting another trial to use linux as desktop system but within in a few days I have already lost changes because lazarus was just killed on shutdown (well, actually I would prefer to have linux just hibernating instead of shutdown, but this is another story). Furthermore, is there any option to store the green bars which indicate changed sources between different runs of lazarus? From nc-gaertnma at netcologne.de Fri Jan 4 12:32:49 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Fri, 4 Jan 2019 12:32:49 +0100 Subject: [Lazarus] Auto session store etc. In-Reply-To: References: Message-ID: <20190104123249.01dce3eb@limapholos.matflo.wg> On Fri, 4 Jan 2019 12:08:56 +0100 Florian Klämpfl via lazarus wrote: > Is there any possibility that lazarus auto stores the current session > (project file, source files, session information etc.) every xxxx s? No. A simple save is easy to implement. But there are some cases which makes it difficult in general: - If it would trigger a normal "save all" and you have just created some new files or are in the middle of a refactoring you will get suddenly save and message dialogs. I personally would hate that interruption. - I often open a file, change something and save it as another name. An autosave would play havoc here. - It would be better if the autosave would save the changed files in a separate location (e.g. .lazarus/autosave), which can then be restored on next start. But that requires some more work. > Background is that I am starting another trial to use linux as > desktop system but within in a few days I have already lost changes > because lazarus was just killed on shutdown (well, actually I would > prefer to have linux just hibernating instead of shutdown, but this > is another story). > > Furthermore, is there any option to store the green bars which > indicate changed sources between different runs of lazarus? Wouldn't that accumulate over time so that everything becomes green? You need some "reset". Mattias From henry.vermaak at gmail.com Fri Jan 4 12:43:23 2019 From: henry.vermaak at gmail.com (Henry Vermaak) Date: Fri, 4 Jan 2019 11:43:23 +0000 Subject: [Lazarus] Auto session store etc. In-Reply-To: References: Message-ID: <20190104114323.GA3571@technical09.Axicon2.local> On Fri, Jan 04, 2019 at 12:08:56PM +0100, Florian Klämpfl via lazarus wrote: > Is there any possibility that lazarus auto stores the current session > (project file, source files, session information etc.) every xxxx s? At the very least do an emergency save on SIGTERM and provide the option to restore the session. Henry From florian at freepascal.org Fri Jan 4 12:58:15 2019 From: florian at freepascal.org (=?UTF-8?Q?Florian_Kl=c3=a4mpfl?=) Date: Fri, 4 Jan 2019 12:58:15 +0100 Subject: [Lazarus] Auto session store etc. In-Reply-To: <20190104114323.GA3571@technical09.Axicon2.local> References: <20190104114323.GA3571@technical09.Axicon2.local> Message-ID: <1db0032c-588d-35db-1a14-841b39595d58@freepascal.org> Am 04.01.19 um 12:43 schrieb Henry Vermaak via lazarus: > On Fri, Jan 04, 2019 at 12:08:56PM +0100, Florian Klämpfl via lazarus wrote: >> Is there any possibility that lazarus auto stores the current session >> (project file, source files, session information etc.) every xxxx s? > > At the very least do an emergency save on SIGTERM and provide the option > to restore the session. This would be also an option. I don't know how linux desktop programs have to behave on shutdown (regular, by the shutdown button in the menu), but at least it may not result in a lose of unsaved work. From michael at freepascal.org Fri Jan 4 12:59:04 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Fri, 4 Jan 2019 12:59:04 +0100 (CET) Subject: [Lazarus] Auto session store etc. In-Reply-To: <20190104123249.01dce3eb@limapholos.matflo.wg> References: <20190104123249.01dce3eb@limapholos.matflo.wg> Message-ID: On Fri, 4 Jan 2019, Mattias Gaertner via lazarus wrote: > On Fri, 4 Jan 2019 12:08:56 +0100 > Florian Klämpfl via lazarus wrote: > >> Is there any possibility that lazarus auto stores the current session >> (project file, source files, session information etc.) every xxxx s? > > No. > > A simple save is easy to implement. But there are some cases which > makes it difficult in general: > > - If it would trigger a normal "save all" and you have just created > some new files or are in the middle of a refactoring you will get > suddenly save and message dialogs. I personally would hate that > interruption. > - I often open a file, change something and save it as another > name. An autosave would play havoc here. > - It would be better if the autosave would save the changed files in a > separate location (e.g. .lazarus/autosave), which can then be > restored on next start. But that requires some more work. Well, to my big relief, I discovered that Atom does this. It saves files that were opened but never saved. Next time I opened the project, even the unsaved files were there. So I am all for this 'more work' :) Michael. From florian at freepascal.org Fri Jan 4 13:00:54 2019 From: florian at freepascal.org (=?UTF-8?Q?Florian_Kl=c3=a4mpfl?=) Date: Fri, 4 Jan 2019 13:00:54 +0100 Subject: [Lazarus] Auto session store etc. In-Reply-To: <20190104123249.01dce3eb@limapholos.matflo.wg> References: <20190104123249.01dce3eb@limapholos.matflo.wg> Message-ID: <68c1b61c-628e-190f-44e5-fd486adc03f8@freepascal.org> Am 04.01.19 um 12:32 schrieb Mattias Gaertner via lazarus: > On Fri, 4 Jan 2019 12:08:56 +0100 > Florian Klämpfl via lazarus wrote: > >> Is there any possibility that lazarus auto stores the current session >> (project file, source files, session information etc.) every xxxx s? > > No. > > A simple save is easy to implement. But there are some cases which > makes it difficult in general: > > - If it would trigger a normal "save all" and you have just created > some new files or are in the middle of a refactoring you will get > suddenly save and message dialogs. I personally would hate that > interruption. > - I often open a file, change something and save it as another > name. An autosave would play havoc here. > - It would be better if the autosave would save the changed files in a > separate location (e.g. .lazarus/autosave), which can then be > restored on next start. But that requires some more work. Well, yes. But one cannot have everything ;) I would be happy with a primitive solution which prevents losing work. > > >> Background is that I am starting another trial to use linux as >> desktop system but within in a few days I have already lost changes >> because lazarus was just killed on shutdown (well, actually I would >> prefer to have linux just hibernating instead of shutdown, but this >> is another story). >> >> Furthermore, is there any option to store the green bars which >> indicate changed sources between different runs of lazarus? > > Wouldn't that accumulate over time so that everything becomes green? > You need some "reset". By just closing the source code tab? From rogmartins at gmail.com Fri Jan 4 13:48:04 2019 From: rogmartins at gmail.com (=?UTF-8?Q?Rog=C3=A9rio_Martins?=) Date: Fri, 4 Jan 2019 10:48:04 -0200 Subject: [Lazarus] Download and Upload in fpweb application Message-ID: Hi Could anyone show exemples of uploading and downloading files in a web application made with fpweb ( cgi ) ? Thanks -- The Ubuntu Counter Project - user number # 33192 -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Fri Jan 4 13:51:36 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Fri, 4 Jan 2019 13:51:36 +0100 (CET) Subject: [Lazarus] Download and Upload in fpweb application In-Reply-To: References: Message-ID: On Fri, 4 Jan 2019, Rogério Martins via lazarus wrote: > Hi > > Could anyone show exemples of uploading and downloading files in a web > application made with fpweb ( cgi ) ? > see the examples: packages/fcl-web/examples/ example: fptemplate/fileupload/ The code to handle the actual upload is in: fptemplate/fileupload/webmodule/webmodule.pas See routine TFPWebModule1.HandleUploadedFiles. Michael. From giuliano.colla at fastwebnet.it Fri Jan 4 14:01:19 2019 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Fri, 4 Jan 2019 14:01:19 +0100 Subject: [Lazarus] Auto session store etc. In-Reply-To: References: Message-ID: Il 04/01/2019 12:08, Florian Klämpfl via lazarus ha scritto: > Is there any possibility that lazarus auto stores the current session > (project file, source files, session information etc.) every xxxx s? > > Background is that I am starting another trial to use linux as desktop > system but within in a few days I have already lost changes because > lazarus was just killed on shutdown (well, actually I would prefer to > have linux just hibernating instead of shutdown, but this is another > story). > > Furthermore, is there any option to store the green bars which > indicate changed sources between different runs of lazarus? I'm using linux as my desktop (and laptop) system since a very long time. Basically I never use shutdown, except for a kernel or libc update. I just leave my desktop linux running, and either suspend or hibernate my laptop. Depending of the combination of your platform, your distro, and the Desktop you're using, you may have available both a "suspend to ram" (only if it is a laptop with battery) and a "hibernate" (=suspend to disk). But you must pick up a good distro, within the distro select a stable and tested version (the latest version is always a lottery), and select a good Desktop. Or you may resort to command-line, which is less subject to Desktop environment bugs: depending on distro and kernel you may have available /pm-suspend/ and /pm-hibernate/ or /systemctl suspend/ and /systemctl hibernate. /If it doesn't wake up properly, you may need to google to find out the quirks required for your specific hardware. As far as Lazarus is concerned, everything relevant is saved each time you compile (or attempt to compile) your application. Just hit F9 and you're done. You may easily check and tune your behaviour: if, when trying to quit Lazarus, a dialogue shows "Save changes to project xxxx?" it means that some changes will be lost by a kill, if it doesn't show, it means that all relevant changes have already been saved, and that a kill wouldn't do any harm. Giuliano -- Do not do to others as you would have them do to you.They might have different tastes. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglists at geldenhuys.co.uk Fri Jan 4 14:05:39 2019 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Fri, 4 Jan 2019 13:05:39 +0000 Subject: [Lazarus] Auto session store etc. In-Reply-To: References: <20190104123249.01dce3eb@limapholos.matflo.wg> Message-ID: On 04/01/2019 11:59, Michael Van Canneyt via lazarus wrote: > Well, to my big relief, I discovered that Atom does this. EditPad Pro and jEdit also does that. Seems it is a more popular feature than first expected. ;-) >From the book "About Face 3: The Essentials of Interaction Design" (not a direct quote): Editors and most programs shouldn't even need an explicit Save menu option. If they auto-save everything - combined with an Undo feature - that's all that is needed. Why bother the end-user then with an explicit Save. Many mobile apps already implement this behaviour with great success. > So I am all for this 'more work' :) +1 Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From mailinglists at geldenhuys.co.uk Fri Jan 4 14:07:33 2019 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Fri, 4 Jan 2019 13:07:33 +0000 Subject: [Lazarus] Auto session store etc. In-Reply-To: <20190104114323.GA3571@technical09.Axicon2.local> References: <20190104114323.GA3571@technical09.Axicon2.local> Message-ID: On 04/01/2019 11:43, Henry Vermaak via lazarus wrote: > At the very least do an emergency save on SIGTERM and provide the option > to restore the session. That's a very good idea. Regards, Graeme From pascaldragon at googlemail.com Fri Jan 4 14:26:27 2019 From: pascaldragon at googlemail.com (Sven Barth) Date: Fri, 4 Jan 2019 14:26:27 +0100 Subject: [Lazarus] Auto session store etc. In-Reply-To: <68c1b61c-628e-190f-44e5-fd486adc03f8@freepascal.org> References: <20190104123249.01dce3eb@limapholos.matflo.wg> <68c1b61c-628e-190f-44e5-fd486adc03f8@freepascal.org> Message-ID: Am Fr., 4. Jan. 2019, 13:01 hat Florian Klämpfl via lazarus < lazarus at lists.lazarus-ide.org> geschrieben: > > > > > >> Background is that I am starting another trial to use linux as > >> desktop system but within in a few days I have already lost changes > >> because lazarus was just killed on shutdown (well, actually I would > >> prefer to have linux just hibernating instead of shutdown, but this > >> is another story). > >> > >> Furthermore, is there any option to store the green bars which > >> indicate changed sources between different runs of lazarus? > > > > Wouldn't that accumulate over time so that everything becomes green? > > You need some "reset". > > By just closing the source code tab? > Somehow I have the feeling what you really need is "show changed lines in regard to version control system" :P (at least that's what I would need...) Regards, Sven > -------------- next part -------------- An HTML attachment was scrubbed... URL: From florian at freepascal.org Fri Jan 4 14:27:15 2019 From: florian at freepascal.org (=?UTF-8?Q?Florian_Kl=c3=a4mpfl?=) Date: Fri, 4 Jan 2019 14:27:15 +0100 Subject: [Lazarus] Auto session store etc. In-Reply-To: References: Message-ID: <03286e16-9437-f610-eb09-4d589509505f@freepascal.org> Am 04.01.19 um 14:01 schrieb Giuliano Colla via lazarus: > But you must pick up a good distro, within the distro select a > stable and tested version (the latest version is always a lottery), and > select a good Desktop. If there had been one (seems Ubuntu and derivatives removed hibernation (!!, remember, we are in 2018, not 1998) in 18.04, I didn't ask about this feature. > > As far as Lazarus is concerned, everything relevant is saved each time > you compile (or attempt to compile) your application. Just hit F9 and > you're done. Well, when working on the compiler, I often do not compile for hours, but meanwhile I found the AutoSave package for Lazarus which prevents at least the worst case scenarios. > You may easily check and tune your behaviour: It is also about X crashes and so on (and I do not like to adapt my behavior :)). From michael at freepascal.org Fri Jan 4 14:33:39 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Fri, 4 Jan 2019 14:33:39 +0100 (CET) Subject: [Lazarus] Auto session store etc. In-Reply-To: References: <20190104123249.01dce3eb@limapholos.matflo.wg> Message-ID: On Fri, 4 Jan 2019, Graeme Geldenhuys via lazarus wrote: > On 04/01/2019 11:59, Michael Van Canneyt via lazarus wrote: >> Well, to my big relief, I discovered that Atom does this. > > EditPad Pro and jEdit also does that. Seems it is a more popular feature > than first expected. ;-) > > > From the book "About Face 3: The Essentials of Interaction Design" (not > a direct quote): > > Editors and most programs shouldn't even need an explicit Save menu > option. If they auto-save everything - combined with an Undo feature > - that's all that is needed. Why bother the end-user then with an > explicit Save. Many mobile apps already implement this behaviour with > great success. I read that too. But here I don't agree 100%. Of course you need an explicit 'save' for an editor. You need to give a name to your file. And what if I want to rename my file ? Imagine every editor just auto saves under Documents with a GUID as a name. Or you need to memorize the filesystem iNode of the document. That would become messy :) Michael. From florian at freepascal.org Fri Jan 4 14:37:32 2019 From: florian at freepascal.org (=?UTF-8?Q?Florian_Kl=c3=a4mpfl?=) Date: Fri, 4 Jan 2019 14:37:32 +0100 Subject: [Lazarus] Auto session store etc. In-Reply-To: References: <20190104123249.01dce3eb@limapholos.matflo.wg> <68c1b61c-628e-190f-44e5-fd486adc03f8@freepascal.org> Message-ID: Am 04.01.19 um 14:26 schrieb Sven Barth via lazarus: > Am Fr., 4. Jan. 2019, 13:01 hat Florian Klämpfl via lazarus > > > geschrieben: > > > > > > >> Background is that I am starting another trial to use linux as > >> desktop system but within in a few days I have already lost changes > >> because lazarus was just killed on shutdown (well, actually I would > >> prefer to have linux just hibernating instead of shutdown, but this > >> is another story). > >> > >> Furthermore, is there any option to store the green bars which > >> indicate changed sources between different runs of lazarus? > > > > Wouldn't that accumulate over time so that everything becomes green? > > You need some "reset". > > By just closing the source code tab? > > > Somehow I have the feeling what you really need is "show changed lines > in regard to version control system" :P (at least that's what I would > need...) Well, yes. But till next christmas it's a long time ;) From michael at freepascal.org Fri Jan 4 14:42:09 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Fri, 4 Jan 2019 14:42:09 +0100 (CET) Subject: [Lazarus] Auto session store etc. In-Reply-To: References: <20190104123249.01dce3eb@limapholos.matflo.wg> <68c1b61c-628e-190f-44e5-fd486adc03f8@freepascal.org> Message-ID: On Fri, 4 Jan 2019, Florian Klämpfl via lazarus wrote: > Am 04.01.19 um 14:26 schrieb Sven Barth via lazarus: >> Am Fr., 4. Jan. 2019, 13:01 hat Florian Klämpfl via lazarus >> > >> geschrieben: >> >> > >> > >> >> Background is that I am starting another trial to use linux as >> >> desktop system but within in a few days I have already lost changes >> >> because lazarus was just killed on shutdown (well, actually I would >> >> prefer to have linux just hibernating instead of shutdown, but this >> >> is another story). >> >> >> >> Furthermore, is there any option to store the green bars which >> >> indicate changed sources between different runs of lazarus? >> > >> > Wouldn't that accumulate over time so that everything becomes green? >> > You need some "reset". >> >> By just closing the source code tab? >> >> >> Somehow I have the feeling what you really need is "show changed lines >> in regard to version control system" :P (at least that's what I would >> need...) > > Well, yes. But till next christmas it's a long time ;) Again something that Atom has :) In general, the git integration of Atom is the easiest to use that I've seen yet... Michael. From fpc at pascalprogramming.org Fri Jan 4 16:33:15 2019 From: fpc at pascalprogramming.org (Marco van de Voort) Date: Fri, 4 Jan 2019 16:33:15 +0100 Subject: [Lazarus] Auto session store etc. In-Reply-To: References: <20190104123249.01dce3eb@limapholos.matflo.wg> Message-ID: Op 2019-01-04 om 14:05 schreef Graeme Geldenhuys via lazarus: > EditPad Pro and jEdit also does that. Seems it is a more popular feature > than first expected. ;-) > > > From the book "About Face 3: The Essentials of Interaction Design" (not > a direct quote): > > Editors and most programs shouldn't even need an explicit Save menu > option. If they auto-save everything - combined with an Undo feature > - that's all that is needed. Why bother the end-user then with an > explicit Save. Many mobile apps already implement this behaviour with > great success. Unfortunately the undo is often only for the session. From giuliano.colla at fastwebnet.it Fri Jan 4 21:11:47 2019 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Fri, 4 Jan 2019 21:11:47 +0100 Subject: [Lazarus] Auto session store etc. In-Reply-To: <03286e16-9437-f610-eb09-4d589509505f@freepascal.org> References: <03286e16-9437-f610-eb09-4d589509505f@freepascal.org> Message-ID: <495e7989-400f-6891-2b11-3f161270ec0c@fastwebnet.it> Il 04/01/2019 14:27, Florian Klämpfl via lazarus ha scritto: > If there had been one (seems Ubuntu and derivatives removed > hibernation (!!, remember, we are in 2018, not 1998) in 18.04, I > didn't ask about this feature. With a good distro I didn't mean Ubuntu, which is the opposite of what a software developer needs. It is intended for non-technical end users. It makes it very easy to get multimedia software, and very hard to administer the system, and tune it to your needs. It's the best choice for my wife, but my current choice is CentOs. I don't know what will happen in future, with IBM having bought Red Hat (for 34 billion $!!!). However if you want to enable hibernate in Ubuntu 18.04, you may find useful help here: http://ubuntuhandbook.org/index.php/2018/05/add-hibernate-option-ubuntu-18-04/ Giuliano -- Do not do to others as you would have them do to you.They might have different tastes. From wkitty42 at windstream.net Fri Jan 4 21:18:11 2019 From: wkitty42 at windstream.net (wkitty42 at windstream.net) Date: Fri, 4 Jan 2019 15:18:11 -0500 Subject: [Lazarus] Auto session store etc. In-Reply-To: References: <20190104123249.01dce3eb@limapholos.matflo.wg> Message-ID: <27ab9acd-36df-a771-18bb-8222bddb3b42@windstream.net> On 1/4/19 10:33 AM, Marco van de Voort via lazarus wrote: > Unfortunately the undo is often only for the session. that information can also be saved so that it persists between front-to-back sessions... it could also be saved as part of the project data so that it is specific to that one project and it's files... -- 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 michael at freepascal.org Sat Jan 5 13:42:20 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Sat, 5 Jan 2019 13:42:20 +0100 (CET) Subject: [Lazarus] SSL socket support rework & HTTPS support in FPC HTTP Server. Message-ID: Hello, I've reworked the SSL support of the FPC native sockets support. It is now pluggable, which means you don't need OpenSSL any more. This also means that from now on you must add "opensslsockets" to the uses clause of your program if you want to compile in OpenSSL support. By default, no SSL support is compiled in, and you will get an error whenever you attempt to use SSL if you did not add this unit to your uses clause. I intend to commit a Gnu TLS implementation of SSL sockets support later today. When that is committed, you will have the choice. You could make it even a run-time choice if you so desire, all libraries are loaded dynamically. I have also deprecated the use of AnsiString as memory buffers, it now uses TBytes everywhere. (To avoid possible encoding conversion problems) At the same time, I have added support for SSL to the FPC HTTP Server. So it is now possible to create a FPC HTTP Server that supports SSL. The simpleserver example has been changed to show how it works. It can work with certificate files on disk (self-signed or not) or the http server can generate a self-signed certificate when it starts, which will then be used throughout the lifetime of the server. Michael. From pascaldragon at googlemail.com Sat Jan 5 15:04:42 2019 From: pascaldragon at googlemail.com (Sven Barth) Date: Sat, 5 Jan 2019 15:04:42 +0100 Subject: [Lazarus] SSL socket support rework & HTTPS support in FPC HTTP Server. In-Reply-To: References: Message-ID: Am Sa., 5. Jan. 2019, 13:42 hat Michael Van Canneyt via lazarus < lazarus at lists.lazarus-ide.org> geschrieben: > > Hello, > > I've reworked the SSL support of the FPC native sockets support. > It is now pluggable, which means you don't need OpenSSL any more. > Awesome! Say, is it possible to switch an existing Socket over to SSL? (I know that it is in principle possible, but I wonder whether we have the API for it) An example would be XMPP which starts unencrypted, but then switches the same socket over to encrypted when both sides agree. Regards, Sven > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Sat Jan 5 15:08:03 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Sat, 5 Jan 2019 15:08:03 +0100 (CET) Subject: [Lazarus] SSL socket support rework & HTTPS support in FPC HTTP Server. In-Reply-To: References: Message-ID: On Sat, 5 Jan 2019, Sven Barth via lazarus wrote: > Am Sa., 5. Jan. 2019, 13:42 hat Michael Van Canneyt via lazarus < > lazarus at lists.lazarus-ide.org> geschrieben: > >> >> Hello, >> >> I've reworked the SSL support of the FPC native sockets support. >> It is now pluggable, which means you don't need OpenSSL any more. >> > > Awesome! > > Say, is it possible to switch an existing Socket over to SSL? (I know that > it is in principle possible, but I wonder whether we have the API for it) > An example would be XMPP which starts unencrypted, but then switches the > same socket over to encrypted when both sides agree. Yes, this should be possible. The handshake is a separate call, which can be done at any time. Michael. From michael at freepascal.org Sat Jan 5 19:25:24 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Sat, 5 Jan 2019 19:25:24 +0100 (CET) Subject: [Lazarus] [fpc-devel] SSL socket support rework & HTTPS support in FPC HTTP Server. In-Reply-To: References: Message-ID: On Sat, 5 Jan 2019, Ozz Nixon wrote: > I am glad to hear this... last night, I actually came across my last > release of DXSock Server Development Suite source. Is it possible for me to > donate my source to the FPC and Lazarus project with two stipulations? > 1. Naming of the Code stays the same (c) and author... and the source > cannot be used with the Delphi compiler. > 2. Any commercial products built with it requires a license of the source > for $99 a year. Although I personally am of course interested in seeing a powerful sockets suite distributed in FPC, I'm afraid we cannot start distributing things which have 'special' licensing conditions. However, what you could try to do is add it to the lazarus online package manager system. (or, when Joost is finished, the fppkg based one.) Michael. From sysrpl at gmail.com Sun Jan 6 04:59:10 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Sat, 5 Jan 2019 22:59:10 -0500 Subject: [Lazarus] Tell me, does this application exist? Message-ID: I was kicking around and idea related to pairing a multiple desktop platforms with an Android tablet. Could you guys tell me if anyone has designed an application like I am about to describe? I am thinking about a two part application that pairs your desktop computer with an Android tablet. The pairing allows users to use their Android tablet as a live preview and drawing surface for applications running on their desktop computer. The intent is to provide better drawing and painting for desktop applications such as Krita, Gimp, Inkscape, and other applications by hosting a service on the desktop computer that forwards an image of the drawing surface on the desktop computer to an Android tablet, and translating touch or stylus strokes on the tablet to native commands in Krita, Gimp, Inkscape or other desktop programs. Translated commands might change the active layer, brush size, opacity, active tool (smear, clone stamp, airbrush, and so on) as well as stroke data (drawing, erasing, and such). The part that is the desktop service would be designed to support a list of specific applications such as Krita, Gimp, Inkscape and so on (obviously this list could be expanded). The part that is the Android tablet application would connect to the desktop service and display what it is told by the desktop service, and also forward stylus input to the desktop service. -------------- next part -------------- An HTML attachment was scrubbed... URL: From skalogryz.lists at gmail.com Sun Jan 6 05:01:57 2019 From: skalogryz.lists at gmail.com (Dmitry Boyarintsev) Date: Sat, 5 Jan 2019 23:01:57 -0500 Subject: [Lazarus] Tell me, does this application exist? In-Reply-To: References: Message-ID: On Sat, Jan 5, 2019 at 10:59 PM Anthony Walter via lazarus < lazarus at lists.lazarus-ide.org> wrote: > The part that is the desktop service would be designed to support a list > of specific applications such as Krita, Gimp, Inkscape and so on (obviously > this list could be expanded). > > The part that is the Android tablet application would connect to the > desktop service and display what it is told by the desktop service, and > also forward stylus input to the desktop service. > https://play.google.com/store/apps/details?id=com.adobe.psmobile&hl=en_US -------------- next part -------------- An HTML attachment was scrubbed... URL: From sysrpl at gmail.com Sun Jan 6 07:31:06 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Sun, 6 Jan 2019 01:31:06 -0500 Subject: [Lazarus] Tell me, does this application exist? In-Reply-To: References: Message-ID: Thanks for the link, but that's not at all the same. That's is just a mobile version of a desktop application. What I was attempting to describe is a tablet application that provides a specialized input view to a desktop application using an android tablet. A tablet application that provides a adapted view and means to control an instance of Krita (or Gimp, or Inkscape, ect) running on your desktop. And I was thinking the means to do this would be through a desktop service (written using Free Pascal and Lazarus) that translates tablet input into commands specific to Krita, or Gimp, and also feeds the tablet with view data (what to display on the tablet as you work). -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug at moosemail.net Sun Jan 6 13:59:01 2019 From: doug at moosemail.net (DougC) Date: Sun, 06 Jan 2019 07:59:01 -0500 Subject: [Lazarus] Tell me, does this application exist? In-Reply-To: References: Message-ID: <168233ec0ca.11586e7c0168847.3262971608795862844@moosemail.net> Anthony- Never heard of such an app. However, I'd like to ask: What is the problem this app is designed to solve? Doug C. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gabor at poczta.onet.pl Sun Jan 6 14:24:14 2019 From: gabor at poczta.onet.pl (gabor) Date: Sun, 6 Jan 2019 14:24:14 +0100 Subject: [Lazarus] Tell me, does this application exist? In-Reply-To: References: Message-ID: <3c48a66d-a319-34fb-4c72-b81942b40a77@poczta.onet.pl> Maybe RFB/VNC/RDP/X11 or something similar will be enough? https://play.google.com/store/apps/details?id=com.realvnc.viewer.android https://play.google.com/store/apps/details?id=x.org.server https://play.google.com/store/apps/details?id=com.microsoft.rdc.android W dniu 2019-01-06 o 04:59, Anthony Walter via lazarus pisze: > I was kicking around and idea related to pairing a multiple desktop > platforms with an Android tablet. Could you guys tell me if anyone has > designed an application like I am about to describe? > > I am thinking about a two part application that pairs your desktop > computer with an Android tablet. The pairing allows users to use their > Android tablet as a live preview and drawing surface for applications > running on their desktop computer. > > The intent is to provide better drawing and painting for desktop > applications such as Krita, Gimp, Inkscape, and other applications by > hosting a service on the desktop computer that forwards an image of the > drawing surface on the desktop computer to an Android tablet, and > translating touch or stylus strokes on the tablet to native commands in > Krita, Gimp, Inkscape or other desktop programs. Translated commands > might change the active layer, brush size, opacity, active tool (smear, > clone stamp, airbrush, and so on) as well as stroke data (drawing, > erasing, and such). > > The part that is the desktop service would be designed to support a list > of specific applications such as Krita, Gimp, Inkscape and so on > (obviously this list could be expanded). > > The part that is the Android tablet application would connect to the > desktop service and display what it is told by the desktop service, and > also forward stylus input to the desktop service. > From wkitty42 at windstream.net Sun Jan 6 15:17:26 2019 From: wkitty42 at windstream.net (wkitty42 at windstream.net) Date: Sun, 6 Jan 2019 09:17:26 -0500 Subject: [Lazarus] Tell me, does this application exist? In-Reply-To: References: Message-ID: <561b847a-297b-03e6-87c8-b4447eee22da@windstream.net> On 1/6/19 1:31 AM, Anthony Walter via lazarus wrote: > What I was attempting to describe is a tablet application that provides a > specialized input view to a desktop application using an android tablet. so in the most simple terms, you are wanting to use a tablet as a digitizer for a desktop system, right? -- 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 sysrpl at gmail.com Sun Jan 6 15:29:52 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Sun, 6 Jan 2019 09:29:52 -0500 Subject: [Lazarus] Tell me, does this application exist? In-Reply-To: <561b847a-297b-03e6-87c8-b4447eee22da@windstream.net> References: <561b847a-297b-03e6-87c8-b4447eee22da@windstream.net> Message-ID: wkitty42, Yes, I want to use a tablet as a digitizer for a desktop computer, but with a modification. I want the tablet to be able to have easy access to specific commands for programs, such as change brush shape, size, color, change the active tool, and change options for the active tool. The desktop service application would optimize the flow and interfaces for each desktop application to best suite a tablet (or digitizer) interface. I would like to know if someone has already created this type of application for android tablets and also associated the service interface desktop computers. gabor, No, this would be more than a desktop VNC or screen duplication application. It would provide an simplified and optimized drawing interface to tablets with "tabletized" access to command for commands for Krita, Gimp, Inkscpae, and so on. The layout and usage of commands would be different for each program you are interfacing with based on how the desktop service application decides to best present those applications to a tablet, keeping in mind that the main function of the tablet would be to act as a drawing surface. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sysrpl at gmail.com Sun Jan 6 15:39:07 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Sun, 6 Jan 2019 09:39:07 -0500 Subject: [Lazarus] Tell me, does this application exist? In-Reply-To: <168233ec0ca.11586e7c0168847.3262971608795862844@moosemail.net> References: <168233ec0ca.11586e7c0168847.3262971608795862844@moosemail.net> Message-ID: DougC, This program would essentially give people who use Krita, Gimp, Inkscape and other desktop applications the ability to turn any android device into a drawing tablet for those programs. It would also differ from a digitizer in that the service application can be designed to provide an dynamic interface to these applications that would be better than any digitizers interface, since its view could be programmed to present commands and appear any way possible. I also could imagine designing the desktop service application in such a way that other programmers or even end users could customize the commands and views, and how the commands and view work, which they can see on their tablet. Again, I am just trying to figure out if anyone has created something like this yet, and if not why. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sysrpl at gmail.com Sun Jan 6 15:47:33 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Sun, 6 Jan 2019 09:47:33 -0500 Subject: [Lazarus] Tell me, does this application exist? In-Reply-To: References: <168233ec0ca.11586e7c0168847.3262971608795862844@moosemail.net> Message-ID: It looks like this program is similar: https://www.youtube.com/watch?v=MbKxMEHM7WY But it doesn't seem to translate tablet actions into program commands other than just drawing. Thanks everyone for your feedback. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From listbox at martoks-place.de Sun Jan 6 17:29:12 2019 From: listbox at martoks-place.de (Martok) Date: Sun, 6 Jan 2019 17:29:12 +0100 Subject: [Lazarus] Can't start lazarus trunk In-Reply-To: References: <80f8ee86-b4d4-80ef-b4e4-da74b0a4345a@cnoc.nl> Message-ID: Am 03.01.2019 um 22:27 schrieb Joost van der Sluis via lazarus: > I actually don't know how to create the configuration files on Windows. So, I checked the source, and it seems you actually do ;-) The Lazarus side generates a config if none is found (in a weird place, but that is just GetAppConfigFile being what it is). The problem is in fppkg on the the compiler side. My preferred fix would be also checking the fppkg exe path, because that's where "make install" puts it on windows, i.e.: packages\fppkg\src\pkgoptions.pp:1119: FCompiler:=ExeSearch('fpc'+ExeExt,ExtractFilePath(ParamStr(0)) + PathSeparator + GetEnvironmentVariable('PATH')); The shared config file is still wrong if more than one full platform is installed (not usually done on unices, but that's how the Lazarus Windows installer sets things up -- see also --primary-config-path), but that's a different issue. -- Regards, Martok From zmuogs at gmail.com Sun Jan 6 18:00:54 2019 From: zmuogs at gmail.com (=?UTF-8?Q?Valdas_Jank=c5=abnas?=) Date: Sun, 6 Jan 2019 19:00:54 +0200 Subject: [Lazarus] Unexpected TAChart's axis scaling Message-ID: <5bec1f79-1848-6ecf-9e62-79b4e0c36378@gmail.com> Hello, in Test Project I have a Chart with several LineSeries and one AreaSeries. AutoScaleAxisTransform in each Axis is used. I noticed some unexplainable behavior: - in fig_A you can see Chart in "all is OK" state, - if I do Chart1LineSeries1.Active:=FALSE (this series is tied to Axis #0) then all Axes suddenly expands (see attached fig_B), - if I do Chart.Axis#0.Range.UseMin/Max:=FALSE then all Axes scales to expected range (see attached fig_C). Attached Test Project. Is this a Bug? -- Valdas Jankūnas -------------- next part -------------- A non-text attachment was scrubbed... Name: fig_A.png Type: image/png Size: 19558 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fig_B.png Type: image/png Size: 16517 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fig_C.png Type: image/png Size: 20691 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test_project.zip Type: application/zip Size: 4551 bytes Desc: not available URL: From wkitty42 at windstream.net Sun Jan 6 18:10:14 2019 From: wkitty42 at windstream.net (wkitty42 at windstream.net) Date: Sun, 6 Jan 2019 12:10:14 -0500 Subject: [Lazarus] Tell me, does this application exist? In-Reply-To: References: <561b847a-297b-03e6-87c8-b4447eee22da@windstream.net> Message-ID: <522919b1-dd3e-37fc-1159-62a86b0d7bf7@windstream.net> On 1/6/19 9:29 AM, Anthony Walter via lazarus wrote: > wkitty42, > > Yes, I want to use a tablet as a digitizer for a desktop computer, but with a > modification. I want the tablet to be able to have easy access to specific > commands for programs, such as change brush shape, size, color, change the > active tool, and change options for the active tool. when i last used a digitizer for drawing (shapes/letters on signage vinyl to be cut with a knife plotter), the digitizer we used could be configured with an area for drawing and another area for access to the menus for changing the options... but we didn't do that... instead we used the digitizer like a common mouse. the pointer never had problems accessing any of the menus in the application... where ever the stylus went, the on-screen pointer went... we even stopped using and removed the mice on the workstations that had digitizers because they did the same thing and those users just used the digitizer for all mousing around... it didn't matter if it was in autocad or some other signage related drafting program or outlook or AOL or prodigy or whatever... the digitizer was just a different mouse... > I would like to know if someone has already created this type of application for > android tablets and also associated the service interface desktop computers. i cannot say that i've ever heard of one but i haven't used a digitizer in at least 20 years... to me it is still just a different type of mouse... -- 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 sysrpl at gmail.com Sun Jan 6 18:47:35 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Sun, 6 Jan 2019 12:47:35 -0500 Subject: [Lazarus] Tell me, does this application exist? In-Reply-To: <522919b1-dd3e-37fc-1159-62a86b0d7bf7@windstream.net> References: <561b847a-297b-03e6-87c8-b4447eee22da@windstream.net> <522919b1-dd3e-37fc-1159-62a86b0d7bf7@windstream.net> Message-ID: wkitty42, The other thing a tablet would provide over a digitizer is that it can display an actual image of the work as you draw. Sure people could get used to drawing on a input device while watching their computer monitor, but drawing on a flat paper like device, while seeing their artwork on that same flat surface device would best replicate pen and paper drawing. Additionally, I could see the tablet providing ghosting drawing function while you draw to reduce the lag between the tablet and the desktop computer. That is the user could see his strokes in realtime while the desktop computer (service application) is busying performing work and serving screen updates. This way the work on the tablet would be much more fluid or smooth. Also I found this person searching for the same thing: https://www.youtube.com/watch?v=k7fGkTLAKlA In his summary section the above youtuber answers my original question with a NO, or at least non worth while. He expresses hope that application developers will fix the issues he brings up. Also all the existing applications seem to follow the same model I mentioned, and that is a tablet application which communicates with a special desktop application service. In my opinion this looks like something that may warrant further research with Free Pascal and Lazarus. Again in my opinion they would be the best tools for developing a desktop service application for multiple platforms to handle the command processing and graphical view generation. -------------- next part -------------- An HTML attachment was scrubbed... URL: From werner.pamler at freenet.de Sun Jan 6 18:56:02 2019 From: werner.pamler at freenet.de (Werner Pamler) Date: Sun, 6 Jan 2019 18:56:02 +0100 Subject: [Lazarus] Unexpected TAChart's axis scaling In-Reply-To: <5bec1f79-1848-6ecf-9e62-79b4e0c36378@gmail.com> References: <5bec1f79-1848-6ecf-9e62-79b4e0c36378@gmail.com> Message-ID: <60ec119e-b6cb-e7a2-6723-87b43865f441@freenet.de> Am 06.01.2019 um 18:00 schrieb Valdas Jankūnas via lazarus: > Hello, > > in Test Project I have a Chart with several LineSeries and one > AreaSeries. AutoScaleAxisTransform in each Axis is used. I noticed > some unexplainable behavior: >  - in fig_A you can see Chart in "all is OK" state, >  - if I do Chart1LineSeries1.Active:=FALSE (this series is tied to > Axis #0) then all Axes suddenly expands (see attached fig_B), >  - if I do Chart.Axis#0.Range.UseMin/Max:=FALSE then all Axes scales > to expected range (see attached fig_C). > Attached Test Project. > > Is this a Bug? This is hard to tell from the description alone, there are so many possibilities... You should create a litte project which shows the issue and attach it (please include only source files, .pas, .lfm, .lpi, .lpi, no .exe, .ppu). From zmuogs at gmail.com Sun Jan 6 19:17:28 2019 From: zmuogs at gmail.com (=?UTF-8?Q?Valdas_Jank=c5=abnas?=) Date: Sun, 6 Jan 2019 20:17:28 +0200 Subject: [Lazarus] Unexpected TAChart's axis scaling In-Reply-To: <60ec119e-b6cb-e7a2-6723-87b43865f441@freenet.de> References: <5bec1f79-1848-6ecf-9e62-79b4e0c36378@gmail.com> <60ec119e-b6cb-e7a2-6723-87b43865f441@freenet.de> Message-ID: <8a8ea8c3-45f0-5b8a-fbdb-90929d641a48@gmail.com> 2019-01-06 19:56, Werner Pamler via lazarus rašė: > Am 06.01.2019 um 18:00 schrieb Valdas Jankūnas via lazarus: > > This is hard to tell from the description alone, there are so many possibilities... You should create a litte project which shows the issue and attach it (please include only source files, .pas, .lfm, .lpi, .lpi, no .exe, .ppu). > I attached in my first mail. -- Valdas Jankūnas From joost at cnoc.nl Sun Jan 6 21:11:42 2019 From: joost at cnoc.nl (Joost van der Sluis) Date: Sun, 6 Jan 2019 21:11:42 +0100 Subject: [Lazarus] Can't start lazarus trunk In-Reply-To: References: <80f8ee86-b4d4-80ef-b4e4-da74b0a4345a@cnoc.nl> Message-ID: <05c487db-6e6d-94f6-06e8-d3cb0cb756da@cnoc.nl> Op 06-01-19 om 17:29 schreef Martok via lazarus: > Am 03.01.2019 um 22:27 schrieb Joost van der Sluis via lazarus: >> I actually don't know how to create the configuration files on Windows. > So, I checked the source, and it seems you actually do ;-) Oh, I do know how to do it in code... (b.t.w. if you really want to know how to do it, 'fpcmkcfg -3' and 'fpcmkcfg -4' could help. > The Lazarus side generates a config if none is found (in a weird place, but that > is just GetAppConfigFile being what it is). The problem is in fppkg on the the > compiler side. My preferred fix would be also checking the fppkg exe path, > because that's where "make install" puts it on windows, i.e.: That's more a coincidence. Because all executables are installed into the same location. > packages\fppkg\src\pkgoptions.pp:1119: > FCompiler:=ExeSearch('fpc'+ExeExt,ExtractFilePath(ParamStr(0)) + > PathSeparator + GetEnvironmentVariable('PATH')); That won't work here, because pkgoptions is part of the fppkg-library. In this particular case it will retrieve the path of the Lazarus-executable. > The shared config file is still wrong if more than one full platform is > installed (not usually done on unices, but that's how the Lazarus Windows > installer sets things up -- see also --primary-config-path), but that's a > different issue. That sounds strange, it should use the normal configuration that is used by fpc to allow cross-platform setups? But I'm not sure exactly how the configuration files look like if they are generated this way on Windows. Regards, Joost. From werner.pamler at freenet.de Sun Jan 6 21:57:19 2019 From: werner.pamler at freenet.de (Werner Pamler) Date: Sun, 6 Jan 2019 21:57:19 +0100 Subject: [Lazarus] Unexpected TAChart's axis scaling In-Reply-To: <8a8ea8c3-45f0-5b8a-fbdb-90929d641a48@gmail.com> References: <5bec1f79-1848-6ecf-9e62-79b4e0c36378@gmail.com> <60ec119e-b6cb-e7a2-6723-87b43865f441@freenet.de> <8a8ea8c3-45f0-5b8a-fbdb-90929d641a48@gmail.com> Message-ID: <28665c1a-619b-bc7e-a9a0-e2361cc6a6e8@freenet.de> Am 06.01.2019 um 19:17 schrieb Valdas Jankūnas via lazarus: > I attached in my first mail. Sorry. When I scrolled down I only saw the screenshots. Yes, this looks strange, and it could be a bug - I'll have to investigate. In the meantime you can work around by releasing the Range lock of the axis of the series that you want to deactivate: procedure TForm1.CheckBox1Change(Sender: TObject); begin    Chart1LineSeries1.Active := Checkbox1.Checked;    Chart1.AxisList[Chart1LineSeries1.AxisIndexY].Range.UseMin := Checkbox1.Checked;    Chart1.AxisList[Chart1LineSeries1.AxisIndexY].Range.UseMax := Checkbox1.Checked; end; From listbox at martoks-place.de Tue Jan 8 16:29:36 2019 From: listbox at martoks-place.de (Martok) Date: Tue, 8 Jan 2019 16:29:36 +0100 Subject: [Lazarus] Can't start lazarus trunk In-Reply-To: <05c487db-6e6d-94f6-06e8-d3cb0cb756da@cnoc.nl> References: <80f8ee86-b4d4-80ef-b4e4-da74b0a4345a@cnoc.nl> <05c487db-6e6d-94f6-06e8-d3cb0cb756da@cnoc.nl> Message-ID: Am 06.01.2019 um 21:11 schrieb Joost van der Sluis via lazarus: > That's more a coincidence. Because all executables are installed into > the same location. For some values of "coincidence"... On Windows, fpc lives in the Lazarus dir: Lazarus\fpc\$FPCVer\bin\$HostCPU-$HostOS\ - fpc.exe - fpmkcfg.exe - fppkg.exe - ppc whose $TargetCPU-$TargetOS is $HostCPU-$HostOS - possibly crosscompilers and their binutils Lazarus\fpc\$FPCVer\units\$TargetCPU-$TargetOS\ - .o and .ppu for any possible target One may have other host compilers, although the only useful combination is using native win64 and native win32 compilers in parallel. Both will have their own non-cross-binutils etc. Both paths will have their own fpc.exe -- it's basically having done "make install" with different prefixes. > That won't work here, because pkgoptions is part of the fppkg-library. > In this particular case it will retrieve the path of the Lazarus-executable. Huh? Then can't it just get the Lazarus configured compiler path? I thought that part was in the fppkg binary. > That sounds strange, it should use the normal configuration that is used > by fpc to allow cross-platform setups? But I'm not sure exactly how the > configuration files look like if they are generated this way on Windows. Ah, sorry, I was unclear. If it worked, fppkg would put its configuration in %appdata%\FreePascal\fppkg\, whereas Lazarus would be in %appdata%\lazarus\. On Windows, the FPC installation "belongs to" the Lazarus installation and will be removed/replaced on updates. There may also be more than one of these. I would expect Lazarus to tell fppkg what paths to use when it needs it to rebuild something, because only the running Lazarus instance can know what setup it was told to work with. -- Regards, Martok From dec12 at avidsoft.com.hk Wed Jan 9 08:26:02 2019 From: dec12 at avidsoft.com.hk (Dennis) Date: Wed, 9 Jan 2019 15:26:02 +0800 Subject: [Lazarus] How to increase the font size of the content of Project Inspector Message-ID: <4556a1b5-cc19-9617-eaff-d63c490cc46e@avidsoft.com.hk> I am getting old and my eyes need to use bigger fonts. I cannot find the font size option of Project Inspector anywhere in Lazarus. Please help. Dennis -------------- next part -------------- An HTML attachment was scrubbed... URL: From dec12 at avidsoft.com.hk Wed Jan 9 09:40:47 2019 From: dec12 at avidsoft.com.hk (Dennis) Date: Wed, 9 Jan 2019 16:40:47 +0800 Subject: [Lazarus] Trying FPDebug In-Reply-To: References: <94a1453a-affc-a3a8-c88b-7cdf18388582@ciberpiula.net> Message-ID: <78fff3db-552c-5ecd-8b3a-4c8988f23541@avidsoft.com.hk> Joost van der Sluis via lazarus wrote: > Op 22-11-18 om 11:00 schreef Santiago A. via lazarus: >> >> I would like to fiddle a little with FPdebug, but I'm a little >> confused. I have lazarus 1.8.4 on window 7 32 bits >> >> I have installed the next packages >> >> FpDebug 0.0 >> lazdebuggerfp > > - Once you have installed lazdebuggerfp you have to go to the > IDE-options. (not the package or project options, but the IDE-options) > - Then select 'Debugger' on the left > - Select 'FpDebug internal Dwarf-debugger (beta)' on the right > I downloaded Lazarus 2.1 with FPC 3.0.4 win 64 bit. When I tried to debug with fpdebug, it asked me Which one should I choose? Dennis -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fohhccohhilcefhe.png Type: image/png Size: 6901 bytes Desc: not available URL: From joost at cnoc.nl Wed Jan 9 11:20:31 2019 From: joost at cnoc.nl (Joost van der Sluis) Date: Wed, 9 Jan 2019 11:20:31 +0100 Subject: [Lazarus] Trying FPDebug In-Reply-To: <78fff3db-552c-5ecd-8b3a-4c8988f23541@avidsoft.com.hk> References: <94a1453a-affc-a3a8-c88b-7cdf18388582@ciberpiula.net> <78fff3db-552c-5ecd-8b3a-4c8988f23541@avidsoft.com.hk> Message-ID: <2e79a8a5-8aee-dd2b-7436-711ac54e7081@cnoc.nl> Op 09-01-19 om 09:40 schreef Dennis via lazarus: > > Joost van der Sluis via lazarus wrote: >> Op 22-11-18 om 11:00 schreef Santiago A. via lazarus: >>> >>> I would like to fiddle a little with FPdebug, but I'm a little >>> confused. I have lazarus 1.8.4 on window 7 32 bits >>> >>> I have installed the next packages >>> >>> FpDebug 0.0 >>> lazdebuggerfp >> >> - Once you have installed lazdebuggerfp you have to go to the >> IDE-options. (not the package or project options, but the IDE-options) >> - Then select 'Debugger' on the left >> - Select 'FpDebug internal Dwarf-debugger (beta)' on the right >> > > > I downloaded Lazarus 2.1 with FPC 3.0.4 win 64 bit. > > When I tried to debug with fpdebug, it asked me > > > Which one should I choose? I saw this screen also, and was quite confused. As far as I know fpc uses Dwarf as default now. But Martin probably had a reason to add this. Select -gw3. It basically means that the compiler is allowed to use Dwarf-3 specific functions. (In practice: proper string indexing, so 1-based instead of 0-based.) Older versions of Gdb did not handle those properly. Otoh, it could be that Martin added work-arounds for the string issues with Dwarf-2. But this all has to be tested. ;) So I would say, use the newest version, Dwarf 3, -gw3. Regards, Joost. From lazarus at mfriebe.de Wed Jan 9 12:04:14 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Wed, 9 Jan 2019 12:04:14 +0100 Subject: [Lazarus] Trying FPDebug In-Reply-To: <2e79a8a5-8aee-dd2b-7436-711ac54e7081@cnoc.nl> References: <94a1453a-affc-a3a8-c88b-7cdf18388582@ciberpiula.net> <78fff3db-552c-5ecd-8b3a-4c8988f23541@avidsoft.com.hk> <2e79a8a5-8aee-dd2b-7436-711ac54e7081@cnoc.nl> Message-ID: <685903d9-8255-82ca-0a01-5daa33e6f469@mfriebe.de> On 09/01/2019 11:20, Joost van der Sluis via lazarus wrote: > Op 09-01-19 om 09:40 schreef Dennis via lazarus: >> When I tried to debug with fpdebug, it asked me >> >> Which one should I choose? > > I saw this screen also, and was quite confused. As far as I know fpc > uses Dwarf as default now. But Martin probably had a reason to add this. Fpc 3.0.4 with -g on win 32bit => stabs The IDE makes no assumption what -g means. So it asks. It also asks, if you have no debug info switched on at all. (Despite that is only the project, and packages might have dbg info...) > > Select -gw3. It basically means that the compiler is allowed to use > Dwarf-3 specific functions. (In practice: proper string indexing, so > 1-based instead of 0-based.) Older versions of Gdb did not handle > those properly. New versions of gdb still crash with PAnsiString under dwarf3 (But that  is gdb and off topic) > > Otoh, it could be that Martin added work-arounds for the string issues > with Dwarf-2. But this all has to be tested. ;) Only for cases that can be detected => that is short string AnsiString are handled as pchar => #0 terminated  (there is on diff in the dbg info, so not possible to determine) AnsiString[n] returns 2 results: 0 and 1 based > > So I would say, use the newest version, Dwarf 3, -gw3. Yes Dwarf 3 is recommended for fpdebug (You also get the benefit of identifiers NOT being all uppercased) A few notes: Evaluating of local var and param while paused on procedure/function begin or end line may cause crashes. (especially with Dwarf 3) This applies to Locals/Watches/Evaluate/... views. Currently the problem is know for variable len type data (string/dyn array), including structures containing such types. See https://bugs.freepascal.org/view.php?id=34746 A *workaround *(for currently known cases) is present. (r59895) (Any Dwarf version) Strings and Arrays are limited to a max len of 5000 / 3000. Currently this is not configurable. Sometimes less. Nested arrays are limited to just the first few items. This is partly an "out of mem" protection, and also a limit needed by the lldb-fp debugger for Mac (reading huge mem takes long time) PChar, WideStrings, (maybe AnsiString in Dwarf 2) may be cut off, even if below there max len limit. The Debugger sees WideString as PWideCHar and has to guess how far to look for the terminating #0. The guess is adjusted in steps, and may miss the correct len => For WideString fpc does not yet use the dwarf3 encoding with length. With Dwarf 2 all strings are #0 terminated (strings are pchar). Except shortstring, which are encoded as record, but recognized by fpdebug and displayed correctly. -------------- next part -------------- An HTML attachment was scrubbed... URL: From listbox at martoks-place.de Wed Jan 9 18:27:20 2019 From: listbox at martoks-place.de (Martok) Date: Wed, 9 Jan 2019 18:27:20 +0100 Subject: [Lazarus] Can't start lazarus trunk In-Reply-To: References: Message-ID: Am 03.01.2019 um 00:31 schrieb Joost van der Sluis via lazarus: > Should be fixed. In FPC (added the check if the compiler exists) and in > Lazarus (do not choke on it when an exception occurs) I just found out something else -- the exception also breaks Lazbuild, which, since it doesn't have a GUI, can't do anything about it (by the way - the IDEMessageDialog title is using the wrong string constant). > Error: (lazbuild) An error occured during the initialization of Fppkg: %s. > Check your Fppkg configuration and restart Lazarus to be able to use Fppkg's functionality. > An error occured during the initialization of Fppkg: Could not find a fpc executable in the PATH. > Check your Fppkg configuration and restart Lazarus to be able to use Fppkg's functionality. > LazBuild ist nicht interaktiv, es wird abgebrochen. Lazbuild doesn't even have theoretical facilities to be a fppkg frontend (that is, install the ide package), so that makes no sense at all. It's completely unneeded for building - fpc finds its own fpc.cfg, therefore it would find the units to use. Oh, and unrelated: "fppkg list" just prints an error 404. Wherever that comes from. -- Regards, Martok From bfom at hotmail.com Thu Jan 10 14:39:35 2019 From: bfom at hotmail.com (LazUser) Date: Thu, 10 Jan 2019 06:39:35 -0700 (MST) Subject: [Lazarus] "End of source not found" error in Trunk. In-Reply-To: References: <20180522165441.4d7e8917@limapholos.matflo.wg> Message-ID: <1547127575354-0.post@n3.nabble.com> Finally found a work-around for this obnoxious bug. This code-completion bug has appeared in every source file that DID NOT HAVE a "uses" clause in the implementation section. To stop the "end of source not found" simply place a uses clause in the implementation section of the source file and move one of your units in the interface section (that isn't needed in the interface) down to the uses clause in the implementation section. This has worked every time I've encountered this issue. Where is doesn't work however, is in the project source file...probably since it doesn't have an implementation section. Hopefully, this works for the rest of you...and will help others locate and fix the issue... -- Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/ From michael at freepascal.org Fri Jan 11 11:54:27 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Fri, 11 Jan 2019 11:54:27 +0100 (CET) Subject: [Lazarus] Custom TStrings descendents Message-ID: Hi, Please check the TStrings descendents in lcl/interfaces/qt5/qtobjects.pas (Line 4763) ide/inputhistory.pas (Line 676) components/fpvectorial/docxvectorialwriter.pas (line 414) lcl/interfaces/cocoa/cocoatextedits.pas (line 1146) They are not calling the inherited constructor. As a result, LoadFromFile() will crash, since no default encoding is present. (the default encoding is set in the constructor) Unless you know what you are doing, you must always call the inherited constructor, if there is one. You must give the parent class the chance to initialize itself correctly. It's not because a particular constructor is empty today, that it will be empty tomorrow. Michael. PS. And yes, this requirement *is* Delphi compatible. From carlos70esm at gmail.com Sat Jan 12 19:18:21 2019 From: carlos70esm at gmail.com (Carlos Eduardo S. M.) Date: Sat, 12 Jan 2019 16:18:21 -0200 Subject: [Lazarus] inherited in autocode Message-ID: <9c38b5c9-b547-c9b5-d229-82fe3df034b8@gmail.com> On Fri, 11 Jan 2019 11:54:27 +0100 (CET), Michael Van Canneyt wrote: > Hi, > > Please check the TStrings descendents in > > lcl/interfaces/qt5/qtobjects.pas (Line 4763) > ide/inputhistory.pas (Line 676) > components/fpvectorial/docxvectorialwriter.pas (line 414) > lcl/interfaces/cocoa/cocoatextedits.pas (line 1146) > > They are not calling the inherited constructor. > As a result, LoadFromFile() will crash, since no default encoding is present. > (the default encoding is set in the constructor) > > Unless you know what you are doing, you must always call the inherited constructor, > if there is one. You must give the parent class the chance to initialize itself > correctly. It's not because a particular constructor is empty today, that it will be > empty tomorrow. > > Michael. > > PS. And yes, this requirement*is* Delphi compatible. Hello! What if the line "inherited;" is automatically included when using code completion (C) for constructor, destructor, CreateForm, DestroyForm, etc.? Instead of begin end; it may be begin inherited; end; Carlos Eduardo S. Matuzaki --- Este email foi escaneado pelo Avast antivírus. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartjunk64 at gmail.com Sat Jan 12 21:19:54 2019 From: bartjunk64 at gmail.com (Bart) Date: Sat, 12 Jan 2019 21:19:54 +0100 Subject: [Lazarus] inherited in autocode In-Reply-To: <9c38b5c9-b547-c9b5-d229-82fe3df034b8@gmail.com> References: <9c38b5c9-b547-c9b5-d229-82fe3df034b8@gmail.com> Message-ID: On Sat, Jan 12, 2019 at 7:18 PM Carlos Eduardo S. M. via lazarus wrote: > What if the line "inherited;" is automatically included when using code completion (C) for constructor, destructor, CreateForm, DestroyForm, etc.? Instead of It already does if the method is declared with override. Bart From lazarus at mfriebe.de Sat Jan 12 22:28:59 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Sat, 12 Jan 2019 22:28:59 +0100 Subject: [Lazarus] inherited in autocode In-Reply-To: References: <9c38b5c9-b547-c9b5-d229-82fe3df034b8@gmail.com> Message-ID: <38163032-c75f-1656-7b62-73210b2212da@mfriebe.de> On 12/01/2019 21:19, Bart via lazarus wrote: > On Sat, Jan 12, 2019 at 7:18 PM Carlos Eduardo S. M. via lazarus > wrote: > >> What if the line "inherited;" is automatically included when using code completion (C) for constructor, destructor, CreateForm, DestroyForm, etc.? Instead of > It already does if the method is declared with override. > Just "inherited" for constructors is afaik/iirc a major danger. IIRC It only calls the parent method, if the parent method has the exact same signature. If the call is made from within an "override" method, that is fine, because the override will fail if the parent changes. If your method was re-introduced (maybe without the keyword / effectively hiding the parent), and the parent method changes, the "inherited" compiles (no error, no warning) but it will generate no code. Same for constructors, if the parent constructor changes its argument list, it will no longer be called. That is indented behaviour and apparently Delphi compatible. So always use the fully qualified call "inherited create;" (or with args as needed) From listbox at martoks-place.de Sat Jan 12 22:54:59 2019 From: listbox at martoks-place.de (Martok) Date: Sat, 12 Jan 2019 22:54:59 +0100 Subject: [Lazarus] inherited in autocode In-Reply-To: <38163032-c75f-1656-7b62-73210b2212da@mfriebe.de> References: <9c38b5c9-b547-c9b5-d229-82fe3df034b8@gmail.com> <38163032-c75f-1656-7b62-73210b2212da@mfriebe.de> Message-ID: Am 12.01.2019 um 22:28 schrieb Martin Frb via lazarus: > Same for constructors, if the parent constructor changes its argument > list, it will no longer be called. It does generate code, but it calls *any* inherited constructor that matches the signature: type TA = class constructor Create(extra:Boolean); end; TB = class(TA) constructor Create; end; constructor TA.Create(extra: Boolean); begin inherited Create; WriteLn('TA.Create'); end; constructor TB.Create; begin inherited; // calls TObject.Create! WriteLn('TB.Create'); end; > That is indented behaviour and apparently Delphi compatible. Delphi 2007 fails compilation with "Incompatible Types" when no compatible method of the same name exists, which makes sense. -- Regards, Martok From lazarus at mfriebe.de Sat Jan 12 23:45:19 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Sat, 12 Jan 2019 23:45:19 +0100 Subject: [Lazarus] inherited in autocode In-Reply-To: References: <9c38b5c9-b547-c9b5-d229-82fe3df034b8@gmail.com> <38163032-c75f-1656-7b62-73210b2212da@mfriebe.de> Message-ID: On 12/01/2019 22:54, Martok via lazarus wrote: > Am 12.01.2019 um 22:28 schrieb Martin Frb via lazarus: >> Same for constructors, if the parent constructor changes its argument >> list, it will no longer be called. > It does generate code, but it calls *any* inherited constructor that matches the > signature: > > type > TA = class > constructor Create(extra:Boolean); > end; > TB = class(TA) > constructor Create; > end; > > constructor TA.Create(extra: Boolean); > begin > inherited Create; > WriteLn('TA.Create'); > end; > constructor TB.Create; > begin > inherited; // calls TObject.Create! because TObject has a matching constructor. Imagine it was constructor TB.Create(extra: integer); but was changed it TA. From listbox at martoks-place.de Sun Jan 13 00:47:15 2019 From: listbox at martoks-place.de (Martok) Date: Sun, 13 Jan 2019 00:47:15 +0100 Subject: [Lazarus] inherited in autocode In-Reply-To: References: <9c38b5c9-b547-c9b5-d229-82fe3df034b8@gmail.com> <38163032-c75f-1656-7b62-73210b2212da@mfriebe.de> Message-ID: Am 12.01.2019 um 23:45 schrieb Martin Frb via lazarus: >> inherited; // calls TObject.Create! > because TObject has a matching constructor. Indeed. But in Delphi, "inherited without function name" stops looking after one mismatched argument list (just like override would), so it never gets to TObject. FPC keeps going up the ancestor chain. -- Regards, Martok From md at delfire.net Sun Jan 13 01:09:36 2019 From: md at delfire.net (Marcos Douglas B. Santos) Date: Sat, 12 Jan 2019 22:09:36 -0200 Subject: [Lazarus] inherited in autocode In-Reply-To: References: <9c38b5c9-b547-c9b5-d229-82fe3df034b8@gmail.com> <38163032-c75f-1656-7b62-73210b2212da@mfriebe.de> Message-ID: On Sat, Jan 12, 2019 at 8:45 PM Martin Frb via lazarus wrote: > > On 12/01/2019 22:54, Martok via lazarus wrote: > > Am 12.01.2019 um 22:28 schrieb Martin Frb via lazarus: > >> Same for constructors, if the parent constructor changes its argument > >> list, it will no longer be called. > > It does generate code, but it calls *any* inherited constructor that matches the > > signature: > > > > type > > TA = class > > constructor Create(extra:Boolean); > > end; > > TB = class(TA) > > constructor Create; > > end; > > > > constructor TA.Create(extra: Boolean); > > begin > > inherited Create; > > WriteLn('TA.Create'); > > end; > > constructor TB.Create; > > begin > > inherited; // calls TObject.Create! > because TObject has a matching constructor. > > Imagine it was > > constructor TB.Create(extra: integer); > > but was changed it TA. IMHO, `inherited;` and `inherited Create;` should be the same behavior. I don't use just `inherited;` and it isn't an issue for me, but it looks like an inconsistency on the language. Using the example, both constructors _must_ call TObject.Create because `TA` haven't used `reintroduce` for the constructor. Marcos Douglas From lazarus at mfriebe.de Sun Jan 13 01:36:24 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Sun, 13 Jan 2019 01:36:24 +0100 Subject: [Lazarus] inherited in autocode In-Reply-To: References: <9c38b5c9-b547-c9b5-d229-82fe3df034b8@gmail.com> <38163032-c75f-1656-7b62-73210b2212da@mfriebe.de> Message-ID: <4513714e-5c68-81e6-fe81-69a21fca79a5@mfriebe.de> On 13/01/2019 00:47, Martok via lazarus wrote: > Indeed. But in Delphi, "inherited without function name" stops looking > after one > mismatched argument list (just like override would), so it never gets to TObject. > > FPC keeps going up the ancestor chain. > Well, I was told it was the same https://bugs.freepascal.org/view.php?id=33862 From listbox at martoks-place.de Sun Jan 13 17:21:33 2019 From: listbox at martoks-place.de (Martok) Date: Sun, 13 Jan 2019 17:21:33 +0100 Subject: [Lazarus] inherited in autocode In-Reply-To: <4513714e-5c68-81e6-fe81-69a21fca79a5@mfriebe.de> References: <9c38b5c9-b547-c9b5-d229-82fe3df034b8@gmail.com> <38163032-c75f-1656-7b62-73210b2212da@mfriebe.de> <4513714e-5c68-81e6-fe81-69a21fca79a5@mfriebe.de> Message-ID: Am 13.01.2019 um 01:36 schrieb Martin Frb via lazarus: > Well, I was told it was the same > https://bugs.freepascal.org/view.php?id=33862 Depends on how one reads the Emba Developer's comment. """ In such case, a call to an inherited method may occur if it exists or not if it doesn't. Such a reference is limited to methods with the same name and parameter list *in the parent class* """ (emph. mine) I would read that so that it only looks in *the* parent class, not "any ancestor class". If it finds nothing, it indeed generates no code and no error. As observed, if it finds a matching name with wrong parameter list, an error is raised. Fun Fact: if a matching name and parameter list exists and is virtual abstract, no code will be generated either. This is probably to protect from calls to virtual methods? -- Regards, Martok From listbox at martoks-place.de Sun Jan 13 17:24:02 2019 From: listbox at martoks-place.de (Martok) Date: Sun, 13 Jan 2019 17:24:02 +0100 Subject: [Lazarus] inherited in autocode In-Reply-To: References: <9c38b5c9-b547-c9b5-d229-82fe3df034b8@gmail.com> <38163032-c75f-1656-7b62-73210b2212da@mfriebe.de> <4513714e-5c68-81e6-fe81-69a21fca79a5@mfriebe.de> Message-ID: > This is probably to protect from calls to virtual methods? Sorry, meant to say "protect from calls to abstract methods", specifically from autogenerated code. -- Regards, Martok From aurimenes at gmail.com Mon Jan 14 04:31:43 2019 From: aurimenes at gmail.com (Aurimenes Silva) Date: Mon, 14 Jan 2019 00:31:43 -0300 Subject: [Lazarus] How to increase the font size of the content of Project Inspector In-Reply-To: <4556a1b5-cc19-9617-eaff-d63c490cc46e@avidsoft.com.hk> References: <4556a1b5-cc19-9617-eaff-d63c490cc46e@avidsoft.com.hk> Message-ID: <10df9a4c-755c-0e88-2182-cfbd3449e622@gmail.com> Hi Dennis, how are you doing? Maybe the solution you are looking for is found in this path: Menu Tools > Options (or Shift + Ctrl + O) > Editor > Show I believe this is the path in English as my Lazarus is actually in Portuguese. Good luck! -- *Aurimenes Apolônio Silva* Desenvolvedor de Software Fones: (81) 99935-9066 / 98625-1676 Em 09/01/2019 04:26, Dennis via lazarus escreveu: > I am getting old and my eyes need to use bigger fonts. > I cannot find the font size option of Project Inspector anywhere in > Lazarus. Please help. > > Dennis > -------------- next part -------------- An HTML attachment was scrubbed... URL: From juha.manninen62 at gmail.com Mon Jan 14 10:39:13 2019 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Mon, 14 Jan 2019 11:39:13 +0200 Subject: [Lazarus] How to increase the font size of the content of Project Inspector In-Reply-To: <10df9a4c-755c-0e88-2182-cfbd3449e622@gmail.com> References: <4556a1b5-cc19-9617-eaff-d63c490cc46e@avidsoft.com.hk> <10df9a4c-755c-0e88-2182-cfbd3449e622@gmail.com> Message-ID: It is Tools > Options > Editor > Display but there you can only adjust the font for code editor. The question was about Project Inspector. You cannot adjust the font size for such IDE windows. You can however use the scaling features of your OS. Then all text in all application get bigger. Juha From joost at cnoc.nl Mon Jan 14 20:50:20 2019 From: joost at cnoc.nl (Joost van der Sluis) Date: Mon, 14 Jan 2019 20:50:20 +0100 Subject: [Lazarus] Can't start lazarus trunk In-Reply-To: References: Message-ID: <2b62f28e-c1bf-f22e-f99d-c5da79e3b51a@cnoc.nl> Op 09-01-19 om 18:27 schreef Martok via lazarus: > Lazbuild doesn't even have theoretical facilities to be a fppkg frontend (that > is, install the ide package), so that makes no sense at all. It's completely > unneeded for building - fpc finds its own fpc.cfg, therefore it would find the > units to use. Also LazBuild has the ability to use fppkg. It is not different then compiling from within Lazarus. Regards, Joost. From sysrpl at gmail.com Tue Jan 15 14:38:09 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Tue, 15 Jan 2019 08:38:09 -0500 Subject: [Lazarus] How to increase the font size of the content of Project Inspector In-Reply-To: References: <4556a1b5-cc19-9617-eaff-d63c490cc46e@avidsoft.com.hk> <10df9a4c-755c-0e88-2182-cfbd3449e622@gmail.com> Message-ID: Try doing this: https://cache.getlazarus.org/videos/font-size.mp4 -------------- next part -------------- An HTML attachment was scrubbed... URL: From juha.manninen62 at gmail.com Tue Jan 15 14:44:25 2019 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Tue, 15 Jan 2019 15:44:25 +0200 Subject: [Lazarus] How to increase the font size of the content of Project Inspector In-Reply-To: References: <4556a1b5-cc19-9617-eaff-d63c490cc46e@avidsoft.com.hk> <10df9a4c-755c-0e88-2182-cfbd3449e622@gmail.com> Message-ID: On Tue, Jan 15, 2019 at 3:38 PM Anthony Walter via lazarus wrote: > Try doing this: > https://cache.getlazarus.org/videos/font-size.mp4 Wow, actually it is a very handy addon! Juha From admin at pembrokeshiretalent.com Tue Jan 15 15:48:34 2019 From: admin at pembrokeshiretalent.com (admin-pembrokeshiretalent.com) Date: Tue, 15 Jan 2019 14:48:34 +0000 Subject: [Lazarus] Having Issues with MIDIPACKET using Cocoa Message-ID: <9c126fba67678bdf0c969c08f17d683a@pembrokeshiretalent.com> Hi I am having an issue retrieving midi packets on cocoa, when the packet is triggered the actual packet contains invalid/null data. The same routines on carbon are working fine. I suspect I am doing something wrong for cocoa to work, but I have spent many hrs now trying to track it down, as the adding breakpoints in the callback routine is being Fired and processed, but the data coming in is wrong. Attached sample small project, you need a midi device, click the button list and connect first device, then press a button on midi device/controller to send a midi cc/pc message. On carbon all is ok, on cocoa invalid data. Hope someone has cocoa and a midi controller that can test this, also the send midi data is not working on cocoa. -------------- next part -------------- A non-text attachment was scrubbed... Name: Archive.zip Type: application/zip Size: 72754 bytes Desc: not available URL: From dec12 at avidsoft.com.hk Wed Jan 16 01:38:14 2019 From: dec12 at avidsoft.com.hk (Dennis) Date: Wed, 16 Jan 2019 08:38:14 +0800 Subject: [Lazarus] How to increase the font size of the content of Project Inspector In-Reply-To: References: <4556a1b5-cc19-9617-eaff-d63c490cc46e@avidsoft.com.hk> <10df9a4c-755c-0e88-2182-cfbd3449e622@gmail.com> Message-ID: <0b767123-e629-110b-f25c-b9b7aeec3fcd@avidsoft.com.hk> Anthony Walter via lazarus wrote: > Try doing this: > > https://cache.getlazarus.org/videos/font-size.mp4 > > great! But is "Application Explorer" only available in Lazarus 2.1? Or is it an package I can install on my current Lazarus 1.9.  Where can I get it? Dennis -------------- next part -------------- An HTML attachment was scrubbed... URL: From sysrpl at gmail.com Wed Jan 16 04:41:53 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Tue, 15 Jan 2019 22:41:53 -0500 Subject: [Lazarus] How to increase the font size of the content of Project Inspector In-Reply-To: <0b767123-e629-110b-f25c-b9b7aeec3fcd@avidsoft.com.hk> References: <4556a1b5-cc19-9617-eaff-d63c490cc46e@avidsoft.com.hk> <10df9a4c-755c-0e88-2182-cfbd3449e622@gmail.com> <0b767123-e629-110b-f25c-b9b7aeec3fcd@avidsoft.com.hk> Message-ID: Get it from here: https://github.com/sysrpl/Lazarus.AppExplore To the Lazarus team, consider adding Application Explorer to trunk/components. -------------- next part -------------- An HTML attachment was scrubbed... URL: From crone at cua.edu Thu Jan 17 22:24:29 2019 From: crone at cua.edu (Thomas Crone) Date: Thu, 17 Jan 2019 16:24:29 -0500 Subject: [Lazarus] Unit checksum changed error Message-ID: <38322F36-B946-4202-81AF-A11C0A781EDA@cua.edu> I have 3 run time units. IOBuf, AIFF which 'uses' IOBuf, and PlayMusic which 'uses’ both IOBuf and AIFF The compiele time for IOBuf.o, .ppu is 1:52 PM, for AIFF.om .ppu is 1:56 PM, using IOBu from 1:52 PM Compiling PlayMusic gives an error message: Warning: Recompiling Aiff, checksum changed for IOBuf Playmusic.pas(56,25) Fatal: Cannot find Aiff used by PlayMusic of the Project Insplector. It sounds like it is finding a different checksum on the IOBuf that PlayMusic is using than on the IOBuf that AIFF used. Am I miss interpreting the error message? How do I tell it where to find the AIFF source so it can re-compile it? Tom Crone From pascaldragon at googlemail.com Thu Jan 17 22:46:13 2019 From: pascaldragon at googlemail.com (Sven Barth) Date: Thu, 17 Jan 2019 22:46:13 +0100 Subject: [Lazarus] Unit checksum changed error In-Reply-To: <38322F36-B946-4202-81AF-A11C0A781EDA@cua.edu> References: <38322F36-B946-4202-81AF-A11C0A781EDA@cua.edu> Message-ID: Am 17.01.2019 um 22:24 schrieb Thomas Crone via lazarus: > I have 3 run time units. > IOBuf, AIFF which 'uses' IOBuf, and PlayMusic which 'uses’ both IOBuf and AIFF > > The compiele time for IOBuf.o, .ppu is 1:52 PM, for AIFF.om .ppu is 1:56 PM, using IOBu from 1:52 PM > > Compiling PlayMusic gives an error message: > Warning: Recompiling Aiff, checksum changed for IOBuf > Playmusic.pas(56,25) Fatal: Cannot find Aiff used by PlayMusic of the Project Insplector. > > It sounds like it is finding a different checksum on the IOBuf that PlayMusic is using than on the IOBuf that AIFF used. > > Am I miss interpreting the error message? > > How do I tell it where to find the AIFF source so it can re-compile it? As a first step you could try to add the -vu parameter so that the compiler prints which units it is indeed using, cause this error usually happens if it picks up a stray PPU (just had that situation as well ;) ). In Lazarus you find this option in "Compiler Settings -> Verbosity". Regards, Sven From b_lists at patandbrian.org Fri Jan 18 06:59:59 2019 From: b_lists at patandbrian.org (Brian) Date: Fri, 18 Jan 2019 00:59:59 -0500 Subject: [Lazarus] Strange problem printing from the IDE Message-ID: <2c2f7cbd-26a9-f3b0-8906-3c21a2daaa08@patandbrian.org> HI all, Lazarus 2.0.0RC3, via svn from the fixes_2_0 branch, 64-bit Ubuntu 18 LTS. I'm having a strange problem in printing from the IDE (which I don't do very often) and would be grateful for any ideas. I have two printers available to me, both H-P devices, a small monochrome laserjet which is physically connected to my wife's PC via a USB cable and shared across the network, and an all-in-one type inkjet which is connected wirelessly to the network. All applications I have tried (LibreOffice, Adobe Reader, okular, gedit) will use both printers without a problem except for Lazarus. If I try to print to the wireless inkjet, everything is fine. However, if I try to print to the laser, everything *seems* to be OK from Lazarus, but nothing prints, and if I look at the print queue on my PC the job is there, flagged as "processing", but it just sits there until aborted, blocking the printer from use. I'm not sure whether this is a Lazarus problem or an Ubuntu problem, but since it only occurs when trying to print from the Lazarus IDE, and not from the other four applications, I thought I would ask here first. Thanks, Brian. From leobronstain at gmail.com Fri Jan 18 23:40:15 2019 From: leobronstain at gmail.com (leyba bronstain) Date: Sat, 19 Jan 2019 01:40:15 +0300 Subject: [Lazarus] Problem when installing components on the latest lazarus trunk Message-ID: Hi all. I use lazarus trunk r60103 and fpc trunk r40898. I found that I can't install some components in these revisions. For example, I get such errors: for RicnMemo win32richmemoole.pas(60,23) Error: No matching implementation for interface method "SetData(const tagFORMATETC;var TagSTGMEDIUM;LongBool):LongInt; StdCall;" found for HashLib HlpAdler32.pas(16,14) Error: No matching implementation for interface method "GetBlockSize:LongInt;" found for BGRABitmap bgratextbidi.pas(229,67) Error: Only static methods and static variables can be referenced through an object type But these components are well installed, for example, for lazarus r59890 and fpc r40550. It's a bug? With best regards, Zoltanleo From aaa5500 at ya.ru Sat Jan 19 22:55:40 2019 From: aaa5500 at ya.ru (AlexeyT) Date: Sun, 20 Jan 2019 00:55:40 +0300 Subject: [Lazarus] IDE dlg Go To don't react to Esc key Message-ID: <322d209e-bccb-6090-7de8-f8664a6004de@ya.ru> Dialog must cancel on Esc press, now it doesn't. Latest SVN, Linux gtk2 x64. -- Regards, Alexey From bartjunk64 at gmail.com Sat Jan 19 23:37:50 2019 From: bartjunk64 at gmail.com (Bart) Date: Sat, 19 Jan 2019 23:37:50 +0100 Subject: [Lazarus] IDE dlg Go To don't react to Esc key In-Reply-To: <322d209e-bccb-6090-7de8-f8664a6004de@ya.ru> References: <322d209e-bccb-6090-7de8-f8664a6004de@ya.ru> Message-ID: On Sat, Jan 19, 2019 at 10:55 PM AlexeyT via lazarus wrote: > Dialog must cancel on Esc press, now it doesn't. Latest SVN, Linux gtk2 x64. You mean GotLine dialog (default shoertcut: Ctrl+G)? If so, does it work in r60107? I can't really see how my change influences that (but it's late, so I may be wrong). -- Bart From bartjunk64 at gmail.com Sat Jan 19 23:44:16 2019 From: bartjunk64 at gmail.com (Bart) Date: Sat, 19 Jan 2019 23:44:16 +0100 Subject: [Lazarus] IDE dlg Go To don't react to Esc key In-Reply-To: References: <322d209e-bccb-6090-7de8-f8664a6004de@ya.ru> Message-ID: On Sat, Jan 19, 2019 at 11:37 PM Bart wrote: > You mean GotLine dialog (default shoertcut: Ctrl+G)? > If so, does it work in r60107? Well, that dialog still works fine for me (closes on escape) with the changes of r60108 on Linux Mint 18.2 64-bit/fpc 3.0.4 -- Bart From l at c-m-w.me.uk Mon Jan 21 21:20:25 2019 From: l at c-m-w.me.uk (C Western) Date: Mon, 21 Jan 2019 20:20:25 +0000 Subject: [Lazarus] Oddity in uninstalling packages Message-ID: Just updated to the current trunk where I presume virtual tree view has been added. Starting lazarus (trunk from a few days ago) gives an error message about it not being found, and creates a dummy package. Trying to rebuild lazarus then fails as virtualtreeview is absent. I didn't think I needed it, so I try uninstalling it (double click on the package in the package graph and select uninstall) but it prompts to save a file, which seems very counter-intuitive - I don't want it, so why should I save it? (Allowing the save to proceed and then building again reveals that the package is required by the package manager, and opening the virtual tree view package in the components directory allows the build to proceed.) Colin From crone at cua.edu Mon Jan 21 21:27:45 2019 From: crone at cua.edu (Thomas Crone) Date: Mon, 21 Jan 2019 15:27:45 -0500 Subject: [Lazarus] Unit checksum changed error In-Reply-To: References: <38322F36-B946-4202-81AF-A11C0A781EDA@cua.edu> Message-ID: <6F59C65A-C8C0-4202-8FCF-51202B796D02@cua.edu> When I go To Project/Project Options/Compiler Options/Verbosity and check Show used files (-vu), I get: PlayMusic.pas(56,25) Fatal: Cannot fine Aiff by PlayMusic of the Project Inspector. With it unchecked, I get the error reported below. Tom > On Jan 17, 2019, at 4:46 PM, Sven Barth via lazarus wrote: > > Am 17.01.2019 um 22:24 schrieb Thomas Crone via lazarus: >> I have 3 run time units. >> IOBuf, AIFF which 'uses' IOBuf, and PlayMusic which 'uses’ both IOBuf and AIFF >> >> The compiele time for IOBuf.o, .ppu is 1:52 PM, for AIFF.om .ppu is 1:56 PM, using IOBu from 1:52 PM >> >> Compiling PlayMusic gives an error message: >> Warning: Recompiling Aiff, checksum changed for IOBuf >> Playmusic.pas(56,25) Fatal: Cannot find Aiff used by PlayMusic of the Project Insplector. >> >> It sounds like it is finding a different checksum on the IOBuf that PlayMusic is using than on the IOBuf that AIFF used. >> >> Am I miss interpreting the error message? >> >> How do I tell it where to find the AIFF source so it can re-compile it? > As a first step you could try to add the -vu parameter so that the compiler prints which units it is indeed using, cause this error usually happens if it picks up a stray PPU (just had that situation as well ;) ). In Lazarus you find this option in "Compiler Settings -> Verbosity". > > Regards, > Sven > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus From bartjunk64 at gmail.com Mon Jan 21 22:20:24 2019 From: bartjunk64 at gmail.com (Bart) Date: Mon, 21 Jan 2019 22:20:24 +0100 Subject: [Lazarus] IDE dlg Go To don't react to Esc key In-Reply-To: References: <322d209e-bccb-6090-7de8-f8664a6004de@ya.ru> Message-ID: On Sat, Jan 19, 2019 at 11:44 PM Bart wrote: @AlexeyT: a reaction please? -- Bart From aaa5500 at ya.ru Mon Jan 21 22:58:38 2019 From: aaa5500 at ya.ru (AlexeyT) Date: Tue, 22 Jan 2019 00:58:38 +0300 Subject: [Lazarus] IDE dlg Go To don't react to Esc key In-Reply-To: References: <322d209e-bccb-6090-7de8-f8664a6004de@ya.ru> Message-ID: r60137. fpc 3.0.4. Ubuntu 18.04 gtk2 x64. rebuilt with clean-all. ESC still don't work. (checked on 2 PCs) On 22.01.2019 0:20, Bart via lazarus wrote: > @AlexeyT: a reaction please? -- Regards, Alexey From bartjunk64 at gmail.com Tue Jan 22 18:20:16 2019 From: bartjunk64 at gmail.com (Bart) Date: Tue, 22 Jan 2019 18:20:16 +0100 Subject: [Lazarus] IDE dlg Go To don't react to Esc key In-Reply-To: References: <322d209e-bccb-6090-7de8-f8664a6004de@ya.ru> Message-ID: On Mon, Jan 21, 2019 at 10:58 PM AlexeyT via lazarus wrote: > r60137. fpc 3.0.4. Ubuntu 18.04 gtk2 x64. rebuilt with clean-all. ESC > still don't work. Please answer the questions in my first reply. -- Bart From aaa5500 at ya.ru Tue Jan 22 18:41:34 2019 From: aaa5500 at ya.ru (AlexeyT) Date: Tue, 22 Jan 2019 20:41:34 +0300 Subject: [Lazarus] IDE dlg Go To don't react to Esc key In-Reply-To: References: <322d209e-bccb-6090-7de8-f8664a6004de@ya.ru> Message-ID: <1a027b50-f2c8-4085-3b99-e5775e524e94@ya.ru> Ok: >You mean GotLine dialog (default shoertcut: Ctrl+G)? yes. >If so, does it work in r60107? I don't know, but i retested in later revision. Alex From bartjunk64 at gmail.com Tue Jan 22 18:57:46 2019 From: bartjunk64 at gmail.com (Bart) Date: Tue, 22 Jan 2019 18:57:46 +0100 Subject: [Lazarus] IDE dlg Go To don't react to Esc key In-Reply-To: <1a027b50-f2c8-4085-3b99-e5775e524e94@ya.ru> References: <322d209e-bccb-6090-7de8-f8664a6004de@ya.ru> <1a027b50-f2c8-4085-3b99-e5775e524e94@ya.ru> Message-ID: On Tue, Jan 22, 2019 at 6:41 PM AlexeyT via lazarus wrote: > >If so, does it work in r60107? Please test that, otherwise I have no idea wether my changes causes this. If r60107 works, then please add #27 to the allowed keys in Edit1KeyPress (r60108 or later) and see if that helps. Bart From aaa5500 at ya.ru Wed Jan 23 10:34:28 2019 From: aaa5500 at ya.ru (AlexeyT) Date: Wed, 23 Jan 2019 12:34:28 +0300 Subject: [Lazarus] LazProfiler package cannot install Message-ID: <327d69cd-0b10-0549-6321-899eabe21d15@ya.ru> From OPM. I see prompt about missing dependences, confirmed all, it 'Cannot intall' after compiling dep's. r60156, fpc 3.0.4, Linux x64 gtk2. -- Regards, Alexey From nc-gaertnma at netcologne.de Wed Jan 23 10:43:10 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 23 Jan 2019 10:43:10 +0100 Subject: [Lazarus] IDE dlg Go To don't react to Esc key In-Reply-To: References: <322d209e-bccb-6090-7de8-f8664a6004de@ya.ru> <1a027b50-f2c8-4085-3b99-e5775e524e94@ya.ru> Message-ID: <20190123104310.5ee084c1@limapholos.matflo.wg> On Tue, 22 Jan 2019 18:57:46 +0100 Bart via lazarus wrote: > On Tue, Jan 22, 2019 at 6:41 PM AlexeyT via lazarus > wrote: > > > >If so, does it work in r60107? > > Please test that, otherwise I have no idea wether my changes causes > this. If r60107 works, then please add #27 to the allowed keys in > Edit1KeyPress (r60108 or later) and see if that helps. I added #13 and #27. Now it works again under Linux/gtk2. Mattias From bartjunk64 at gmail.com Wed Jan 23 12:56:59 2019 From: bartjunk64 at gmail.com (Bart) Date: Wed, 23 Jan 2019 12:56:59 +0100 Subject: [Lazarus] IDE dlg Go To don't react to Esc key In-Reply-To: <20190123104310.5ee084c1@limapholos.matflo.wg> References: <322d209e-bccb-6090-7de8-f8664a6004de@ya.ru> <1a027b50-f2c8-4085-3b99-e5775e524e94@ya.ru> <20190123104310.5ee084c1@limapholos.matflo.wg> Message-ID: On Wed, Jan 23, 2019 at 10:43 AM Mattias Gaertner via lazarus wrote: > I added #13 and #27. Now it works again under Linux/gtk2. Thanks. Odd though, since on my Linux machine this worked with GTK2 without that addition. Wondering why. -- Bart From luca at wetron.es Wed Jan 23 15:49:38 2019 From: luca at wetron.es (Luca Olivetti) Date: Wed, 23 Jan 2019 15:49:38 +0100 Subject: [Lazarus] how to show hourglass on windows 10 with touch screen? Message-ID: <2566d349-1084-4e55-ecaf-947eb7d6518d@wetron.es> This isn't strictly a lazarus issue, but my google fu is failing me. It turns out that windows 10 with a touch screen hides the mouse cursor, so Screen.Cursor=crHourGlass does nothing. I found that there isn't a setting to force the mouse cursor on (https://answers.microsoft.com/en-us/windows/forum/all/show-mouse-cursor-also-when-using-touch-screen/e9a7ab79-baeb-4b47-afee-4d8fed4cfbcb), is there an alternative way to show that the application is busy? In my case I'm launching another application and, since the pc is rather slow, it could take 2-3 seconds or more for the application to show after pressing the button. TIA -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From vojtech.cihak at atlas.cz Wed Jan 23 16:20:13 2019 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Wed, 23 Jan 2019 16:20:13 +0100 Subject: [Lazarus] =?utf-8?q?IDE_dlg_Go_To_don=27t_react_to_Esc_key?= In-Reply-To: 00000000954e0002466401b25002 References: <322d209e-bccb-6090-7de8-f8664a6004de@ya.ru>, , , , , , <1a027b50-f2c8-4085-3b99-e5775e524e94@ya.ru>, , <20190123104310.5ee084c1@limapholos.matflo.wg> 00000000954e0002466401b25002 Message-ID: <20190123162013.51932776@atlas.cz> Hi,   I just did a test. Escape closes automatically any Form displayed with "ShowModal" (not Show) if there is BitBtn with Kind=bkCancel on that Form. It works on Delphi7, Lazarus+Qt4 or GTk2. Edit.OnKeyPress on GoToFrm form contains this code:  if not (Key in [^C,^V,^X,#8,'0'..'9']) then     Key:=#0;       On GTk2, Escape key is reseted when Edit is focused, otherwise it works. On Qt4 and Delphi7 Escape key works even if Edit is focused.   V.   ______________________________________________________________ > Od: "Bart via lazarus" > Komu: "Lazarus mailing list" > Datum: 23.01.2019 12:57 > Předmět: Re: [Lazarus] IDE dlg Go To don't react to Esc key > On Wed, Jan 23, 2019 at 10:43 AM Mattias Gaertner via lazarus wrote: > I added #13 and #27. Now it works again under Linux/gtk2. Thanks. Odd though, since on my Linux machine this worked with GTK2 without that addition. Wondering why. -- Bart -- _______________________________________________ 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 pascaldragon at googlemail.com Wed Jan 23 20:55:02 2019 From: pascaldragon at googlemail.com (Sven Barth) Date: Wed, 23 Jan 2019 20:55:02 +0100 Subject: [Lazarus] Unit checksum changed error In-Reply-To: <6F59C65A-C8C0-4202-8FCF-51202B796D02@cua.edu> References: <38322F36-B946-4202-81AF-A11C0A781EDA@cua.edu> <6F59C65A-C8C0-4202-8FCF-51202B796D02@cua.edu> Message-ID: <96023c10-7712-0c5e-89b5-9869af7fb8c2@googlemail.com> Am 21.01.2019 um 21:27 schrieb Thomas Crone via lazarus: > When I go To Project/Project Options/Compiler Options/Verbosity and check Show used files (-vu), I get: > PlayMusic.pas(56,25) Fatal: Cannot fine Aiff by PlayMusic of the Project Inspector. > > With it unchecked, I get the error reported below. You need to right click on the message window, select Copy -> Copy All/Original Messages to Clipboard (or similar, I'm using the IDE in German) and paste that somewhere you can read it. There'll be a bunch of messages more, but the most important for your case are the messages with id 10002 which tells you the paths of each PPU the compiler is loading. Regards, Sven From bartjunk64 at gmail.com Wed Jan 23 22:47:12 2019 From: bartjunk64 at gmail.com (Bart) Date: Wed, 23 Jan 2019 22:47:12 +0100 Subject: [Lazarus] IDE dlg Go To don't react to Esc key In-Reply-To: <20190123162013.51932776@atlas.cz> References: <322d209e-bccb-6090-7de8-f8664a6004de@ya.ru> <1a027b50-f2c8-4085-3b99-e5775e524e94@ya.ru> <20190123104310.5ee084c1@limapholos.matflo.wg> <20190123162013.51932776@atlas.cz> Message-ID: On Wed, Jan 23, 2019 at 4:20 PM Vojtěch Čihák via lazarus wrote: > On GTk2, Escape key is reseted when Edit is focused, otherwise it works. That sounds like a bug? Escape is supposed to reach a button with Cancel=True before other controls on the form can see it IIRC? -- Bart From mailinglists at geldenhuys.co.uk Thu Jan 24 10:23:33 2019 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Thu, 24 Jan 2019 09:23:33 +0000 Subject: [Lazarus] how to show hourglass on windows 10 with touch screen? In-Reply-To: <2566d349-1084-4e55-ecaf-947eb7d6518d@wetron.es> References: <2566d349-1084-4e55-ecaf-947eb7d6518d@wetron.es> Message-ID: On 23/01/2019 14:49, Luca Olivetti via lazarus wrote: > is there an alternative way to show that the application is busy? A small borderless dialog with a short message? Think in the lines of a splashscreen-like dialog. I use this often in my applications to convey updates to long running tasks. 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 luca at wetron.es Thu Jan 24 10:54:53 2019 From: luca at wetron.es (Luca Olivetti) Date: Thu, 24 Jan 2019 10:54:53 +0100 Subject: [Lazarus] how to show hourglass on windows 10 with touch screen? In-Reply-To: References: <2566d349-1084-4e55-ecaf-947eb7d6518d@wetron.es> Message-ID: <62514df5-2c93-1f59-fc9d-d9fe715df3b3@wetron.es> El 24/1/19 a les 10:23, Graeme Geldenhuys via lazarus ha escrit: > On 23/01/2019 14:49, Luca Olivetti via lazarus wrote: >> is there an alternative way to show that the application is busy? > > A small borderless dialog with a short message? Think in the lines of a > splashscreen-like dialog. I use this often in my applications to convey > updates to long running tasks. I was hoping for a system-provided facility (just like the crHourGlass but for windows 10 *with* touch screen. With a physical mouse crHourGlass works fine). If there isn't one I will consider using a splash screen but I don't like it very much. Regards -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From getmem1 at gmail.com Thu Jan 24 11:57:35 2019 From: getmem1 at gmail.com (=?UTF-8?B?QmFsw6F6cyBTesOpa2VseQ==?=) Date: Thu, 24 Jan 2019 12:57:35 +0200 Subject: [Lazarus] LazProfiler package cannot install In-Reply-To: <327d69cd-0b10-0549-6321-899eabe21d15@ya.ru> References: <327d69cd-0b10-0549-6321-899eabe21d15@ya.ru> Message-ID: If you expand lazprofiler node(OPM), you can see that only works with Lazarus/FPC trunk. On Wed, Jan 23, 2019 at 11:34 AM AlexeyT via lazarus < lazarus at lists.lazarus-ide.org> wrote: > From OPM. I see prompt about missing dependences, confirmed all, it > 'Cannot intall' after compiling dep's. > > r60156, fpc 3.0.4, Linux x64 gtk2. > > -- > Regards, > Alexey > > -- > _______________________________________________ > 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 aaa5500 at ya.ru Thu Jan 24 13:42:15 2019 From: aaa5500 at ya.ru (AlexeyT) Date: Thu, 24 Jan 2019 15:42:15 +0300 Subject: [Lazarus] IDE fppkg error message Message-ID: <1557c1df-8f5f-e227-4e5d-be6be1848536@ya.ru> After changing FPC from 3.0.4 to 3.3.1 i see this error on IDE start. a) ugly caption b) how to avoid it? -- Regards, Alexey -------------- next part -------------- A non-text attachment was scrubbed... Name: msg.png Type: image/png Size: 7213 bytes Desc: not available URL: From giuliano.colla at fastwebnet.it Thu Jan 24 13:52:47 2019 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Thu, 24 Jan 2019 13:52:47 +0100 Subject: [Lazarus] how to show hourglass on windows 10 with touch screen? In-Reply-To: <2566d349-1084-4e55-ecaf-947eb7d6518d@wetron.es> References: <2566d349-1084-4e55-ecaf-947eb7d6518d@wetron.es> Message-ID: <1348b208-2b3b-714f-bef7-0377555ed134@fastwebnet.it> Il 23/01/2019 15:49, Luca Olivetti via lazarus ha scritto: > This isn't strictly a lazarus issue, but my google fu is failing me. > It turns out that windows 10 with a touch screen hides the mouse > cursor, so Screen.Cursor=crHourGlass does nothing. Did you try taking advantage of such Windows API's as ClipCursor() and SetCursorPos()? Maybe the cursor is hidden just because of the way the clipping area is defined in presence of a touch screen, or because the cursor position is set outside the screen coordinates. Just an idea, I never tried myself. Giuliano -- Do not do to others as you would have them do to you.They might have different tastes. From pascaldragon at googlemail.com Thu Jan 24 14:34:24 2019 From: pascaldragon at googlemail.com (Sven Barth) Date: Thu, 24 Jan 2019 14:34:24 +0100 Subject: [Lazarus] how to show hourglass on windows 10 with touch screen? In-Reply-To: <1348b208-2b3b-714f-bef7-0377555ed134@fastwebnet.it> References: <2566d349-1084-4e55-ecaf-947eb7d6518d@wetron.es> <1348b208-2b3b-714f-bef7-0377555ed134@fastwebnet.it> Message-ID: Am Do., 24. Jan. 2019, 13:52 hat Giuliano Colla via lazarus < lazarus at lists.lazarus-ide.org> geschrieben: > Il 23/01/2019 15:49, Luca Olivetti via lazarus ha scritto: > > > This isn't strictly a lazarus issue, but my google fu is failing me. > > It turns out that windows 10 with a touch screen hides the mouse > > cursor, so Screen.Cursor=crHourGlass does nothing. > > Did you try taking advantage of such Windows API's as ClipCursor() and > SetCursorPos()? > Maybe the cursor is hidden just because of the way the clipping area is > defined in presence of a touch screen, or because the cursor position is > set outside the screen coordinates. > Just an idea, I never tried myself. > No, Windows 10 hides the cursor if no input device (mouse, touchpad) besides a touchscreen is detected. Cause in that case a cursor "makes no sense". Note: this does not mean I agree with that, only that Microsoft thinks that. Regards, Sven > -------------- next part -------------- An HTML attachment was scrubbed... URL: From listbox at martoks-place.de Thu Jan 24 18:25:08 2019 From: listbox at martoks-place.de (Martok) Date: Thu, 24 Jan 2019 18:25:08 +0100 Subject: [Lazarus] IDE fppkg error message In-Reply-To: <1557c1df-8f5f-e227-4e5d-be6be1848536@ya.ru> References: <1557c1df-8f5f-e227-4e5d-be6be1848536@ya.ru> Message-ID: Am 24.01.2019 um 13:42 schrieb AlexeyT via lazarus: > After changing FPC from 3.0.4 to 3.3.1 i see this error on IDE start. See Short version: Lazarus now has a hard dependency on properly (and globally!) configured fppkg, which requires fpc in your PATH. Upside: Lazarus supposedly needs it for something to do with fpmake dependencies, but it only really affects looking up paths of packages installed via fppkg. Downside: completely breaks the default Windows setup as well as any self-contained installations (on any OS). > b) how to avoid it? Not currently fixable by a user. However, as this only occurs when you have never run the fppkg client before, you also cannot have any fppkg-managed packages, meaning the message is perfectly safe to ignore. See attached patch, which restores the old logic. Compiling *will* work even if fppkg is not configured (as it always has), as fpc correctly uses fpc.cfg to find the package paths. -- Regards, Martok -------------- next part -------------- Index: packager/fppkghelper.pas =================================================================== --- packager/fppkghelper.pas (revision 60047) +++ packager/fppkghelper.pas (working copy) @@ -71,8 +71,8 @@ FFPpkg := FPpkg; FPpkg := nil; except - on E: Exception do - IDEMessageDialog(lisFppkgInitializeFailed, Format(lisFppkgInitializeFailed, [E.Message]), mtWarning, [mbOK]); + //on E: Exception do + // IDEMessageDialog(lisFppkgInitializeFailed, Format(lisFppkgInitializeFailed, [E.Message]), mtWarning, [mbOK]); end; finally FPpkg.Free; From giuliano.colla at fastwebnet.it Thu Jan 24 18:31:14 2019 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Thu, 24 Jan 2019 18:31:14 +0100 Subject: [Lazarus] how to show hourglass on windows 10 with touch screen? In-Reply-To: References: <2566d349-1084-4e55-ecaf-947eb7d6518d@wetron.es> <1348b208-2b3b-714f-bef7-0377555ed134@fastwebnet.it> Message-ID: <42d86b4a-5188-dbd2-3dca-36f3ff18d4fe@fastwebnet.it> Il 24/01/2019 14:34, Sven Barth via lazarus ha scritto: > No, Windows 10 hides the cursor if no input device (mouse, touchpad) > besides a touchscreen is detected. Cause in that case a cursor "makes > no sense". Note: this does not mean I agree with that, only that > Microsoft thinks that. > Just for the record. In our company we manufacture control systems for automatic machines, and we provide a touch-screen industrial computer, for easy operator interaction. In the operating instructions we write: "If you have difficulties with touch screen, please touch anywhere on the screen and watch the cursor position, If it happens not to be exactly at the location you touched, please perform the touch screen calibration procedure explained below" Of course we're not using Windows, but rather Linux for a lot of reasons, the main one being that we need real-time responsiveness. However this one adds one more reason to the list. To be honest I must admit that industrial grade touch screens have dramatically improved during the years, and nowadays the recalibration is seldom required, nonetheless... Giuliano -- Do not do to others as you would have them do to you.They might have different tastes. From pascaldragon at googlemail.com Thu Jan 24 20:52:41 2019 From: pascaldragon at googlemail.com (Sven Barth) Date: Thu, 24 Jan 2019 20:52:41 +0100 Subject: [Lazarus] how to show hourglass on windows 10 with touch screen? In-Reply-To: <42d86b4a-5188-dbd2-3dca-36f3ff18d4fe@fastwebnet.it> References: <2566d349-1084-4e55-ecaf-947eb7d6518d@wetron.es> <1348b208-2b3b-714f-bef7-0377555ed134@fastwebnet.it> <42d86b4a-5188-dbd2-3dca-36f3ff18d4fe@fastwebnet.it> Message-ID: Am Do., 24. Jan. 2019, 18:31 hat Giuliano Colla via lazarus < lazarus at lists.lazarus-ide.org> geschrieben: > Il 24/01/2019 14:34, Sven Barth via lazarus ha scritto: > > No, Windows 10 hides the cursor if no input device (mouse, touchpad) > > besides a touchscreen is detected. Cause in that case a cursor "makes > > no sense". Note: this does not mean I agree with that, only that > > Microsoft thinks that. > > > > Just for the record. In our company we manufacture control systems for > automatic machines, and we provide a touch-screen industrial computer, > for easy operator interaction. > > In the operating instructions we write: > > "If you have difficulties with touch screen, please touch anywhere on > the screen and watch the cursor position, If it happens not to be > exactly at the location you touched, please perform the touch screen > calibration procedure explained below" > > Of course we're not using Windows, but rather Linux for a lot of > reasons, the main one being that we need real-time responsiveness. > However this one adds one more reason to the list. > > To be honest I must admit that industrial grade touch screens have > dramatically improved during the years, and nowadays the recalibration > is seldom required, nonetheless... > I take it those are resistive touch screens? For those calibration is sometimes necessary (especially older ones as you said). For capacitive touch panels (be it smartphone or tablet) I haven't found the need for that. Regards, Sven > -------------- next part -------------- An HTML attachment was scrubbed... URL: From luca at wetron.es Thu Jan 24 21:42:40 2019 From: luca at wetron.es (Luca Olivetti) Date: Thu, 24 Jan 2019 21:42:40 +0100 Subject: [Lazarus] how to show hourglass on windows 10 with touch screen? In-Reply-To: References: <2566d349-1084-4e55-ecaf-947eb7d6518d@wetron.es> <1348b208-2b3b-714f-bef7-0377555ed134@fastwebnet.it> Message-ID: El 24/1/19 a les 14:34, Sven Barth via lazarus ha escrit: > No, Windows 10 hides the cursor if no input device (mouse, touchpad) > besides a touchscreen is detected. Cause in that case a cursor "makes no > sense". Note: this does not mean I agree with that, only that Microsoft > thinks that. If only they provided at least an alternative way to provide feedback when the application is busy... @Giuliano, in my case it just manages the UI, but I didn't decide the OS. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From ganmax at narod.ru Fri Jan 25 01:29:05 2019 From: ganmax at narod.ru (Maxim Ganetsky) Date: Fri, 25 Jan 2019 03:29:05 +0300 Subject: [Lazarus] Translation templates (master files) now have .pot extension Message-ID: <9df88e85-6763-1c32-1e94-371293cc532b@narod.ru> Hello. In r60208 I changed extension of master PO files (a.k.a. templates) from .po to .pot, adapted IDE, POChecker, updatepofiles tool and localize.bat/.sh scripts. Reasons: 1. .pot is 'industry standard' extension for PO template files. As a consequence, PO editors can now open our templates 'out of the box' and automate creation of translations. 2. It is now much simpler to detect template files now that dotted unit names are allowed. Example for IDE translation: Previously we had: Template: lazaruside.po German: lazaruside.de.po Russian: lazaruside.ru.po Spanish: lazaruside.es.po French: lazaruside.fr.po Italian: lazaruside.it.po Now we have (note extension of the template): Template: lazaruside.pot German: lazaruside.de.po Russian: lazaruside.ru.po Spanish: lazaruside.es.po French: lazaruside.fr.po Italian: lazaruside.it.po You can safely remove .po template files from your project AFTER you rebuild your IDE and rebuild your project with it (at this point .pot files should be generated). Note that although .po template files have been removed from Lazarus SVN, they may reappear during first IDE rebuild (with the old one). In this case it may be a good idea to clean them up after rebuild. If you use updatepofiles tool or localize.bat/.sh scripts in Lazarus directory, do not forget to rebuild updatepofiles (run "make tools" in Lazarus directory). -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From alexander.hofmann at new-h.de Fri Jan 25 10:21:25 2019 From: alexander.hofmann at new-h.de (Alexander Hofmann) Date: Fri, 25 Jan 2019 10:21:25 +0100 Subject: [Lazarus] how to show hourglass on windows 10 with touch screen? In-Reply-To: References: <2566d349-1084-4e55-ecaf-947eb7d6518d@wetron.es> <1348b208-2b3b-714f-bef7-0377555ed134@fastwebnet.it> Message-ID: Hi, I've been looking for something like this, too, some time ago, and I decided to go for a self-built solution, to be independent of the underlying widget-set. (I grayed-out all important widgets, which can be done automatically by walking, recursively, through the Controls property, and displayed a "throbber" with a few spinning dots on top of the form) Anyway, Am 24.01.2019 um 21:42 schrieb Luca Olivetti via lazarus: > If only they provided at least an alternative way to provide feedback > when the application is busy... They do, though not for the "classic" style APIs like Win32 or Windows.Forms. There's an UWP class (https://docs.microsoft.com/en-us/uwp/api/Windows.UI.Xaml.Controls.ProgressRing) I think is intended for this. See also: https://stackoverflow.com/questions/44054195/windows-is-there-a-built-in-loading-animation-i-can-reference-as-a-visual-c-r In Android it's called "Loading Spinner" IMHO and is somewhat OS-Supplied, although as I saw in many projects, in the end it's mostly self-built solutions. A quick search didn't bring up something similar for other widgetsets, too (at least GTK and Qt don't seem to support it natively ?) Best regards, Alex From giuliano.colla at fastwebnet.it Fri Jan 25 13:18:43 2019 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Fri, 25 Jan 2019 13:18:43 +0100 Subject: [Lazarus] how to show hourglass on windows 10 with touch screen? In-Reply-To: References: <2566d349-1084-4e55-ecaf-947eb7d6518d@wetron.es> <1348b208-2b3b-714f-bef7-0377555ed134@fastwebnet.it> Message-ID: Il 24/01/2019 21:42, Luca Olivetti via lazarus ha scritto: > @Giuliano, in my case it just manages the UI, but I didn't decide the OS. That's the reason why, some decades ago, tired of being conditioned by technical decisions taken by non-technical people, me and two other guys with a similar problem did put together all our savings and started our own company. As we're still kicking and alive, even if rather old, while our competitors, handled with just finance in mind, have collapsed since a long time, I infer that our decision was not so bad, and I would encourage anybody in a similar position to do the same! Giuliano -- Do not do to others as you would have them do to you.They might have different tastes. From giuliano.colla at fastwebnet.it Fri Jan 25 13:35:45 2019 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Fri, 25 Jan 2019 13:35:45 +0100 Subject: [Lazarus] how to show hourglass on windows 10 with touch screen? In-Reply-To: References: <2566d349-1084-4e55-ecaf-947eb7d6518d@wetron.es> <1348b208-2b3b-714f-bef7-0377555ed134@fastwebnet.it> <42d86b4a-5188-dbd2-3dca-36f3ff18d4fe@fastwebnet.it> Message-ID: <41849f34-78a2-d179-fed9-2cf2dd274454@fastwebnet.it> Il 24/01/2019 20:52, Sven Barth via lazarus ha scritto: > I take it those are resistive touch screens? For those calibration is > sometimes necessary (especially older ones as you said). For > capacitive touch panels (be it smartphone or tablet) I haven't found > the need for that. Yes they are. In a harsh industrial environment where dirt and dust are unavoidable I'm told they're preferable, also because you may use them with gloves or with any kind of stylus you happen to have available. However we rely on the choices of our industrial PC supplier. It's a small Italian manufacturer, but selling all over the world. We considered that if US Railways and US Cost Guard come to Italy to buy their PC's there must be a reason! Giuliano -- Do not do to others as you would have them do to you.They might have different tastes. From fluisgirardi at gmail.com Fri Jan 25 19:12:36 2019 From: fluisgirardi at gmail.com (Fabio Luis Girardi) Date: Fri, 25 Jan 2019 16:12:36 -0200 Subject: [Lazarus] Lazarus IDE define Message-ID: Hi! Does someone know if Lazarus has a define that is activated only Lazarus IDE is rebuilding? As packages are statically linked to Lazarus, I want cut off some "features" of my packages, when Lazarus IDE is self-rebuilding. -- The best regards, Fabio Luis Girardi PascalSCADA Project http://sourceforge.net/projects/pascalscada http://www.pascalscada.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From luca at wetron.es Fri Jan 25 19:36:29 2019 From: luca at wetron.es (Luca Olivetti) Date: Fri, 25 Jan 2019 19:36:29 +0100 Subject: [Lazarus] how to show hourglass on windows 10 with touch screen? In-Reply-To: References: <2566d349-1084-4e55-ecaf-947eb7d6518d@wetron.es> <1348b208-2b3b-714f-bef7-0377555ed134@fastwebnet.it> Message-ID: <508fa24c-c040-6f16-3910-e5b124b725c9@wetron.es> El 25/1/19 a les 10:21, Alexander Hofmann via lazarus ha escrit: > Hi, > > I've been looking for something like this, too, some time ago, and I > decided to go for a self-built solution, to be independent of the > underlying widget-set. > (I grayed-out all important widgets, which can be done automatically by > walking, recursively, through the Controls property, and displayed a > "throbber" with a few spinning dots on top of the form) Thank you, probably that's the best option, considering that using UWP from win32 is not going to be easy (it at all possible, besides, I only found some tutorials on how to do it for ms development tools) and not portable. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From b_lists at patandbrian.org Sun Jan 27 14:59:44 2019 From: b_lists at patandbrian.org (Brian) Date: Sun, 27 Jan 2019 08:59:44 -0500 Subject: [Lazarus] Printing question Message-ID: I'm still trying to pursue the printing problem I described a few days ago. I've been asked on one of the Ubuntu support lists what format Lazarus uses to send data to the printer. Is it plain text, or something else? Any offers, please... Thanks, Brian. From nc-gaertnma at netcologne.de Sun Jan 27 15:27:52 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 27 Jan 2019 15:27:52 +0100 Subject: [Lazarus] Lazarus IDE define In-Reply-To: References: Message-ID: <20190127152752.40f7de2e@limapholos.matflo.wg> On Fri, 25 Jan 2019 16:12:36 -0200 Fabio Luis Girardi via lazarus wrote: > Hi! > > Does someone know if Lazarus has a define that is activated only > Lazarus IDE is rebuilding? > > As packages are statically linked to Lazarus, I want cut off some > "features" of my packages, when Lazarus IDE is self-rebuilding. Maybe you are searching for this: LazarusIDE.AddHandlerOnLazarusBuilding LazarusIDE.AddHandlerOnLazarusBuildingFinished Mattias From henry.vermaak at gmail.com Wed Jan 30 18:10:17 2019 From: henry.vermaak at gmail.com (Henry Vermaak) Date: Wed, 30 Jan 2019 17:10:17 +0000 Subject: [Lazarus] Multi-line msgid in PO file Message-ID: <20190130171017.GD3625@technical09.Axicon2.local> 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. I've attached a simple patch. Henry -------------- next part -------------- A non-text attachment was scrubbed... Name: multiline-newline.patch Type: text/x-diff Size: 598 bytes Desc: not available URL: From ganmax at narod.ru Wed Jan 30 18:19:47 2019 From: ganmax at narod.ru (Maxim Ganetsky) Date: Wed, 30 Jan 2019 20:19:47 +0300 Subject: [Lazarus] Multi-line msgid in PO file In-Reply-To: <20190130171017.GD3625@technical09.Axicon2.local> References: <20190130171017.GD3625@technical09.Axicon2.local> Message-ID: 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. Multiline translations are used in Lazarus and seem to work? Please send a test project. -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From henry.vermaak at gmail.com Thu Jan 31 12:01:15 2019 From: henry.vermaak at gmail.com (Henry Vermaak) Date: Thu, 31 Jan 2019 11:01:15 +0000 Subject: [Lazarus] Multi-line msgid in PO file In-Reply-To: References: <20190130171017.GD3625@technical09.Axicon2.local> Message-ID: <20190131110115.GA3604@technical09.Axicon2.local> 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. > > Multiline translations are used in Lazarus and seem to work? That's perhaps because lazarus doesn't use .mo files? > Please send a test project. OK, see attached. Steps to reproduce: - Build project. - Run and check hover hint on form, it's in English. - Edit po/fr.po and remove the "\n" on the last line of the multiline hint for both msgid and msgstr. - Re-create the .mo file: msgfmt -o locale/fr/LC_MESSAGES/multiline.mo po/fr.po - Run again and the hint will now be in French(*). Henry * Or some approximation thereof :) -------------- next part -------------- A non-text attachment was scrubbed... Name: multiline.tgz Type: application/x-gtar-compressed Size: 2604 bytes Desc: not available URL: