Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-02

Creation of event handlers problem

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dimitrios Chr. Ioannidis

Hi,

i just update fpc from fixes_2_6 and now lazarus can't create event handlers. I tried with a clean fpc checked out tree and even i done the the same with lazarus tree. Everything was deleted, checked out again and recompiled. The problem persists.

It's very easy to reproduce. Create a new project, add a button and double click on it.

Debian Squeeze AMD64.

Lazarus version
builded with "make all OPT="-gl -gw -Xs -Xg -godwarfsets" "

"URL: http://svn.freepascal.org/svn/lazarus/branches/fixes_0_9_30 Revision: 35581
Last Changed Rev: 35554
Last Changed Date: 2012-02-22 14:01:15 +0200 (???, 22 ??? 2012)"

FPC version
builded with " make all install OPT="-gl -gw -Xs -Xg -godwarfsets" INSTALL_PREFIX=~/Programming/Tools/fpc
FPC=~/Programming/Tools/fpc/bootstrap/ppcx64 "

"URL: http://svn.freepascal.org/svn/fpc/branches/fixes_2_6 Revision: 20423
Last Changed Rev: 20380
Last Changed Date: 2012-02-19 23:30:08 +0200 (???, 19 ??? 2012)"

Below is the console output of lazarus running from terminal

"TGDBMIDebugger.StartDebugging
WorkingDir="/home/itmanager/Programming/Projects/MSAWSTItems/" [Debugger] Log output: &"set width 50000\n"
[Debugger] Log output: &"info address main\n"
[Debugger] Log output: &"ptype TObject\n"
[Debugger] Log output: &"ptype Exception\n"
[Debugger] Log output: &"ptype Shortstring\n"
[Debugger] Log output: &"ptype pointer\n"
[Debugger] Log output: &"ptype byte\n"
[Debugger] Log output: &"info address FPC_RAISEEXCEPTION\n" [Debugger] Log output: &"info address FPC_BREAK_ERROR\n" [Debugger] Log output: &"info address FPC_RUNERROR\n" [Debugger] Log output: &"info file\n"
[Debugger] File type: elf64-x86-64
[Debugger] Entry point: 0x49c890
[Debugger] Log output: &"Function \"foo\" not defined.\n" [Debugger] Console output: ~"[Thread debugging using libthread_db enabled]\n"
[Debugger] Log output: &"info program\n"
[Debugger] Target PID: 27478
[Debugger] Notify output: =thread-exited,id="1",group-id="27478" [Debugger] Notify output: =thread-group-exited,id="27478" [TDebugger.SetFileName] ""
TDesigner.InvokeComponentEditor A Button1:TButton
TDesigner.InvokeComponentEditor B TDefaultComponentEditor ### TCodeToolManager.HandleException: "identifier expected, but property found" at Line=234 Col=5 in
"/home/itmanager/Programming/Tools/fpc/source/rtl/objpas/classes/classesh.inc" TDesigner.InvokeComponentEditor ERROR: Unable to find method. Please fix the error shown in the message window."

Does someone has a hint ?

regards,

Dimitrios Chr. Ioannidis
Dimitrios Chr. Ioannidis

Hi,

i just update fpc from fixes_2_6 and now lazarus can't create event handlers. I tried with a clean fpc checked out tree and even i done the the same with lazarus tree. Everything was deleted, checked out again and recompiled. The problem persists.

It's very easy to reproduce. Create a new project, add a button and double click on it.

Debian Squeeze AMD64.

Lazarus version
builded with "make all OPT="-gl -gw -Xs -Xg -godwarfsets" "

"URL: http://svn.freepascal.org/svn/lazarus/branches/fixes_0_9_30 Revision: 35581
Last Changed Rev: 35554
Last Changed Date: 2012-02-22 14:01:15 +0200 (???, 22 ??? 2012)"

FPC version
builded with " make all install OPT="-gl -gw -Xs -Xg -godwarfsets" INSTALL_PREFIX=~/Programming/Tools/fpc
FPC=~/Programming/Tools/fpc/bootstrap/ppcx64 "

"URL: http://svn.freepascal.org/svn/fpc/branches/fixes_2_6 Revision: 20423
Last Changed Rev: 20380
Last Changed Date: 2012-02-19 23:30:08 +0200 (???, 19 ??? 2012)"

Below is the console output of lazarus running from terminal

"TGDBMIDebugger.StartDebugging
WorkingDir="/home/itmanager/Programming/Projects/MSAWSTItems/" [Debugger] Log output: &"set width 50000\n"
[Debugger] Log output: &"info address main\n"
[Debugger] Log output: &"ptype TObject\n"
[Debugger] Log output: &"ptype Exception\n"
[Debugger] Log output: &"ptype Shortstring\n"
[Debugger] Log output: &"ptype pointer\n"
[Debugger] Log output: &"ptype byte\n"
[Debugger] Log output: &"info address FPC_RAISEEXCEPTION\n" [Debugger] Log output: &"info address FPC_BREAK_ERROR\n" [Debugger] Log output: &"info address FPC_RUNERROR\n" [Debugger] Log output: &"info file\n"
[Debugger] File type: elf64-x86-64
[Debugger] Entry point: 0x49c890
[Debugger] Log output: &"Function \"foo\" not defined.\n" [Debugger] Console output: ~"[Thread debugging using libthread_db enabled]\n"
[Debugger] Log output: &"info program\n"
[Debugger] Target PID: 27478
[Debugger] Notify output: =thread-exited,id="1",group-id="27478" [Debugger] Notify output: =thread-group-exited,id="27478" [TDebugger.SetFileName] ""
TDesigner.InvokeComponentEditor A Button1:TButton
TDesigner.InvokeComponentEditor B TDefaultComponentEditor ### TCodeToolManager.HandleException: "identifier expected, but property found" at Line=234 Col=5 in
"/home/itmanager/Programming/Tools/fpc/source/rtl/objpas/classes/classesh.inc" TDesigner.InvokeComponentEditor ERROR: Unable to find method. Please fix the error shown in the message window."

Does someone has a hint ?

regards,

Dimitrios Chr. Ioannidis
Mattias Gaertner
to Dimitrios Chr. Ioannidis: i just update fpc from fixes_2_6 and now lazarus can't create event handlers. I tried…
Show quoted text 64 lines
Hi, i just update fpc from fixes_2_6 and now lazarus can't create event handlers. I tried with a clean fpc checked out tree and even i done the the same with lazarus tree. Everything was deleted, checked out again and recompiled. The problem persists. It's very easy to reproduce. Create a new project, add a button and double click on it. Debian Squeeze AMD64. Lazarus version builded with "make all OPT="-gl -gw -Xs -Xg -godwarfsets" " "URL: http://svn.freepascal.org/svn/lazarus/branches/fixes_0_9_30 Revision: 35581 Last Changed Rev: 35554 Last Changed Date: 2012-02-22 14:01:15 +0200 (???, 22 ??? 2012)" FPC version builded with " make all install OPT="-gl -gw -Xs -Xg -godwarfsets" INSTALL_PREFIX=~/Programming/Tools/fpc FPC=~/Programming/Tools/fpc/bootstrap/ppcx64 " "URL: http://svn.freepascal.org/svn/fpc/branches/fixes_2_6 Revision: 20423 Last Changed Rev: 20380 Last Changed Date: 2012-02-19 23:30:08 +0200 (???, 19 ??? 2012)" Below is the console output of lazarus running from terminal "TGDBMIDebugger.StartDebugging WorkingDir="/home/itmanager/Programming/Projects/MSAWSTItems/" [Debugger] Log output: &"set width 50000\n" [Debugger] Log output: &"info address main\n" [Debugger] Log output: &"ptype TObject\n" [Debugger] Log output: &"ptype Exception\n" [Debugger] Log output: &"ptype Shortstring\n" [Debugger] Log output: &"ptype pointer\n" [Debugger] Log output: &"ptype byte\n" [Debugger] Log output: &"info address FPC_RAISEEXCEPTION\n" [Debugger] Log output: &"info address FPC_BREAK_ERROR\n" [Debugger] Log output: &"info address FPC_RUNERROR\n" [Debugger] Log output: &"info file\n" [Debugger] File type: elf64-x86-64 [Debugger] Entry point: 0x49c890 [Debugger] Log output: &"Function \"foo\" not defined.\n" [Debugger] Console output: ~"[Thread debugging using libthread_db enabled]\n" [Debugger] Log output: &"info program\n" [Debugger] Target PID: 27478 [Debugger] Notify output: =thread-exited,id="1",group-id="27478" [Debugger] Notify output: =thread-group-exited,id="27478" [TDebugger.SetFileName] "" TDesigner.InvokeComponentEditor A Button1:TButton TDesigner.InvokeComponentEditor B TDefaultComponentEditor ### TCodeToolManager.HandleException: "identifier expected, but property found" at Line=234 Col=5 in "/home/itmanager/Programming/Tools/fpc/source/rtl/objpas/classes/classesh.inc" TDesigner.InvokeComponentEditor ERROR: Unable to find method. Please fix the error shown in the message window." Does someone has a hint ?

2.6.1 now supports type/const/var sections in classes. The old IDE didn't support that completely. I improved it a bit in svn fixes trunk.

Lazarus 0.9.31 fully supports it. Some parts were rewritten for that, which will not be backported to 0.9.30.

Mattias