CodeTools fail on inserting eventhadler via doubleclick in OI with error in FindCodeToolForUsed
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
Ever so often when I want to create an eventhandler (in OI select event, then double-click) I get a failure from CodeTools:
The messagedialog says there is an error and prompts to look in the messages windwow.
There the message is in the form of "Class TSomeClass not found at Line=SomeValue Col=SomeValue" in PathTo\SomeUnit.pp.
Once this has happend, it becomes impossible to use the OI to create new eventhandlers.
Closing and restarting Lazarus temporarily resolves the issue.
It does not happen al the time, but I cannot determine what makes it happen and what not.
(The problem exists from at least r31810)
Steps to reproduce:
On a form have some component.
In OI select component, select Events Tab, double-click on some event to create a new event-handler.
Additional information:
This is an excerpt form my lazarus log, the last time this happened.
I just placed an ActionList on a form which also has 1 TButton (which has an OnClick-handler).
I then opened the ActionList-editor and created 2 actions.
After that I selected the actionlist in OI and double-clicked on "OnExecute" and the error occurred.
### TCodeToolManager.HandleException: "Class TFORM1 not found" at Line=1 Col=1 in "F:\LazarusProjecten\u_test.pp" ### TCodeToolManager.HandleException: "Class TFORM1 not found" at Line=1 Col=1 in "F:\LazarusProjecten\u_test.pp" #################### TOICustomPropertyGrid.DoCallEdit for TStringsPropertyEditor Edit=True ### TCodeToolManager.HandleException: "Class TFORM1 not found" at Line=1 Col=1 in "F:\LazarusProjecten\u_test.pp" ### TCodeToolManager.HandleException: "Class TForm1 not found" at Line=1 Col=1 in "F:\LazarusProjecten\u_test.pp" #################### TOICustomPropertyGrid.DoCallEdit for TMethodPropertyEditor Edit=True
TCodeToolManager.HandleException: "Class TForm1 not found" at Line=1 Col=1 in "F:\LazarusProjecten\u_test.pp"
Mantis conversion info:
- Mantis ID: 20641
- OS: WinMe
- OS Build: MS
- Build: 33269
- Platform: i386
- Version: 0.9.31 (SVN)
- Fixed in version: 0.9.31 (SVN)
- Fixed in revision: 33465 (#f3798fc2)