Lazarus fails to put cursor on OnClick routine(related to24777,0024773,0024718) lazarus / 31-LCL ---------------------------------------------------------------------- anna · 2013-07-24 15:22 Please test my attachment http://bugs.freepascal.org/file_download.php?file_id=18615&type=bug Load project to Lazarus and try to double click on Button1 (bug demonstration : http://youtu.be/X3QCP4n0yQ0 ) But after compile error disappeared. How to fix it (without   compiling)? Juha Manninen commanded me do not reopen issue http://bugs.freepascal.org/view.php?id=24777 , so I don't know what to do... ---------------------------------------------------------------------- Martin_fr · 2013-07-24 15:36 Maybe this is an old project. it uses Code: [Select] {$I unit1.lrs} but the file unit1.lrs does not exist. It does get created, when you compile. That is why it works after compile. use Code: [Select]  {$R *.lfm} instead or Code: [Select]  {$R unit1.lfm} Not sure, how such a project is normally handled... -- Edit: it seems that it deals normally with the missing file, but not if there is    {$R resources.res} ---------------------------------------------------------------------- Blaazen · 2013-07-24 15:39 Hello, I tested. Yes, error appears, but Lazarus clearly say: Code: [Select]unit1.pas(47,7) Error: include file not found "unit1.lrs"and this file is not present in archive. Solution is probably rename or comment the line 47: {$I unit1.lrs} Note that I'm on Linux and I cannot run your demo anyway 'cause it is Window-centric (uses units Windows and DOS). ---------------------------------------------------------------------- JuhaManninen · 2013-07-25 12:15 Quote from: anna on July 24, 2013, 05:22:47 pmPlease test my attachment http://bugs.freepascal.org/file_download.php?file_id=18615&type=bug Load project to Lazarus and try to double click on Button1 (bug demonstration : http://youtu.be/X3QCP4n0yQ0 ) But after compile error disappeared. How to fix it (without   compiling)? Juha Manninen commanded me do not reopen issue http://bugs.freepascal.org/view.php?id=24777 , so I don't know what to do... Ok, now I looked carefully your video to the end. Most of the video is about installing a snapshot ... I see you get a clear error message: "Error: include file not found ...". It is a clear and informative message, isn't it? The 2 screenshots in the same report show a completely different error: "Error: unit not found: classes". It is a typical symptom of wrong .ppu files fould or similar. Often a clean build (clean all) of Lazarus helps. The OnClick event problem is caused by this unit problem. Why do you mix 2 completely different issues in one bug report? Besides, neither of those issues are bugs in Lazarus! They are problems in your own code and in your development environment. I don't know how can I explain it so that you understand. I told you to ask questions on forum and now you have done so. Good. Please also in future double check on forum from other people if you doubt you have found a bug in Lazarus. Bug reports are always taken seriously. No developer likes bugs in their code, thus time and energy is used to reproduce and understand reported bugs. For example I have now read and written comments for your false report and watched a long video, while I was planning to do some actual development. It is a little frustrating sometimes. Regards, Juha ---------------------------------------------------------------------- mattias · 2013-07-25 12:59 Quote from: Martin_fr on July 24, 2013, 05:36:52 pmMaybe this is an old project. it uses Code: [Select] {$I unit1.lrs} but the file unit1.lrs does not exist. It does get created, when you compile. That is why it works after compile. I improved some codetools to ignore errors in initialization section. Double click on a form, when the initialization section is broken now works. ---------------------------------------------------------------------- anna · 2013-07-29 12:02 Quote from: mattias on July 25, 2013, 02:59:54 pm I improved some codetools to ignore errors in initialization section. Double click on a form, when the initialization section is broken now works. Thanks Mattias! Lazarus-1.1-42222-fpc-2.7.1-20130729-win32.exe works perfect. (^_^)