Re: [fpc-devel] What status of the next FPC release?

2025-05-21 Thread Michael Van Canneyt via fpc-devel
On Tue, 20 May 2025, Bishop via fpc-devel wrote: Hi guys. There is long time pass since i seen last information about FPC development progress and it next release. The FPC website in no update too. So i want ask: 1) What is next version of FPC planned to release? Is it 3.2.4? Yes. 2) Whe

Re: [fpc-devel] heap.inc evo when

2025-04-18 Thread Michael Van Canneyt via fpc-devel
On Fri, 18 Apr 2025, Florian Klämpfl via fpc-devel wrote: Am 18.04.2025 um 15:10 schrieb Michael Van Canneyt via fpc-devel : On Fri, 18 Apr 2025, Michael Van Canneyt via fpc-devel wrote: On Fri, 18 Apr 2025, Florian Klämpfl via fpc-devel wrote: Am 18.04.2025 um 14:07 schrieb

Re: [fpc-devel] heap.inc evo when

2025-04-18 Thread Michael Van Canneyt via fpc-devel
On Fri, 18 Apr 2025, Michael Van Canneyt via fpc-devel wrote: On Fri, 18 Apr 2025, Florian Klämpfl via fpc-devel wrote: Am 18.04.2025 um 14:07 schrieb Michael Van Canneyt via fpc-devel : On Fri, 18 Apr 2025, Florian Klämpfl via fpc-devel wrote: Am 16.04.2025 um 12:00 schrieb

Re: [fpc-devel] heap.inc evo when

2025-04-18 Thread Michael Van Canneyt via fpc-devel
On Fri, 18 Apr 2025, Florian Klämpfl via fpc-devel wrote: Am 18.04.2025 um 14:07 schrieb Michael Van Canneyt via fpc-devel : On Fri, 18 Apr 2025, Florian Klämpfl via fpc-devel wrote: Am 16.04.2025 um 12:00 schrieb Michael Van Canneyt via fpc-devel : On Wed, 16 Apr 2025, Florian

Re: [fpc-devel] heap.inc evo when

2025-04-18 Thread Michael Van Canneyt via fpc-devel
On Fri, 18 Apr 2025, Michael Van Canneyt via fpc-devel wrote: On Fri, 18 Apr 2025, Florian Klämpfl via fpc-devel wrote: Am 16.04.2025 um 12:00 schrieb Michael Van Canneyt via fpc-devel : On Wed, 16 Apr 2025, Florian Klämpfl via fpc-devel wrote: On 15.04.25 22:52, runewalsh via

Re: [fpc-devel] heap.inc evo when

2025-04-18 Thread Michael Van Canneyt via fpc-devel
On Fri, 18 Apr 2025, Florian Klämpfl via fpc-devel wrote: Am 16.04.2025 um 12:00 schrieb Michael Van Canneyt via fpc-devel : On Wed, 16 Apr 2025, Florian Klämpfl via fpc-devel wrote: On 15.04.25 22:52, runewalsh via fpc-devel wrote: What’s the position on MR !694? Person with the

Re: [fpc-devel] heap.inc evo when

2025-04-16 Thread Michael Van Canneyt via fpc-devel
On Wed, 16 Apr 2025, Florian Klämpfl via fpc-devel wrote: On 15.04.25 22:52, runewalsh via fpc-devel wrote: What’s the position on MR !694? Person with the yellow avatar mentioned in https://gitlab.com/freepascal.org/fpc/source/-/ commit/922457e5b58d76a13ff706f9220d9d6350631930#note_23906567

Re: [fpc-devel] Who maintains TDictionary? // Re: RFC: Improvements for TDictionary and other hash containers

2025-04-13 Thread Michael Van Canneyt via fpc-devel
On Sun, 13 Apr 2025, Martin Frb via fpc-devel wrote: When the mailer decides to sent On 13/04/2025 21:17, Martin Frb wrote: On 13/04/2025 20:43, Michael Van Canneyt via fpc-devel wrote: But why don't you simply use a TList with your custom comparer ? You can the

Re: [fpc-devel] Who maintains TDictionary? // Re: RFC: Improvements for TDictionary and other hash containers

2025-04-13 Thread Michael Van Canneyt via fpc-devel
On Sun, 13 Apr 2025, Martin Frb via fpc-devel wrote: On 13/04/2025 20:43, Michael Van Canneyt via fpc-devel wrote: But why don't you simply use a TList with your custom comparer ? You can then use List.BinarySearch() and retrieve the existing TRange at once? Your solution seems

Re: [fpc-devel] Who maintains TDictionary? // Re: RFC: Improvements for TDictionary and other hash containers

2025-04-13 Thread Michael Van Canneyt via fpc-devel
On Sun, 13 Apr 2025, Martin Frb via fpc-devel wrote: On 13/04/2025 19:49, Michael Van Canneyt wrote: On Sun, 13 Apr 2025, Martin Frb via fpc-devel wrote: Just want to know if there is any interest?   Or if I just gonna do my own copy (somewhere in LazUtils) The 1-4 are interesting so MR

Re: [fpc-devel] Who maintains TDictionary? // Re: RFC: Improvements for TDictionary and other hash containers

2025-04-13 Thread Michael Van Canneyt via fpc-devel
On Sun, 13 Apr 2025, Martin Frb via fpc-devel wrote: Just want to know if there is any interest?   Or if I just gonna do my own copy (somewhere in LazUtils) The 1-4 are interesting so MR is welcome, the 5 I don't understand what you want to achieve, I would assume a custom comparer is simpl

Re: [fpc-devel] "automated" section

2025-04-13 Thread Michael Van Canneyt via fpc-devel
On Sun, 13 Apr 2025, Martin Frb via fpc-devel wrote: According to a comment in the Lazarus Highlighter code, there either is or used to be a class section "automated" (just like public, private, ...) I can't find many refs in the fpc source. The most helpful (if calling it that) is from  pa

Re: [fpc-devel] System.UITypes and Lazarus

2025-02-09 Thread Michael Van Canneyt via fpc-devel
On Sun, 9 Feb 2025, Bart via fpc-devel wrote: Hi, The Delphi compatible unit System.UITypes is getting out of sync with Lazarus. The reason for this is twofold: 1. the faster release cycle of Lazarus 2. the fact that Lazarus supports more widgetsets, for which we also need enumerations, and

Re: [fpc-devel] Mouse scroll implementation in FV

2025-01-10 Thread Michael Van Canneyt via fpc-devel
On Fri, 10 Jan 2025, Marģers . via fpc-devel wrote: I have been working on fixing up Textmode IDE and some related packages (Free Vision, rtl-console) One of the recent large improvement is scrolling by mouse. I am happy how it turned out. I tested the changes, works really well :-) Cur

Re: [fpc-devel] Please review bug #41018 in fcl-report (patch added)

2025-01-10 Thread Michael Van Canneyt via fpc-devel
On Fri, 10 Jan 2025, Peter via fpc-devel wrote: Hello, Can anyone have a look at this bug in fcl-report: https://gitlab.com/freepascal.org/fpc/source/-/issues/41018 The bug makes using groups with aggregates unusable. The bug also happens in the included demo in fcl-report. I think I found

Re: [fpc-devel] Current "state of opinion" on multiline strings?

2024-12-22 Thread Michael Van Canneyt via fpc-devel
On Sat, 21 Dec 2024, Ben Grasset via fpc-devel wrote: Facts: - Michael VC did not originally like the entire idea at all, if I recall correctly. However, he eventually added an implementation of it to Pas2JS that works literally the exact same as my main FPC compiler one does. - Delphi (in th

Re: [fpc-devel] TStrings.Slice: just curious

2024-12-18 Thread Michael Van Canneyt via fpc-devel
On Tue, 17 Dec 2024, Bart via fpc-devel wrote: Hi, We have: Procedure TStrings.Slice(fromIndex: integer; aList : TStrings); (and a similar function) I can figure scenario's where also an EndIndex would come in handy: Procedure TStrings.Slice(fromIndex, EndIndex integer; aList : TStrings);

Re: [fpc-devel] endless loop in compiler

2024-10-28 Thread Michael Van Canneyt via fpc-devel
On Mon, 28 Oct 2024, Martin Frb via fpc-devel wrote: I don't have much info, but maybe someone can look here. It's about fpc 3.3.1, and my best guess is that the compiler enters an endless loop. There is a bit of a stacktrace,but not much possible unit loading related. https://forum.

Re: [fpc-devel] threadvar vs docs

2024-10-18 Thread Michael Van Canneyt via fpc-devel
On Fri, 18 Oct 2024, Nikolay Nikolov via fpc-devel wrote: On 10/18/24 12:10 AM, Martin Frb via fpc-devel wrote: https://wiki.freepascal.org/Threadvar If threads are used then a copy is made for each thread (including the main thread). Note that the copy is made with the original value of t

Re: [fpc-devel] unicodertl fails to compile on darwin

2024-09-08 Thread Michael Van Canneyt via fpc-devel
On Sun, 8 Sep 2024, Mattias Gaertner via fpc-devel wrote: Hi, Following the instructions on the wiki compiling the subtarget unicodertl fails. Wiki: https://wiki.freepascal.org/FPC_Unicode_RTL#Compiling_the_namespaced_unicode_RTL Compiling rtl works, but compiling packages fails: make

Re: [fpc-devel] Published record

2024-08-18 Thread Michael Van Canneyt via fpc-devel
On Sat, 17 Aug 2024, Michalis Kamburelis wrote: Thanks Michael! OK, that's partially good news :) I understand that streaming records by default to LFM would lead to too many questions (and I'm unsure whether Delphi does it too, for records and DFM). It does not. Streaming has not change

Re: [fpc-devel] Published record

2024-08-17 Thread Michael Van Canneyt via fpc-devel
On Sat, 17 Aug 2024, Kostas Michalopoulos via fpc-devel wrote: On 8/16/24 8:40 PM, Michalis Kamburelis via fpc-devel wrote: If we could instead just put TVector3 in the published section, and make it exposed in the object inspector (maybe adding some additional code to use RTTI, but that is

Re: [fpc-devel] Published record

2024-08-17 Thread Michael Van Canneyt via fpc-devel
On Fri, 16 Aug 2024, Michalis Kamburelis via fpc-devel wrote: You cannot publish records, and this is not planned. This is because things like MyClass.MyRecord.MyField:=12; do not work as one would naively expect. It does work if you use a TPersistent instead of a record (the very reason t

Re: [fpc-devel] Published record

2024-08-15 Thread Michael Van Canneyt via fpc-devel
On Thu, 15 Aug 2024, Mattias Gaertner via fpc-devel wrote: Hi, What is the state of published record in fpc trunk? You cannot publish records, and this is not planned. This is because things like MyClass.MyRecord.MyField:=12; do not work as one would naively expect. It does work if you

Re: [fpc-devel] [Fpc-mirrors] FPC 3.2.2, miért nincs tovább fejlesztve ...

2024-08-13 Thread Michael Van Canneyt via fpc-devel
Hungarian: -- Legyen szíves angolul írni. A levelezőlista nyelve angol. Valószínűleg csak néhány ember van itt, aki ért magyarul. Valószínűleg a többiek is szeretnék érteni, amit írsz. (a "Google fordító" segítségével fordítva) Köszönöm. English: Please have the courte

Re: [fpc-devel] Maybe missing assigned check? TBasicActionLink.Update

2024-08-13 Thread Michael Van Canneyt via fpc-devel
On Sat, 10 Aug 2024, Martin Frb via fpc-devel wrote: Other functions of  TBasicActionLink have checks like    if FAction <> nil then But "Update" does not. Is that intended? Or shall I bug report it? function TBasicActionLink.Update: Boolean; begin   Result := FAction.Update; end; I added

Re: [fpc-devel] Unnoticed bug report

2024-06-27 Thread Michael Van Canneyt via fpc-devel
On Thu, 27 Jun 2024, Bart via fpc-devel wrote: On Thu, Jun 27, 2024 at 4:51 PM Michael Van Canneyt via fpc-devel wrote: As a consequence, things may go unnoticed, this is not a reflection on the seriousness of an issue or quality of the patch. Feel free to contact us here or by other

Re: [fpc-devel] Unnoticed bug report

2024-06-27 Thread Michael Van Canneyt via fpc-devel
On Thu, 27 Jun 2024, Werner Pamler via fpc-devel wrote: Hello Two months ago I submitted the bug report https://gitlab.com/freepascal.org/fpc/source/-/issues/40748 about an issue in TDBF. Although I was able to add a patch along with test programs this report has remained unnoticed until

Re: [fpc-devel] What about splitting compiler and packages releases?

2024-05-25 Thread Michael Van Canneyt via fpc-devel
On Sat, 25 May 2024, Peter via fpc-devel wrote: Hi all, I was wondering: would it make sense to split the release schedule of the compiler and the included packages? Compiler releases are not frequent (latest is May 2021). In the meantime, useful functionality, bug fixes and improvements ha

Re: [fpc-devel] download or compile documentation

2024-05-09 Thread Michael Van Canneyt via fpc-devel
On Thu, 9 May 2024, Marģers . via fpc-devel wrote: Is there a way to download human readable format documenation? Please explain ? The documentation is available as PDF. That's human readable ? Looking documentation of 3.2.2 and it is bad. Errors and errors. Wanted to crosschech, maybe i

Re: [fpc-devel] fpc 3.3.1 fails in fpjwarsa

2024-03-20 Thread Michael Van Canneyt via fpc-devel
I just did the same for 55 platforms (cross-compile), on ubuntu. All work without errors ? Michael. On Wed, 20 Mar 2024, Martin Frb via fpc-devel wrote: Older Ubuntu, trying to update (starting compiler is 3.2.2) make clean make all  OPT=" -O-1 -gw3 " make install INSTALL_PREFIX=/home/m/

Re: [fpc-devel] Failing Lazarus Codetools Pas2JS-related tests - again

2024-03-20 Thread Michael Van Canneyt via fpc-devel
On Tue, 19 Mar 2024, Martin Frb via fpc-devel wrote: On 19/03/2024 15:41, Mattias Gaertner via fpc-devel wrote: On 19.03.24 14:58, Maxim Ganetsky via fpc-devel wrote: [...] #7 944.7 fpmake.pp(228,5) Error: Identifier not found "T" Ah, you are using fpc 3.3.1 to compile it. Fixed. But

Re: [fpc-devel] Failing Lazarus Codetools Pas2JS-related tests - again

2024-03-18 Thread Michael Van Canneyt via fpc-devel
On Mon, 18 Mar 2024, Maxim Ganetsky via fpc-devel wrote: Hello. After recent update of FPC 3.3.1 (and Pas2JS) in Lazarus CI several Codetools tests related to Pas2JS started failing again: TTestPas2js.TestPas2js_ReadSettings: pas2js system unit not found TTestPas2js.TestPas2js_FindDeclara

Re: [fpc-devel] i386-win32 -CriotR fails to build

2024-03-01 Thread Michael Van Canneyt via fpc-devel
On Fri, 1 Mar 2024, J. Gareth Moreton via fpc-devel wrote: Just want to confirm that the failure also occurs on x86_64-win64 under -CriotR rules. On all platforms. I fixed compilation with these flags. Michael. ___ fpc-devel maillist - fpc-deve

Re: [fpc-devel] Question about "Default()"

2024-02-22 Thread Michael Van Canneyt via fpc-devel
On Thu, 22 Feb 2024, Martin Frb via fpc-devel wrote: https://www.freepascal.org/docs-html/rtl/system/default.html Default is a compiler intrinsic: it returns for every type T a default value. In essence, this is a block of memory that is zeroed out. It can be used to correctly initialize an

Re: [fpc-devel] Possible bug in "chmreader"

2024-02-22 Thread Michael Van Canneyt via fpc-devel
On Wed, 21 Feb 2024, Christo Crause via fpc-devel wrote: Hi Kit, fwindowslist is created in the constructor, which may explain why this bug is dormant. I assume this is supposed to be a defensive check, although fwindowslist is also accessed later in this method without a safety check. Perha

Re: [fpc-devel] Compiler warning when built with -dDEBUG_NODE_XML

2024-02-17 Thread Michael Van Canneyt via fpc-devel
On Wed, 14 Feb 2024, J. Gareth Moreton wrote: Hi everyone, After some recent updates to the trunk, the compiler no longer successfully builds when -dDEBUG_NODE_XML is specified: symsym.pas(2885,9) Warning: (treated as error) Case statement does not handle all possible cases This is loca

Re: [fpc-devel] {$push} and {$pop} on trunk [2024/02/13] for aarach64 doen't work

2024-02-16 Thread Michael Van Canneyt via fpc-devel
On Fri, 16 Feb 2024, Hairy Pixels via fpc-devel wrote: His email looks good to me. Much easier to see code with formatting. Who doesn't have email clients with HTML support these days? I can't imagine how old your system must be to not have this. I don't have HTML support in my mail progr

Re: [fpc-devel] Default-max-precision for different float types?

2024-02-13 Thread Michael Van Canneyt via fpc-devel
On Tue, 13 Feb 2024, Martin Frb via fpc-devel wrote: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40768 Are there any defaults, with which precision each float type (single/double/extended) should be printed? Sysutils contains some defaults used by the format function: cas

Re: [fpc-devel] debug info and TAlphaColor = Cardinal;

2024-02-10 Thread Michael Van Canneyt via fpc-devel
On Sat, 10 Feb 2024, Martin Frb via fpc-devel wrote: The below leads to debug info reporting TAlphaColor as Cardinal. Maybe it could be changed (like TColor is a distinct type)? Done. Michael. ___ fpc-devel maillist - fpc-devel@lists.freepasca

Re: [fpc-devel] Modifiers...

2024-01-30 Thread Michael Van Canneyt via fpc-devel
On Tue, 30 Jan 2024, Hairy Pixels via fpc-devel wrote: On Jan 30, 2024, at 8:01 PM, Michael Van Canneyt via fpc-devel wrote: It's probably more correct to say that you don't want there to be an override in a descendent class. Offhand I can't think of a use-case, but why n

Re: [fpc-devel] Modifiers...

2024-01-30 Thread Michael Van Canneyt via fpc-devel
On Tue, 30 Jan 2024, Hairy Pixels via fpc-devel wrote: On Jan 30, 2024, at 3:56 AM, Michael Van Canneyt via fpc-devel wrote: Unfortunately I still don't understand after your explanation what adding 'final' is supposed to accomplish. It may well be legitimate, but I hav

Re: [fpc-devel] Modifiers...

2024-01-29 Thread Michael Van Canneyt via fpc-devel
On Mon, 29 Jan 2024, Sven Barth via fpc-devel wrote: over whether the method had been declared as virtual. Hm. That makes no sense at all to me ? You normally add override only when you know the base class has virtual. Otherwise, don't add virtual. The compiler will tell you if it was pos

Re: [fpc-devel] Modifiers...

2024-01-29 Thread Michael Van Canneyt via fpc-devel
On Mon, 29 Jan 2024, Sven Barth via fpc-devel wrote: Am 28.01.2024 um 12:14 schrieb Michael Van Canneyt via fpc-devel: 2) Is there, or has there once been? (found in the synedit highlighter)   final final comes after virtual/dynamic. Its supposed to stop you from overriding a method

Re: [fpc-devel] Modifiers...

2024-01-28 Thread Michael Van Canneyt via fpc-devel
On Wed, 24 Jan 2024, Martin Frb via fpc-devel wrote: https://www.freepascal.org/docs-html/ref/refsu3.html Is this list complete/correct? 1) It lists bitpacked, but     program foo; var  bitpacked: integer;  begin end; gives an error. I thought modifiers can be used as var names? Normally,

Re: [fpc-devel] Changes to TProcess

2024-01-05 Thread Michael Van Canneyt via fpc-devel
On Thu, 4 Jan 2024, Michalis Kamburelis via fpc-devel wrote: Michael Van Canneyt wrote: Needless to say, the component remains backwards compatible. There is now a testsuite for the TProcess command, so everything was tested. but nothing beats testing in the wild, so I would appreciate it i

[fpc-devel] Changes to TProcess

2024-01-03 Thread Michael Van Canneyt via fpc-devel
Hello, I merged a significant evolution of the TProcess component to FPC trunk. Until recently, there were 2 options for TProcess when starting a new process: - use the parent process standard input/output/error - use pipes to make the standard input/output/error available as streams in the

Re: [fpc-devel] Cannot create Merge Request

2024-01-03 Thread Michael Van Canneyt via fpc-devel
On Tue, 2 Jan 2024, Amir--- via fpc-devel wrote: Hi there, I never used gitlab before, so my question might be very stupid! I am trying to follow the instruction here to create a patch. I have created a Featu

Re: [fpc-devel] fpdoc path + system.uitypes problems.

2023-12-29 Thread Michael Van Canneyt via fpc-devel
On Fri, 29 Dec 2023, Marco van de Voort via fpc-devel wrote: Op 27/12/2023 om 13:37 schreef Marco van de Voort via fpc-devel: - The short description in the overview (#rtl) page still doesn't appear , After some debugging, my guess is that in this specific case the path chopping code in

Re: [fpc-devel] fpdoc path + system.uitypes problems.

2023-12-27 Thread Michael Van Canneyt via fpc-devel
On Tue, 26 Dec 2023, Marco van de Voort via fpc-devel wrote: Op 26/12/2023 om 19:53 schreef Michael Van Canneyt via fpc-devel: Can you explain what the exact problem is with system.uitypes other than that the description file was not included in the build project xml ? I built the docs

Re: [fpc-devel] fpdoc path + system.uitypes problems.

2023-12-26 Thread Michael Van Canneyt via fpc-devel
On Tue, 26 Dec 2023, Marco van de Voort via fpc-devel wrote: Op 26/12/2023 om 18:20 schreef Michael Van Canneyt via fpc-devel: To fix this either we have to e.g. keep a list of packages and a list of units and then try to disambiguate to only pick the longest match. That maybe have risks

Re: [fpc-devel] fpdoc path + system.uitypes problems.

2023-12-26 Thread Michael Van Canneyt via fpc-devel
On Tue, 26 Dec 2023, Marco van de Voort via fpc-devel wrote: Op 26/12/2023 om 10:29 schreef Michael Van Canneyt via fpc-devel: To fix this either we have to e.g. keep a list of packages and a list of units and then try to disambiguate to only pick the longest match. That maybe have

Re: [fpc-devel] Failing Lazarus Codetools Pas2JS-related tests

2023-12-26 Thread Michael Van Canneyt via fpc-devel
On Tue, 26 Dec 2023, Maxim Ganetsky via fpc-devel wrote: So `make install` does not work as expected? It does, but 'make install' only does half the job for making a release: pas2js works with sources only, which are not installed by 'make install'. They were before. I rolled back to Pas

Re: [fpc-devel] Failing Lazarus Codetools Pas2JS-related tests

2023-12-26 Thread Michael Van Canneyt via fpc-devel
On Tue, 26 Dec 2023, Maxim Ganetsky via fpc-devel wrote: 26.12.2023 11:49, Michael Van Canneyt via fpc-devel пишет: On Mon, 25 Dec 2023, Maxim Ganetsky wrote: Thanks. But still no luck. It seems like asterisks in config file are not expanded properly. See the output of compilation run for a

Re: [fpc-devel] fpdoc path + system.uitypes problems.

2023-12-26 Thread Michael Van Canneyt via fpc-devel
On Mon, 25 Dec 2023, Marco van de Voort via fpc-devel wrote: (forum thread: https://forum.lazarus.freepascal.org/index.php/topic,65629.0.html) Don noticed that the system.uitypes lemma's in the CHM are empty, both with 3.2.x as 3.3.x fpdoc. I checked the only html snapshot and it is the

Re: [fpc-devel] Failing Lazarus Codetools Pas2JS-related tests

2023-12-26 Thread Michael Van Canneyt via fpc-devel
On Mon, 25 Dec 2023, Maxim Ganetsky wrote: 25.12.2023 18:35, Michael Van Canneyt via fpc-devel пишет: On Mon, 25 Dec 2023, Maxim Ganetsky via fpc-devel wrote: || -Fu$CfgDir../lib/fpc/3.3.1/pas2js/rtl/src | I see that there are missing directory separators after $CfgDir, maybe this is

Re: [fpc-devel] Failing Lazarus Codetools Pas2JS-related tests

2023-12-25 Thread Michael Van Canneyt via fpc-devel
On Mon, 25 Dec 2023, Maxim Ganetsky via fpc-devel wrote: || -Fu$CfgDir../lib/fpc/3.3.1/pas2js/rtl/src | I see that there are missing directory separators after $CfgDir, maybe this is the reason? I added it. Also probably it would be worth to consider removing code duplication between

Re: [fpc-devel] Failing Lazarus Codetools Pas2JS-related tests

2023-12-25 Thread Michael Van Canneyt via fpc-devel
On Sun, 24 Dec 2023, Maxim Ganetsky via fpc-devel wrote: As far as I know, Mattias is busy with it and has at least fixed the tests ? I see the commit by Mattias now, but it does not affect config file created by `make install`, because the following duplicated code is used for creating c

Re: [fpc-devel] Failing Lazarus Codetools Pas2JS-related tests

2023-12-24 Thread Michael Van Canneyt via fpc-devel
On Sun, 24 Dec 2023, Maxim Ganetsky via fpc-devel wrote: 24.12.2023 01:07, Michael Van Canneyt via fpc-devel пишет: On Sat, 23 Dec 2023, Maxim Ganetsky via fpc-devel wrote: 20.12.2023 12:36, Mattias Gaertner via fpc-devel пишет: On 20.12.23 10:18, Michael Van Canneyt via fpc-devel

Re: [fpc-devel] Failing Lazarus Codetools Pas2JS-related tests

2023-12-23 Thread Michael Van Canneyt via fpc-devel
On Sat, 23 Dec 2023, Maxim Ganetsky via fpc-devel wrote: 20.12.2023 12:36, Mattias Gaertner via fpc-devel пишет: On 20.12.23 10:18, Michael Van Canneyt via fpc-devel wrote: [...] Is this an FPC regression or the tests should be adapted somehow? Can this be related to introduction of

Re: [fpc-devel] Failing Lazarus Codetools Pas2JS-related tests

2023-12-20 Thread Michael Van Canneyt via fpc-devel
On Wed, 20 Dec 2023, Maxim Ganetsky via fpc-devel wrote: Hello. After recent update of FPC 3.3.1 (and Pas2JS) in Lazarus CI several Codetools tests related to Pas2JS started failing: TTestPas2js.TestPas2js_ReadSettings: pas2js system unit not found TTestPas2js.TestPas2js_FindDeclaration:

Re: [fpc-devel] TProcess and redirection of StdIn/Out (e.g. from/to files)

2023-12-14 Thread Michael Van Canneyt via fpc-devel
On Thu, 14 Dec 2023, Martin Frb via fpc-devel wrote: On 14/12/2023 21:33, Marco van de Voort via fpc-devel wrote: Op 14-12-2023 om 21:27 schreef Martin Frb via fpc-devel: I am actually pretty sure, on Linux, I can get what I want by doing it in the "OnFork" event of TProcess. But on Windo

Re: [fpc-devel] TProcess and redirection of StdIn/Out (e.g. from/to files)

2023-12-14 Thread Michael Van Canneyt via fpc-devel
On Thu, 14 Dec 2023, Martin Frb via fpc-devel wrote: If I am right the TProcess currently does not allow redirection of StdOut/In to/from a file (or other handle provided). If it does, and I have been missing the "how to", then please enlighten me and disregard the remainder of the mail.

Re: [fpc-devel] Wrong debug info when using clang backend

2023-12-13 Thread Michael Van Canneyt via fpc-devel
On Wed, 13 Dec 2023, Jonas Maebe via fpc-devel wrote: On 09/12/2023 13:35, Adriaan van Os via fpc-devel wrote: Jonas Maebe via fpc-devel wrote: So if/when we would get FPC equivalents of such directives, I could translate those to LLVM IR as well. Then I suggest the following (and I can p

Re: [fpc-devel] jsonrpc - does it still work?

2023-11-25 Thread Michael Van Canneyt via fpc-devel
On Fri, 24 Nov 2023, Joost van der Sluis via fpc-devel wrote: Hi all, I'm playing with json-rpc but can't get it to work. I've tried the examples in fcl-web/examles/jsonrpc. I couldn't follow the readme as there are no lpi-files, so that the rttirpc.lpg does not work. But also this fails:

Re: [fpc-devel] jsonrpc - does it still work?

2023-11-24 Thread Michael Van Canneyt via fpc-devel
On Fri, 24 Nov 2023, Joost van der Sluis via fpc-devel wrote: Hi all, I'm playing with json-rpc but can't get it to work. I've tried the examples in fcl-web/examles/jsonrpc. I couldn't follow the readme as there are no lpi-files, so that the rttirpc.lpg does not work. But also this fails:

Re: [fpc-devel] Build failure in FPC Build repository, attn. Florian

2023-11-13 Thread Michael Van Canneyt via fpc-devel
On Mon, 13 Nov 2023, Maxim Ganetsky via fpc-devel wrote: 13.11.2023 0:14, Michael Van Canneyt via fpc-devel пишет: On Sun, 12 Nov 2023, Maxim Ganetsky via fpc-devel wrote: 12.11.2023 19:44, Michael Van Canneyt via fpc-devel пишет: On Thu, 9 Nov 2023, Maxim Ganetsky via fpc-devel wrote

Re: [fpc-devel] Build failure in FPC Build repository, attn. Florian

2023-11-12 Thread Michael Van Canneyt via fpc-devel
On Sun, 12 Nov 2023, Maxim Ganetsky via fpc-devel wrote: 12.11.2023 19:44, Michael Van Canneyt via fpc-devel пишет: On Thu, 9 Nov 2023, Maxim Ganetsky via fpc-devel wrote: Is there any estimation how much will it take to be fixed? No, since I don't even know yet what the fix is.

Re: [fpc-devel] Build failure in FPC Build repository, attn. Florian

2023-11-12 Thread Michael Van Canneyt via fpc-devel
On Sun, 12 Nov 2023, Florian Klämpfl via fpc-devel wrote: Am 12.11.2023 um 17:44 schrieb Michael Van Canneyt via fpc-devel : On Thu, 9 Nov 2023, Maxim Ganetsky via fpc-devel wrote: Is there any estimation how much will it take to be fixed? No, since I don't even know yet wha

Re: [fpc-devel] Build failure in FPC Build repository, attn. Florian

2023-11-12 Thread Michael Van Canneyt via fpc-devel
On Thu, 9 Nov 2023, Maxim Ganetsky via fpc-devel wrote: Is there any estimation how much will it take to be fixed? No, since I don't even know yet what the fix is. If it will take too long, I would like to suggest to temporarily disable generation of documentation in order to have binar

Re: [fpc-devel] Build error, main branch, compiler/options.pas 889:33

2023-11-11 Thread Michael Van Canneyt via fpc-devel
On Fri, 10 Nov 2023, drichards--- via fpc-devel wrote: I am getting an incorrect type error at line 889 column 33 in compiler/options.pas. This is the , following the parameter More to the function Copy. More is defined as a String. I do not understand why the function Copy would have

Re: [fpc-devel] Build failure in FPC Build repository

2023-11-09 Thread Michael Van Canneyt via fpc-devel
On Thu, 9 Nov 2023, Maxim Ganetsky via fpc-devel wrote: 03.11.2023 17:34, Michael Van Canneyt via fpc-devel пишет: On Fri, 3 Nov 2023, Maxim Ganetsky via fpc-devel wrote: 03.11.2023 17:05, Michael Van Canneyt via fpc-devel пишет: On Fri, 3 Nov 2023, Maxim Ganetsky via fpc-devel wrote

Re: [fpc-devel] Request for review of patch for security risk in fcl-web/openssl

2023-11-05 Thread Michael Van Canneyt via fpc-devel
On Sat, 4 Nov 2023, Peter via fpc-devel wrote: Hi, Issue 40479 is about a security risk when OpenSSL is used in fcl-web (TFPHTTPClient). Using the current source/trunk, TLS certificates having a wrong hostname are accepted, while they should be rejected. An easy patch for this is available,

Re: [fpc-devel] Build failure in FPC Build repository

2023-11-03 Thread Michael Van Canneyt via fpc-devel
On Fri, 3 Nov 2023, Maxim Ganetsky via fpc-devel wrote: For the moment, simply disable the building of the PDF docs. The problem is, in our CI we rely on precompiled FPC snapshot TAR installers in order to save time when updating an image. So no new installer, no new FPC. Well, all I can

Re: [fpc-devel] Build failure in FPC Build repository

2023-11-03 Thread Michael Van Canneyt via fpc-devel
On Fri, 3 Nov 2023, Maxim Ganetsky via fpc-devel wrote: 03.11.2023 17:05, Michael Van Canneyt via fpc-devel пишет: On Fri, 3 Nov 2023, Maxim Ganetsky via fpc-devel wrote: Hello. Currently builds in FPC Build repository are failing for FPC main branch: https://gitlab.com

Re: [fpc-devel] Build failure in FPC Build repository

2023-11-03 Thread Michael Van Canneyt via fpc-devel
On Fri, 3 Nov 2023, Maxim Ganetsky via fpc-devel wrote: Hello. Currently builds in FPC Build repository are failing for FPC main branch: https://gitlab.com/freepascal.org/fpc/build/-/pipelines I am aware. I cannot build the docs myself. The problem is: Recently the documentation became

Re: [fpc-devel] Request for review of patch for issue 40261

2023-10-02 Thread Michael Van Canneyt via fpc-devel
On Sat, 30 Sep 2023, Bart via fpc-devel wrote: Hi, Issue 40261 is about TStrings.AddObject issueing 2 consecutive OnChange events (and in the first one the to be added object is unassigned when accessing Objects[] property) when using InsertObject, AddObject and AddPair. This is Delphi incom

Re: [fpc-devel] Recent changes break distclean for utils

2023-08-18 Thread Michael Van Canneyt via fpc-devel
On Fri, 18 Aug 2023, Mattias Gaertner via fpc-devel wrote: On 18.08.23 09:36, Michael Van Canneyt via fpc-devel wrote: [...] After doing "make disctlean" I still have many ppu files left: ./compiler/x86_64/units/x86_64-linux/cutils.ppu ... ./compiler/x86_64/lazbuild/nobj.ppu

Re: [fpc-devel] Recent changes break distclean for utils

2023-08-18 Thread Michael Van Canneyt via fpc-devel
On Fri, 18 Aug 2023, Mattias Gaertner via fpc-devel wrote: On 18.08.23 09:36, Michael Van Canneyt via fpc-devel wrote: [...] After doing "make disctlean" I still have many ppu files left: ./compiler/x86_64/units/x86_64-linux/cutils.ppu ... ./compiler/x86_64/lazbuild/nobj.ppu

Re: [fpc-devel] Recent changes break distclean for utils

2023-08-18 Thread Michael Van Canneyt via fpc-devel
On Fri, 18 Aug 2023, Maxim Ganetsky via fpc-devel wrote: 16.08.2023 4:29, Garry Wood via fpc-devel пишет: Hello, Just letting you know that some recent changes seem to have broken “make distclean” for source/utils Please create a bug report. Makefile.fpc in the source/utils folder conta

Re: [fpc-devel] specialization with type alias, bug or feature

2023-08-17 Thread Michael Van Canneyt via fpc-devel
On Thu, 17 Aug 2023, Mattias Gaertner via fpc-devel wrote: Hi, FPC and Delphi handle type alias differently and I wonder if this was deliberate. type TMyDouble = type double; TBird = class a: T; end; TDoubleBird = TBird; TMyDoubleBird = TBird; Both FPC and Delphi create differen

Re: [fpc-devel] Just to confirm, "with" behaviour expected

2023-08-14 Thread Michael Van Canneyt via fpc-devel
On Mon, 14 Aug 2023, Martin Frb via fpc-devel wrote: In the below code, the array is resized (and more important relocated in mem) inside the function "bar". The commented line (without "with") works as expected. The "with" line has a different behaviour. I guess it is by design. Just want

Re: [fpc-devel] Unicode RTL

2023-07-28 Thread Michael Van Canneyt via fpc-devel
On Fri, 28 Jul 2023, Adriaan van Os via fpc-devel wrote: Michael Van Canneyt via fpc-devel wrote: Hello, I have just completed phase one of the "Unicode RTL" effort. I object to the name "Unicode" RTL. Where people talk about what they call "Unicode" they

Re: [fpc-devel] Unicode RTL

2023-07-28 Thread Michael Van Canneyt via fpc-devel
On Fri, 28 Jul 2023, Mattias Gaertner via fpc-devel wrote: On 24.07.23 21:49, Michael Van Canneyt via fpc-devel wrote: [...] Subtarget support is explained in more detail here: https://wiki.freepascal.org/FPC_Subtarget_Support * compile the various Lazarus widgetsets into different

[fpc-devel] FPC compiler error messages file update

2023-07-27 Thread Michael Van Canneyt via fpc-devel
Hello, We're preparing FPC fixes release 3.2.4. There are some new error messages in the compiler/msg/errore.msg file, they need to be translated to other available languages: errorct.msg (Catalan) errorda.msg (Danish) errord.msg (German, CP 850) errordu.msg (German, UTF8) errores.msg (Spani

Re: [fpc-devel] Unicode RTL

2023-07-24 Thread Michael Van Canneyt via fpc-devel
On Mon, 24 Jul 2023, Kirinn via fpc-devel wrote: Hi, A "unicode" RTL is of course great for targeting legacy Windows platforms, but for those of us on Linux, UTF-8 is the way. It is not only for legacy windows platforms. The target platform is secondary. What to use depends more on your c

[fpc-devel] Unicode RTL

2023-07-24 Thread Michael Van Canneyt via fpc-devel
Hello, I have just completed phase one of the "Unicode RTL" effort. The 'Unicode RTL' is an effort to be more Delphi compatible: - Char = Unicode Char and String = UnicodeString - Provide dotted filenames. Basically closer to the RTL as it exists in more recent versions of Delphi (essentially

Re: [fpc-devel] Maybe room for better documentation? open array as var param

2023-07-20 Thread Michael Van Canneyt via fpc-devel
On Thu, 20 Jul 2023, Sven Barth via fpc-devel wrote: It's IMO probably better to outright forbid passing open array by reference. There are valid use cases for that. E.g. multiply a slice of a dynamic array by two or whatever. And forbidding var would solve nothing, see below. printing

Re: [fpc-devel] Maybe room for better documentation? open array as var param

2023-07-20 Thread Michael Van Canneyt via fpc-devel
On Thu, 20 Jul 2023, Martin Frb via fpc-devel wrote: For const param, it is well documented that the value (that includes the variable that is passed) must not be changed. But for "var param"? Well maybe, but not explicit https://www.freepascal.org/docs-html/ref/refsu68.html#x184-20800014.4

Re: [fpc-devel] cthreads and fpc.cfg?

2023-07-19 Thread Michael Van Canneyt via fpc-devel
On Wed, 19 Jul 2023, Martin Frb via fpc-devel wrote: On 19/07/2023 10:22, Michael Van Canneyt via fpc-devel wrote: The error is logical. What is not logical is that it pops up now. By all logic, we should have seen this error pop up as early as 2016. Why it pops up only now is a mystery

Re: [fpc-devel] cthreads and fpc.cfg?

2023-07-19 Thread Michael Van Canneyt via fpc-devel
On Wed, 19 Jul 2023, Maxim Ganetsky via fpc-devel wrote: 19.07.2023 3:25, Maxim Ganetsky via fpc-devel пишет: 19.07.2023 0:15, Martin Frb via fpc-devel пишет: On 18/07/2023 22:56, Martin via fpc-devel wrote: Using 33dba315366ec3002e062c3aa6dcb15b88356580 (3.3.1) My fpc.cfg looks like this /

Re: [fpc-devel] Error: (3069) Call by var for arg no. xx has to match exactly: Got "ShortString" expected "AnsiString"

2023-07-16 Thread Michael Van Canneyt via fpc-devel
On Sun, 16 Jul 2023, Maxim Ganetsky via fpc-devel wrote: 16.07.2023 20:08, Michael Van Canneyt via fpc-devel пишет: On Sun, 16 Jul 2023, Maxim Ganetsky via fpc-devel wrote: Hello. Recent changes in FPC `main` led to the following errors when building some code in Lazarus tree: Error

Re: [fpc-devel] Error: (3069) Call by var for arg no. xx has to match exactly: Got "ShortString" expected "AnsiString"

2023-07-16 Thread Michael Van Canneyt via fpc-devel
On Sun, 16 Jul 2023, Maxim Ganetsky via fpc-devel wrote: Hello. Recent changes in FPC `main` led to the following errors when building some code in Lazarus tree: Error: (3069) Call by var for arg no. xx has to match exactly: Got "ShortString" expected "AnsiString" See: https://gitlab.

Re: [fpc-devel] BUG REPORT: Fail to compile when using the out keyword instead of var

2023-06-19 Thread Michael Van Canneyt via fpc-devel
On Sun, 18 Jun 2023, Dylan Lamb via fpc-devel wrote: [image: fpcbug.png] This is not a bug. You're using mode fpc, in which the "out" keyword is not supported. You have 3 possibilities to activate this: Use mode objfpc: {$mode objfpc} Use mode delphi: {$mode delphi} or enable the use

Re: [fpc-devel] Curious about the effect of all the new optimizations....

2023-03-01 Thread Michael Van Canneyt via fpc-devel
On Wed, 1 Mar 2023, Mattias Gaertner via fpc-devel wrote: On Wed, 1 Mar 2023 14:10:28 +0100 Sven Barth via fpc-devel wrote: [...] > I can't remember the proverb that Florian used, but it essentially > boils down to very small changes, individually not amounting to > much, but which accumula

Re: [fpc-devel] Unexpected "Range check error while evaluating constants" when compiling for Win64

2023-02-13 Thread Michael Van Canneyt via fpc-devel
On Mon, 13 Feb 2023, Ondrej Pokorny via fpc-devel wrote: On 12.02.2023 23:08, Bart via fpc-devel wrote: On Sun, Feb 12, 2023 at 10:47 PM Jonas Maebe via fpc-devel wrote: Afaik it's because "default" doesn't support qword values, iirc because of (at least old) Delphi compatibility. OK, I

Re: [fpc-devel] Question on constref

2023-02-02 Thread Michael Van Canneyt via fpc-devel
On Thu, 2 Feb 2023, Ondrej Pokorny via fpc-devel wrote: On 02.02.2023 10:22, Michael Van Canneyt via fpc-devel wrote: On Thu, 2 Feb 2023, Ondrej Pokorny via fpc-devel wrote: On 02.02.2023 10:15, Michael Van Canneyt via fpc-devel wrote: On Thu, 2 Feb 2023, Ondrej Pokorny via fpc-devel

Re: [fpc-devel] Question on constref

2023-02-02 Thread Michael Van Canneyt via fpc-devel
On Thu, 2 Feb 2023, Ondrej Pokorny via fpc-devel wrote: On 02.02.2023 10:15, Michael Van Canneyt via fpc-devel wrote: On Thu, 2 Feb 2023, Ondrej Pokorny via fpc-devel wrote: I myself cannot think of any real use case of constref other than hacks like the FreeAndNil in recent Delphi

Re: [fpc-devel] Question on constref

2023-02-02 Thread Michael Van Canneyt via fpc-devel
On Thu, 2 Feb 2023, Hairy Pixels via fpc-devel wrote: On Feb 2, 2023, at 3:57 PM, Adriaan van Os via fpc-devel wrote: - under what circumstances (and in what compiler mode) does FPC pass large (say 1 MB or 1 GB) "const" parameters by value (which is extremely inefficient) ? - for what r

Re: [fpc-devel] Question on constref

2023-02-02 Thread Michael Van Canneyt via fpc-devel
On Thu, 2 Feb 2023, Ondrej Pokorny via fpc-devel wrote: On 02.02.2023 07:42, Sven Barth via fpc-devel wrote: The case when you *need* a constant reference. Case in point: the passing of TGuid in IInterface.QueryInterface. Delphi code relies on it being a reference, but “const” does not guara

  1   2   3   >