Re: [Lazarus] Stepping into the LCL with fpdebug

2024-04-22 Thread Martin Frb via lazarus
On 22/04/2024 11:13, Luca Olivetti via lazarus wrote: That doesn't answer my question: then how is it possible that I can step into the lcl with gdb and -gl even if I don't specify "-gl"  in additions and overrides? Because your LCL is probably build with STABS. And gdb can read stabs, but

Re: [Lazarus] Stepping into the LCL with fpdebug

2024-04-22 Thread Martin Frb via lazarus
On 22/04/2024 10:37, Luca Olivetti via lazarus wrote: But if they have it would be super useful to have a setting "use the debug setting of the system unit", but there is not. You can add the -gw3 flag depending on build mode:

Re: [Lazarus] Project.pp

2024-04-09 Thread Martin Frb via lazarus
On 09/04/2024 19:39, Gabriele Cappelletto via lazarus wrote: Done, I'm missing this, I can't find how to do this in the handbook BMOptions: TBuildMatrixOption;   BMOptions := TProject(AProject).BuildModes.SharedMatrixOptions.Add(bmotIDEMacro);   BMOptions.Modes := 'Default';  

Re: [Lazarus] Project.pp

2024-04-09 Thread Martin Frb via lazarus
On 03/04/2024 16:41, Gabriele Cappelletto via lazarus wrote: TProject(AProject).UseAppBundle := False; Package BuildIntf components\buildintf\projectintf.pas => LGPL with linking exception TLazProject(AProject).UseAppBundle := False; TProject(AProject).ProjResources.XPManifest.UseManifest

Re: [Lazarus] Project.pp

2024-04-09 Thread Martin Frb via lazarus
On 09/04/2024 17:45, Gabriele Cappelletto wrote: It is not meant to work. That is the unit "project" is part of the IDE, and only meant to be used by the IDE. From a license point of few, it is GPL (not LGPL), so if your code is GPL, then you are permitted to use it, but If even the

Re: [Lazarus] Project.pp

2024-04-03 Thread Martin Frb via lazarus
On 03/04/2024 18:49, Gabriele Cappelletto via lazarus wrote: The code is this function TExtPApplicationDescriptor.InitProject(AProject: TLazProject): TModalResult;   TProject(AProject).UseAppBundle := False;   TProject(AProject).ProjResources.XPManifest.UseManifest := False;

Re: [Lazarus] I can't exit this component

2024-03-29 Thread Martin Frb via lazarus
On 29/03/2024 13:25, Martin Frb via lazarus wrote: FIn_tedtNomArqMicEnter then exit;   FIn_tedtNomArqMicEnter := true; Field in TFrmGeraString. TFrmGeraString = class(TForm) private   FIn_tedtNomArqMicEnter : Boolean; -- ___ lazarus mailing list

Re: [Lazarus] I can't exit this component

2024-03-29 Thread Martin Frb via lazarus
On 29/03/2024 13:03, Werner Pamler via lazarus wrote: Am 29.03.2024 um 12:09 schrieb Arí Ricardo Ody via lazarus: procedure TfrmGeraString.tedtNomArqMicEnter(Sender: TObject); The "Enter" in this method name indicates that you assigned the event handler to the OnEnter event of something (a

Re: [Lazarus] What happened to code templates?

2024-02-28 Thread Martin Frb via lazarus
On 28/02/2024 22:00, John Landmesser via lazarus wrote: Am 28.02.24 um 10:10 schrieb Juha Manninen via lazarus: Renaming "lazarus_dci_file.dci" to "codetemplates.dci" should not affect a file named "lazarus.dci". I searched in my home dir if I have "lazarus.dci". It is found in a config dir

Re: [Lazarus] What happened to code templates?

2024-02-28 Thread Martin Frb via lazarus
On 28/02/2024 09:09, Juha Manninen via lazarus wrote: On Tue, Feb 27, 2024 at 7:45 PM John Landmesser via lazarus wrote: Now i have in lazarus.dci > [sm | showmessage] > [todo | ToDo item creator] .. and there is no way how i can use that?!! First, "lazarus_dci_file.dci"

[Lazarus] Testers needed for new configurable Highlighter in IDE (textmate based)

2023-09-12 Thread Martin Frb via lazarus
The IDE can now load highlighter definition files containing textmate grammar. (mostly). There are some items still missing - nested grammar/language (include using a 2nd grammar) (todo) - folding (todo) - There is also no support for "injections" (just edit the grammar and copy the injection

Re: [Lazarus] LazGitGui a git tool.

2023-07-29 Thread Martin Frb via lazarus
On 29/07/2023 12:55, Juha Manninen via lazarus wrote: An IDE plugin that runs "git blame" for an active editor source file and shows a HashID for each line. The associated commit is shown in another window when the HashID is clicked. All that using a local Git repo history, no network access

Re: [Lazarus] Lazarus Release Candidate 1 of 3.0

2023-07-26 Thread Martin Frb via lazarus
On 26/07/2023 17:58, Luca Olivetti via lazarus wrote: El 26/7/23 a les 17:42, Martin Frb via lazarus ha escrit: So FpDebug did not find the source file. I found the issue: it's the -Xg (use external debug symbols file) option. I wonder why it doesn't work under windows but it does under linux

Re: [Lazarus] Lazarus Release Candidate 1 of 3.0

2023-07-26 Thread Martin Frb via lazarus
On 26/07/2023 17:26, Luca Olivetti via lazarus wrote: El 26/7/23 a les 17:18, Luca Olivetti via lazarus ha escrit: Are there ways to reproduce it ? Could sources be shared? The projects I tested no, I'll see if I can find a simpler project with the same issue. I found a simple project

Re: [Lazarus] Lazarus Release Candidate 1 of 3.0

2023-07-26 Thread Martin Frb via lazarus
On 26/07/2023 17:18, Luca Olivetti via lazarus wrote: El 26/7/23 a les 16:50, Martin Frb via lazarus ha escrit: What happens to the breakpoint icon when you start the debugger? Before you start the debugger, it should have a "?". Yes, state "?(On)" When you st

Re: [Lazarus] Lazarus Release Candidate 1 of 3.0

2023-07-26 Thread Martin Frb via lazarus
On 26/07/2023 16:05, Luca Olivetti via lazarus wrote: El 3/7/23 a les 13:33, Mattias Gaertner via lazarus ha escrit: - Compile, debug and run I don't remember the exact wording but, when converting the settings from lazarus 2.2 (which I copied in a different directory), it offered to use

Re: [Lazarus] Lazarus trunk version number

2023-06-30 Thread Martin Frb via lazarus
On 30/06/2023 14:04, Michael Van Canneyt via lazarus wrote: So basically you did a shift left of the version number ? Not exactly, that would mean that major releases would be 4.0 and 6.0. Leaving 3 and 5 for development versions. - We combined the first 2 digits into one. (because there

Re: [Lazarus] Lazarus trunk version number

2023-06-30 Thread Martin Frb via lazarus
On 30/06/2023 13:27, Martin Frb via lazarus wrote: But, there was no need (anymore) to reserve 2 digits for major releases. When 1.0 was released there was no need for further major releases to be 1.2 instead of 2.0. I forgot to add the explanation for "anymore" Prior to 1.0

Re: [Lazarus] Lazarus trunk version number

2023-06-30 Thread Martin Frb via lazarus
On 30/06/2023 12:51, Michael Van Canneyt via lazarus wrote: On Fri, 30 Jun 2023, Juha Manninen via lazarus wrote: On Friday, June 30, 2023, John Landmesser via lazarus < lazarus@lists.lazarus-ide.org> wrote: perhaps that should have become 3.00 ? Lazarus *3.99* (rev

Re: [Lazarus] Who uses "caret past EOL"?

2023-06-02 Thread Martin Frb via lazarus
On 02/06/2023 15:07, Michael Van Canneyt via lazarus wrote: On Fri, 2 Jun 2023, Martin Frb via lazarus wrote: If you do, do you use it within the range of the "longest line" only? What if I want to add a comment at column 60 (think explanation about enumerated value) but th

[Lazarus] Who uses "caret past EOL"?

2023-06-02 Thread Martin Frb via lazarus
If you do, do you use it within the range of the "longest line" only? That is, currently caret-past-eol additionally allows you to scroll up to over 1000 columns, even if you don't have any line that long. Do you use that scroll range? -- ___

Re: [Lazarus] Some source editor context menu items broken

2023-05-21 Thread Martin Frb via lazarus
On 21/05/2023 11:38, Mattias Gaertner via lazarus wrote: On Sun, 21 May 2023 10:48:30 +0200 (CEST) Michael Van Canneyt via lazarus wrote: [...] I saw a remark in main.pp that this is supposed to be faster than using the codetools: CurWordAtCursor := ASrcEdit.GetWordAtCurrentCaret;

Re: [Lazarus] dbg file on smb share hangs IDE

2023-05-16 Thread Martin Frb via lazarus
On 12/05/2023 13:55, Mattias Gaertner via lazarus wrote: Hi, When debugging a project on Windows with external debug info (.dbg) the IDE hangs. It works on the local C partition, but it hangs the IDE when the project is on a smb share. I have to kill lazarus.exe. Is this known? I don't

Re: [Lazarus] Cannot use bookmarks in code window - why?

2023-04-23 Thread Martin Frb via lazarus
On 23/04/2023 19:39, Bo Berglund via lazarus wrote: I have started a new project in Lazarus 2.2.6/Fpc3.2.2 on a Linux machine ... I have looked at the same version of Lazarus on my Windows workstation and there when I right-click the gutter to the left of the code there is a popup menu with

Re: [Lazarus] Code editor column mode does not work...

2023-04-19 Thread Martin Frb via lazarus
On 19/04/2023 18:29, Bo Berglund via lazarus wrote: How can I enable column selection with the mouse? If I use the Alt key and click where I want to start the selection then when I move the mouse the whole editor window moves instead of creating a vertical selection... Is there someone here

Re: [Lazarus] Is there a setting to include debug symbols when starting from Lazarus only?

2023-04-16 Thread Martin Frb via lazarus
On 16/04/2023 11:15, Bo Berglund via lazarus wrote: - Use Run menu Build or Compile: no symbols should be included. - Click the green run arrow button then the symbols will be included. I think the closest you may get to this is build modes. But all and any button/key/menu always use the

Re: [Lazarus] Lazarus fails to build

2023-03-19 Thread Martin Frb via lazarus
On 19/03/2023 19:53, Sven Barth via lazarus wrote:  If it *would* work however you could simply do {$if not declared(name_of_the_unit)}, because the unit name is also a valid symbol. ooohh nooo. That would be like C header files Don't wont that. ;) --

Re: [Lazarus] Lazarus fails to build

2023-03-19 Thread Martin Frb via lazarus
On 19/03/2023 00:00, Michael Van Canneyt via lazarus wrote: On Sat, 18 Mar 2023, Mattias Gaertner via lazarus wrote: As this happens seldom there is no detection built in (yet) to handle this automatically. If possible, might be a good idea. Afaik there are 2 scenarios. 1) The

Re: [Lazarus] Lazarus fails to build

2023-03-18 Thread Martin Frb via lazarus
On 18/03/2023 22:55, Michael Van Canneyt via lazarus wrote: Hi, I did a git pull of latest lazarus sources. Someone added laz.virtualtreeview and fpdebuggerfp to the IDE uses clause. This caused the compilation to fail, since these units are also in the installed packages. For instance

Re: [Lazarus] Lazarus Release 2.2.6

2023-03-16 Thread Martin Frb via lazarus
On 16/03/2023 18:46, Bo Berglund via lazarus wrote: But it also seems like on each system there is only one version of fpc that can be "active" (at least on Linux) because its config is stored outside of the pcp dir in a user global fashion. How can I make the fpc compiler versions co-exist and

Re: [Lazarus] Lazarus Release 2.2.6

2023-03-16 Thread Martin Frb via lazarus
On 16/03/2023 07:53, Bo Berglund via lazarus wrote: The install seems to have worked, but seeing this release comment I now have to ask if 3.2.2 is a *requirement* for proper operation or if it just happens to be what you used when building? Do I have to change my fpc installed version and

Re: [Lazarus] strange focus behaviour on source editor window

2023-02-27 Thread Martin Frb via lazarus
It does not happen to me, tested Win 10 and Win 11. For me focus goes back to the source editor. I switched back to the IDE with Alt-Tab. Maybe you use some other way? I also tried by clicking the icon in the taskbar, and that worked (tested Win 10 only). Do you have any packages installed?

Re: [Lazarus] Lazarus and FreePascal version relations on Linux and Windows?

2023-02-22 Thread Martin Frb via lazarus
On 22/02/2023 10:00, Bo Berglund via lazarus wrote: Now I am having problems installing Lazarus 2.2.4 on Linux systems where older Lazarus version exist because they use an older FPC which the new Lazarus cannot use (3.0.4 vs 3.2.2). You can install several fpc on Linux. ** But you need to

Re: [Lazarus] Conditional Debugger breakpoints not working ?

2023-02-21 Thread Martin Frb via lazarus
On 20/02/2023 15:14, Michael Van Canneyt via lazarus wrote: On Mon, 20 Feb 2023, Martin Frb via lazarus wrote: It is a problem on Mac, with LLDB. Though I am not even sure that conditional breakpoint are supported at all... Just checked, conditions are set. But users must type them C-style

Re: [Lazarus] Conditional Debugger breakpoints not working ?

2023-02-20 Thread Martin Frb via lazarus
On 20/02/2023 13:46, Michael Van Canneyt via lazarus wrote: I suggest you adapt the wiki to clarify all this. While you're at it, The link in the wiki page to the gdb convenience functions is broken. updated In general, I don't think you can expect the user to know that he should use

Re: [Lazarus] Conditional Debugger breakpoints not working ?

2023-02-20 Thread Martin Frb via lazarus
On 20/02/2023 12:31, Michael Van Canneyt via lazarus wrote: I'm trying to set a condition on a breakpoint. I have a local variable aUnit, type string: var   aUnit : string; I wish the breakpoint is only triggered when aUnit equals 'termio'. So, in the breakpoint properties dialog, I enter

Re: [Lazarus] Folding ?

2023-02-19 Thread Martin Frb via lazarus
On 19/02/2023 21:49, Martin Frb via lazarus wrote: On "Editor > Display" you can also change the "Gutter Separator index" from 3 to 4 => then the separator (a gray line /color can be changed) will be between the fold-tree and the text (and with that another 1 or 2

Re: [Lazarus] Folding ?

2023-02-19 Thread Martin Frb via lazarus
On 19/02/2023 21:12, Michael Van Canneyt wrote: On Sun, 19 Feb 2023, Martin Frb wrote: To entertain my lack of imagination: What is the issue, if e.g. Pascal shows fold indicators, and you just don't use them? Secondly, I sometimes inadvertently click on the fold markers. Ok, good reason.

Re: [Lazarus] Folding ?

2023-02-19 Thread Martin Frb via lazarus
On 19/02/2023 19:06, Michael Van Canneyt wrote: On Sun, 19 Feb 2023, Martin Frb via lazarus wrote: On 19/02/2023 12:28, Michael Van Canneyt via lazarus wrote: Hi, Is it possible to enable/disable code folding on a per-language basis  ? No, or only in the way you described below

Re: [Lazarus] Folding ?

2023-02-19 Thread Martin Frb via lazarus
On 19/02/2023 12:28, Michael Van Canneyt via lazarus wrote: Hi, Is it possible to enable/disable code folding on a per-language basis  ? No, or only in the way you described below. Or by changing the source in each highlighter, and make the pretend they don't fold. In any case, there also

Re: [Lazarus] Porting Delphi (2007/XE5) application, how to handle ADODB?

2023-02-11 Thread Martin Frb via lazarus
On 11/02/2023 12:23, Bo Berglund via lazarus wrote: Then rebuilt and tried to run, but I get an immediate fatal exception! This happens both when starting within Lazarus and from the exe file itself. Message: | Project AppManager

Re: [Lazarus] Fppkg reports RTL not installed - Lazarus 2.2.4/fpc 3.2.2 from sources on Ubuntu

2023-02-09 Thread Martin Frb via lazarus
On 09/02/2023 21:57, Bo Berglund via lazarus wrote: And it seems to be looking for $HOME/.config/fppkg.cfg even though I am using separate install dirs for Lazarus 2.0.12 and 2.2.4 and the launch file lazarus_2.2.4.desktop contains --pcp=/home/bosse/.lazarus_2.2.4 So I would expect the

Re: [Lazarus] Fppkg reports RTL not installed - Lazarus 2.2.4/fpc 3.2.2 from sources on Ubuntu

2023-02-09 Thread Martin Frb via lazarus
On 09/02/2023 20:24, Bo Berglund via lazarus wrote: On Thu, 09 Feb 2023 18:34:27 +0100, Bo Berglund via lazarus wrote: What does this mean? I have never seen this before in my many years of Lazarus usage... And what should I do to rectify it? I found this being discussed on gitlab:

Re: [Lazarus] OFF-TOPIC: Naming of char [[[Re: Debugging the unicode RTL]]]

2023-01-22 Thread Martin Frb via lazarus
On 22/01/2023 13:12, Marco van de Voort via lazarus wrote: On 22-1-2023 12:39, Martin Frb via lazarus wrote: They should be called AnsiCodepoint UniCodeCodePoint No, since in the case of a surrogate it is not a codepoint either. It is the unit of encoding granularity, nothing more. Ouch

[Lazarus] To be a string or not to be a string (bitness independent?) [[[Re: Debugging the unicode RTL]]]

2023-01-22 Thread Martin Frb via lazarus
On 22/01/2023 11:24, Martin Frb via lazarus wrote: Though this relies on being able to detect    PChar  <>  String  <>  array of char which is a PITA. Example:   FPC 3.3.1 (but IIRC also 3.2.x)   tested on Win, but similar on other OS   dwarf-3 var   s1: AnsiString;   s2: a

[Lazarus] OFF-TOPIC: Naming of char [[[Re: Debugging the unicode RTL]]]

2023-01-22 Thread Martin Frb via lazarus
On 22/01/2023 11:53, Michael Van Canneyt via lazarus wrote: Since the PChar/Char types are now an alias, logically the debug info should only have references to AnsiChar/UnicodeChar. Well technically neither of them is (always) an actual character. They should be called AnsiCodepoint

Re: [Lazarus] Debugging the unicode RTL

2023-01-22 Thread Martin Frb via lazarus
On 22/01/2023 11:53, Michael Van Canneyt via lazarus wrote: Since the PChar/Char types are now an alias, logically the debug info should only have references to AnsiChar/UnicodeChar. But I have no idea how to test this assumption. if adding a watch containing  "^char(x)" fails, then that

Re: [Lazarus] Debugging the unicode RTL

2023-01-22 Thread Martin Frb via lazarus
I may have to double check some details, just going from memory On 22/01/2023 11:46, Michael Van Canneyt wrote: On Sun, 22 Jan 2023, Martin Frb via lazarus wrote: On 12/01/2023 10:42, Michael Van Canneyt via lazarus wrote: - Debugging programs works in general quite OK, except

Re: [Lazarus] Debugging the unicode RTL

2023-01-22 Thread Martin Frb via lazarus
On 22/01/2023 11:24, Martin Frb via lazarus wrote: 2/ Where can I find the code that extracts the message from an exception object ? So I can have a shot at trying to fix the display. unit FpDebugDebugger; procedure TFpDebugDebugger.HandleSoftwareException Important: If you make any

Re: [Lazarus] Debugging the unicode RTL

2023-01-22 Thread Martin Frb via lazarus
On 12/01/2023 11:26, Michael Van Canneyt via lazarus wrote: It needs to determine the definition of "string" which will be an array of unicodechar or ansichar. Once it knows that, the rest will follow, since the definition of unicodechar or ansichar will have the correct size. The big

Re: [Lazarus] Debugging the unicode RTL

2023-01-22 Thread Martin Frb via lazarus
On 12/01/2023 10:42, Michael Van Canneyt via lazarus wrote: - Debugging programs works in general quite OK, except for displaying of   some strings. Most notable, the exception message is affected:   only the first character of the exception message is shown. This is hardcoded, and may be

Re: [Lazarus] make all compilation error after 319649fb (Attn: Martin)

2023-01-09 Thread Martin Frb via lazarus
On 09/01/2023 17:50, Marcus Sackrow via lazarus wrote: Hi, Am 08.01.23 um 23:11 schrieb Wayne Sherman: make all for at least x86_64-linux does not compile since 319649fb thanks it compiles again About a week ago Lazarus was failing to build with "make useride". Are these two build targets

Re: [Lazarus] make all compilation error after 319649fb (Attn: Martin)

2023-01-08 Thread Martin Frb via lazarus
On 08/01/2023 23:11, Wayne Sherman via lazarus wrote: make all for at least x86_64-linux does not compile since 319649fb thanks it compiles again About a week ago Lazarus was failing to build with "make useride". Are these two build targets being run as part of the CI / CD tests? I don't

Re: [Lazarus] SynEdit highlighter for Markdown

2023-01-05 Thread Martin Frb via lazarus
Without yet having looked at it (currently got a bit of an incoming queue)... But there is a tutorial on how HL work: https://wiki.freepascal.org/SynEdit_Highlighter On 05/01/2023 23:59, Andrew Haines via lazarus wrote: Hi, I attached a highlighter I made for Markdown. I like to use this

Re: [Lazarus] Lazarus IDE 'testall' program

2022-11-24 Thread Martin Frb via lazarus
On 24/11/2022 14:00, Aruna Hewapathirane wrote: On Thu, Nov 24, 2022 at 7:16 AM Martin Frb via lazarus wrote: On 24/11/2022 12:53, Aruna Hewapathirane via lazarus wrote: I found one repository on Gitlab: https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/main/examples

Re: [Lazarus] Lazarus IDE 'testall' program

2022-11-24 Thread Martin Frb via lazarus
On 24/11/2022 12:53, Aruna Hewapathirane via lazarus wrote: I found one repository on Gitlab: https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/main/examples And another repository on Sourceforge:

Re: [Lazarus] Message for Lazarus developers

2022-10-12 Thread Martin Frb via lazarus
I haven't got the answer at hand Also not sure which wiki page you refer too? Have you looked into the image folder in the lazarus installation? There is a copyright file that has info on the licenses (and creators) of the images. So if you got the filename you can check if it is listed

Re: [Lazarus] 131d1062 broke compilation "make all" on x86_64-linux

2022-06-24 Thread Martin Frb via lazarus
On 24/06/2022 22:16, Marcus Sackrow via lazarus wrote: Hi, the commit 131d1062 broke the Lazarus compilation on my Jenkins server (for x86_64-linux with latest Free Pascal a simple make all) https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/131d1062dff2606d25ace6e031f0b65731cb19f6

Re: [Lazarus] I was just banned from the Lazarus Forum for no reason!

2022-06-05 Thread Martin Frb via lazarus
On 05/06/2022 12:28, Derek John Evans via lazarus wrote: I don't have a copy. It was a quick post of the issues I had developing an app for my job as an egg collector. I thought people might find the project interesting and possibly ask questions about how I solved various problems. I was

Re: [Lazarus] I was just banned from the Lazarus Forum for no reason!

2022-06-05 Thread Martin Frb via lazarus
On 05/06/2022 05:59, Derek John Evans via lazarus wrote: My only feeling atm, is wtf. I just posted details on a project I've worked on for the last 6 months using Lazarus and pas2js on a farm environment, and then was banned! Like really! In the past I've been an active contributor to

Re: [Lazarus] Lazarus Release 2.2.2

2022-05-20 Thread Martin Frb via lazarus
On 20/05/2022 11:47, Salvatore Coppola via lazarus wrote: It seems that the list of changes is for 2.2.0 Ottieni BlueMail per Android Il giorno 19 Mag 2022, alle ore 09:21, Mattias Gaertner via lazarus ha scritto: Here is the list of changes for Lazarus and Free

Re: [Lazarus] Debug Adaptor Protocol support

2022-04-23 Thread Martin Frb via lazarus
On 23/04/2022 13:00, Michael Van Canneyt via lazarus wrote: Hello, If memory serves me well, some time ago, the Debug Adaptor Protocol support was mentioned, I think in the context of fpDebug. For pas2js, it would be beneficial to have DAP support in the IDE, as it would allow to debug the

Re: [Lazarus] Adding unit automatically adds to uses clause

2022-03-26 Thread Martin Frb via lazarus
On 26/03/2022 18:00, Timothy Groves via lazarus wrote: Good day.  When I click on "New Pascal Unit" on the toolbar, or select it from the menu, the new unit is automatically added to the uses clause of my main program.  Worse, the new unit is invariably added as "unit1", even after I change

Re: [Lazarus] will fixes_2_2 be merged to trunk before next release?

2022-03-22 Thread Martin Frb via lazarus
22.03.22 um 01:52 schrieb Martin Frb via lazarus: Am 21.03.22 um 11:49 schrieb John Landmesser via lazarus: I would like to know if the fixes for lazarus 2.2 will be merged to trunk before next release? I don't know much about that particular issue, but from what I read: There are no fixes

Re: [Lazarus] will fixes_2_2 be merged to trunk before next release?

2022-03-21 Thread Martin Frb via lazarus
On 21/03/2022 17:32, John Landmesser via lazarus wrote: Am 21.03.22 um 11:49 schrieb John Landmesser via lazarus: I had an issue with qt5pas that was fixed in lazarus fixes_2_2. Because i now use: Lazarus 2.3.0 (rev main-2_3-996-ga94312373c) FPC 3.2.2 x86_64-linux-gtk2 I would like to know

Re: [Lazarus] compile error for LazDebuggerGdbmi 0.1

2022-02-01 Thread Martin Frb via lazarus
On 01/02/2022 19:27, John Landmesser via lazarus wrote: details: Kompiliere Package LazDebuggerGdbmi 0.1: Exit code 1, Fehler: 1 gdbmidebugger.pp(14625,3) Error: Control flow statements are not allowed in a finally block Oh, well. The things FPC only supports on selected targets... Please

Re: [Lazarus] 867d12b4 breaks compilation on x86_64-linux Attn: Martin

2022-01-25 Thread Martin Frb via lazarus
Strange. I have to check the Makefiles again. I thought the IDE had updated them. Btw that revision has a 2nd bug, the 2nd bug is fixed in 947030b575f (I had some local defines enabled, so the 2nd bug did not trigger here) On 25/01/2022 22:20, Marcus Sackrow via lazarus wrote: Hi, The

Re: [Lazarus] Lazarus compilation fail since 6d0ddd50bd2a76bb37830f068afe5828f4b06576

2022-01-10 Thread Martin Frb via lazarus
On 10/01/2022 23:08, Marcus Sackrow via lazarus wrote: Hi, my Jenkins compilation server fails since 6d0ddd50bd2a76bb37830f068afe5828f4b06576 but the error message is a bit strange, anyone can explain it? please git pull, and try again. Somehow a file was generated with the wrong

Re: [Lazarus] Faster than popcnt [[Re: UTF8LengthFast returning incorrect results on AARCH64 (MacOS)]]

2021-12-30 Thread Martin Frb via lazarus
On 30/12/2021 14:43, Marco van de Voort via lazarus wrote: Compile with -O4 -Cpcoreavx2 , the others (non asm) will become faster, my guess is  "add" will be about double of asm. Core I7 8700K 3.3.1 from Dec 10th 3.2.3 from Dec 9th With fpc 3.3.1: - fst is worse? - add gets better -O4

Re: [Lazarus] Faster than popcnt [[Re: UTF8LengthFast returning incorrect results on AARCH64 (MacOS)]]

2021-12-29 Thread Martin Frb via lazarus
On 29/12/2021 13:42, Marco van de Voort via lazarus wrote: On 29-12-2021 10:16, Martin Frb via lazarus wrote: // Martin's routine that should be replaced by some punpkl magic, but it is too late now. Why too late? See datetime stamp.  02:10 AM. I don't know how it is with you Lazarus

Re: [Lazarus] Faster than popcnt [[Re: UTF8LengthFast returning incorrect results on AARCH64 (MacOS)]]

2021-12-29 Thread Martin Frb via lazarus
On 29/12/2021 02:10, Marco van de Voort via lazarus wrote: On 28-12-2021 23:35, Martin Frb via lazarus wrote: "nx" has a single "1" in each of the 8 bytes in a Qword (based on 64bit). If we regard each of this bytes as an entity of its own, then we can keep adding

Re: [Lazarus] fpc bug with M1 [[was: Re: UTF8LengthFast returning incorrect results on AARCH64 (MacOS)]]

2021-12-28 Thread Martin Frb via lazarus
On 28/12/2021 23:18, Noel Duffy via lazarus wrote: The assembler produced by 3.2.2 looks like this: # [43] Result += (pn8^ shr 7) and ((not pn8^) shr 6); ldr    x0,[sp] ldrsb    w0,[x0] mvn    w0,w0 mvn => bitwise not. And that applies to the whole register. So I guess "eor   

[Lazarus] Faster than popcnt [[Re: UTF8LengthFast returning incorrect results on AARCH64 (MacOS)]]

2021-12-28 Thread Martin Frb via lazarus
On 28/12/2021 15:50, Bart via lazarus wrote: On Tue, Dec 28, 2021 at 3:39 PM Marco van de Voort via lazarus wrote: On what machine did you test? The settings if for the generated code, but the actual processor determines the effective speed. I have a Intel i5 7th generation on my Win10-64

[Lazarus] fpc bug with M1 [[was: Re: UTF8LengthFast returning incorrect results on AARCH64 (MacOS)]]

2021-12-28 Thread Martin Frb via lazarus
On 28/12/2021 22:05, Noel Duffy via lazarus wrote: On 29/12/21 01:26, Bart via lazarus wrote: fpc -al ulen.pas > This will produce the file ulen.s > You can attach or copy that here. File is attached. Thanks. And I think there is a bug in FPC This is the signed version # [43] Result +=

Re: [Lazarus] UTF8LengthFast returning incorrect results on AARCH64 (MacOS)

2021-12-28 Thread Martin Frb via lazarus
On 28/12/2021 11:52, Juha Manninen via lazarus wrote: On Tue, Dec 28, 2021 at 3:29 AM Noel Duffy via lazarus wrote: So it appears to me that an unsigned pointer type is required in UTFLengthFast. Can you please create a patch for UTFLengthFast. You can upload it here or create a

Re: [Lazarus] Making fpdebug more cross-platform friendly

2021-12-16 Thread Martin Frb via lazarus
Ok, for now limiting this to a smaller audience, to get some brainstorming done. => Original mail at the bottom. Some initial thoughts. *** First, I would suggest, that all calls go to T[Foo]DbgProccess *** T[Foo]DbgProccess can then forward them. Outside classes should not have knowledge, nor

Re: [Lazarus] Making fpdebug more cross-platform friendly

2021-12-16 Thread Martin Frb via lazarus
On 16/12/2021 12:10, Christo Crause via lazarus wrote:   One location for the target specific code is perhaps the fpdbgdisas* units, since it already provides a number of hardware specific concepts such as identifying call & return instructions and some stack frame analysis.  Adding for

Re: [Lazarus] Source file license

2021-12-15 Thread Martin Frb via lazarus
On 15/12/2021 12:53, Juha Manninen via lazarus wrote: On Wed, Dec 15, 2021 at 12:57 PM Dimitrios Chr. Ioannidis via lazarus wrote: what licenses are accepted by the Lazarus project ?    MIT ? GPL v2 ? GPL v3 ? The Lazarus IDE itself is GPL v2. Most packages are LGPL v2. If your

Re: [Lazarus] FpDebug with aarch64-linux

2021-12-06 Thread Martin Frb via lazarus
On 06/12/2021 17:17, Gabor Boros via lazarus wrote: Hi All, FPC 3.3.1, Lazarus fixes_2_2, LazDebuggerFp installed and configured in Tools/Options. If start the project got "Error starting process in debugger". With gdb works as expected. Is FpDebug not supported on aarch64? FpDebug only

[Lazarus] Moved to DEV list // Re: TFrame improvements

2021-11-30 Thread Martin Frb via lazarus
On 30/11/2021 11:18, Juha Manninen via lazarus wrote: Yes, at runtime it works on both a Form and a Frame. At design time it works on a Form but crashes on a Frame which is clearly a bug. Agree? No, at runtime it crashes too. Of course, if you take the attached zip, you will not see this.

Re: [Lazarus] TFrame improvements

2021-11-30 Thread Martin Frb via lazarus
On 30/11/2021 00:27, Juha Manninen via lazarus wrote: On Mon, Nov 29, 2021 at 11:14 PM Ondrej Pokorny via lazarus wrote: On 29.11.2021 17:18, Juha Manninen via lazarus wrote: The commit message is not perfect but the committed code is, now that I fully understand the issue.

Re: [Lazarus] TFrame improvements

2021-11-29 Thread Martin Frb via lazarus
On 29/11/2021 21:20, Ondrej Pokorny via lazarus wrote: Check TCustomLabel.CalculateSize in lcl\include\customlabel.inc for the solution how to solve this problem correctly in the component's code without any modifications needed in T(Custom)Form or T(Custom)Frame. There, the GetDC(0) is

Re: [Lazarus] TFrame improvements

2021-11-29 Thread Martin Frb via lazarus
On 29/11/2021 17:18, Juha Manninen via lazarus wrote: It allows a Frame to stand without a parent in the designer or even at runtime in some hypothetical situation(?). Using Canvas outside Paint may not be recommended but it can be done in some widgetsets. The component's duty is to not crash

Re: [Lazarus] TFrame improvements

2021-11-29 Thread Martin Frb via lazarus
On 29/11/2021 12:31, Ondrej Pokorny via lazarus wrote: I didn't study the issue further but to me it looks strange that setting some parameters in CreateParams helps with it. Juha, your commit description "Somehow fixes issue ..." doesn't help to understand your change either. "Setting" is

Re: [Lazarus] TFrame improvements

2021-11-29 Thread Martin Frb via lazarus
On 29/11/2021 12:05, Michael Van Canneyt via lazarus wrote: What do you mean 'artificial restrictions' ?  The above is quite standard. IMHO  "if csLoading" tests are also "quite standard" "If HandleCreated" exist too, not sure how widespread "accessing canvas"  outside paint, is

Re: [Lazarus] TFrame improvements

2021-11-29 Thread Martin Frb via lazarus
On 29/11/2021 11:36, Michael Van Canneyt wrote: On Mon, 29 Nov 2021, Martin Frb via lazarus wrote: On 29/11/2021 10:52, Juha Manninen via lazarus wrote: Please everybody test issue: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/25124 Some components caused an error when placed

Re: [Lazarus] TFrame improvements

2021-11-29 Thread Martin Frb via lazarus
On 29/11/2021 10:52, Juha Manninen via lazarus wrote: Please everybody test issue: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/25124 Some components caused an error when placed on a Frame. Now it apparently works. Can somebody please explain why it works. (See my comment there).

Re: [Lazarus] Debugger stops in c dll even when no breakpoint set

2021-11-24 Thread Martin Frb via lazarus
On 24/11/2021 13:41, Luca Olivetti via lazarus wrote: El 3/11/21 a les 15:56, Luca Olivetti via lazarus ha escrit: A quick follow up: I used the wrong size when mallocing data (size of the pointer variable instead of the size of the struct it pointed to, d'oh!). I found it by running the

Re: [Lazarus] triggered by the frontend / Representation of an "watch" [[was: Re: Playing with debuggers]]

2021-11-21 Thread Martin Frb via lazarus
On 21/11/2021 17:23, Martin Frb via lazarus wrote: - Watches are stored in a list. That is needed by the frontend. Because the History wants to know about the watches. However, this may not be needed by the backend. That can be reviewed. Actually, there only is a list for the frontend

[Lazarus] triggered by the frontend / Representation of an "watch" [[was: Re: Playing with debuggers]]

2021-11-21 Thread Martin Frb via lazarus
1) Events to be more frontend centric. 2) Actions (eval watch) to be triggered by the frontend 3) Representation of an "watch"  (Should methods be on the Watch object, or the Debugger object) => 2) Actions (eval watch) to be triggered by the frontend The evaluation of a watch is triggered

[Lazarus] Events to be more frontend centric [[was: Re: Playing with debuggers]]

2021-11-21 Thread Martin Frb via lazarus
1) Events to be more frontend centric. 2) Actions (eval watch) to be triggered by the frontend 3) Representation of an "watch"  (Should methods be on the Watch object, or the Debugger object) => 1) Events to be more frontend centric. The current events and especially states are certainly

Re: [Lazarus] Playing with debuggers

2021-11-21 Thread Martin Frb via lazarus
On 14/09/2021 01:00, Joost van der Sluis via lazarus wrote: I've created a new Lazarus-debugger LazDabDebugger that can work with FpdServer. It depends on a package (LazDebugExtensionIntf) that adds another way of showing debugging variables inside Lazarus. I can write tons of texts about the

Re: [Lazarus] Debugger stops in c dll even when no breakpoint set

2021-10-28 Thread Martin Frb via lazarus
On 28/10/2021 14:28, Christo Crause via lazarus wrote: On Thu, Oct 28, 2021 at 2:01 PM Luca Olivetti via lazarus wrote: 77045AC4 cc                       int3 The Int3 instruction means break, so this is the expected behaviour.  If there is no debugger inserted break point for this

Re: [Lazarus] Command line program - CPU overused - do I need profiling?

2021-10-04 Thread Martin Frb via lazarus
On 04/10/2021 10:33, Bo Berglund via lazarus wrote: Failed to post via Gmane so trying direct emailing instead: I need to figure out why my program uses 10% CPU when it is essentially idle, waiting for a client connect via TCP or for the time for a new task start to arrive. It is a command

Re: [Lazarus] Request for Gitlab access rights for Cocoa

2021-09-29 Thread Martin Frb via lazarus
On 29/09/2021 19:53, Alexey Tor. via lazarus wrote: Thanks, here are 3 patches which I wanted to merge on start 1- TListItem.MakeVisible does not work on MacOS 2- [Cocoa] TListView.GetItemAt returns wrong item when

Re: [Lazarus] Request for Gitlab access rights for Cocoa

2021-09-29 Thread Martin Frb via lazarus
On 28/09/2021 16:36, Alexey Tor. via lazarus wrote: Hello. As you see on Gitlab comments: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39372 Dmitry (Cocoa WS supporter) has no Gitlab rights and he wants to pass these rights to me - Gitlab account Alexey-T1. Please do so. Dmitry

Re: [Lazarus] git diff enhancement

2021-09-14 Thread Martin Frb via lazarus
On 14/09/2021 21:28, Marco van de Voort via lazarus wrote: Op 14-9-2021 om 17:55 schreef Martin Frb via lazarus: On 14/09/2021 17:49, Marco van de Voort via lazarus wrote: Op 14-9-2021 om 17:17 schreef Martin Frb via lazarus: In order for git to show pascal function headers. Add

Re: [Lazarus] Fpdebug merge request 6

2021-09-14 Thread Martin Frb via lazarus
On 05/09/2021 21:08, Martin Frb wrote: On 05/09/2021 20:57, Christo Crause wrote: 1) adding to the IDE options. Looks that then every user using fpdebug, will see options for host/port? While really convenient for avr users, rather confusing for others? I am starting to agree

Re: [Lazarus] git diff enhancement

2021-09-14 Thread Martin Frb via lazarus
On 14/09/2021 17:49, Marco van de Voort via lazarus wrote: Op 14-9-2021 om 17:17 schreef Martin Frb via lazarus: In order for git to show pascal function headers. Add the following to your config [diff "fpc"]   xfuncname = "^(((class[ \\t]+)?(procedure|function)|constructor|d

[Lazarus] git diff enhancement

2021-09-14 Thread Martin Frb via lazarus
In order for git to show pascal function headers. Add the following to your config [diff "fpc"]   xfuncname = "^(((class[ \\t]+)?(procedure|function)|constructor|destructor|[ \\t].*[ \\t]*=[ \\t]*(class|interface|object|record)|initialization|finalization)[ \\t]*.*)$" then create a file   

  1   2   3   4   5   >