Re: [Lazarus] Event generator
Le 02/04/2013 18:35, Mattias Gaertner a écrit : What file count do you see? Files.count=11313 Check on your disk that Directory contains many classes.pp. /usr/share/fpcsrc/2.6.2/tests/test/units/classes /usr/share/fpcsrc/2.6.2/rtl/watcom/classes.pp /usr/share/fpcsrc/2.6.2/rtl/objpas/classes /usr/share/fpcsrc/2.6.2/rtl/objpas/classes/classesh.inc /usr/share/fpcsrc/2.6.2/rtl/objpas/classes/classes.inc /usr/share/fpcsrc/2.6.2/rtl/unix/classes.pp but none for linux ?? Linux uses the one for unix. OK What values do you have under Active Target and FPC executable? Active target: TargetOS=Linux TargetCPU=x86_64 Have you tried Tools / Rescan FPC source directory? Yes, still same behaviour Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event generator
On 3-4-2013 8:38, Antonio Fortuny wrote: Le 02/04/2013 18:35, Mattias Gaertner a écrit : What values do you have under Active Target and FPC executable? Active target: TargetOS=Linux TargetCPU=x86_64 FPC executable? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event generator
Le 03/04/2013 08:51, Reinier Olislagers a écrit : On 3-4-2013 8:38, Antonio Fortuny wrote: Le 02/04/2013 18:35, Mattias Gaertner a écrit : What values do you have under Active Target and FPC executable? Active target: TargetOS=Linux TargetCPU=x86_64 FPC executable? FPC executable: Compiler=/usr/bin./fpc Options= CompilerDate=18/03/2013 00:51:19 RealCompiler=/usr/lib64/fpc/2.6.2/ppcx64 RealCompilerDate=18/03/2013 00:51:19 RealTargetOS=linux RealTargetCPU=x86_64 RealCompilerPath=/usr/lib64/fpc/2.6.2/ppcx64 Version=2.6.2 CfgFilename=/etc/fpc.cfg -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event generator
Sorry Guys. I have to apologize because I guess it is my fault. After the install process I have overwritten some of the config files in ~/.lazarus by other files coming from another Linux installation which works. Unfortunately the source installation was not exactly the same as the very new one. I already used that trick with success for new installations to save Lazarus configuration time. But this time the paths, parameters, etc. were all the same. In this case some of the critical paths between the source and target Lazarus were not identical. I'll install and cofigure all and I'll keep you informed about the final situation. Thank you anyway, your questions helped me to find the error. Thans again. Antonio. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event generator
Bad news. I have unistalled and re-installed Lazarus again: lazarus-1.0.8-0.x86_64.rpm. ~/.lazarus removed Change some options of the editor to my usual requirements Recompile all needes packages. Load the project on which I'm currently working. Compile, rebuild: OK So far so good. Add a TButton on main (and only) form double-click on it: same error window and error message asking for TComponent in LCLClasses.pp tagged as read only (sounds reasonable as all files are root owned and r-x for group and others. I've done a # chown -R sita:users /usr/share/fpcsrc/ but nothing changed Antonio. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event generator
Another strange behaviour is that lots of types are not recognized: On my own units as well on Lazarus units, setting the cursor on the word TPanel using the key Ctrl does not undescore the TPanel and Ctrl+Left click has no effect. Even my own types are not known although the unit is the uses clause and the program compilation looks OK Antonio. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event generator
On Wed, 03 Apr 2013 10:36:48 +0200 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Bad news. I have unistalled and re-installed Lazarus again: lazarus-1.0.8-0.x86_64.rpm. ~/.lazarus removed Change some options of the editor to my usual requirements Recompile all needes packages. Load the project on which I'm currently working. Compile, rebuild: OK So far so good. :) Add a TButton on main (and only) form double-click on it: same error window and error message asking for TComponent in LCLClasses.pp tagged as read only (sounds reasonable as all files are root owned and r-x for group and others. As they should be when installing an rpm. I've done a # chown -R sita:users /usr/share/fpcsrc/ You should undo this. I'm curious. Why do thought that a can not find unit error can be fixed by giving write access? You are not the first doing so. Is there some misleading error message? but nothing changed You seem to have a very standard setup, except for your extra packages. What extra packages do you install? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event generator
On Wed, 03 Apr 2013 08:58:37 +0200 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Le 03/04/2013 08:51, Reinier Olislagers a écrit : On 3-4-2013 8:38, Antonio Fortuny wrote: Le 02/04/2013 18:35, Mattias Gaertner a écrit : What values do you have under Active Target and FPC executable? Active target: TargetOS=Linux TargetCPU=x86_64 FPC executable? FPC executable: Compiler=/usr/bin./fpc Do you mean /usr/bin/fpc? Options= CompilerDate=18/03/2013 00:51:19 RealCompiler=/usr/lib64/fpc/2.6.2/ppcx64 RealCompilerDate=18/03/2013 00:51:19 RealTargetOS=linux RealTargetCPU=x86_64 RealCompilerPath=/usr/lib64/fpc/2.6.2/ppcx64 Version=2.6.2 CfgFilename=/etc/fpc.cfg Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event generator
On Wed, 03 Apr 2013 11:05:45 +0200 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Another strange behaviour is that lots of types are not recognized: On my own units as well on Lazarus units, setting the cursor on the word TPanel using the key Ctrl does not undescore the TPanel and Ctrl+Left click has no effect. Even my own types are not known although the unit is the uses clause and the program compilation looks OK Everything that uses the classes unit suffers. Try the Ctrl key over the uses section. Can you jump to 'sysutils'? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event generator
Le 03/04/2013 11:10, Mattias Gaertner a écrit : FPC executable: Compiler=/usr/bin./fpc Do you mean /usr/bin/fpc? yep Options= CompilerDate=18/03/2013 00:51:19 RealCompiler=/usr/lib64/fpc/2.6.2/ppcx64 RealCompilerDate=18/03/2013 00:51:19 RealTargetOS=linux RealTargetCPU=x86_64 RealCompilerPath=/usr/lib64/fpc/2.6.2/ppcx64 Version=2.6.2 CfgFilename=/etc/fpc.cfg Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event generator
Le 03/04/2013 11:10, Mattias Gaertner a écrit : On Wed, 03 Apr 2013 10:36:48 +0200 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Bad news. I have unistalled and re-installed Lazarus again: lazarus-1.0.8-0.x86_64.rpm. ~/.lazarus removed Change some options of the editor to my usual requirements Recompile all needes packages. Load the project on which I'm currently working. Compile, rebuild: OK So far so good. :) Add a TButton on main (and only) form double-click on it: same error window and error message asking for TComponent in LCLClasses.pp tagged as read only (sounds reasonable as all files are root owned and r-x for group and others. As they should be when installing an rpm. I've done a # chown -R sita:users /usr/share/fpcsrc/ You should undo this. I'm curious. Why do thought that a can not find unit error can be fixed by giving write access? You are not the first doing so. Is there some misleading error message? but nothing changed You seem to have a very standard setup, except for your extra packages. What extra packages do you install? Indy 10 IBO (Firebird access and controls) daemon: for that one I've had to chown to myuser to be able to compile it !! After changing the owner, daeon did compile and install Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event generator
Le 03/04/2013 11:14, Mattias Gaertner a écrit : On Wed, 03 Apr 2013 11:05:45 +0200 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Another strange behaviour is that lots of types are not recognized: On my own units as well on Lazarus units, setting the cursor on the word TPanel using the key Ctrl does not undescore the TPanel and Ctrl+Left click has no effect. Even my own types are not known although the unit is the uses clause and the program compilation looks OK Everything that uses the classes unit suffers. Try the Ctrl key over the uses section. Can you jump to 'sysutils'? yes, and Classes too When I Ctrl+Left click on a TObject descendant of TObject, nothing happens But Ctrl+Left click over a local method variable, brings the curson on the variable definition Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event generator
Antonio Fortuny a.fort...@sitasoftware.lu hat am 3. April 2013 um 11:44 geschrieben: Le 03/04/2013 11:14, Mattias Gaertner a écrit : On Wed, 03 Apr 2013 11:05:45 +0200 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Another strange behaviour is that lots of types are not recognized: On my own units as well on Lazarus units, setting the cursor on the word TPanel using the key Ctrl does not undescore the TPanel and Ctrl+Left click has no effect. Even my own types are not known although the unit is the uses clause and the program compilation looks OK Everything that uses the classes unit suffers. Try the Ctrl key over the uses section. Can you jump to 'sysutils'? yes, and Classes too When I Ctrl+Left click on a TObject descendant of TObject, nothing happens But Ctrl+Left click over a local method variable, brings the curson on the variable definition It seems at some point I lost you. I thought the IDE can not find unit classes. Please use instead of Ctrl+Left Click, the popup menu: Click Left to position the blinking cursor, then right click 'find declaration'. This will give an error message. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event generator
Sorry Guys, I will have to leave for a while, I have to solve a very urgent problem. I'll be back soon. Antonio. Le 03/04/2013 12:46, Mattias Gaertner a écrit : Antonio Fortuny a.fort...@sitasoftware.lu hat am 3. April 2013 um 11:44 geschrieben: Le 03/04/2013 11:14, Mattias Gaertner a écrit : On Wed, 03 Apr 2013 11:05:45 +0200 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Another strange behaviour is that lots of types are not recognized: On my own units as well on Lazarus units, setting the cursor on the word TPanel using the key Ctrl does not undescore the TPanel and Ctrl+Left click has no effect. Even my own types are not known although the unit is the uses clause and the program compilation looks OK Everything that uses the classes unit suffers. Try the Ctrl key over the uses section. Can you jump to 'sysutils'? yes, and Classes too When I Ctrl+Left click on a TObject descendant of TObject, nothing happens But Ctrl+Left click over a local method variable, brings the curson on the variable definition It seems at some point I lost you. I thought the IDE can not find unit classes. Please use instead of Ctrl+Left Click, the popup menu: Click Left to position the blinking cursor, then right click 'find declaration'. This will give an error message. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Event generator
Hi Folks. I've installed Lazarus 1.0.8 and FPC 2..6.2 on two newly created Linux x86_64 VMs One is a OpenSuse 11.4 and the other one is a 12.2 Install on both machines was as I like to say when all runs well, the fingers in the sose and the hands in the pocket 8-) Recompile IDE with all my needed packages: beautiull. Run tests: great ! I really appreciate BUT: on the form of an application (btw, multi-threaded + Indy 10) drop a common TButton on the main (and only) form: OK. When trying to assign an event to it: BOUM :o the LCLClasses unit is displayed and the next error is displayed in the errors window: No way to assign an event to a new TButton. Same behaviour in both machines. What happens ? Antonio. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event generator
On 02/04/13 2:47, Antonio Fortuny wrote: BUT: on the form of an application (btw, multi-threaded + Indy 10) drop a common TButton on the main (and only) form: OK. When trying to assign an event to it: BOUM :o the LCLClasses unit is displayed and the next error is displayed in the errors window: No way to assign an event to a new TButton. Same behaviour in both machines. What happens ? If you view your project in the Project Inspector, is the LCL shown as a required dependency? If not, it should be added. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event generator
On Tue, 02 Apr 2013 15:47:08 +0200 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Hi Folks. I've installed Lazarus 1.0.8 and FPC 2..6.2 on two newly created Linux x86_64 VMs One is a OpenSuse 11.4 and the other one is a 12.2 Install on both machines was as I like to say when all runs well, the fingers in the sose and the hands in the pocket 8-) Recompile IDE with all my needed packages: beautiull. Run tests: great ! I really appreciate BUT: on the form of an application (btw, multi-threaded + Indy 10) drop a common TButton on the main (and only) form: OK. When trying to assign an event to it: BOUM :o the LCLClasses unit is displayed and the next error is displayed in the errors window: No way to assign an event to a new TButton. Same behaviour in both machines. What happens ? Something is wrong with your installation of fpc and/or fpc-src. Please check via menu 'View / IDE internals / About FPC' and 'About IDE'. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event generator
Le 02/04/2013 16:05, Howard Page-Clark a écrit : If you view your project in the Project Inspector, is the LCL shown as a required dependency? Yep, both are there: LCL and IndyLaz BTW, I've installed Lazarus 1.1 an,d FPC 2.6.0 on the 12.2: besides some IDE problems, project compiles and runs. Adding new TButton and assigning evaents is a piece ok cake. The version before was 1.0.5 which did work too. If not, it should be added. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event generator
Le 02/04/2013 16:07, Mattias Gaertner a écrit : Something is wrong with your installation of fpc and/or fpc-src. Please check via menu 'View / IDE internals / About FPC' and 'About IDE'. Mattias -- Looks fine, no error lines. Something special to look for ? ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event generator
On Tue, 02 Apr 2013 16:16:23 +0200 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Le 02/04/2013 16:07, Mattias Gaertner a écrit : Something is wrong with your installation of fpc and/or fpc-src. Please check via menu 'View / IDE internals / About FPC' and 'About IDE'. Mattias -- Looks fine, no error lines. Something special to look for ? In the 'About FPC' should be lines like: classes=/usr/lib/fpc/2.6.2/units/x86_64-linux/rtl/classes.ppu Sources: Directory=/usr/share/fpcsrc/2.6.2 Files.Count=11316 Check on your disk that Directory contains many classes.pp. Have you tried Tools / Rescan FPC source directory? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event generator
On Tue, 02 Apr 2013 16:16:23 +0200 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Le 02/04/2013 16:07, Mattias Gaertner a écrit : Something is wrong with your installation of fpc and/or fpc-src. Please check via menu 'View / IDE internals / About FPC' and 'About IDE'. Mattias -- Looks fine, no error lines. Something special to look for ? In the 'About FPC' should be lines like: classes=/usr/lib/fpc/2.6.2/units/x86_64-linux/rtl/classes.ppu /usr/lib64/fpc/2.6.2/units/x86_64-linux/rtl/classes.ppu Sources: Directory =/usr/share/fpcsrc/2.6.2 Files.Count=11316 Check on your disk that Directory contains many classes.pp. /usr/share/fpcsrc/2.6.2/tests/test/units/classes /usr/share/fpcsrc/2.6.2/rtl/watcom/classes.pp /usr/share/fpcsrc/2.6.2/rtl/objpas/classes /usr/share/fpcsrc/2.6.2/rtl/objpas/classes/classesh.inc /usr/share/fpcsrc/2.6.2/rtl/objpas/classes/classes.inc /usr/share/fpcsrc/2.6.2/rtl/unix/classes.pp but none for linux ?? /usr/share/fpcsrc/2.6.2/rtl/win64/classes.pp /usr/share/fpcsrc/2.6.2/rtl/openbsd/classes.pp /usr/share/fpcsrc/2.6.2/rtl/beos/classes.pp /usr/share/fpcsrc/2.6.2/rtl/netwlibc/classes.pp /usr/share/fpcsrc/2.6.2/rtl/morphos/classes.pp /usr/share/fpcsrc/2.6.2/rtl/gba/classes.pp /usr/share/fpcsrc/2.6.2/rtl/wince/classes.pp /usr/share/fpcsrc/2.6.2/rtl/wii/classes.pp /usr/share/fpcsrc/2.6.2/rtl/netware/classes.pp /usr/share/fpcsrc/2.6.2/rtl/nativent/classes.pp /usr/share/fpcsrc/2.6.2/rtl/nds/classes.pp /usr/share/fpcsrc/2.6.2/rtl/go32v2/classes.pp /usr/share/fpcsrc/2.6.2/rtl/amiga/classes.pp /usr/share/fpcsrc/2.6.2/rtl/win32/classes.pp /usr/share/fpcsrc/2.6.2/rtl/haiku/classes.pp /usr/share/fpcsrc/2.6.2/rtl/os2/classes.pp Have you tried Tools / Rescan FPC source directory? Yes, still same behaviour Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Event generator
On Tue, 02 Apr 2013 16:51:41 +0200 Antonio Fortuny a.fort...@sitasoftware.lu wrote: On Tue, 02 Apr 2013 16:16:23 +0200 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Le 02/04/2013 16:07, Mattias Gaertner a écrit : Something is wrong with your installation of fpc and/or fpc-src. Please check via menu 'View / IDE internals / About FPC' and 'About IDE'. Mattias -- Looks fine, no error lines. Something special to look for ? In the 'About FPC' should be lines like: classes=/usr/lib/fpc/2.6.2/units/x86_64-linux/rtl/classes.ppu /usr/lib64/fpc/2.6.2/units/x86_64-linux/rtl/classes.ppu This is the line: classes=/usr/lib64/fpc/2.6.2/units/x86_64-linux/rtl/classes.ppu ? Sources: Directory =/usr/share/fpcsrc/2.6.2 Files.Count=11316 What file count do you see? Check on your disk that Directory contains many classes.pp. /usr/share/fpcsrc/2.6.2/tests/test/units/classes /usr/share/fpcsrc/2.6.2/rtl/watcom/classes.pp /usr/share/fpcsrc/2.6.2/rtl/objpas/classes /usr/share/fpcsrc/2.6.2/rtl/objpas/classes/classesh.inc /usr/share/fpcsrc/2.6.2/rtl/objpas/classes/classes.inc /usr/share/fpcsrc/2.6.2/rtl/unix/classes.pp but none for linux ?? Linux uses the one for unix. What values do you have under Active Target and FPC executable? Have you tried Tools / Rescan FPC source directory? Yes, still same behaviour Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus