From aveliks at gmail.com Sun Jul 7 21:48:10 2019 From: aveliks at gmail.com (Andrey Veliks) Date: Sun, 7 Jul 2019 22:48:10 +0300 Subject: [Lazarus] Remarks noted by Werner In-Reply-To: <001101d52e7c$625e0950$271a1bf0$@blaisepascal.eu> References: <001101d52e7c$625e0950$271a1bf0$@blaisepascal.eu> Message-ID: <5d598461-67a3-b1f3-6c31-dbef4685e7e2@gmail.com> test 29.06.2019 16:13, Detlef Overbeek via lazarus пишет: > > About message1: I have answered that on the website: > > https://forum.lazarus.freepascal.org/index.php/topic,45905.msg325308 > I also answered also some things about the book. > I am not sure whether I follow the right procedure… > > DETLEF D. OVERBEEK   - EDITOR IN CHIEF / CHAIRMAN PRO PASCAL > FOUNDATION MVP_Logo_100x100 > > WITH KIND REGARDS, MED VENLIG HILSEN, MET VRIENDELIJKE GROET, > CORDIALEMENT, CORDIALI SALUTI, > LE SALUDA ATENTAMENTE, MIT FREUNDLICHEN GRÜSSEN, С ИСКРЕННИМ УВАЖЕНИЕМ > > *CONTACT*:MOBYLE PHONE: +31 (0) 6  21 23 62 68 / Phone: +31 30 8906644 > / SKYPE: DETLEF.OVERBEEK > > / > /BlaiseLogoForEmail700 > > CELL PHONE: +31 (0) 6  21 23 62 68    /   SKYPE: DETLEF.OVERBEEK > EDELSTENENBAAN 21, 3402 XA IJSSELSTEIN   /   NETHERLANDS > *www.BlaisePascalMagazine.eu * > > BLAISE PASCAL MAGAZINE WILL NOT SELL OR SHARE YOUR EMAIL OR POSTAL > ADDRESS WITH UNRELATED THIRD PARTIES. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 895 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 2158 bytes Desc: not available URL: From skalogryz.lists at gmail.com Mon Jul 8 04:41:07 2019 From: skalogryz.lists at gmail.com (Dmitry Boyarintsev) Date: Sun, 7 Jul 2019 22:41:07 -0400 Subject: [Lazarus] Modal Window Crashes on Mac OS X 10.15 Beta (Catalina) In-Reply-To: <20190609145903.513A.B7062D51@tgtools.de> References: <20190609145903.513A.B7062D51@tgtools.de> Message-ID: On Sun, Jun 9, 2019 at 8:59 AM Tobias Giesen via lazarus < lazarus at lists.lazarus-ide.org> wrote: > *** Terminating app due to uncaught exception > 'NSInternalInconsistencyException', reason: 'Cannot update for observer > for the key path > "mainWindow.representedURL" from , most > likely because the value for the key "mainWindow" has changed without an > appropriate KVO notification being sent. Check the KVO-compliance of the > TCocoaApplication class.' > Hello, I think there's a newer version of 10.15 available. Has anyone been able to test, IF this fix is still needed? thanks, Dmitry -------------- next part -------------- An HTML attachment was scrubbed... URL: From bo.berglund at gmail.com Tue Jul 9 19:03:02 2019 From: bo.berglund at gmail.com (Bo Berglund) Date: Tue, 09 Jul 2019 19:03:02 +0200 Subject: [Lazarus] Lazarus 2.0.2 EditorMacroScript error on first startup RPi4B Message-ID: <4jh9ietplm45rk4q27md8lk0jjoka4g2tg@4ax.com> I have just installed fpc 3.0.4 + Lazarus 2.0.2 from svn sources on a pristine Raspberry Pi4B with 4GB RAM. All of the commands my script performs finished OK and the IDE is installed without errors. But now (again) on a first ever start of the newly installed Lazarus I am greeted by a pop-up dialog: Error in EditorMacroScript The package EditorMacroScript (pascalscript macros) has detected a problem and was deactivated. The package failed its selftest with the message: "Replace All [Exp: True / Got: False]" [OK] It was a while now since I last installed on the bare metal from svn but still this problem pops up. It has done that every time I can remember and I even posted here back in 2016 about it. Apparently nothing has been done, and I do not know what the pascalscript really does in the IDE so I cannot say if I will be hit with some unexplainable error down the road. Can someone please explain what this is and how to stop the problem from happening? I think I am not alone having it appear... And I know it will not show anymore, but I want to know what caused it and what is unavailable/not working now that it is deactivated. -- Bo Berglund Developer in Sweden From lazarus at mfriebe.de Tue Jul 9 19:39:23 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Tue, 9 Jul 2019 19:39:23 +0200 Subject: [Lazarus] Lazarus 2.0.2 EditorMacroScript error on first startup RPi4B In-Reply-To: <4jh9ietplm45rk4q27md8lk0jjoka4g2tg@4ax.com> References: <4jh9ietplm45rk4q27md8lk0jjoka4g2tg@4ax.com> Message-ID: On 09/07/2019 19:03, Bo Berglund via lazarus wrote: > I have just installed fpc 3.0.4 + Lazarus 2.0.2 from svn sources on a > pristine Raspberry Pi4B with 4GB RAM. > > But now (again) on a first ever start of the newly installed Lazarus I > am greeted by a pop-up dialog: > > Error in EditorMacroScript > > It was a while now since I last installed on the bare metal from svn > but still this problem pops up. It has done that every time I can > remember and I even posted here back in 2016 about it. > > Apparently nothing has been done, and I do not know what the > pascalscript really does in the IDE so I cannot say if I will be hit > with some unexplainable error down the road. > Yep nothing has been done since.... (Except for me hoping, that one day I have the time prioritized to install Laz on a RP myself....) Well the underlying PasScript was updated (not sure if in 2.0.x but in trunk). But that seems to have done little for arm. The error happens once only, the result is stored and EMS disabled. There is an entry in the Tools > Options to enable it again (or check the xml files in your conf) PasScript sometimes needs to call code from the project (i.e. binary code). For this it needs to pass params, in the correct registers/stack. Since that can change (calling convention), the IDE performs a selftest. It finds that PS does not work on your platform. There is an alternative calling mechanism. I did not test that yet. Compile the IDE with:   -dPasMacroNoNativeCalls Then enable the test again. --------- Before you try that define, check if the following patch (currently applied) is actually needed https://github.com/User4martin/pascalscript/commit/269faf94db7be08f243aa1b1f55b28624e0692d5 It is something that is not in the original. Not sure though if correct or not. You can also test this patch (or its absence) by running the testcase in the PascalScript package. From michael at freepascal.org Thu Jul 11 17:46:47 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Thu, 11 Jul 2019 17:46:47 +0200 (CEST) Subject: [Lazarus] It is a beautiful day... Message-ID: Hello, For those of you that don't follow the SVN logs closely: The IDE now has proper support for Project groups. Project groups already existed for some time, but were crippled. With 2 additions they are now actually very useful: - You can let Ctrl-F9 compile the current target in a project group, and that includes for instance a package ! (you can set this in Tools - Options - Project groups) - "Find in files" now has the option 'Search in project group' They now offer all functionality as in Delphi. In difference with the latter, their use is entirely optional... My heartfelt thanks to Mattias for completing the 'Project group' functionality ! Michael. From dec12 at avidsoft.com.hk Thu Jul 11 18:05:47 2019 From: dec12 at avidsoft.com.hk (Dennis) Date: Fri, 12 Jul 2019 00:05:47 +0800 Subject: [Lazarus] It is a beautiful day... In-Reply-To: References: Message-ID: thank you. Michael Van Canneyt via lazarus wrote: > > Hello, > > For those of you that don't follow the SVN logs closely: > > The IDE now has proper support for Project groups. > Project groups already existed for some time, but were crippled. > > With 2 additions they are now actually very useful: > > - You can let Ctrl-F9 compile the current target in a project group, > and that >   includes for instance a package ! >   (you can set this in Tools - Options - Project groups) > > - "Find in files" now has the option 'Search in project group' > > They now offer all functionality as in Delphi. In difference with the > latter, > their use is entirely optional... > > My heartfelt thanks to Mattias for completing the 'Project group' > functionality ! > > Michael. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmlandmesser at gmx.de Fri Jul 12 14:49:54 2019 From: jmlandmesser at gmx.de (John Landmesser) Date: Fri, 12 Jul 2019 14:49:54 +0200 Subject: [Lazarus] It is a beautiful day... In-Reply-To: References: Message-ID: <5d2e6bfe-b9a3-093c-1b4c-97e931df39ab@gmx.de> Little improvement: Highlight the current compiling project: Why? Think of a package with examples all called project1, so you don't know which project eventually throws an error?!! Thanks for project-groups!! Am 11.07.19 um 17:46 schrieb Michael Van Canneyt via lazarus: > > Hello, > > For those of you that don't follow the SVN logs closely: > > The IDE now has proper support for Project groups. > Project groups already existed for some time, but were crippled. > > With 2 additions they are now actually very useful: > > - You can let Ctrl-F9 compile the current target in a project group, > and that >   includes for instance a package ! >   (you can set this in Tools - Options - Project groups) > > - "Find in files" now has the option 'Search in project group' > > They now offer all functionality as in Delphi. In difference with the > latter, > their use is entirely optional... > > My heartfelt thanks to Mattias for completing the 'Project group' > functionality ! > > Michael. From SAmeis.fpc at web.de Mon Jul 15 01:41:08 2019 From: SAmeis.fpc at web.de (Simon Ameis) Date: Mon, 15 Jul 2019 01:41:08 +0200 Subject: [Lazarus] Can't build Lazarus trunk because of error in fppkghelper.pas Message-ID: <8b3f26df-8ed8-92c3-6161-40f7080a9597@web.de> Hello all, I'm trying to compile Lazarus trunk revision 61589 with FPC trunk revision 40356. When building the IDE, I get this error: C:\Lazarus> make ide // some messages removed (3104) Compiling filereferencelist.pas (3104) Compiling editdefinetree.pas (3104) Compiling C:\Lazarus\packager\projpackcommon.pas (3104) Compiling C:\Lazarus\packager\packagedefs.pas (3104) Compiling C:\Lazarus\packager\fppkghelper.pas C:\Lazarus\packager\fppkghelper.pas(197,32) Error: (5038) identifier idents no member "PackageVariants" C:\Lazarus\packager\fppkghelper.pas(199,51) Error: (5038) identifier idents no member "PackageVariants" C:\Lazarus\packager\fppkghelper.pas(524,20) Error: (5038) identifier idents no member "ConfigurationFilename" fppkghelper.pas(538) Fatal: (10026) There were 3 errors compiling module, stopping Fatal: (1018) Compilation aborted make[2]: *** [lazarus.exe] Error 1 make[2]: Leaving directory `C:/Lazarus/ide' make[1]: *** [ide] Error 2 make[1]: Leaving directory `C:/Lazarus/ide' make: *** [ide] Error 2 Does sombode have any solution for this? Kind Regards Simon Ameis From werner.pamler at freenet.de Mon Jul 15 10:14:26 2019 From: werner.pamler at freenet.de (Werner Pamler) Date: Mon, 15 Jul 2019 10:14:26 +0200 Subject: [Lazarus] Can't build Lazarus trunk because of error in fppkghelper.pas In-Reply-To: <8b3f26df-8ed8-92c3-6161-40f7080a9597@web.de> References: <8b3f26df-8ed8-92c3-6161-40f7080a9597@web.de> Message-ID: Am 15.07.2019 um 01:41 schrieb Simon Ameis via lazarus: > Hello all, > > I'm trying to compile Lazarus trunk revision 61589 with FPC trunk > revision 40356. > > When building the IDE, I get this error: Your FPC trunk is rather old. When I update my FPC to r42449 and Lazarus to r61591 compilation of both completes without issues. From SAmeis.fpc at web.de Mon Jul 15 11:04:19 2019 From: SAmeis.fpc at web.de (Simon Ameis) Date: Mon, 15 Jul 2019 11:04:19 +0200 Subject: [Lazarus] Can't build Lazarus trunk because of error in fppkghelper.pas In-Reply-To: References: <8b3f26df-8ed8-92c3-6161-40f7080a9597@web.de> Message-ID: Am 15.07.2019 um 10:14 schrieb Werner Pamler via lazarus: > Your FPC trunk is rather old. When I update my FPC to r42449 and > Lazarus to r61591 compilation of both completes without issues. Thanks a lot for this hint! I think it was a little late today. Git pulled all the changes but didn't checkout due to local changes, which I totally didn't realize. Now it builds perfecly again. From badsectoracula at gmail.com Wed Jul 17 17:07:50 2019 From: badsectoracula at gmail.com (Kostas Michalopoulos) Date: Wed, 17 Jul 2019 17:07:50 +0200 Subject: [Lazarus] It is a beautiful day... In-Reply-To: References: Message-ID: Sounds interesting. Can i have a package that installs components/controls only available to the project group instead of globally? I often want to have components (and sometimes controls) available on the component palette but not for every project, but so far i see packages need to be installed "lazarus-wide" to expose components to the component palette. On Thu, Jul 11, 2019 at 5:46 PM Michael Van Canneyt via lazarus wrote: > > > Hello, > > For those of you that don't follow the SVN logs closely: > > The IDE now has proper support for Project groups. > Project groups already existed for some time, but were crippled. > > With 2 additions they are now actually very useful: > > - You can let Ctrl-F9 compile the current target in a project group, and that > includes for instance a package ! > (you can set this in Tools - Options - Project groups) > > - "Find in files" now has the option 'Search in project group' > > They now offer all functionality as in Delphi. In difference with the latter, > their use is entirely optional... > > My heartfelt thanks to Mattias for completing the 'Project group' functionality ! > > Michael. > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus From michael at freepascal.org Wed Jul 17 17:53:02 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Wed, 17 Jul 2019 17:53:02 +0200 (CEST) Subject: [Lazarus] It is a beautiful day... In-Reply-To: References: Message-ID: On Wed, 17 Jul 2019, Kostas Michalopoulos via lazarus wrote: > Sounds interesting. Can i have a package that installs > components/controls only available to the project group instead of > globally? I often want to have components (and sometimes controls) > available on the component palette but not for every project, but so > far i see packages need to be installed "lazarus-wide" to expose > components to the component palette. There is a feature request to have named configurations of the component palette. When that is available, one could associate a named configuration to a project group, and this does what you need. Michael. From md at delfire.net Fri Jul 19 05:26:49 2019 From: md at delfire.net (Marcos Douglas B. Santos) Date: Fri, 19 Jul 2019 00:26:49 -0300 Subject: [Lazarus] Adding Required Packages paths... dynamically Message-ID: Hi, Imagine a package that has a dependency for another one. However, this dependency has a conditional to exists. So, I cannot add the Required Package by default — I'm talking about ZeosLib. Then, I used Conditionals (script) for adding ZeosLib paths (-Fu, -Fi) into the paths of the package — amazing work in IDE, by the way. In Custom Options | Conditionals, I have something like this: ===begin=== if undefined(NOSYNDBZEOS) then begin UnitPath += ';$PkgOutDir(zcore);$PkgOutDir(zdbc);$PkgOutDir(zparsesql);$PkgOutDir(zplain)'; IncPath += ';$(ProjOutDir);$PkgDir(zcore)\..\..\src'; end; ===end=== And it works. If user add the package into a project, he/she could compile with/without support to ZeosLib, just checking/unchecking some definition into Defines button. Excellent. However, my only problem occur if user add zcomponent package, which belongs to ZeosLib. If so, I get some hints like this: ``` Note: Duplicate unit "ZVariant" in "mormot_base 1.18", orphaned ppu "\zeos\packages\lazarus\lib\zcore\x86_64-win64\ZVariant.ppu" Note: Duplicate unit "ZVariant" in "zcore 7.2.5", ppu="\zeos\packages\lazarus\lib\zcore\x86_64-win64\ZVariant.ppu", source="\zeos\src\core\ZVariant.pas" Note: Duplicate unit "ZVariables" in "mormot_base 1.18", orphaned ppu "\zeos\packages\lazarus\lib\zcore\x86_64-win64\ZVariables.ppu" Note: Duplicate unit "ZVariables" in "zcore 7.2.5", ppu="\zeos\packages\lazarus\lib\zcore\x86_64-win64\ZVariables.ppu", source="\zeos\src\core\ZVariables.pas" ``` What I don't understand is: Adding ZeosLib into mormot_base package as a dependency (just for testing), I have the same paths as using Conditionals. Then, why the compiler show me these hints when I'm using ZeosLib paths "dynamically" by Conditionals? What should I do to remove them? best regards, Marcos Douglas From md at delfire.net Fri Jul 19 15:21:48 2019 From: md at delfire.net (Marcos Douglas B. Santos) Date: Fri, 19 Jul 2019 10:21:48 -0300 Subject: [Lazarus] Adding Required Packages paths... dynamically In-Reply-To: References: Message-ID: Maybe adding "dynamically" the Required Package, rather using "dynamically paths" by Conditionals, could fix this? But how to do this? Just to be more clear, I don't have any "Duplicate units" as compiler is saying! Thanks. regards, Marcos Douglas From tony.whyman at mccallumwhyman.com Fri Jul 19 15:29:52 2019 From: tony.whyman at mccallumwhyman.com (Tony Whyman) Date: Fri, 19 Jul 2019 14:29:52 +0100 Subject: [Lazarus] Adding Required Packages paths... dynamically In-Reply-To: References: Message-ID: <665f3c55-b108-8291-9978-63efbc6ff58d@mccallumwhyman.com> My understanding is that when you add a "required package" what actually happens is that the IDE adds the package unit paths to the list of unit paths for your project, and adds the top level .pas file for the package (which usually has the same name as the package) to the "uses" clause in your project source file. The latter may not happen if an option is set in the package itself. The result is that the package files get linked into your project. However, if you make the top level .pas file find a conditional reference from the uses clause then the package files only get linked in when the conditional is true. Of course you also must do the same for any other units from the package that you include in your own unit files i.e. make their use conditional as well. On 19/07/2019 14:21, Marcos Douglas B. Santos via lazarus wrote: > Maybe adding "dynamically" the Required Package, rather using > "dynamically paths" by Conditionals, could fix this? > But how to do this? > > Just to be more clear, I don't have any "Duplicate units" as compiler is saying! > Thanks. > > regards, > Marcos Douglas From md at delfire.net Fri Jul 19 16:01:28 2019 From: md at delfire.net (Marcos Douglas B. Santos) Date: Fri, 19 Jul 2019 11:01:28 -0300 Subject: [Lazarus] Adding Required Packages paths... dynamically In-Reply-To: <665f3c55-b108-8291-9978-63efbc6ff58d@mccallumwhyman.com> References: <665f3c55-b108-8291-9978-63efbc6ff58d@mccallumwhyman.com> Message-ID: On Fri, Jul 19, 2019 at 10:30 AM Tony Whyman via lazarus wrote: > > My understanding is that when you add a "required package" what actually > happens is that the IDE adds the package unit paths to the list of unit > paths for your project, and adds the top level .pas file for the package > (which usually has the same name as the package) to the "uses" clause in > your project source file. The latter may not happen if an option is set > in the package itself. I'm not using this option, as we don't need to add all units at the project. > The result is that the package files get linked into your project. > However, if you make the top level .pas file find a conditional > reference from the uses clause then the package files only get linked in > when the conditional is true. Once the user set some defined (-dNOSYNDBZEOS), the conditional will be always true. I don't have issues compiling the Package. I can set add/remove the defined and it gets the dependency paths or remove them. Everything works, but only in Package context. > Of course you also must do the same for any other units from the package > that you include in your own unit files i.e. make their use conditional > as well. I don't get this part. I'm not including units, but paths: if undefined(NOSYNDBZEOS) then begin UnitPath += ';$PkgOutDir(zcore);$PkgOutDir(zdbc);$PkgOutDir(zparsesql);$PkgOutDir(zplain)'; IncPath += ';$PkgDir(zcore)\..\..\src'; end; And these paths do not have the sources (.pas), only the .ppu files. If use like this and click on Show Options on the Project, I can see correct paths to use. if I remove this conditional and add `zcomponent`, which has all these paths, into my package and click on Show Options on the Project, again, I can see the *same* paths. So, I'm thinking this is something on Lazarus context, before sending to compiler, as the paths looks Ok. regards, Marcos Douglas From nc-gaertnma at netcologne.de Sat Jul 20 11:24:51 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sat, 20 Jul 2019 11:24:51 +0200 Subject: [Lazarus] Adding Required Packages paths... dynamically In-Reply-To: References: Message-ID: <20190720112451.339c5c0e@limapholos.matflo.wg> On Fri, 19 Jul 2019 00:26:49 -0300 "Marcos Douglas B. Santos via lazarus" wrote: > Hi, > > Imagine a package that has a dependency for another one. However, this > dependency has a conditional to exists. So, I cannot add the Required > Package by default — I'm talking about ZeosLib. > > Then, I used Conditionals (script) for adding ZeosLib paths (-Fu, -Fi) > into the paths of the package — amazing work in IDE, by the way. > > In Custom Options | Conditionals, I have something like this: > ===begin=== > if undefined(NOSYNDBZEOS) then > begin > UnitPath += > ';$PkgOutDir(zcore);$PkgOutDir(zdbc);$PkgOutDir(zparsesql);$PkgOutDir(zplain)'; > IncPath += ';$(ProjOutDir);$PkgDir(zcore)\..\..\src'; end; > ===end=== > > And it works. If user add the package into a project, he/she could > compile with/without support to ZeosLib, just checking/unchecking some > definition into Defines button. Excellent. > > However, my only problem occur if user add zcomponent package, which > belongs to ZeosLib. If so, I get some hints like this: > ``` > Note: Duplicate unit "ZVariant" in "mormot_base 1.18", orphaned ppu > "\zeos\packages\lazarus\lib\zcore\x86_64-win64\ZVariant.ppu" > Note: Duplicate unit "ZVariant" in "zcore 7.2.5", > ppu="\zeos\packages\lazarus\lib\zcore\x86_64-win64\ZVariant.ppu", > source="\zeos\src\core\ZVariant.pas" It means: Two packages reach the same ppu and only one has a source file. Hmm, that should not create a note. I fixed a check in rev61607, please test with trunk. > Note: Duplicate unit "ZVariables" in "mormot_base 1.18", orphaned ppu > "\zeos\packages\lazarus\lib\zcore\x86_64-win64\ZVariables.ppu" > Note: Duplicate unit "ZVariables" in "zcore 7.2.5", > ppu="\zeos\packages\lazarus\lib\zcore\x86_64-win64\ZVariables.ppu", > source="\zeos\src\core\ZVariables.pas" > ``` > > What I don't understand is: > Adding ZeosLib into mormot_base package as a dependency (just for > testing), I have the same paths as using Conditionals. Then, why the > compiler show me these hints when I'm using ZeosLib paths > "dynamically" by Conditionals? These notes come from Lazarus, not fpc. > What should I do to remove them? Mattias From werner.pamler at freenet.de Sat Jul 20 11:59:56 2019 From: werner.pamler at freenet.de (Werner Pamler) Date: Sat, 20 Jul 2019 11:59:56 +0200 Subject: [Lazarus] It is a beautiful day... In-Reply-To: References: Message-ID: <2bcf16e1-7db8-be5a-f548-685ab8ea82da@freenet.de> Great news! There is one more thing which would be helpful, at least for me. I am maintaining the Lazarus port of JVCL, and this library currently consists of 16 runtime and designtime packages (i.e. 32 lpk files), and when porting proceeds there will be more to follow. As you an imagine, it is a pain to install them manually... I already set up a project group which can compile all the packages, but what is missing is a way to install them. I mean: Could there be a button "Install"? After clicking on this button a routine should iterate through all the items of the project group, find the design time packages, mark them for installation, and finally rebuild the IDE. Can this be done? Werner From nc-gaertnma at netcologne.de Sat Jul 20 12:15:25 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sat, 20 Jul 2019 12:15:25 +0200 Subject: [Lazarus] It is a beautiful day... In-Reply-To: <2bcf16e1-7db8-be5a-f548-685ab8ea82da@freenet.de> References: <2bcf16e1-7db8-be5a-f548-685ab8ea82da@freenet.de> Message-ID: <20190720121525.69fd2d1e@limapholos.matflo.wg> On Sat, 20 Jul 2019 11:59:56 +0200 Werner Pamler via lazarus wrote: > Great news! > > There is one more thing which would be helpful, at least for me. I am > maintaining the Lazarus port of JVCL, and this library currently > consists of 16 runtime and designtime packages (i.e. 32 lpk files), > and when porting proceeds there will be more to follow. As you an > imagine, it is a pain to install them manually... > > I already set up a project group which can compile all the packages, > but what is missing is a way to install them. I mean: Could there be > a button "Install"? After clicking on this button a routine should > iterate through all the items of the project group, find the design > time packages, mark them for installation, and finally rebuild the > IDE. Can this be done? You could create a meta package and install that. Mattias From michael at freepascal.org Sat Jul 20 13:25:10 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Sat, 20 Jul 2019 13:25:10 +0200 (CEST) Subject: [Lazarus] It is a beautiful day... In-Reply-To: <20190720121525.69fd2d1e@limapholos.matflo.wg> References: <2bcf16e1-7db8-be5a-f548-685ab8ea82da@freenet.de> <20190720121525.69fd2d1e@limapholos.matflo.wg> Message-ID: On Sat, 20 Jul 2019, Mattias Gaertner via lazarus wrote: > On Sat, 20 Jul 2019 11:59:56 +0200 > Werner Pamler via lazarus wrote: > >> Great news! >> >> There is one more thing which would be helpful, at least for me. I am >> maintaining the Lazarus port of JVCL, and this library currently >> consists of 16 runtime and designtime packages (i.e. 32 lpk files), >> and when porting proceeds there will be more to follow. As you an >> imagine, it is a pain to install them manually... >> >> I already set up a project group which can compile all the packages, >> but what is missing is a way to install them. I mean: Could there be >> a button "Install"? After clicking on this button a routine should >> iterate through all the items of the project group, find the design >> time packages, mark them for installation, and finally rebuild the >> IDE. Can this be done? > > You could create a meta package and install that. That is one way, but I think the 'install' option would of course also be nice to have. The program group is already there after all. Making a new file just for install purposes seems superfluous... Michael. From werner.pamler at freenet.de Sat Jul 20 15:32:05 2019 From: werner.pamler at freenet.de (Werner Pamler) Date: Sat, 20 Jul 2019 15:32:05 +0200 Subject: [Lazarus] It is a beautiful day... In-Reply-To: <20190720121525.69fd2d1e@limapholos.matflo.wg> References: <2bcf16e1-7db8-be5a-f548-685ab8ea82da@freenet.de> <20190720121525.69fd2d1e@limapholos.matflo.wg> Message-ID: Am 20.07.2019 um 12:15 schrieb Mattias Gaertner via lazarus: > On Sat, 20 Jul 2019 11:59:56 +0200 > Werner Pamler via lazarus wrote: > > You could create a meta package and install that. Excuse my ignorance. , But what is a "meta package"? A package which only contains requirements of other packages? From nc-gaertnma at netcologne.de Sat Jul 20 15:43:35 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sat, 20 Jul 2019 15:43:35 +0200 Subject: [Lazarus] It is a beautiful day... In-Reply-To: References: <2bcf16e1-7db8-be5a-f548-685ab8ea82da@freenet.de> <20190720121525.69fd2d1e@limapholos.matflo.wg> Message-ID: <20190720154335.3f3ad44d@limapholos.matflo.wg> On Sat, 20 Jul 2019 15:32:05 +0200 Werner Pamler via lazarus wrote: > Am 20.07.2019 um 12:15 schrieb Mattias Gaertner via lazarus: > > On Sat, 20 Jul 2019 11:59:56 +0200 > > Werner Pamler via lazarus wrote: > > > > You could create a meta package and install that. > Excuse my ignorance. , But what is a "meta package"? A package which > only contains requirements of other packages? Yes Mattias From werner.pamler at freenet.de Sat Jul 20 19:37:23 2019 From: werner.pamler at freenet.de (Werner Pamler) Date: Sat, 20 Jul 2019 19:37:23 +0200 Subject: [Lazarus] It is a beautiful day... In-Reply-To: <20190720154335.3f3ad44d@limapholos.matflo.wg> References: <2bcf16e1-7db8-be5a-f548-685ab8ea82da@freenet.de> <20190720121525.69fd2d1e@limapholos.matflo.wg> <20190720154335.3f3ad44d@limapholos.matflo.wg> Message-ID: <5da0efac-d4f3-f1d3-4f26-15cdab263b89@freenet.de> Am 20.07.2019 um 15:43 schrieb Mattias Gaertner via lazarus: > On Sat, 20 Jul 2019 15:32:05 +0200 > Werner Pamler via lazarus wrote: > >> Am 20.07.2019 um 12:15 schrieb Mattias Gaertner via lazarus: >>> On Sat, 20 Jul 2019 11:59:56 +0200 >>> Werner Pamler via lazarus wrote: >>> >>> You could create a meta package and install that. >> Excuse my ignorance. , But what is a "meta package"? A package which >> only contains requirements of other packages? > Yes When installing the new meta package "jvcl_all" which contains all designtime packages I get a message "The package jvcl_all does not have any "Register" procedure which typically means it does not provide any IDE addon. Installing it will probably only increase the size of the IDE and may even make it unstable." and I am prompted to either "Install it, I like the fat" or to "Cancel". How can I avoid this? Do I have to provide a dummy registration unit? What does it have to look like? From nc-gaertnma at netcologne.de Sat Jul 20 20:05:32 2019 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sat, 20 Jul 2019 20:05:32 +0200 Subject: [Lazarus] It is a beautiful day... In-Reply-To: <5da0efac-d4f3-f1d3-4f26-15cdab263b89@freenet.de> References: <2bcf16e1-7db8-be5a-f548-685ab8ea82da@freenet.de> <20190720121525.69fd2d1e@limapholos.matflo.wg> <20190720154335.3f3ad44d@limapholos.matflo.wg> <5da0efac-d4f3-f1d3-4f26-15cdab263b89@freenet.de> Message-ID: <20190720200532.5fcc0421@limapholos.matflo.wg> On Sat, 20 Jul 2019 19:37:23 +0200 Werner Pamler via lazarus wrote: > Am 20.07.2019 um 15:43 schrieb Mattias Gaertner via lazarus: > > On Sat, 20 Jul 2019 15:32:05 +0200 > > Werner Pamler via lazarus wrote: > > > >> Am 20.07.2019 um 12:15 schrieb Mattias Gaertner via lazarus: > >>> On Sat, 20 Jul 2019 11:59:56 +0200 > >>> Werner Pamler via lazarus wrote: > >>> > >>> You could create a meta package and install that. > >> Excuse my ignorance. , But what is a "meta package"? A package > >> which only contains requirements of other packages? > > Yes > > When installing the new meta package "jvcl_all" which contains all > designtime packages I get a message > > "The package jvcl_all does not have any "Register" procedure which > typically means it does not provide any IDE addon. Installing it will > probably only increase the size of the IDE and may even make it > unstable." > > and I am prompted to either "Install it, I like the fat" or to > "Cancel". How can I avoid this? Do I have to provide a dummy > registration unit? It should not warn in this case. I fixed the bug. > What does it have to look like? Mattias From werner.pamler at freenet.de Sat Jul 20 21:51:43 2019 From: werner.pamler at freenet.de (Werner Pamler) Date: Sat, 20 Jul 2019 21:51:43 +0200 Subject: [Lazarus] It is a beautiful day... In-Reply-To: <20190720200532.5fcc0421@limapholos.matflo.wg> References: <2bcf16e1-7db8-be5a-f548-685ab8ea82da@freenet.de> <20190720121525.69fd2d1e@limapholos.matflo.wg> <20190720154335.3f3ad44d@limapholos.matflo.wg> <5da0efac-d4f3-f1d3-4f26-15cdab263b89@freenet.de> <20190720200532.5fcc0421@limapholos.matflo.wg> Message-ID: <64f4cfbd-afc0-570f-0bdb-29306f5e9264@freenet.de> Am 20.07.2019 um 20:05 schrieb Mattias Gaertner via lazarus: > On Sat, 20 Jul 2019 19:37:23 +0200 > Werner Pamler via lazarus wrote: > >> Am 20.07.2019 um 15:43 schrieb Mattias Gaertner via lazarus: >>> On Sat, 20 Jul 2019 15:32:05 +0200 >>> Werner Pamler via lazarus wrote: >>> >>>> Am 20.07.2019 um 12:15 schrieb Mattias Gaertner via lazarus: >>>>> On Sat, 20 Jul 2019 11:59:56 +0200 >>>>> Werner Pamler via lazarus wrote: >>>>> >>>>> You could create a meta package and install that. >>>> Excuse my ignorance. , But what is a "meta package"? A package >>>> which only contains requirements of other packages? >>> Yes >> When installing the new meta package "jvcl_all" which contains all >> designtime packages I get a message >> >> "The package jvcl_all does not have any "Register" procedure which >> typically means it does not provide any IDE addon. Installing it will >> probably only increase the size of the IDE and may even make it >> unstable." >> >> and I am prompted to either "Install it, I like the fat" or to >> "Cancel". How can I avoid this? Do I have to provide a dummy >> registration unit? > It should not warn in this case. I fixed the bug. Thanks. It works correctly now. From md at delfire.net Sun Jul 21 16:56:21 2019 From: md at delfire.net (Marcos Douglas B. Santos) Date: Sun, 21 Jul 2019 11:56:21 -0300 Subject: [Lazarus] Adding Required Packages paths... dynamically In-Reply-To: <20190720112451.339c5c0e@limapholos.matflo.wg> References: <20190720112451.339c5c0e@limapholos.matflo.wg> Message-ID: On Sat, Jul 20, 2019 at 6:24 AM Mattias Gaertner via lazarus wrote: > > On Fri, 19 Jul 2019 00:26:49 -0300 > "Marcos Douglas B. Santos via lazarus" > wrote: > > > Hi, > > > > Imagine a package that has a dependency for another one. However, this > > dependency has a conditional to exists. So, I cannot add the Required > > Package by default — I'm talking about ZeosLib. > > > > Then, I used Conditionals (script) for adding ZeosLib paths (-Fu, -Fi) > > into the paths of the package — amazing work in IDE, by the way. > > > > In Custom Options | Conditionals, I have something like this: > > ===begin=== > > if undefined(NOSYNDBZEOS) then > > begin > > UnitPath += > > ';$PkgOutDir(zcore);$PkgOutDir(zdbc);$PkgOutDir(zparsesql);$PkgOutDir(zplain)'; > > IncPath += ';$(ProjOutDir);$PkgDir(zcore)\..\..\src'; end; > > ===end=== > > > > And it works. If user add the package into a project, he/she could > > compile with/without support to ZeosLib, just checking/unchecking some > > definition into Defines button. Excellent. > > > > However, my only problem occur if user add zcomponent package, which > > belongs to ZeosLib. If so, I get some hints like this: > > ``` > > Note: Duplicate unit "ZVariant" in "mormot_base 1.18", orphaned ppu > > "\zeos\packages\lazarus\lib\zcore\x86_64-win64\ZVariant.ppu" > > Note: Duplicate unit "ZVariant" in "zcore 7.2.5", > > ppu="\zeos\packages\lazarus\lib\zcore\x86_64-win64\ZVariant.ppu", > > source="\zeos\src\core\ZVariant.pas" > > It means: Two packages reach the same ppu and only one has a source > file. Hmm, that should not create a note. > I fixed a check in rev61607, please test with trunk. Thanks. Do you think this is a hack to add packages dynamically, or is it the right way? regards, Marcos Douglas From mlnglsts at bgss.hu Mon Jul 22 20:18:51 2019 From: mlnglsts at bgss.hu (Gabor Boros) Date: Mon, 22 Jul 2019 20:18:51 +0200 Subject: [Lazarus] SynEdit - Why a new line added at the end of the text? Message-ID: <795d0e09-1c46-b6e4-36ba-36a8861cbf6d@bgss.hu> Hi All, procedure TForm1.Button1Click(Sender: TObject); var SE:TSynEdit; begin SE:=TSynEdit.Create(Self); SE.Text:='abc'; ShowMessage('*'+SE.Text+'*'); For me the above code show the next message: *abc * Any idea why a new line added? With TMemo the result: *abc* I use fixes_2_0 with FPC fixes_3_2 on Windows 64bit. Gabor From lazarus at mfriebe.de Mon Jul 22 20:32:33 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Mon, 22 Jul 2019 20:32:33 +0200 Subject: [Lazarus] SynEdit - Why a new line added at the end of the text? In-Reply-To: <795d0e09-1c46-b6e4-36ba-36a8861cbf6d@bgss.hu> References: <795d0e09-1c46-b6e4-36ba-36a8861cbf6d@bgss.hu> Message-ID: <6960f147-93ba-6440-b3ed-2bd25c632be1@mfriebe.de> On 22/07/2019 20:18, Gabor Boros via lazarus wrote: > Hi All, > > > procedure TForm1.Button1Click(Sender: TObject); > var >   SE:TSynEdit; > > begin >   SE:=TSynEdit.Create(Self); >   SE.Text:='abc'; >   ShowMessage('*'+SE.Text+'*'); > > > For me the above code show the next message: > > *abc > * > > Any idea why a new line added? With TMemo the result: *abc* > > I use fixes_2_0 with FPC fixes_3_2 on Windows 64bit. SynEdit stores the text as one string per line. And it does not currently store the line-endings. When you retrieve the entire text as one string, each line is ended by a line-ending. So if you have one line in there, then that line gets a line ending when you read it back. From sysrpl at gmail.com Wed Jul 24 13:19:03 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Wed, 24 Jul 2019 07:19:03 -0400 Subject: [Lazarus] A SQL Explorer Program. Suggestions? Message-ID: I am looking for a good SQL Explorer tool that I can build using Lazarus. Does anyone have any options on what's already available? This project hasn't been updated since 2009: https://sourceforge.net/p/sqlexplorer/code/HEAD/tree/trunk/sqlexplorer/ What I am looking or is a program with source that compiles without too much effort and has these features: Allows you to connect to a database. Uses a SynEdit to highlight and edit SQL statements. Displays results in a grid or in text below the SQL editor. Also formats SQL syntax or other errors in an area below the SQL editor. Yes I could write my own program that does all this, but if someone has a suggestion of a program I can compile that does all this nicely I'd appreciate any recommendations. -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Wed Jul 24 13:22:22 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Wed, 24 Jul 2019 13:22:22 +0200 (CEST) Subject: [Lazarus] A SQL Explorer Program. Suggestions? In-Reply-To: References: Message-ID: On Wed, 24 Jul 2019, Anthony Walter via lazarus wrote: > I am looking for a good SQL Explorer tool that I can build using Lazarus. > Does anyone have any options on what's already available? > > This project hasn't been updated since 2009: > > https://sourceforge.net/p/sqlexplorer/code/HEAD/tree/trunk/sqlexplorer/ > > What I am looking or is a program with source that compiles without too > much effort and has these features: > > Allows you to connect to a database. Uses a SynEdit to highlight and edit > SQL statements. Displays results in a grid or in text below the SQL editor. > Also formats SQL syntax or other errors in an area below the SQL editor. > > Yes I could write my own program that does all this, but if someone has a > suggestion of a program I can compile that does all this nicely I'd > appreciate any recommendations. The Lazarus data desktop comes standard with lazarus, has all these features and more. (see lazarus/tools/lazdatadesktop/ I maintain it actively. If you have suggestions for improvements (or patches), always welcome. Michael. From genericptr at gmail.com Wed Jul 24 18:33:36 2019 From: genericptr at gmail.com (Ryan Joseph) Date: Wed, 24 Jul 2019 10:33:36 -0600 Subject: [Lazarus] Running using lazbuild Message-ID: Can the “lazbuild” tool be used to run a project exactly like if I press the run button in Lazarus? I have project which runs in Lazarus but doing “lazbuild project.lpi” gives me errors suggesting it didn’t do exactly the same thing. Regards, Ryan Joseph From lazarus at mfriebe.de Thu Jul 25 12:14:01 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Thu, 25 Jul 2019 12:14:01 +0200 Subject: [Lazarus] We are planning the next release: Lazarus 2.0.2 Message-ID: <23c0aae2-9f0f-a0a5-630c-f713c01fb1fe@mfriebe.de> The Lazarus team is glad to announce that:      The release of Lazarus 2.0.4 has been scheduled for the week starting      5th August 2019 This release will be built with FPC 3.0.4. The previous release Lazarus 2.0.2 was built with FPC 3.0.4 as well. Here is the list of fixes for Lazarus 2.0.2 (since 2.0.0): http://wiki.freepascal.org/Lazarus_2.0_fixes_branch We would invite everyone to provide their feedback to help us improve this upcoming release. Please let as know in particular: - Any fixes made to trunk, that you believe should still be merged to the fixes branch (fixes that are not listed on the above wiki page) - Any regressions that happened in fixes branch since the last release - Other urgent matters, you believe we should know before the release. Please attempt to provide your feedback by: 1st August 2019 More info on our release process can be found at (work in progress): http://wiki.lazarus.freepascal.org/Lazarus_release_engineering Information about the previous release: http://wiki.lazarus.freepascal.org/Lazarus_2.0.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.0.4 The intended minimum requirements for the release will be: Windows:   2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit. FreeBSD/Linux:   gtk 2.8 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit. Mac OS X:   10.5 to 10.12; Carbon (32bit), Cocoa (64bit, beta), qt and qt5   (32 or 64bit). -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmpessoa at hotmail.com Thu Jul 25 21:39:36 2019 From: jmpessoa at hotmail.com (=?iso-8859-1?Q?Jos=E9_Marques_Pessoa?=) Date: Thu, 25 Jul 2019 19:39:36 +0000 Subject: [Lazarus] We are planning the next release: Lazarus 2.0.2 In-Reply-To: <23c0aae2-9f0f-a0a5-630c-f713c01fb1fe@mfriebe.de> References: <23c0aae2-9f0f-a0a5-630c-f713c01fb1fe@mfriebe.de> Message-ID: About sparta_dockedformeditor: Reference: Lazarus rev 61223 "sparta_mainide.pas" [....\components\sparta\dockedformeditor\source] We can expect this fix to incoming lazarus 2.0.4 ? Thanks to All! ________________________________ From: lazarus on behalf of Martin Frb via lazarus Sent: Thursday, July 25, 2019 6:14 AM To: NORMAL Lazarus mailing Cc: Martin Frb Subject: [Lazarus] We are planning the next release: Lazarus 2.0.2 The Lazarus team is glad to announce that: The release of Lazarus 2.0.4 has been scheduled for the week starting 5th August 2019 This release will be built with FPC 3.0.4. The previous release Lazarus 2.0.2 was built with FPC 3.0.4 as well. Here is the list of fixes for Lazarus 2.0.2 (since 2.0.0): http://wiki.freepascal.org/Lazarus_2.0_fixes_branch We would invite everyone to provide their feedback to help us improve this upcoming release. Please let as know in particular: - Any fixes made to trunk, that you believe should still be merged to the fixes branch (fixes that are not listed on the above wiki page) - Any regressions that happened in fixes branch since the last release - Other urgent matters, you believe we should know before the release. Please attempt to provide your feedback by: 1st August 2019 More info on our release process can be found at (work in progress): http://wiki.lazarus.freepascal.org/Lazarus_release_engineering Information about the previous release: http://wiki.lazarus.freepascal.org/Lazarus_2.0.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.0.4 The intended minimum requirements for the release will be: Windows: 2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit. FreeBSD/Linux: gtk 2.8 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit. Mac OS X: 10.5 to 10.12; Carbon (32bit), Cocoa (64bit, beta), qt and qt5 (32 or 64bit). -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at mfriebe.de Fri Jul 26 13:59:42 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Fri, 26 Jul 2019 13:59:42 +0200 Subject: [Lazarus] We are planning the next release: Lazarus 2.0.2 In-Reply-To: References: <23c0aae2-9f0f-a0a5-630c-f713c01fb1fe@mfriebe.de> Message-ID: <82c51611-c1fa-07f7-e13e-aa332cddf7f1@mfriebe.de> On 25/07/2019 21:39, José Marques Pessoa via lazarus wrote: > About sparta_dockedformeditor: > > Reference: >  Lazarus rev 61223 > "sparta_mainide.pas" [....\components\sparta\dockedformeditor\source] > > We can expect this fix to incoming lazarus 2.0.4 ? > Thanks, marked for 2.0.4 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sysrpl at gmail.com Fri Jul 26 13:45:23 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Fri, 26 Jul 2019 07:45:23 -0400 Subject: [Lazarus] freetds + lazarus cannot get around "some character(s) could not be converted" error Message-ID: I am attempting to write a Lazarus program using a TMSSQLConnection on Linux (Ubuntu 16.04 64 bit) with FreeTDS. Whenever I try to apply updates on my TSQLQuery component and commit the transaction on its associated TSQLtransaction component I receive this error: An error occurred while applying the updates in a record: Connection : Error 2403 : Attempt to initiate a new Adaptive Server operation with results pending Some character(s) could not be converted into client's character set. Unconverted bytes were changed to question marks ('?') Some character(s) could not be converted into client's character set. Unconverted bytes were changed to question marks ('?') Some character(s) could not be converted into client's character set. Unconverted bytes were changed to question marks ('?') Some character(s) could not be converted into client's character set. Unconverted bytes were changed to question marks ('?') . Press OK to ignore and risk data corruption. Press Abort to kill the program If I press OK the updates are not actually applied. It looks like no matter what I do I cannot edit field values and have them applied to the SQL server database. I have tried changing the freetds.conf file to include the following: [global] client charset = UTF-8 And when I use the tsql command in a Linux terminal with my server I get the following: tsql -H -p 1433 -U Password: locale is "en_US.UTF-8" locale charset is "UTF-8" using default charset "UTF-8" 1> exit I have even tried setting the charset property on the TMSSQLConnection to UTF-8. End the end all my attempts result in the same thing. I get that error message when I apply and commit, and no changes are applied on the actual database. Does anyone have any suggestions? -------------- next part -------------- An HTML attachment was scrubbed... URL: From lacak at zoznam.sk Mon Jul 29 07:35:10 2019 From: lacak at zoznam.sk (LacaK) Date: Mon, 29 Jul 2019 07:35:10 +0200 Subject: [Lazarus] freetds + lazarus cannot get around "some character(s) could not be converted" error In-Reply-To: References: Message-ID: <8cf504d3-a964-18ef-40a0-b30f069fb1f4@zoznam.sk> Hello, > I am attempting to write a Lazarus program using a TMSSQLConnection on > Linux (Ubuntu 16.04 64 bit) with FreeTDS. Whenever I try to apply > updates on my TSQLQuery component and commit the transaction on its > associated TSQLtransaction component I receive this error: > > An error occurred while applying the updates in a record: > Connection : Error 2403 : > Attempt to initiate a new Adaptive Server operation with results > pending > Some character(s) could not be converted into client's character > set.  Unconverted bytes were changed to question marks ('?') > Some character(s) could not be converted into client's character > set.  Unconverted bytes were changed to question marks ('?') > Some character(s) could not be converted into client's character > set.  Unconverted bytes were changed to question marks ('?') > Some character(s) could not be converted into client's character > set.  Unconverted bytes were changed to question marks ('?') > . > > Press OK to ignore and risk data corruption. > Press Abort to kill the program > > > If I press OK the updates are not actually applied. It looks like no > matter what I do I cannot edit field values and have them applied to > the SQL server database. > > I have tried changing the freetds.conf file to include the following: > > [global] > client charset = UTF-8 > probably try add also: dump file = freetds.log then you can look into log file what and when actually happens ... > > I have even tried setting the charset property on the TMSSQLConnection > to UTF-8. Yes it is needed What verision of FPC/Lazarus do you use? Do you have DefaultSystemCodePage = UTF8 ? Can you try with TRUNK or 3.2 branch? What is version of remote SQL Server ? -Laco. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrea.mauri.75 at gmail.com Mon Jul 29 13:54:12 2019 From: andrea.mauri.75 at gmail.com (Andrea Mauri) Date: Mon, 29 Jul 2019 13:54:12 +0200 Subject: [Lazarus] laz fixes 2.0 error on macOS cocoa Message-ID: Dear All, I updated my svn: URL: https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0 Relative URL: ^/branches/fixes_2_0 Repository Root: https://svn.freepascal.org/svn/lazarus Repository UUID: 4005530d-fff6-0310-9dd1-cebe43e6787f Revision: 61640 When I try to build lazarus I get: Assembling (pipe) units/x86_64-darwin/wscomctrls.s customupdown.inc(467,10) Error: Identifier not found "FUseWS" treeview.inc(1878,16) Warning: Conversion between ordinals and pointers is not portable treeview.inc(1935,22) Warning: Conversion between ordinals and pointers is not portable comctrls.pp(4187) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted make[1]: *** [alllclunits.ppu] Error 1 make: *** [lazbuild] Error 2 Best regards, Andrea -------------- next part -------------- An HTML attachment was scrubbed... URL: From skalogryz.lists at gmail.com Mon Jul 29 14:41:30 2019 From: skalogryz.lists at gmail.com (Dmitry Boyarintsev) Date: Mon, 29 Jul 2019 08:41:30 -0400 Subject: [Lazarus] laz fixes 2.0 error on macOS cocoa In-Reply-To: References: Message-ID: Try to update to r61642 On Mon, Jul 29, 2019 at 7:54 AM Andrea Mauri via lazarus < lazarus at lists.lazarus-ide.org> wrote: > Dear All, > I updated my svn: > > URL: https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0 > > Relative URL: ^/branches/fixes_2_0 > > Repository Root: https://svn.freepascal.org/svn/lazarus > > Repository UUID: 4005530d-fff6-0310-9dd1-cebe43e6787f > > Revision: 61640 > > > When I try to build lazarus I get: > > > Assembling (pipe) units/x86_64-darwin/wscomctrls.s > > customupdown.inc(467,10) Error: Identifier not found "FUseWS" > > treeview.inc(1878,16) Warning: Conversion between ordinals and pointers is > not portable > > treeview.inc(1935,22) Warning: Conversion between ordinals and pointers is > not portable > > comctrls.pp(4187) Fatal: There were 1 errors compiling module, stopping > > Fatal: Compilation aborted > > make[1]: *** [alllclunits.ppu] Error 1 > > make: *** [lazbuild] Error 2 > > > Best regards, > > Andrea > -- > _______________________________________________ > 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 andrea.mauri.75 at gmail.com Mon Jul 29 14:52:36 2019 From: andrea.mauri.75 at gmail.com (Andrea Mauri) Date: Mon, 29 Jul 2019 14:52:36 +0200 Subject: [Lazarus] laz fixes 2.0 error on macOS cocoa In-Reply-To: References: Message-ID: Updated and compiled. Thank you! Il giorno lun 29 lug 2019 alle ore 14:41 Dmitry Boyarintsev via lazarus < lazarus at lists.lazarus-ide.org> ha scritto: > Try to update to r61642 > > On Mon, Jul 29, 2019 at 7:54 AM Andrea Mauri via lazarus < > lazarus at lists.lazarus-ide.org> wrote: > >> Dear All, >> I updated my svn: >> >> URL: https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0 >> >> Relative URL: ^/branches/fixes_2_0 >> >> Repository Root: https://svn.freepascal.org/svn/lazarus >> >> Repository UUID: 4005530d-fff6-0310-9dd1-cebe43e6787f >> >> Revision: 61640 >> >> >> When I try to build lazarus I get: >> >> >> Assembling (pipe) units/x86_64-darwin/wscomctrls.s >> >> customupdown.inc(467,10) Error: Identifier not found "FUseWS" >> >> treeview.inc(1878,16) Warning: Conversion between ordinals and pointers >> is not portable >> >> treeview.inc(1935,22) Warning: Conversion between ordinals and pointers >> is not portable >> >> comctrls.pp(4187) Fatal: There were 1 errors compiling module, stopping >> >> Fatal: Compilation aborted >> >> make[1]: *** [alllclunits.ppu] Error 1 >> >> make: *** [lazbuild] Error 2 >> >> >> Best regards, >> >> Andrea >> -- >> _______________________________________________ >> 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 sysrpl at gmail.com Tue Jul 30 14:56:44 2019 From: sysrpl at gmail.com (Anthony Walter) Date: Tue, 30 Jul 2019 08:56:44 -0400 Subject: [Lazarus] freetds + lazarus cannot get around "some character(s) could not be converted" error In-Reply-To: <8cf504d3-a964-18ef-40a0-b30f069fb1f4@zoznam.sk> References: <8cf504d3-a964-18ef-40a0-b30f069fb1f4@zoznam.sk> Message-ID: Laco, I set the SetMultiByteConversionCodePage(65001) and it worked. Then I removed it and it still worked. The only thing that has changed is that I've rebooted since editing the tds configuration files, so maybe that was the problem. Thanks for responding. Anthony -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Tue Jul 30 15:06:33 2019 From: michael at freepascal.org (Michael Van Canneyt) Date: Tue, 30 Jul 2019 15:06:33 +0200 (CEST) Subject: [Lazarus] freetds + lazarus cannot get around "some character(s) could not be converted" error In-Reply-To: References: <8cf504d3-a964-18ef-40a0-b30f069fb1f4@zoznam.sk> Message-ID: On Tue, 30 Jul 2019, Anthony Walter via lazarus wrote: > Laco, > > I set the SetMultiByteConversionCodePage(65001) and it worked. Then I > removed it and it still worked. The only thing that has changed is that > I've rebooted since editing the tds configuration files, so maybe that was > the problem. > > Thanks for responding. Maybe this kind of info can be added to the Wiki. https://wiki.freepascal.org/SqlDBHowto seems like a good location... Michael. From strickland.danny at protonmail.com Tue Jul 30 19:52:00 2019 From: strickland.danny at protonmail.com (strickland.danny) Date: Tue, 30 Jul 2019 17:52:00 +0000 Subject: [Lazarus] Trouble creating a Lazarus Forum Account Message-ID: Hello. I am having trouble creating a Lazarus Forum Account. I confirmed that my Username is not being used by anyone. My password passes check. So does the CAPTCHA and the spelling of Lazarus backwards. However, when it asks to spell in text the answer to 1+2= it errors out and says I was rejected for spamming. I tried spelling 3 with Three and three. But nothing works. Is this a bug or am I doing something wrong? Thanks for any suggestions. Sent with [ProtonMail](https://protonmail.com) Secure Email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at mfriebe.de Tue Jul 30 20:13:30 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Tue, 30 Jul 2019 20:13:30 +0200 Subject: [Lazarus] Trouble creating a Lazarus Forum Account In-Reply-To: References: Message-ID: <42758bca-7ee8-0e06-6468-d951b5e69000@mfriebe.de> On 30/07/2019 19:52, strickland.danny via lazarus wrote: > Hello.  I am having trouble creating a Lazarus Forum Account.  I > confirmed that my Username is not being used by anyone.  My password > passes check.  So does the CAPTCHA and the spelling of Lazarus > backwards.  However, when it asks to spell in text the answer to > 1+2=    it errors out and says I was rejected for spamming.  I tried > spelling 3 with Three and three.  But nothing works.  Is this a bug or > am I doing something wrong? > What username did you try? Do you know what IP you are coming from? Maybe the IP is blocked from a previous spam attempt? From fpc at pascalprogramming.org Tue Jul 30 23:10:16 2019 From: fpc at pascalprogramming.org (Marco van de Voort) Date: Tue, 30 Jul 2019 23:10:16 +0200 Subject: [Lazarus] Trouble creating a Lazarus Forum Account In-Reply-To: References: Message-ID: <7d1f879c-f212-016d-78e6-7a8d1d84300d@pascalprogramming.org> Op 2019-07-30 om 19:52 schreef strickland.danny via lazarus: >  to 1+2=    it errors out and says I was rejected for spamming.  I > tried spelling 3 with Three and three.  But nothing works.  Is this a > bug or am I doing something wrong? > Are you sure it is 1+2 and not '1'+'2' which would be a string concatenation rather than an addition? From lazarus at mfriebe.de Tue Jul 30 23:19:17 2019 From: lazarus at mfriebe.de (Martin Frb) Date: Tue, 30 Jul 2019 23:19:17 +0200 Subject: [Lazarus] Trouble creating a Lazarus Forum Account In-Reply-To: <7d1f879c-f212-016d-78e6-7a8d1d84300d@pascalprogramming.org> References: <7d1f879c-f212-016d-78e6-7a8d1d84300d@pascalprogramming.org> Message-ID: <9a8f2b34-7390-a09a-b411-c2b8ea718206@mfriebe.de> On 30/07/2019 23:10, Marco van de Voort via lazarus wrote: > > Op 2019-07-30 om 19:52 schreef strickland.danny via lazarus: >>  to 1+2=    it errors out and says I was rejected for spamming.  I >> tried spelling 3 with Three and three.  But nothing works.  Is this a >> bug or am I doing something wrong? >> > Are you sure it is 1+2 and not '1'+'2' which would be a string > concatenation rather than an addition? Issue is solved, he did hit the anti spam list