Sign in Join

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

Mailing lists / lazarus / 2002-08

More IDE bugs

6 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner
to Mattias Gaertner: On Mon, 26 Aug 2002 01:05:35 +0200 (CEST) I just tried: Built a project (Ctrl+F9),…
Show quoted text 24 lines
unit1.pas(8,37) Fatal: Can't find unit CONTROLS. But the incredible thing is that now I'm not able to compile any project at all! 30 minutes ago I was able, and I have not been recompiled Lazarus. Next, I have read the FAQs, so I proceed to recompile Lazarus: cd /usr/src/lazarus make clean make make install and run it. (Note: I use fpc 1.0.6) and test again. But it still does not work. So I remove ~/.lazarus directory again... and it worked!! Lazarus is now able to compile a project. So the problem seems to be on Lazarus configuration files placed in ~/.lazarus in combination with Lazarus compilation options. I'm not able to figure out why this happens. It seems to happen randomly when compiling Lazarus and/or doing some things with the configuration. Elsewhere, it stops doing so when rebuilding Lazarus and removing ./~lazarus, both at the same time.

The only relevant thing for the compiler stored in the ~/.lazarus directory is the compiler path and the lazarus path. All other things should be in the .lpi file of the project. Plz start Lazarus in a terminal and compile your project. You will see a line starting with [TCompiler.Compile] CmdLine="/usr/bin/ppc386 ...
Plz send this line to this list, so the exact compiler parameters can be seen.

Mattias

Reply by email

Javier
to Mattias Gaertner: On Mon, 26 Aug 2002 01:05:35 +0200 (CEST) I just tried: Built a project (Ctrl+F9),…

--- Mattias Gaertner escribi�: > On Mon,
26 Aug 2002 01:05:35 +0200 (CEST)

Show quoted text 22 lines
Javier wrote: > --- Mattias Gaertner escribi�: > On 21 Aug > 2002 16:13:58 +0000 > > Javier wrote: > > > > > 1.- When you change target procesor, > > > > Do you mean in the Compiler Options dialog? > > Yes I do. It seems that the compiler needs to recompile LCL, and so is > why it probably needs Lazarus source code path in the Search Path > option. I just tried: Built a project (Ctrl+F9), changed the target proc in the options, built again (Ctrl+F9), changed back, built again - everything allright. Can you describe the steps to reproduce the error plz?

Well, checking again, and to be sure that Lazarus is loaded with the default configuration, I have removed the ~/.lazarus directory. I insert a button into the default form and press run button. Lazarus shows me a message:

Unable to find file unit1.pas
Check Search path in
Run->Compiler Options...->Search Paths->Other Unit Files

and the following is printed in the "Messages" window:

unit1.pas(8,37) Fatal: Can't find unit CONTROLS.

But the incredible thing is that now I'm not able to compile any project at all! 30 minutes ago I was able, and I have not been recompiled Lazarus.

Next, I have read the FAQs, so I proceed to recompile Lazarus:

cd /usr/src/lazarus
make clean
make
make install

and run it. (Note: I use fpc 1.0.6)

and test again. But it still does not work.
So I remove ~/.lazarus directory again... and it worked!! Lazarus is now able to compile a project.
So the problem seems to be on Lazarus configuration files placed in ~/.lazarus in combination with Lazarus compilation options. I'm not able to figure out why this happens. It seems to happen randomly when compiling Lazarus and/or doing some things with the configuration. Elsewhere, it stops doing so when rebuilding Lazarus and removing ./~lazarus, both at the same time.

I hope I can help.... elsewhere my explanations are not very clear, sorry, I can't do any more.

_______________________________________________________________ Yahoo! Messenger
Nueva versi�n: Webcam, voz, y mucho m�s �Gratis! Desc�rgalo ya desde http://messenger.yahoo.es

Reply by email

Mattias Gaertner
to Javier: Hello, I'm new to the list. I've noticed some bugs in the latest version of Lazarus IDE…
Show quoted text 6 lines
Hello, I'm new to the list. I've noticed some bugs in the latest version of Lazarus IDE (0.8.4a). =============================================== 1.- When you change target procesor,

Do you mean in the Compiler Options dialog?

Show quoted text 13 lines
you have to indicate where Lazarus source code is located in Search Paths, otherwise it returns the typical error code: unit controls not found. ================================================ 2.- TToolBar hangs the application when trying to insert it. Backtrace is: [TCustomFormEditor.CreateComponent] Class='TTOOLBAR' opInsert An unhandled exception occurred at 0x081C98B6 : Access violation 0x081C98B6 TGTKOBJECT__GETWINDOWORGEX, line 3370 of gtkwinapi.inc

At least the AV was fixed with one of Andrew's changes.

Show quoted text 5 lines
============================================== 3.- Object inspector uses a too much big font on my system by default (Debian 3.0). The entire program shows it in the correct size, only Object Inspertor fails.

noted

Show quoted text 6 lines
============================================== 4.- "Run to cursor" does not do nothing except compiling. But the IDE believes that the application is running and don't let me use de Run command again. I press Run->Stop, but it doesn't really stop until I close and reopen Lazarus.

noted

============================================== 5.- Sometimes the mouse click doesn't work. This happens on every part of the IDE.

The problem is known.

Mattias

Reply by email

Mattias Gaertner
to Mattias Gaertner
Show quoted text 11 lines
--- Mattias Gaertner escribi�: > On 21 Aug 2002 16:13:58 +0000 > Javier wrote: > > > 1.- When you change target procesor, > > Do you mean in the Compiler Options dialog? Yes I do. It seems that the compiler needs to recompile LCL, and so is why it probably needs Lazarus source code path in the Search Path option.

I just tried:
Built a project (Ctrl+F9), changed the target proc in the options, built again (Ctrl+F9), changed back, built again - everything allright.

Can you describe the steps to reproduce the error plz?

Mattias

Reply by email

Javier

Hello, I'm new to the list. I've noticed some bugs in the latest version of Lazarus IDE (0.8.4a).

===============================================

1.- When you change target procesor, you have to indicate where Lazarus source code is located in Search Paths, otherwise it returns the typical error code: unit controls not found.

================================================
2.- TToolBar hangs the application when trying to insert it. Backtrace is:

[TCustomFormEditor.CreateComponent] Class='TTOOLBAR' opInsert
An unhandled exception occurred at 0x081C98B6 :
Access violation
0x081C98B6 TGTKOBJECT__GETWINDOWORGEX, line 3370 of gtkwinapi.inc 0x4C425449 main, line 291 of gtkint.ppgtkcallback.inc An unhandled exception occurred at 0x0820D62A :
Access violation
0x0820D62A

forms.pp - finalization section
[TMainIDE.Destroy] A
An unhandled exception occurred at 0x08169E8F :
Access violation
0x08169E8F TAVLTREENODEMEMMANAGER__DISPOSENODE, line 994 of avl_tree.pas
0xBFFFF1CC main, line 291 of gtkint.ppgtkcallback.inc 0x453B0C45 main, line 291 of gtkint.ppgtkcallback.inc

An unhandled exception occurred at 0x61666564 :
Access violation
0x61666564 main, line 291 of gtkint.ppgtkcallback.inc 0x00000001
0x0834992C main, line 291 of gtkint.ppgtkcallback.inc

==============================================

3.- Object inspector uses a too much big font on my system by default (Debian 3.0). The entire program shows it in the correct size, only Object Inspertor fails.

==============================================

4.- "Run to cursor" does not do nothing except compiling. But the IDE believes that the application is running and don't let me use de Run command again. I press Run->Stop, but it doesn't really stop until I close and reopen Lazarus.

==============================================

5.- Sometimes the mouse click doesn't work. This happens on every part of the IDE.

There are other bugs.. I can't remember them now... :-)

Bye.

Reply by email

Javier
to Mattias Gaertner: On 21 Aug 2002 16:13:58 +0000 Do you mean in the Compiler Options dialog? At least the AV…

--- Mattias Gaertner escribi�: > On 21 Aug
2002 16:13:58 +0000

Show quoted text 11 lines
Javier wrote: > Hello, I'm new to the list. I've noticed some bugs in the latest version > of Lazarus IDE (0.8.4a). > > =============================================== > > 1.- When you change target procesor, Do you mean in the Compiler Options dialog?

Yes I do. It seems that the compiler needs to recompile LCL, and so is why it probably needs Lazarus source code path in the Search Path option.

Javier.

_______________________________________________________________ Yahoo! Messenger
Nueva versi�n: Webcam, voz, y mucho m�s �Gratis! Desc�rgalo ya desde http://messenger.yahoo.es

Reply by email