From matthieugiroux at yahoo.fr Fri Aug 2 06:57:15 2024 From: matthieugiroux at yahoo.fr (Matthieu Giroux) Date: Fri, 2 Aug 2024 04:57:15 +0000 (UTC) Subject: [Lazarus] French Ebook to learn Lazarus References: <1519126305.3806720.1722574635972.ref@mail.yahoo.com> Message-ID: <1519126305.3806720.1722574635972@mail.yahoo.com> Hello ! Here is french book to learn Lazarus : https://archive.org/download/Scribels/LAZARUS%20FREE%20PASCAL%20-%20Matthieu%20Giroux.odt You can traduce it freely. Matthieu Giroux 13 Rue Fr Tanguy PRIGENT A.15 - 35000 RennesT?l : 09 61 37 01 82 - 06 44 733 008 http://www.liberlog.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Fri Aug 2 17:53:58 2024 From: michael at freepascal.org (Michael Van Canneyt) Date: Fri, 2 Aug 2024 17:53:58 +0200 (CEST) Subject: [Lazarus] Strange effect when debugging... Message-ID: <94221b-e35a-2fd7-3afd-298bbfa3a6f1@freepascal.org> Hi, Does lazarus (or gdb) start a binary twice sometimes when initializing debugging ? I have a program that behaves strangely: In the IDE without anchordockingdsgn I start a binary using F9. It starts debugging at once, no errors. In the IDE with anchordockingdsgn, I start a binary using F9 (Run with debugging). I get almost immediatly 'socket binding failed' - the binding of a TCP socket fails. Indeed, when I stop debugging and check the process list, a prior process is visible, running. It obviously occupies the port. When I kill the prior process, the second F9 works at once, as do all other attempts to run it. But if I stop the IDE and restart it, I have the same behaviour again: first attempt to run fails. In the anchordockingdsgn IDE, when I switch project, run the new project and then return to the first project (which could not be debugged), all works again OK. What is puzzling is that this only happens with the IDE that has anchordocking enabled. If I recompile the IDE after removing the anchordocking package, debugging works at once. Most puzzling. I fail to see what anchordocking has to do with debugging, except that the list of opened debug windows is different. I can't for the life of me explain how this would result in starting a process twice. Any hints ? Michael. From lazarus at mfriebe.de Fri Aug 2 18:23:28 2024 From: lazarus at mfriebe.de (Martin Frb) Date: Fri, 2 Aug 2024 18:23:28 +0200 Subject: [Lazarus] Strange effect when debugging... In-Reply-To: <94221b-e35a-2fd7-3afd-298bbfa3a6f1@freepascal.org> References: <94221b-e35a-2fd7-3afd-298bbfa3a6f1@freepascal.org> Message-ID: <3b233472-8ee3-4e6d-8acf-4b878b8fb77a@mfriebe.de> On 02/08/2024 17:53, Michael Van Canneyt via lazarus wrote: > > Hi, > > Does lazarus (or gdb) start a binary twice sometimes when initializing > debugging ? ... > When I kill the prior process, the second F9 works at once, as do all > other > attempts to run it. > > But if I stop the IDE and restart it, I have the same behaviour again: > first > attempt to run fails. > > In the anchordockingdsgn IDE, when I switch project, run the new > project and then return to the first project (which could not be > debugged), all works again OK. > > What is puzzling is that this only happens with the IDE that has > anchordocking enabled. > If I recompile the IDE after removing the anchordocking package, > debugging works > at once. I don't think it is the debugger (neither of them). Except, if the IDE would internally start 2 instance of the debugger (then there would likely be mem leaks on exit). I don't know if it is anything to do with ... but with anchordocking, I have seen some keystrokes been send to the wrong control. The questions then would be: Could a keystroke (F9) be duplicated? If the IDE received two times F9 in a short enough time, would there be a race condition were the first is in progress, but hasn't flagged the state internally, so the 2nd would also go ahead? (If that happens, and if that happens with the gdb backend, then there would have to be 2 instances of gdb.exe running. Assuming that both runs were triggered as "with debugger" and not one "without debugger") Otherwise maybe the output of the IDE to console does have hints. ---- Of course, I assume you ensured that before you tried to start, there wasn't any old instance already. From michael at freepascal.org Fri Aug 2 19:03:38 2024 From: michael at freepascal.org (Michael Van Canneyt) Date: Fri, 2 Aug 2024 19:03:38 +0200 (CEST) Subject: [Lazarus] Strange effect when debugging... In-Reply-To: <3b233472-8ee3-4e6d-8acf-4b878b8fb77a@mfriebe.de> References: <94221b-e35a-2fd7-3afd-298bbfa3a6f1@freepascal.org> <3b233472-8ee3-4e6d-8acf-4b878b8fb77a@mfriebe.de> Message-ID: <887d40c6-cc2f-aaf7-3ea1-a8c1c8d45c1@freepascal.org> On Fri, 2 Aug 2024, Martin Frb via lazarus wrote: > On 02/08/2024 17:53, Michael Van Canneyt via lazarus wrote: >> >> Hi, >> >> Does lazarus (or gdb) start a binary twice sometimes when initializing >> debugging ? > ... >> When I kill the prior process, the second F9 works at once, as do all other >> attempts to run it. >> >> But if I stop the IDE and restart it, I have the same behaviour again: >> first >> attempt to run fails. >> >> In the anchordockingdsgn IDE, when I switch project, run the new project >> and then return to the first project (which could not be debugged), all >> works again OK. >> >> What is puzzling is that this only happens with the IDE that has >> anchordocking enabled. >> If I recompile the IDE after removing the anchordocking package, debugging >> works >> at once. > > I don't think it is the debugger (neither of them). Except, if the IDE would > internally start 2 instance of the debugger (then there would likely be mem > leaks on exit). > > I don't know if it is anything to do with ... but with anchordocking, I have > seen some keystrokes been send to the wrong control. The questions then would > be: Could a keystroke (F9) be duplicated? If the IDE received two times F9 in > a short enough time, would there be a race condition were the first is in > progress, but hasn't flagged the state internally, so the 2nd would also go > ahead? Could very well be. I recently reported this: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/41041 The issue arises only when 2 IDE windows are open. The difference in behaviour between the mouse and keyboard point indeed to the events ending up in the wrong place. Seems to me that anchordocking in the IDE is not yet where it is supposed to be... :-/ > (If that happens, and if that happens with the gdb backend, then there would > have to be 2 instances of gdb.exe running. Assuming that both runs were > triggered as "with debugger" and not one "without debugger") > > Otherwise maybe the output of the IDE to console does have hints. I will try that and report back. > ---- > Of course, I assume you ensured that before you tried to start, there wasn't > any old instance already. > -- Obviously :-) Michael. From michael at freepascal.org Sat Aug 3 10:41:44 2024 From: michael at freepascal.org (Michael Van Canneyt) Date: Sat, 3 Aug 2024 10:41:44 +0200 (CEST) Subject: [Lazarus] Getting notified when active editor changes Message-ID: <2840c2ff-6cd3-cdd4-d44-2836ef16554@freepascal.org> Hi, I'm trying to improve the "file browser" plugin. I would like to keep it in sync with the currently active editor: In the file/directory tree, always select the directory/file of the currently active editor. (if it is in the tree, of course) For this to work I need to be notified when the uses starts editing another file - i.e. changes to another source editor. I have found in LazaIDEintf lots of event handlers, but it seems there is no event for when the user switches source editors. I could work with a timer and examine the currently active editor, but that seems a bit hackish. Did I miss such an event handler ? If no such event exists, could it be added ? Michael. From lazarus at mfriebe.de Sat Aug 3 11:46:52 2024 From: lazarus at mfriebe.de (Martin Frb) Date: Sat, 3 Aug 2024 11:46:52 +0200 Subject: [Lazarus] Getting notified when active editor changes In-Reply-To: <2840c2ff-6cd3-cdd4-d44-2836ef16554@freepascal.org> References: <2840c2ff-6cd3-cdd4-d44-2836ef16554@freepascal.org> Message-ID: <020d907f-d13b-415a-9e01-2324c9eaf666@mfriebe.de> On 03/08/2024 10:41, Michael Van Canneyt via lazarus wrote: > > Hi, > > I'm trying to improve the "file browser" plugin. > > I would like to keep it in sync with the currently active editor: > In the file/directory tree, always select the directory/file of the > currently > active editor. (if it is in the tree, of course) unit SrcEditorIntf; ? TSemChangeReason = ( ??? semEditorActivate,? // Editor is ActiveEditor not sure you may additionally need to watch for new created.... From michael at freepascal.org Sat Aug 3 15:11:48 2024 From: michael at freepascal.org (Michael Van Canneyt) Date: Sat, 3 Aug 2024 15:11:48 +0200 (CEST) Subject: [Lazarus] Getting notified when active editor changes In-Reply-To: <020d907f-d13b-415a-9e01-2324c9eaf666@mfriebe.de> References: <2840c2ff-6cd3-cdd4-d44-2836ef16554@freepascal.org> <020d907f-d13b-415a-9e01-2324c9eaf666@mfriebe.de> Message-ID: On Sat, 3 Aug 2024, Martin Frb via lazarus wrote: > On 03/08/2024 10:41, Michael Van Canneyt via lazarus wrote: >> >> Hi, >> >> I'm trying to improve the "file browser" plugin. >> >> I would like to keep it in sync with the currently active editor: >> In the file/directory tree, always select the directory/file of the >> currently >> active editor. (if it is in the tree, of course) > > unit SrcEditorIntf; > > ? TSemChangeReason = ( > ??? semEditorActivate,? // Editor is ActiveEditor Thanks, that is just what I needed. > > not sure you may additionally need to watch for new created.... Better not, since it does not yet have a filename, so nothing to show yet. I implemented an initial version of this new feature, I pushed it to the git repo. Thanks for the tip... Michael. From nightrider43 at gmail.com Sat Aug 3 17:11:04 2024 From: nightrider43 at gmail.com (=?UTF-8?Q?Ar=C3=AD_Ricardo_Ody?=) Date: Sat, 3 Aug 2024 12:11:04 -0300 Subject: [Lazarus] Why doesn't my project compile anymore? Message-ID: I extracted a 7zip backup of the directory where a Lazarus project was, opened it in the IDE and pressed ctrl-F9. See below what appeared in the IDE message window. (Lazarus IDE v3.4) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Compilar projeto, Alvo: D:\testes_pascal\transmissao_visual\gerastringvisual.exe: C?digo sa?da 1, Erros: 2 Error: No known file format detected for file 'gerastringvisual.res' gerastringvisual.lpr(24,1)Error: Error while compiling resources -> Compile with -vd for more details. Check for duplicates --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- I confess that occurrences like these leave me completely at a loss as to what to do. Note that I only extracted the contents of the 7zip file and compiled it. I have done this many, many times in my life. There is nothing that leads me to believe that saving a backup in a 7zip file and then extracting it will lead to corruption of the saved and extracted data. Could someone please help me resolve this? Greetings from S?o Paulo - Brazil Ar? Ricardo -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at kluug.net Sat Aug 3 19:39:01 2024 From: lazarus at kluug.net (Ondrej Pokorny) Date: Sat, 3 Aug 2024 19:39:01 +0200 Subject: [Lazarus] Getting notified when active editor changes In-Reply-To: References: <2840c2ff-6cd3-cdd4-d44-2836ef16554@freepascal.org> <020d907f-d13b-415a-9e01-2324c9eaf666@mfriebe.de> Message-ID: On 03.08.2024 15:11, Michael Van Canneyt via lazarus wrote: > I implemented an initial version of this new feature, I pushed it to > the git repo. I always wanted to do this for the project inspector. So I used your approach as an inspiration :) I also found out that LazarusIDE.RemoveAllHandlersOfObject doesn't remove the SourceEditorManagerIntf events. I fixed that in your code. Ondrej From michael at freepascal.org Sun Aug 4 09:05:16 2024 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 4 Aug 2024 09:05:16 +0200 (CEST) Subject: [Lazarus] Getting notified when active editor changes In-Reply-To: References: <2840c2ff-6cd3-cdd4-d44-2836ef16554@freepascal.org> <020d907f-d13b-415a-9e01-2324c9eaf666@mfriebe.de> Message-ID: On Sat, 3 Aug 2024, Ondrej Pokorny wrote: > On 03.08.2024 15:11, Michael Van Canneyt via lazarus wrote: >> I implemented an initial version of this new feature, I pushed it to the >> git repo. > > I always wanted to do this for the project inspector. So I used your approach > as an inspiration :) I updated my lazarus, works well! :-) > > I also found out that LazarusIDE.RemoveAllHandlersOfObject doesn't remove the > SourceEditorManagerIntf events. I fixed that in your code. Ah, good to know. Thanks for fixing it ! Michael. From michael at freepascal.org Sun Aug 4 10:12:06 2024 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 4 Aug 2024 10:12:06 +0200 (CEST) Subject: [Lazarus] Why doesn't my project compile anymore? In-Reply-To: References: Message-ID: <4691d5-7d98-dc98-28cb-8d69fcdf98b@freepascal.org> On Sat, 3 Aug 2024, Ar? Ricardo Ody via lazarus wrote: > I extracted a 7zip backup of the directory where a Lazarus project was, > opened it in the IDE and pressed ctrl-F9. See below what appeared in the > IDE message window. (Lazarus IDE v3.4) > > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > Compilar projeto, Alvo: > D:\testes_pascal\transmissao_visual\gerastringvisual.exe: C?digo sa?da 1, > Erros: 2 > Error: No known file format detected for file 'gerastringvisual.res' > gerastringvisual.lpr(24,1)Error: Error while compiling resources -> Compile > with -vd for more details. Check for duplicates > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > I confess that occurrences like these leave me completely at a loss as to > what to do. The error means the gerastringvisual.res file is corrupted. Did you do as suggested, compile with -vd ? You could try copying the file again. Michael. From nightrider43 at gmail.com Sun Aug 4 17:05:32 2024 From: nightrider43 at gmail.com (=?UTF-8?Q?Ar=C3=AD_Ricardo_Ody?=) Date: Sun, 4 Aug 2024 12:05:32 -0300 Subject: [Lazarus] Why doesn't my project compile anymore? In-Reply-To: <4691d5-7d98-dc98-28cb-8d69fcdf98b@freepascal.org> References: <4691d5-7d98-dc98-28cb-8d69fcdf98b@freepascal.org> Message-ID: Hello Michael! How are you > The error means the gerastringvisual.res file is corrupted. Yes, I understood this part. But thank you. >Did you do as suggested, compile with -vd ? Even with the help of chatGPT I couldn't figure out where I could put the -vd option. The clauses where chatGPT tells me to click differ from those that appear in my Lazarus IDE. > You could try copying the file again. I did everything. I deleted the gerastringvisual.res file, extracted the entire project from the 7zip file and recompiled it, and finally extracted only the girastringvisual.res file from the 7zip file. Nothing worked. I also deleted the project directory and recreated it. I deleted it again and created it with a different name. Nothing worked. I don't know what to do anymore. I feel like I've lost my entire project. It seems like it will never compile again. What happened between the last time the project compiled and now was that I simply turned off the computer, turned it on, included a few lines in one of the project's methods, and told Lazarus to compile. Greetings from S?o Paulo - Brazil Ar? Ricardo On Sun, Aug 4, 2024 at 5:24?AM Michael Van Canneyt via lazarus < lazarus at lists.lazarus-ide.org> wrote: > > > On Sat, 3 Aug 2024, Ar? Ricardo Ody via lazarus wrote: > > > I extracted a 7zip backup of the directory where a Lazarus project was, > > opened it in the IDE and pressed ctrl-F9. See below what appeared in the > > IDE message window. (Lazarus IDE v3.4) > > > > > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Compilar projeto, Alvo: > > D:\testes_pascal\transmissao_visual\gerastringvisual.exe: C?digo sa?da 1, > > Erros: 2 > > Error: No known file format detected for file 'gerastringvisual.res' > > gerastringvisual.lpr(24,1)Error: Error while compiling resources -> > Compile > > with -vd for more details. Check for duplicates > > > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > > > I confess that occurrences like these leave me completely at a loss as to > > what to do. > > The error means the gerastringvisual.res file is corrupted. > > Did you do as suggested, compile with -vd ? > > You could try copying the file again. > > Michael.-- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From coppolastudio at gmail.com Sun Aug 4 17:18:44 2024 From: coppolastudio at gmail.com (Salvatore Coppola) Date: Sun, 04 Aug 2024 17:18:44 +0200 Subject: [Lazarus] Why doesn't my project compile anymore? In-Reply-To: References: <4691d5-7d98-dc98-28cb-8d69fcdf98b@freepascal.org> Message-ID: <0aa5fab0-5aed-4877-aad9-ab4b143f8d11@gmail.com> Have you tried to recreate the resource via windres.exe As alternative comment {$R *.res} in project source Saluti ?Ottieni BlueMail per Android ? Il giorno 4 Ago 2024, 17:05, alle ore 17:05, "Ar? Ricardo Ody via lazarus" ha scritto: >Hello Michael! How are you > >> The error means the gerastringvisual.res file is corrupted. > >Yes, I understood this part. But thank you. > >>Did you do as suggested, compile with -vd ? > >Even with the help of chatGPT I couldn't figure out where I could put >the >-vd option. The clauses where chatGPT tells me to click differ from >those >that appear in my Lazarus IDE. > >> You could try copying the file again. > >I did everything. I deleted the gerastringvisual.res file, extracted >the >entire project from the 7zip file and recompiled it, and finally >extracted >only the girastringvisual.res file from the 7zip file. Nothing worked. >I >also deleted the project directory and recreated it. I deleted it again >and >created it with a different name. Nothing worked. > >I don't know what to do anymore. I feel like I've lost my entire >project. >It seems like it will never compile again. > >What happened between the last time the project compiled and now was >that I >simply turned off the computer, turned it on, included a few lines in >one >of the project's methods, and told Lazarus to compile. > >Greetings from S?o Paulo - Brazil > >Ar? Ricardo > >On Sun, Aug 4, 2024 at 5:24?AM Michael Van Canneyt via lazarus < >lazarus at lists.lazarus-ide.org> wrote: > >> >> >> On Sat, 3 Aug 2024, Ar? Ricardo Ody via lazarus wrote: >> >> > I extracted a 7zip backup of the directory where a Lazarus project >was, >> > opened it in the IDE and pressed ctrl-F9. See below what appeared >in the >> > IDE message window. (Lazarus IDE v3.4) >> > >> > >> >--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- >> > Compilar projeto, Alvo: >> > D:\testes_pascal\transmissao_visual\gerastringvisual.exe: C?digo >sa?da 1, >> > Erros: 2 >> > Error: No known file format detected for file >'gerastringvisual.res' >> > gerastringvisual.lpr(24,1)Error: Error while compiling resources -> >> Compile >> > with -vd for more details. Check for duplicates >> > >> >--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- >> > >> > I confess that occurrences like these leave me completely at a loss >as to >> > what to do. >> >> The error means the gerastringvisual.res file is corrupted. >> >> Did you do as suggested, compile with -vd ? >> >> You could try copying the file again. >> >> Michael.-- >> _______________________________________________ >> lazarus mailing list >> lazarus at lists.lazarus-ide.org >> https://lists.lazarus-ide.org/listinfo/lazarus >> > > >------------------------------------------------------------------------ > >-- >_______________________________________________ >lazarus mailing list >lazarus at lists.lazarus-ide.org >https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at kingel.net Mon Aug 5 09:32:46 2024 From: lists at kingel.net (Arne Hanssen) Date: Mon, 5 Aug 2024 09:32:46 +0200 Subject: [Lazarus] Why doesn't my project compile anymore? In-Reply-To: References: <4691d5-7d98-dc98-28cb-8d69fcdf98b@freepascal.org> Message-ID: <401fabb8-6d17-448a-83c7-c7b28e97d6fb@kingel.net> Den 04.08.2024 17:05, skreiv Ar? Ricardo Ody via lazarus: > Hello Michael! How are you > > [...] > > >Did you do as suggested, compile with -vd ? > > Even with the help of chatGPT I couldn't figure out where I could put > the -vd option. The clauses where chatGPT tells me to click differ > from those that appear in my Lazarus IDE. Project -> Project Options, then under Compiler Options: Verbosity, mark 'Show debug info (-vd)'? [...] -- Best regards Arne Hanssen From nightrider43 at gmail.com Tue Aug 6 01:17:26 2024 From: nightrider43 at gmail.com (=?UTF-8?Q?Ar=C3=AD_Ricardo_Ody?=) Date: Mon, 5 Aug 2024 20:17:26 -0300 Subject: [Lazarus] Problems opening a newly created project In-Reply-To: <317e5ae2-7815-4c8c-9cc5-c6c70a364dfe@mfriebe.de> References: <317e5ae2-7815-4c8c-9cc5-c6c70a364dfe@mfriebe.de> Message-ID: > On the same computer as below? With the same version of Lazarus? Yes, nothing was changed in the IDE settings. I unzipped the project from a 7zip file, opened the project in the IDE and hit ctrl-F9 >If you did create the project above with a newer version, then try to >enable saving with compatibility. Not sure if it affects Lazarus 2.2, >but at some point the fileformat was changed. I'll repeat. I simply turned on the notebook, unzipped the 7zip file, opened the project in the IDE (double-clicked on the .LPI file) and pressed ctrl-F9. I didn't change anything in Lazarus. I used the same version of the IDE that I had saved the project in the last time it worked. I simply lost my project. It no longer compiles. >Did you use "Close all [editor] files" from the main menu? That, does >not close the project, but updates it, so no files are shown by default >(because they all got closed). Believe me, I tried everything. Except messing with IDE settings. On Sun, Jul 14, 2024 at 12:33?PM Martin Frb via lazarus < lazarus at lists.lazarus-ide.org> wrote: > On 14/07/2024 16:13, Ar? Ricardo Ody via lazarus wrote: > > Hey guys! > > > > I created a new project, > > On the same computer as below? With the same version of Lazarus? > > > included the components I would need, wrote the pascal code, tested it > > and saved it in a directory. Just now I opened Lazarus IDE > > v2.2.0+dfsg1-Subuntu1 on my Linux Mint > > If you did create the project above with a newer version, then try to > enable saving with compatibility. Not sure if it affects Lazarus 2.2, > but at some point the fileformat was changed. > > >If neither, and nothing else helps, start lazarus from a >terminal/console. Then when you open the project check if anything is >printed to that terminal. Nothing happen. Greetings from S?o Paulo - Brazil > ----------------------------------------------------- > > Did you use "Close all [editor] files" from the main menu? That, does > not close the project, but updates it, so no files are shown by default > (because they all got closed). > > ----------------------------------------------------- > > If neither, and nothing else helps, start lazarus from a > terminal/console. Then when you open the project check if anything is > printed to that terminal. > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nightrider43 at gmail.com Tue Aug 6 01:22:06 2024 From: nightrider43 at gmail.com (=?UTF-8?Q?Ar=C3=AD_Ricardo_Ody?=) Date: Mon, 5 Aug 2024 20:22:06 -0300 Subject: [Lazarus] Problems opening a newly created project In-Reply-To: <2125a6f5-721c-44ec-96a9-f4df67ec8f6c@gmx.de> References: <2125a6f5-721c-44ec-96a9-f4df67ec8f6c@gmx.de> Message-ID: >I am on lazarus trunk so i don't know if your version of lazarus has this: >Menue Windows/Center lost windows >Perhaps that can restore your IDE ?! Forgive me, but I don't understand what you're talking about. In fact, I would like to simply be a Lazarus user, without having to deal with advanced things that are not development needs. As I said before, I think I've lost my project. It no longer compiles. On Sun, Jul 14, 2024 at 1:59?PM John Landmesser via lazarus < lazarus at lists.lazarus-ide.org> wrote: > Am 14.07.24 um 16:13 schrieb Ar? Ricardo Ody via lazarus: > > Hey guys! > > > > I created a new project, included the components I would need, wrote > > the pascal code, tested it and saved it in a directory. Just now I > > opened Lazarus IDE v2.2.0+dfsg1-Subuntu1 on my Linux Mint and tried to > > open the project with Project|Open Project selecting the .lpi file > > that has the name of the project. Nothing happened. The name of the > > directory appears at the top of the Lazarus Ide page but nothing > > opened. I tried to check, I went to File|Close All and this option is > > disabled (I assume it's because it didn't open anything in my project). > > > > Then I went to File|Open, selected the .lpi file of my project and > > answered Open project with the appropriate button. Again nothing > > happened and the File|Close All option is inhibited again. > > > > I went to another directory that contains another project that opens > > normally and I verified that the list of files in this other directory > > contains the same files by checking the extension of each file. > > > > Is there any other way for me to get Lazarus to open my project? Did I > > lose the project? > > > > I appreciate any help. > > > > Greetings from S?o Paulo - Brazil > > > > Ari Ricardo > > > > P.S: Is there any way for me to attach an image to the emails on this > > list? So with the intention of supporting any problem I am reporting? > > Every time I try to post a supporting image my email is blocked. > > This is not a complaint. I'm just wanting to check if there's any way. > > > I am on lazarus trunk so i don't know if your version of lazarus has this: > > Menue Windows/Center lost windows > > > Perhaps that can restore your IDE ?! > > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Tue Aug 6 08:46:26 2024 From: michael at freepascal.org (Michael Van Canneyt) Date: Tue, 6 Aug 2024 08:46:26 +0200 (CEST) Subject: [Lazarus] Problems opening a newly created project In-Reply-To: References: <2125a6f5-721c-44ec-96a9-f4df67ec8f6c@gmx.de> Message-ID: <764a652b-9c2b-2ad6-d356-abb4acc08aff@freepascal.org> On Mon, 5 Aug 2024, Ar? Ricardo Ody via lazarus wrote: >> I am on lazarus trunk so i don't know if your version of lazarus has this: > >> Menue Windows/Center lost windows > > >> Perhaps that can restore your IDE ?! > > Forgive me, but I don't understand what you're talking about. In fact, I > would like to simply be a Lazarus user, without having to deal with > advanced things that are not development needs. > > As I said before, I think I've lost my project. It no longer compiles. No, just remove the {$R *.res} directive in the project file (the .lpr one). Then it should compile. Michael. From nightrider43 at gmail.com Sun Aug 11 00:09:47 2024 From: nightrider43 at gmail.com (=?UTF-8?Q?Ar=C3=AD_Ricardo_Ody?=) Date: Sat, 10 Aug 2024 19:09:47 -0300 Subject: [Lazarus] Problems opening a newly created project In-Reply-To: <764a652b-9c2b-2ad6-d356-abb4acc08aff@freepascal.org> References: <2125a6f5-721c-44ec-96a9-f4df67ec8f6c@gmx.de> <764a652b-9c2b-2ad6-d356-abb4acc08aff@freepascal.org> Message-ID: Mr. Michael wrote: >No, just remove the {$R *.res} directive in the project file (the .lpr one). >Then it should compile. The project compiled successfully following this guidance from Mr. Van Canneit. Having known Mr. Van Canneit's proficiency for many years, I did not expect any other result when following his recommendation. However, Mr. Van Canneit, I would like to ask you to explain what caused the sudden appearance of this corrupted .res file error and what happens when I remove the directive that you determined. I am sure that if you gave this explanation, Mr. Van Canneit, I would have a valuable addition of knowledge about the compilation environment and the IDE. Would you be patient enough to explain what happened, please? Greetings from S?o Paulo - Brazil Ar? Ricardo On Tue, Aug 6, 2024 at 3:54?AM Michael Van Canneyt via lazarus < lazarus at lists.lazarus-ide.org> wrote: > > > On Mon, 5 Aug 2024, Ar? Ricardo Ody via lazarus wrote: > > >> I am on lazarus trunk so i don't know if your version of lazarus has > this: > > > >> Menue Windows/Center lost windows > > > > > >> Perhaps that can restore your IDE ?! > > > > Forgive me, but I don't understand what you're talking about. In fact, I > > would like to simply be a Lazarus user, without having to deal with > > advanced things that are not development needs. > > > > As I said before, I think I've lost my project. It no longer compiles. > > No, just remove the {$R *.res} directive in the project file (the .lpr > one). > > Then it should compile. > > Michael.-- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Mon Aug 12 11:02:43 2024 From: michael at freepascal.org (Michael Van Canneyt) Date: Mon, 12 Aug 2024 11:02:43 +0200 (CEST) Subject: [Lazarus] Problems opening a newly created project In-Reply-To: References: <2125a6f5-721c-44ec-96a9-f4df67ec8f6c@gmx.de> <764a652b-9c2b-2ad6-d356-abb4acc08aff@freepascal.org> Message-ID: <6239687c-1dfe-49e8-e73b-0a56c2be46e@freepascal.org> On Sat, 10 Aug 2024, Ar? Ricardo Ody via lazarus wrote: > Mr. Michael wrote: > >> No, just remove the {$R *.res} directive in the project file (the .lpr > one). > >> Then it should compile. > > The project compiled successfully following this guidance from Mr. Van > Canneit. > > Having known Mr. Van Canneit's proficiency for many years, I did not expect > any other result when following his recommendation. > > However, Mr. Van Canneit, I would like to ask you to explain what caused > the sudden appearance of this corrupted .res file error and what happens > when I remove the directive that you determined. > > I am sure that if you gave this explanation, Mr. Van Canneit, I would have > a valuable addition of knowledge about the compilation environment and the > IDE. Would you be patient enough to explain what happened, please? Sorry, but I cannot explain it without more detailed info on the error. All I can say now is that there are at least 2 possible causes: - The .res file was somehow damaged when transferring it. (you can test this by copying it back to the original computer: if the program compiles on the origin - The tools on the second computer are not up-to-date and do not understand the format of the .res file. Michael. From michael at freepascal.org Tue Aug 13 21:05:19 2024 From: michael at freepascal.org (Michael Van Canneyt) Date: Tue, 13 Aug 2024 21:05:19 +0200 (CEST) Subject: [Lazarus] =?iso-8859-15?q?=5BFpc-mirrors=5D_FPC_3=2E2=2E2=2C_mi?= =?iso-8859-15?q?=E9rt_nincs_tov=E1bb_fejlesztve_=2E=2E=2E?= In-Reply-To: References: Message-ID: 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 courtesy of writing in English. The mailing list language is English. There are probably only a few people here who understand Hungarian. The others would probably also like to understand what you write. (translated using "Google translate") Thank you. ---- On Tue, 13 Aug 2024, atiatiati100 at gmail.hu wrote: > > > A?https://www.freepascal.org/ oldalon, 2021-es fejleszt?si > befejez?s van, r?ad?sul m?r meghalt 2024 a szerz?. > > ? > ? From larrydalton71 at gmail.com Thu Aug 15 18:25:23 2024 From: larrydalton71 at gmail.com (Larry Dalton) Date: Thu, 15 Aug 2024 12:25:23 -0400 Subject: [Lazarus] Mysql version Message-ID: I am running Lazarus 3.2 on Windows 11. I am using MySql version 8.0.39. I am using a single form test program, with only one unit. My components are: InventoryConnection = TMysql80Connection InventoryQuery = TSqlQuery with InventoryConnection as database InventorySource =Tdatasource with InventoryQuery as dataset InventoryTransaction = TSQLTransaction with InventoryConnection as Database InventoryGrid =TDBGrid with InventorySource as datasource The test database is inventory with one table named 'base_info'; table has two columns: ID = INT and Stock_num =varchar(10); when I set connection on connected property on InventoryConnection to TRUE and set Active property on InventoryQuery to True in design time, everything connects and opens just fine, and the columns appear in InventoryGrid, However, when I run the application, I get the following error: 'TMySql80Connection can not work the the installed MySQL client erosion: Expected (8.0), got (6.1.10), and the application aborts. I added a TMySql57connection to the same database on the same form, and got the reverse error, expected (5.7), got (8.0.39). help, please -------------- next part -------------- An HTML attachment was scrubbed... URL: From bajaatan at yahoo.com Thu Aug 15 20:58:37 2024 From: bajaatan at yahoo.com (Goran Atanasijevic) Date: Thu, 15 Aug 2024 18:58:37 +0000 (UTC) Subject: [Lazarus] Mysql version In-Reply-To: References: Message-ID: <1343587082.7224467.1723748317962@mail.yahoo.com> Hi, you can use workaround InventoryConnection.SkipLibraryVersionCheck:=true; I did that when Lazarus didn't read correctly MySQL 5.5 with matching dll version. Best, Goran On Thursday, 15 August 2024 at 06:25:51 pm GMT+2, Larry Dalton via lazarus wrote: I am running Lazarus 3.2 on Windows 11.?I am using MySql version 8.0.39.?I am using a single form test program, with only one unit.?My components are:InventoryConnection = TMysql80ConnectionInventoryQuery = TSqlQuery with InventoryConnection as databaseInventorySource =Tdatasource with InventoryQuery as datasetInventoryTransaction = TSQLTransaction with InventoryConnection as DatabaseInventoryGrid =TDBGrid with InventorySource as datasource The test database is inventory with one table named 'base_info';table has two columns: ID = INT and Stock_num =varchar(10); when I set connection on connected property on InventoryConnection to TRUEand set Active property on InventoryQuery to True in design time, everything connects and opens just fine, and the columns appear in InventoryGrid,? However, when I run the application, I get the following error: 'TMySql80Connection can not work the the installed MySQL client erosion: Expected (8.0), got (6.1.10), and the application aborts.? I added a TMySql57connection to the same database on the same form,?and got the reverse error, expected (5.7), got (8.0.39).? help, please-- _______________________________________________ lazarus mailing list lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From larrydalton71 at gmail.com Thu Aug 15 21:22:24 2024 From: larrydalton71 at gmail.com (Larry Dalton) Date: Thu, 15 Aug 2024 15:22:24 -0400 Subject: [Lazarus] Mysql version In-Reply-To: <1343587082.7224467.1723748317962@mail.yahoo.com> References: <1343587082.7224467.1723748317962@mail.yahoo.com> Message-ID: When I do that, everything works at design time, but then I get runtime error ?Server connect failed? On Thu, Aug 15, 2024 at 14:58 Goran Atanasijevic via lazarus < lazarus at lists.lazarus-ide.org> wrote: > Hi, > > you can use workaround > > InventoryConnection.SkipLibraryVersionCheck:=true; > > I did that when Lazarus didn't read correctly MySQL 5.5 with matching dll > version. > > Best, > Goran > > > On Thursday, 15 August 2024 at 06:25:51 pm GMT+2, Larry Dalton via lazarus > wrote: > > > I am running Lazarus 3.2 on Windows 11. > I am using MySql version 8.0.39. > I am using a single form test program, with only one unit. > My components are: > InventoryConnection = TMysql80Connection > InventoryQuery = TSqlQuery with InventoryConnection as database > InventorySource =Tdatasource with InventoryQuery as dataset > InventoryTransaction = TSQLTransaction with InventoryConnection as Database > InventoryGrid =TDBGrid with InventorySource as datasource > > The test database is inventory with one table named 'base_info'; > table has two columns: ID = INT and Stock_num =varchar(10); > > when I set connection on connected property on InventoryConnection to TRUE > and set Active property on InventoryQuery to True in design time, > everything connects and opens just fine, and the columns appear in > InventoryGrid, > > However, when I run the application, I get the following error: > 'TMySql80Connection can not work the the installed MySQL client erosion: > Expected (8.0), got (6.1.10), and the application aborts. > > I added a TMySql57connection to the same database on the same form, > and got the reverse error, expected (5.7), got (8.0.39). > > help, please > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Fri Aug 16 08:34:36 2024 From: michael at freepascal.org (Michael Van Canneyt) Date: Fri, 16 Aug 2024 08:34:36 +0200 (CEST) Subject: [Lazarus] Mysql version In-Reply-To: References: Message-ID: <658432a1-9fc7-7f27-25e8-518eb124dd58@freepascal.org> On Thu, 15 Aug 2024, Larry Dalton via lazarus wrote: > I am running Lazarus 3.2 on Windows 11. > I am using MySql version 8.0.39. > I am using a single form test program, with only one unit. > My components are: > InventoryConnection = TMysql80Connection > InventoryQuery = TSqlQuery with InventoryConnection as database > InventorySource =Tdatasource with InventoryQuery as dataset > InventoryTransaction = TSQLTransaction with InventoryConnection as Database > InventoryGrid =TDBGrid with InventorySource as datasource > > The test database is inventory with one table named 'base_info'; > table has two columns: ID = INT and Stock_num =varchar(10); > > when I set connection on connected property on InventoryConnection to TRUE > and set Active property on InventoryQuery to True in design time, > everything connects and opens just fine, and the columns appear in > InventoryGrid, > > However, when I run the application, I get the following error: > 'TMySql80Connection can not work the the installed MySQL client erosion: > Expected (8.0), got (6.1.10), and the application aborts. if it reports 6.1.10, it means there is a client library 6.1.10 installed somewhere and it gets used before the 8.0 one. I made some applications that connect with 8.0, I can't remember doing anything special, so it's the most likely cause that there is an old lib lying around? Michael. From michael at freepascal.org Sat Aug 17 16:52:32 2024 From: michael at freepascal.org (Michael Van Canneyt) Date: Sat, 17 Aug 2024 16:52:32 +0200 (CEST) Subject: [Lazarus] JSON-Schema added Message-ID: <995987-dc2d-8419-6539-79245818503e@freepascal.org> Hi, I added a JSON-Schema class to FPC. It currently supports the latest JSON-Schema draft (2020-12) There also is a validator class. There is a testsuite, but testsuites only go so far, so I'd appreciate some feedback from people who have need for JSON-schema. (in particular, the $ref handling is a bit hairy. Available documentation is definitely lacking in clarity) The next step is adding support for OpenApi (AKA swagger). Michael. From lazarus at mfriebe.de Wed Aug 28 17:39:11 2024 From: lazarus at mfriebe.de (Martin Frb) Date: Wed, 28 Aug 2024 17:39:11 +0200 Subject: [Lazarus] Need help: About SynEdit In-Reply-To: References: <5ab420c6-1d6c-4f4e-8d5a-ff1ddca962a5@mfriebe.de> <40d24aa0-1ed3-402e-9859-bce7dc3fba48@mfriebe.de> <2204e439-7b55-4fe8-9857-2f8d5c19a8bd@mfriebe.de> <388123b3-2193-4567-b1e4-1222b395d18b@mfriebe.de> Message-ID: <03589ead-1385-41dc-8291-48bd6cdfc383@mfriebe.de> On 28/08/2024 15:49, rich zhang wrote: > Hi, Martin > > i may not have expressed myself clearly, the CodePoint I refer to is > the one that can handle combining code point. Ok my bad. Just seen fpc has that. That is gonna be real confusing as Lazarus has very similar named ones, but afaik without combining. Well it all depends what you need for the Cocoa API. -------------- next part -------------- An HTML attachment was scrubbed... URL: