Re: [Lazarus] Problems installing Lazarus on Linux Mint

2024-07-20 Thread Juha Manninen via lazarus
On Sun, Jul 21, 2024 at 12:57 AM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Why do you assume chatGPT is male? > I followed Ari Ricardo's assumption. "*So, following his instructions ...*" Anyway it is impressive if chatGPT can give better instructions than any human. Juha --

Re: [Lazarus] Problems installing Lazarus on Linux Mint

2024-07-20 Thread Juha Manninen via lazarus
On Sat, Jul 20, 2024 at 4:11 PM Arí Ricardo Ody via lazarus < lazarus@lists.lazarus-ide.org> wrote: > I was about to give up when I remembered to ask chatGPT. > So, following his instructions, I finally successfully installed version > 3.4. > Oh! So what did he say? Juha --

Re: [Lazarus] Problems installing Lazarus on Linux Mint

2024-07-20 Thread Juha Manninen via lazarus
The Sourceforge page : https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%203.4/ has these Debian packages : fpc-laz_3.2.2-210709_amd64.deb

Re: [Lazarus] Problems opening a newly created project

2024-07-14 Thread Juha Manninen via lazarus
On Sun, Jul 14, 2024 at 5:56 PM Arí Ricardo Ody via lazarus < lazarus@lists.lazarus-ide.org> wrote: > I tried it and it opened the window with the source. And now what do I do? > Open the Project Inspector and from there open any unit files into the editor you want. The File -> Close All menu

Re: [Lazarus] Project.pp

2024-04-10 Thread Juha Manninen via lazarus
On Wed, Apr 10, 2024 at 3:42 AM Flávio Etrusco via lazarus < lazarus@lists.lazarus-ide.org> wrote: > delete the offending units from the uses clause then report back the > missing classes or functions. > Yes, I guess a project icon API should be added. > The LazIDEIntf unit doesn't exist

Re: [Lazarus] What happened to code templates?

2024-02-28 Thread Juha Manninen via lazarus
On Wed, Feb 28, 2024 at 10:50 AM Martin Frb via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Just to be sure, did you directly edit the lazarus.dci inside the ide > folder in the lazarus install dir? > > Because then, it would have stopped working. > If you edit via the IDE, then the

Re: [Lazarus] What happened to code templates?

2024-02-28 Thread Juha Manninen via lazarus
On Tue, Feb 27, 2024 at 7:45 PM John Landmesser via lazarus < lazarus@lists.lazarus-ide.org> 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" was renamed to

Re: [Lazarus] Need a good replacement for TMemo

2024-02-08 Thread Juha Manninen via lazarus
OK, I found the reason. I had made experimental reordering in component palette pages. A new installed component does not go to a user modified page. After doing "Restore defaults" the RichMemo icon became visible. It means there is a bug in the palette config code. :( Juha --

Re: [Lazarus] Need a good replacement for TMemo

2024-02-08 Thread Juha Manninen via lazarus
On Thu, Feb 8, 2024 at 12:18 AM Werner Pamler via lazarus < lazarus@lists.lazarus-ide.org> wrote: > What "does not show up mean"? No icon on the component palette? In this > case you probably missed to install the designtime package which is a bit > hidden in the "ide" folder among all the

Re: [Lazarus] Need a good replacement for TMemo

2024-02-07 Thread Juha Manninen via lazarus
On Wed, Feb 7, 2024 at 2:46 PM John Landmesser via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Please test RichMemo for Linux AND Windows! > > Long ago i tried to use RichMemo that worked for windows but not for linux! > I cloned the GitHub repo (https://github.com/skalogryz/richmemo) and

Re: [Lazarus] Need a good replacement for TMemo

2024-02-07 Thread Juha Manninen via lazarus
On Wed, Feb 7, 2024 at 11:30 AM Werner Pamler via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Yes. But you should not use the version in the CCR repository. You > probably did not see the "readme.txt" which states that the ccr version is > no longer maintained, development has been moved to

Re: [Lazarus] Need a good replacement for TMemo

2024-02-06 Thread Juha Manninen via lazarus
On Tue, Feb 6, 2024 at 11:31 PM Timothy Groves via lazarus < lazarus@lists.lazarus-ide.org> wrote: > ... and RichMemo won't work. (It will compile > in, but then Lazarus crashes on startup with an Access Violation.) > I updated lazarus-ccr repo and tried to install the RichMemo_design package.

Re: [Lazarus] Lazarus and Wayland display manager

2023-12-31 Thread Juha Manninen via lazarus
On Sun, Dec 31, 2023 at 3:36 PM John Landmesser via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Is that still true ... ? > Wayland in general has strange issues?! > As LCL binds to widgetsets like QT5 and GTK3, it should depend on those widgetsets only. Lazarus IDE also uses LCL and its

Re: [Lazarus] Proper procedure after changing files for an installed package?

2023-12-25 Thread Juha Manninen via lazarus
On Mon, Dec 25, 2023 at 10:37 PM Bo Berglund via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Do I open Lazarus and use the function "Tools/Build Lazarus with Profile > Normal > IDE" or do I have to find the package below menu item "Packages" and > explicitly > command a Compile/Install? >

Re: [Lazarus] Running FPC in the browser...

2023-10-22 Thread Juha Manninen via lazarus
How big is the difference in performance? I guess it is very big. Ten-fold maybe? You are right, for teaching programming this is a perfect tool. Juha -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

Re: [Lazarus] LazGitGui a git tool.

2023-07-29 Thread Juha Manninen via lazarus
Same with logcache. I am in Git Lazarus source directory but it asks for a parameter. [juha@juha-fp30 lazarus]$ ../lazgitgui/logcache a file or directory of a git repository is needed [juha@juha-fp30 lazarus]$ These are standalone applications. An idea for future development : An IDE plugin that

Re: [Lazarus] LazGitGui a git tool.

2023-07-29 Thread Juha Manninen via lazarus
I tested it. Quite nice! One issue: lazgitgui requires a filename as a cmd line parameter but does not use it. You should be able to run it without parameters just like "git gui". Juha -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

Re: [Lazarus] Lazarus trunk version number

2023-06-30 Thread Juha Manninen via lazarus
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 main_3_99-41-g3d8dd85474) FPC 3.2.2 x86_64-linux-gtk2 > > You are looking at trunk, the development version. See :

Re: [Lazarus] Build Lazarus trunk clean

2023-06-11 Thread Juha Manninen via lazarus
Please test again. Mattias generated the makefiles and saved me once again. Juha -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Build Lazarus trunk clean

2023-06-11 Thread Juha Manninen via lazarus
On Sunday, June 11, 2023, John Landmesser via lazarus < lazarus@lists.lazarus-ide.org> wrote: > make all clean useride > > (3104) Compiling inputhistory.pas >> /home/john1/lazarus/components/ideintf/inputhistory.pas(46,3) Fatal: >> (10022) Can't find unit FileProcs used by InputHistory >> Fatal:

[Lazarus] Build Lazarus trunk clean

2023-06-11 Thread Juha Manninen via lazarus
I did some refactoring in Lazarus sources. At least one file was moved and dependencies changed. It may require building clean to avoid "incompatible .ppu file" warnings and similar. Regards, Juha -- ___ lazarus mailing list

[Lazarus] LazMouseAndKeyInput + MacOS Cocoa

2023-03-11 Thread Juha Manninen via lazarus
Mac owners please look at the patch here: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/38500 Does it make any sense? I created it based on a forum post attachment. I don't have a Mac myself. Juha -- ___ lazarus mailing list

Re: [Lazarus] Minor annoyance in IDE

2023-01-15 Thread Juha Manninen via lazarus
On Sun, Jan 15, 2023 at 5:03 AM Don Ziesig via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Or might it just be the OS (Linux Mint XFCE)? > As Zeljko mentioned it is a window manager issue. Not OS. My KDE also has such a setting but I don't have it enabled. I hope you recovered from your

Re: [Lazarus] Lazarus IDE 'testall' program

2022-11-24 Thread Juha Manninen via lazarus
On Thu, Nov 24, 2022 at 3:00 PM Aruna Hewapathirane via lazarus < lazarus@lists.lazarus-ide.org> wrote: > On Thu, Nov 24, 2022 at 7:16 AM Martin Frb via lazarus < > lazarus@lists.lazarus-ide.org> wrote: > >> In the "main" branch the example folder was re-ordered. During this >> process the

[Lazarus] Improved Editor Macro Viever

2022-03-06 Thread Juha Manninen via lazarus
In 06352700aa7c I improved the GUI for managing editor macros, View -> Editor Macros ... Please test. Earlier in 7485ac827a the IDE toolbar button for macros got a dropdown list. The editor statusbar seems to have a button to stop recording a macro. It is not synchronized with the Editor Macros

Re: [Lazarus] Trayicon popup menu no longer showing images

2022-02-16 Thread Juha Manninen via lazarus
On Wed, Feb 16, 2022 at 4:49 PM Kostas Michalopoulos via lazarus < lazarus@lists.lazarus-ide.org> wrote: > From a quick look at the code there seems to be a way to force the > "traditional" backend by using LAZUSEAPPIND=NO environment variable, so > try to launch your program as > >$

Re: [Lazarus] Treeview question

2022-01-25 Thread Juha Manninen via lazarus
@Martin Collins, please see the issue: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39590 I guess Alexey started to implement TTreeNode.Enabled inspired by your post. I continued and I believe it is quite robust now. Please test. Regards, Juha --

Re: [Lazarus] Treeview question

2022-01-23 Thread Juha Manninen via lazarus
TTreeNode.Enabled would be a useful addition. "Enabled" instead of "Disabled" for consistency with other components. There is TTreeNode.Visible. I believe much of its code logic could be copied and used for Enabled. Patches are welcome. Juha -- ___

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

2021-12-28 Thread Juha Manninen via lazarus
On Tue, Dec 28, 2021 at 1:45 PM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > @Juha: can you please comment on my possible improvement using PopCnt > instead of a multiplication with ONEMASK. > I confess I didn't remember what PopCnt does. I checked from the net. FPC implements it

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

2021-12-28 Thread Juha Manninen via lazarus
On Tue, Dec 28, 2021 at 3:29 AM Noel Duffy via lazarus < lazarus@lists.lazarus-ide.org> 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 merge request in GitLab or

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

2021-12-27 Thread Juha Manninen via lazarus
On Mon, Dec 27, 2021 at 1:44 AM Noel Duffy via lazarus < lazarus@lists.lazarus-ide.org> wrote: > I need some help getting to the root of a problem with incorrect results > on Apple hardware (M1, aarch64) for the function UTF8LengthFast in lazutf8. > > On MacOS, when given a string containing one

Re: [Lazarus] Source file license

2021-12-15 Thread Juha Manninen via lazarus
On Wed, Dec 15, 2021 at 2:24 PM Martin Frb via lazarus < lazarus@lists.lazarus-ide.org> wrote: > It is also acceptable to have a "mixed license". E.g. >Licensed [L]GPL 2 [OR: "2 or later"] or MIT at the users choice. >Anyone using/modifying this code must keep at least either one of the >

Re: [Lazarus] New Synthwave Demo

2021-12-01 Thread Juha Manninen via lazarus
On Wed, Dec 1, 2021 at 2:04 AM Anthony Walter via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Did someone steal access to Juha's email? Not only are his ramblings > off-topic, but he sounds like a deluded conspiracy theorist bent on > disenfranchising rational people from using these

Re: [Lazarus] New Synthwave Demo

2021-11-30 Thread Juha Manninen via lazarus
Now people are dying because of the jabs. Those are not side-effects, the jabs work as intended. I am more and more convinced there is no SARS-CoV-2 virus. It has not been isolated from any patient during the 2 year "pandemic". Why? The only reliable measure of a pandemic is the total number of

Re: [Lazarus] New Synthwave Demo

2021-11-30 Thread Juha Manninen via lazarus
On Tue, Nov 30, 2021 at 10:46 AM Alexey Tor. via lazarus < lazarus@lists.lazarus-ide.org> wrote: > This is damned country. > Russia was damned then. Now the western world, meaning North America, Australia and EU, follows the same steps. Dissidents and Christian people are persecuted. There is

Re: [Lazarus] TFrame improvements

2021-11-30 Thread Juha Manninen via lazarus
On Mon, Nov 29, 2021 at 11:14 PM Ondrej Pokorny via lazarus < lazarus@lists.lazarus-ide.org> wrote: > That is nonsense. I reverted your change. The code user code is just plain > wrong and your change in TFrame doesn't change anything about it. > > Try e.g. : > > procedure

Re: [Lazarus] TFrame improvements

2021-11-29 Thread Juha Manninen via lazarus
On Mon, Nov 29, 2021 at 11:14 PM Ondrej Pokorny via lazarus < lazarus@lists.lazarus-ide.org> 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. > > That

Re: [Lazarus] TFrame improvements

2021-11-29 Thread Juha Manninen via lazarus
On Mon, Nov 29, 2021 at 6:47 PM Martin Frb via lazarus < lazarus@lists.lazarus-ide.org> wrote: > I suspect in the Designer it does not stand alone => The designer is the > parent. But I have not checked. > No, it has no parent. That is why it crashed. This is with the default IDE with floating

Re: [Lazarus] TFrame improvements

2021-11-29 Thread Juha Manninen via lazarus
On Mon, Nov 29, 2021 at 1:32 PM Ondrej Pokorny via lazarus < lazarus@lists.lazarus-ide.org> wrote: > There are many scenarios when the Canvas cannot be accessed and it is a > common mistake to access it when not allowed. > > I didn't study the issue further but to me it looks strange that setting

Re: [Lazarus] TFrame improvements

2021-11-29 Thread Juha Manninen via lazarus
On Mon, Nov 29, 2021 at 12:36 PM Michael Van Canneyt via lazarus < lazarus@lists.lazarus-ide.org> wrote: > > On Mon, 29 Nov 2021, Martin Frb via lazarus wrote: > > - The property accesses "canvas" => that triggers asking for a handle > > (which is created based on CreateParams) > Ah yes, Canvas.

[Lazarus] TFrame improvements

2021-11-29 Thread Juha Manninen via lazarus
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). There are also improvements for a custom Frame

Re: [Lazarus] New install on Ubuntu 20.04.3 Cinnamon - Errors when recompiling IDE

2021-11-23 Thread Juha Manninen via lazarus
A clean build usually solves such problems. Juha -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Lazarus on Linux, which desktop environment?

2021-11-21 Thread Juha Manninen via lazarus
On Sun, Nov 21, 2021 at 1:06 PM Kostas Michalopoulos via lazarus < lazarus@lists.lazarus-ide.org> wrote: > On 11/21/21 11:45, Juha Manninen via lazarus wrote: > > LCL-QT5 works better than LCL-GTK2 now IMO. > > What are the issues on Gtk2 that are fixed in Qt5? > Dif

Re: [Lazarus] Lazarus on Linux, which desktop environment?

2021-11-21 Thread Juha Manninen via lazarus
On Sun, Nov 21, 2021 at 10:33 AM Michael Van Canneyt via lazarus < lazarus@lists.lazarus-ide.org> wrote: > You can install KDE, but then installing Lazarus will most likely add the > GTK libraries as a dependency. > With KDE I recommend Lazarus with LCL-QT5 bindings. KDE itself is based on QT5.

Re: [Lazarus] Drag/drop project and package filenames on the IDE

2021-11-16 Thread Juha Manninen via lazarus
On Sun, Nov 14, 2021 at 2:52 AM Alexey Tor. via lazarus < lazarus@lists.lazarus-ide.org> wrote: > This must be tested with the patch: --pcp= parameter, which is used in > IDE shortcuts from fpcupdeluxe. What if different --pcp content is > passed (1st instance has another --pcp). > My commit

Re: [Lazarus] TextHint in TComboBox

2021-11-15 Thread Juha Manninen via lazarus
On Mon, Nov 15, 2021 at 8:12 PM Marcos Douglas B. Santos via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Yes, I'll try to copy from 2.2RC. Thank you. > Why can't you use 2.2RC directly? It is very close to the final 2.2. Do you experience a regression bug there? Juha --

Re: [Lazarus] Drag/drop project and package filenames on the IDE

2021-11-13 Thread Juha Manninen via lazarus
On Sat, Nov 13, 2021 at 11:46 PM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Isn't the policy to not merge new features, but only bugfixes? > Yes but this one is clearly a bugfix. A project and a file name passed as cmd line parameters behaved differently depending on Lazarus

[Lazarus] Drag/drop project and package filenames on the IDE

2021-11-13 Thread Juha Manninen via lazarus
Regarding issue : https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39338 The issue is about passing project info .lpi files etc. through cmd line for a running Lazarus IDE instance. However the same code is used for drag/drop which makes it a bigger improvement than I thought

Re: [Lazarus] Lazarus Release Candidate 2 of 2.2.0

2021-11-04 Thread Juha Manninen via lazarus
On Tue, Nov 2, 2021 at 2:54 PM Mattias Gaertner via lazarus < lazarus@lists.lazarus-ide.org> wrote: > The Lazarus team is glad to announce the second release candidate of > Lazarus 2.2. > Mattias, this should be announced in the forum, too. There are many people who don't read the mailing list.

Re: [Lazarus] Masks: the naming of ...

2021-11-03 Thread Juha Manninen via lazarus
On Wed, Nov 3, 2021 at 12:27 AM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Whilst doing that I fiddled around with bot the tests and the masks unit. > I then wanted to commit (push) these changes seperately. > I got stuck. > In svn I could commit a single file, then another. > I

Re: [Lazarus] Masks: the naming of ...

2021-11-02 Thread Juha Manninen via lazarus
I am away from my development computer now. Short comments about the git issues: I use "git gui" for commits. It shows untracked files in a separate pane which does not bother much. IIRC there is a setting to not show them at all. You can make many commits and push them sometime later. Actually

Re: [Lazarus] Masks: the naming of ...

2021-11-02 Thread Juha Manninen via lazarus
Bart, please run the TMask unit test project while you change the code. I fixed its compilation in 3c7586c0f8 but many tests fail. A unit test is especially useful with such text manipulation code. It is a good idea to run the tests after every change. Keep the test project open when changing.

Re: [Lazarus] Attn José: TWindowsMask oddity?

2021-10-31 Thread Juha Manninen via lazarus
On Sun, Oct 31, 2021 at 6:16 PM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Why did you disable ranges and sets in the Windows implementation? > AFAIK it simulates the DOS/Windows command line behavior. José can answer more accurately. Juha --

Re: [Lazarus] Masks: ConstructLegacy

2021-10-27 Thread Juha Manninen via lazarus
On Thu, Oct 28, 2021 at 12:02 AM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Attached the codetools popup for TMask.Create constructor. > I would think it would be clear enough? > Ok, if you say so. :) It is clear for people who know the details already. For new users there is no

Re: [Lazarus] Masks: ConstructLegacy

2021-10-27 Thread Juha Manninen via lazarus
On Wed, Oct 27, 2021 at 10:06 PM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > You totally lost me here. > IMHO there is no need for CreateExtende or similar new constructor. > Why not? THis is what we currently have. > > TMask: > constructor Create(const aMask: String;

Re: [Lazarus] Masks: ConstructLegacy

2021-10-27 Thread Juha Manninen via lazarus
On Wed, Oct 27, 2021 at 6:44 PM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > > The extended syntax would have another constructor. > > Not really sure what you mean by that. > There would be a constructor named CreateExtended or CreateAdvanced or similar, allowing the new nice

Re: [Lazarus] Masks: ConstructLegacy

2021-10-27 Thread Juha Manninen via lazarus
On Wed, Oct 27, 2021 at 2:50 PM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > The new masks unit has several CreateLegacy constructors (and some > *Legacy* functions). > They call the new constructros with mocEscapeChar disabled. > > Wouldn't is be a bit more logical to exclude

Re: [Lazarus] New TMaskList [forked from: TMask revisited]

2021-10-26 Thread Juha Manninen via lazarus
On Tue, Oct 26, 2021 at 8:24 PM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > However, now that we have a dedicated TMaskWindows, wouldn't it also > make more sense to have a TMaskListWindows class? > > The TMaskList constructors > constructor CreateWindows(const aValue: String;

Re: [Lazarus] TMask revisited

2021-10-26 Thread Juha Manninen via lazarus
On Mon, Oct 25, 2021 at 7:20 PM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > As I see it now, we are planning to remove all the old TMask stuff (in > the future) and replace it with the new and improved TMask. > > Shouldn't that mean that we should also deprecate the CreateLegacy

Re: [Lazarus] TMask revisited

2021-10-23 Thread Juha Manninen via lazarus
On Sat, Oct 23, 2021 at 11:21 PM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > AFAICS the TMaskOpCode and TMaskOpcodesEnum types are not related at all. > TMaskOpCode is some kind of internal identifier in the internal mask > representation, whereas TMaskOpcodesEnum are options for

Re: [Lazarus] TMask revisited

2021-10-21 Thread Juha Manninen via lazarus
On Thu, Oct 21, 2021 at 11:30 AM José Mejuto via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Now you need to match a string that starts with a number and the second > char must be a letter, with a set it will be too large and unclear: > > "[0123456789][abcdefghijklmnopqrstuvwxyz]*" > With

Re: [Lazarus] TMask revisited

2021-10-19 Thread Juha Manninen via lazarus
On Tue, Oct 19, 2021 at 5:34 PM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > With only eMaskOpcodeOptionalChar enabled [a-z] would match 'a', '-' or > 'z'? > (This would be the old behaviour of TMask) > There is now a constant MaskOpCodesNoEscape which leaves out

Re: [Lazarus] Process differences

2021-10-19 Thread Juha Manninen via lazarus
On Tue, Oct 19, 2021 at 7:58 AM Steve Gatenby via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Hoping someone could shed some light on why different results on the > following code :) > My guess is that a GTK2 session adjusts user and group rights somehow. When I run your command 'ps -eo

[Lazarus] TortoiseGit (was TMask revisited)

2021-10-17 Thread Juha Manninen via lazarus
On Sat, Oct 16, 2021 at 3:27 PM Maxim Ganetsky via lazarus < lazarus@lists.lazarus-ide.org> wrote: > You can right-click on the revision entry (in the log) itself, and there > you will be able to open unified diff viewer. Also 'raw' diffs are not > very convenient to me, I prefer to inspect them

Re: [Lazarus] TMask revisited

2021-10-17 Thread Juha Manninen via lazarus
On Sun, Oct 17, 2021 at 1:10 AM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > I see you implemented the "old" constructors with the TMaskOptions > parameter and deprecated them as suggested. > Thanks for that. > Maybe add: 'Will be removed in 2.4' or similar to the deprecated

Re: [Lazarus] TMask revisited

2021-10-16 Thread Juha Manninen via lazarus
I turned the define RANGES_AUTOREVERSE into a run time option in 67111d9a30. A boolean RangeAutoReverse is True by default. I don't really know when somebody would want to turn it off. I also added constructors and functions for legacy syntax, which means [?] represents a literal '?' and

Re: [Lazarus] TMask revisited

2021-10-16 Thread Juha Manninen via lazarus
On Sat, Oct 16, 2021 at 12:23 AM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > > Yes, there should be an option for backwards compatible syntax, like > "[?]" . However the small changes in the syntax can be seen as improvements. > > There already is a define for converting "[z-a]" to

Re: [Lazarus] TMask revisited

2021-10-16 Thread Juha Manninen via lazarus
On Sat, Oct 16, 2021 at 11:20 AM Juha Manninen wrote: > Yes, the TMaskWindows indeed behaves wrong. '**.pas*' matches with ' > *abc.pas.bak*'. > Fixed in a111270ed0. Please test. No code changes were needed. I only disabled one of the Windows quirks, namely eWindowsQuirk_Extension3More. Please

Re: [Lazarus] TMask revisited

2021-10-16 Thread Juha Manninen via lazarus
On Fri, Oct 15, 2021 at 3:38 PM Maxim Ganetsky via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Please try with, for example bla.pas and bla.pas.bak files. > I got another mail from Maxim. It was also sent to this list but didn't appear. I also configured my Windows under Virtualbox for

Re: [Lazarus] TMask revisited

2021-10-15 Thread Juha Manninen via lazarus
On Fri, Oct 15, 2021 at 3:38 PM Maxim Ganetsky via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Please try with, for example bla.pas and bla.pas.bak files. > I did basically that. I copied a .pas file to .pas.bak. Find in Files does not find extra entries with File mask

Re: [Lazarus] TMask revisited

2021-10-15 Thread Juha Manninen via lazarus
On Fri, Oct 15, 2021 at 3:10 PM Sven Barth via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Non-static class methods *do* have a Self parameter, but it's the class > type and not the class instance. They can also be virtual, which is a > really great feature of the Object Pascal language (I

Re: [Lazarus] TMask revisited

2021-10-15 Thread Juha Manninen via lazarus
This may be a dummy question but what does "static" do for a class procedure? José's mask code has for example: class procedure Exception_IncompleteMask(); static; I thought class procedures are kind of static anyways, meaning they don't have a Self pointer. Juha --

Re: [Lazarus] TMask revisited

2021-10-15 Thread Juha Manninen via lazarus
I restored the backwards compatible TMaskOptions in 04b0a04a45. Please test. When ranges (sets) are disabled, [] is interpreted as literal []. Works perfectly. Next I will study the little syntax differences. There should be a backwards compatible option for those, too. Juha --

Re: [Lazarus] TMask revisited

2021-10-14 Thread Juha Manninen via lazarus
On Fri, Oct 15, 2021 at 2:54 AM Juha Manninen wrote: > Noticable the ability to NOT interpret [] as a set in the mask has now >> disappeared. >> > > How should a range / set [] be interpreted? > Ok, forget that question. I will study this more tomorrow. Juha --

Re: [Lazarus] TMask revisited

2021-10-14 Thread Juha Manninen via lazarus
On Thu, Oct 14, 2021 at 7:57 PM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > You have changed the existing interface for both TMask and the > Matches(Windows)Mask(List) functions. > TMaskOptions has been removed. > It can be added for compatibility. Noticable the ability to NOT

Re: [Lazarus] TMask revisited

2021-10-14 Thread Juha Manninen via lazarus
On Thu, Oct 14, 2021 at 12:53 AM Maxim Ganetsky via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Don't know if it is related but just noticed that `Find in files` dialog > now "ignores" file masks. > > E. g. I have the following file mask: `*.pas;*.pp;*.inc;*.lpr;*.lfm`, > but it also finds

Re: [Lazarus] TMask revisited

2021-10-13 Thread Juha Manninen via lazarus
On Wed, Oct 13, 2021 at 7:03 PM Marcus Sackrow via lazarus < lazarus@lists.lazarus-ide.org> wrote: > it breaks "make all" for x86_64-linux > LazBuild, yes. Again I forgot to test compiling it. Now it is fixed. Please test. Regards, Juha -- ___

[Lazarus] TMask revisited

2021-10-13 Thread Juha Manninen via lazarus
I restored the great TMask implementation by José Mejuto in our development branch. I also fixed a few issues that hindered the transition last time. It was discussed at least in this mailing list with title "unit Masks vs. unit FPMasks" in 23 February this year. The logic in ShellCtrls unit is

Re: [Lazarus] Possible bug in TFrame

2021-08-20 Thread Juha Manninen via lazarus
On Thu, Aug 19, 2021 at 11:59 PM Marcos Douglas B. Santos via lazarus < lazarus@lists.lazarus-ide.org> wrote: > If I publish the full source of the component—which is not a big > deal—or send it to you in private, could you test it using the Demo > which exists already? > Yes, both ways are OK,

Re: [Lazarus] Possible bug in TFrame

2021-08-18 Thread Juha Manninen via lazarus
Is there an example project without external packages or customdrawn widgetset? Customdrawn widgetset is incomplete and broken at least here in my Linux system. If not, then please upload such a project into one of the tickets. Juha -- ___ lazarus

Re: [Lazarus] cannot compile git trunk from today

2021-07-31 Thread Juha Manninen via lazarus
On Sat, Jul 31, 2021 at 11:09 PM John Landmesser via lazarus < lazarus@lists.lazarus-ide.org> wrote: > gtk2trayicon.inc(387,5) Error: Identifier not found > "gtk_status_icon_set_tooltip_text" > > What should i do? > Use the released FPC 3.2.2 or get the latest FPC trunk. Now you have an old

[Lazarus] The "Use" button in Component List

2021-06-28 Thread Juha Manninen via lazarus
The list opens with Ctrl-Alt-P and is an alternative to the Component Palette. Is the "Use" button somehow useful? A component can be added by selecting it and clicking on designer, or by double-clicking it. The behavior was slightly changed in r64929, issue:

[Lazarus] Fwd: Registering a TFrame to component palette

2021-06-13 Thread Juha Manninen via lazarus
It went to Sven Barth only, forwarding here. I clicked the reply button as always. I don't know what happened. -- Forwarded message - From: Juha Manninen Date: Sun, Jun 13, 2021 at 6:41 PM Subject: Re: [Lazarus] Registering a TFrame to component palette To: Sven Barth On Sun,

[Lazarus] Registering a TFrame to component palette

2021-06-11 Thread Juha Manninen via lazarus
Regarding issue : https://bugs.freepascal.org/view.php?id=28450 The parameter passed to function RegisterComponents() is TComponentClass which means "class of TComponent". It is only type information and does not carry information about sub-components. Could somebody please explain how it works

Re: [Lazarus] AutoSave does not save project file...

2021-06-10 Thread Juha Manninen via lazarus
On Thu, Jun 10, 2021 at 4:48 PM Bo Berglund via lazarus < lazarus@lists.lazarus-ide.org> wrote: > I have never ever looked at stuff that integrate within Lazarus itself so I > could not fix it > Maybe it is time you look at such stuff. It may be an easy bug. A list of file endings missing

[Lazarus] Type used in function TListItem.GetState()

2021-03-21 Thread Juha Manninen via lazarus
Partly related to issue https://bugs.freepascal.org/view.php?id=38565 I changed function TListItem.GetState to use enum TListItemState directly instead of casting it to an integer. It allows to remove many ugly typecasts. I don't see any problems caused by it. None of the properties are

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-27 Thread Juha Manninen via lazarus
On Fri, Feb 26, 2021 at 10:24 PM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > On Fri, Feb 26, 2021 at 7:15 PM Bart wrote: > My backup and some related programs still compile, but instatly raise > an exception when they start to perform their main task. > Thank you very much. > >

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-25 Thread Juha Manninen via lazarus
On Thu, Feb 25, 2021 at 12:44 PM José Mejuto via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Backwards compatibility, in special the escape character which can be > used in old masks like: "C:\*.*". The other functions can be kept > active, but escape char could be a compatibility problem.

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-25 Thread Juha Manninen via lazarus
On Thu, Feb 25, 2021 at 10:47 AM José Mejuto via lazarus < lazarus@lists.lazarus-ide.org> wrote: > In fact I think that the whole unit is needed. It has (info for other > readers) 3 classes TMaskUTF8, TMaskAnsi and TMaskUnicode, maybe > TMaskAnsi can be omitted but UTF8 and Unicode should be

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Juha Manninen via lazarus
On Wed, Feb 24, 2021 at 1:05 PM José Mejuto via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Note: Just to put in context, my "explore" in the TMask world started > when writing my NTFS filesystem reader, when all file names are read > (400,000) I can search for them using masks. When

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Juha Manninen via lazarus
MaskList is used in TCustomShellTreeView.GetFilesInDir(). It sets a mask option *moDisableSets*. Why are sets disabled? Is it to stay compatible with FindFirstUTF8() syntax? I don't fully understand the comment. Why would EConvertError be raised? //Disable the use of sets in the masklist.

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Juha Manninen via lazarus
On Wed, Feb 24, 2021 at 12:22 PM José Mejuto via lazarus < lazarus@lists.lazarus-ide.org> wrote: > In my code there is non 100% unicode compatibility when using the > "CaseInsensitive" mode as as it uses lowercase mask and lowercase string > to perform the test which is wrong by definition but I

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Juha Manninen via lazarus
On Wed, Feb 24, 2021 at 1:00 PM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > > > There are no tests for MatchesWindowsMask() yet. > I tested that extensively on my machine with all scenarios I could think > of. > Please add your tests to the project I mentioned. Juha --

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Juha Manninen via lazarus
I will not touch MaskEdit. Don't worry. On Wed, Feb 24, 2021 at 11:03 AM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Without a major rewrite (which increases the cange of breaking > compatibility). > José Mejuto's code is a major rewrite for Masks. It supports Unicode in masks,

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Juha Manninen via lazarus
On Wed, Feb 24, 2021 at 12:08 AM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > TMask (unit masks) deals with masks with wildcards (*,? and sets of > single byte chars). > It is mainly used for matching filenames (similar to the Path supplied > to FindFirst). > > TMaskEdit gives you

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-23 Thread Juha Manninen via lazarus
On Tue, Feb 23, 2021 at 7:38 PM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > I have copied in the past some of the TMaskEdit logic and methods to > the MaskUtils unit. > Ok, the TEditMask thing was in MaskUtils. I didn't pay attention. How about TMask? Does it have the same syntax

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-23 Thread Juha Manninen via lazarus
On Tue, Feb 23, 2021 at 2:54 PM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > MaskEdit is a LCL control and hence has nothing to do in fpc. > I am not suggesting to move MaskEdit to FPC libs obviously. I have in the past copied bits of TMaskEdit to a related fpc unit > (cannot

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-23 Thread Juha Manninen via lazarus
On Tue, Feb 23, 2021 at 12:56 PM Juha Manninen wrote: > Oops, now I understand that FPMasks does not really support Unicode. > Type UTF8String only converts encoding automatically when assigning values. > There is no code to identify codepoints. > The LazUtils Masks iterates codepoints, although

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-23 Thread Juha Manninen via lazarus
A related thing. I am confused with different mask classes. Embarcadero docs for TMask http://docwiki.embarcadero.com/Libraries/Sydney/en/System.Masks.TMask says: "*Note:* Do not confuse TMask with the EditMask of a field or masked edit object. While both are used for comparing strings to a

[Lazarus] unit Masks vs. unit FPMasks

2021-02-23 Thread Juha Manninen via lazarus
Hello LazUtils has unit Masks with classes TMask and TMaskList. FPC's packages/fpindexer has unit FPMasks also with classes TMask and TMaskList. A comment in FPMasks says "Moved here from LCL". Revision control shows it was added 9 years ago in 2012. Since 2.5 years ago it supports Unicode by

  1   2   3   4   5   >