Sign in Join

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

Mailing lists / lazarus / 2001-11

Small things (details)

15 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Luis R. Hilario

Hi,

In splash.pp is used: "BorderStyle: = bsNone;", but "BorderStyle: = bsToolWindow;" functions better, that is to say, without border.

It does lack in the menu the option "Help"/"About". Where it can be seen the logo with a small description.

If it is done clic in "Run" does not pass anything.

If it tries to enter a project already created to times is charged, to times not (Lazarus fails).

|------------------------------| | Luis R. Hilario | | http://www.luis-digital.8m.com | |------------------------------| _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

Reply by email

Luis R. Hilario
to Luis R. Hilario
Mattias Gaertner wrote
Using the Run Button did not automatically build the project. I changed that. Was this the bug?

Now "Run" also compiles the program, but is not executed. It has noted that to times the button functions "Run", but not I know under which conditions.

|------------------------------| | Luis R. Hilario | | http://www.luis-digital.8m.com | |------------------------------| _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

Reply by email

Mattias Gaertner
to Luis R. Hilario: In splash.pp is used: "BorderStyle: = bsNone;", but "BorderStyle: = bsToolWindow;"…
Now the logo needs border. :)

Yep. Then we can also move it from the code to a resource.

> I added a simple MessageDlg for About Lazarus. > Everyone is welcome to write a nice 'About Lazarus Dialog' with Logo and hints. This already implemented the color for the windows?

No.
You can use the form canvas to paint and see lcl/include/messagedialogs.inc how to draw pictures.

Show quoted text 5 lines
> > If it is done clic in "Run" does not pass anything. > > Run just builds and starts the program. There is currently no debugger, so the IDE will not switch to debugger mode. If you write a console program, you will not see anything, since the program is executed in background. If you write a window application, your program should appear. Not, not it is executing the program and is compiled.

It does not compile? Is there any error message?

Show quoted text 7 lines
Now not it can save the projects, this error occurs: TPascalParserTool.BuildTree A OnlyInterfaceNeeded=FALSE An unhandled exception occurred at 0x0815BD11 : List index exceeds bounds (-1) 0x0815BD11 0x00000000

I need some more output to fix that.
Plz activcate in include/ide.inc the IDE_DEBUG define, do a 'make clean all' and send me the output (e.g. last 100 lines).

New:
I added a quick 'Syntax Check' to the Tool menu. If there is an error, it will jump to the error line and mark it. You can also define a shortcut for this function in the editor options. This syntax check is much faster than the compiler, but it only checks basic type syntax.

Mattias

Reply by email

Mattias Gaertner
to Luis R. Hilario: In splash.pp is used: "BorderStyle: = bsNone;", but "BorderStyle: = bsToolWindow;"…
In splash.pp is used: "BorderStyle: = bsNone;", but "BorderStyle: = bsToolWindow;" functions better, that is to say, without border.

Changed.

It does lack in the menu the option "Help"/"About". Where it can be seen the logo with a small description.

I added a simple MessageDlg for About Lazarus.
Everyone is welcome to write a nice 'About Lazarus Dialog' with Logo and hints.

If it is done clic in "Run" does not pass anything.

Run just builds and starts the program. There is currently no debugger, so the IDE will not switch to debugger mode. If you write a console program, you will not see anything, since the program is executed in background. If you write a window application, your program should appear.

If it tries to enter a project already created to times is charged, to times not (Lazarus fails).

Switching to another project closes the current project and the source editor. After this is done, the LCL is doing the message queue. And sometimes, somewhere an access violation occurs. I did not manage to track this bug down, because it never occurs at the same place. So, I named this the brain bug. Any help is greatly appreciated.

More small things:
- fixed open non existing file
- fixed save unit name on save project as
- fixed crash on new form
- fixed typo in keyword list
- changing project filename will now also change the title
- fixed difference position of method jump
- fixed method jump: method body to class compare case insensitive, and name insensitive
- changed method jump: search for name+params, then for name only, then for undefined
- fixed method jump: no more variable name comparing

Mattias

Reply by email

Luis R. Hilario
to Luis R. Hilario: In splash.pp is used: "BorderStyle: = bsNone;", but "BorderStyle: = bsToolWindow;"…
Mattias Gaertner wrote 7 lines
> > > If it is done clic in "Run" does not pass anything. > > > > Run just builds and starts the program. There is currently no debugger, so the IDE will not switch to debugger mode. If you write a console program, you will not see anything, since the program is executed in background. If you write a window application, your program should appear. > > Not, not it is executing the program and is compiled. It does not compile?

Yes, compile.

Is there any error message?

No error message.

I need some more output to fix that. Plz activcate in include/ide.inc the IDE_DEBUG define, do a 'make clean all' and send me the output (e.g. last 100 lines).

OK.

|------------------------------| | Luis R. Hilario | | http://www.luis-digital.8m.com | |------------------------------| TMainIDE.Create A *********** TMainIDE.DoNewProject A TMainIDE.DoNewEditorUnit A NewFilename= TPascalParserTool.BuildTree A OnlyInterfaceNeeded=TRUE TPascalParserTool.BuildTree A OnlyInterfaceNeeded=FALSE TPascalParserTool.BuildTree A OnlyInterfaceNeeded=TRUE [TCustomFormEditor.CreateComponent] Class='TFORM' [TJITForms] AddNewJITForm NewFormName is Form1, NewClassName is TForm1 [TJITForms.RenameClass] OldName='TJITForm' NewName='TForm1' [TJITForms.RenameClass] OldName='TForm1' NewName='TForm1' TPascalParserTool.BuildTree A OnlyInterfaceNeeded=FALSE [TgtkObject.CreateComponent] csFixed A TSYNEDIT (gtkwinapiwindow.pp) GTKAPIWidget_new, ToDo: check parameters, gtk-Critical (gtkwinapiwindow.pp) GTKAPIWidget_Init B check this: Gtk-CRITICAL **: file gtkrange.c: line 250 (gtk_range_get_adjustment): assertion `range != NULL' failed. Gtk-CRITICAL **: file gtkrange.c: line 250 (gtk_range_get_adjustment): assertion `range != NULL' failed. GTKAPIWidget_Init END Gtk-CRITICAL **: file gtkrange.c: line 250 (gtk_range_get_adjustment): assertion `range != NULL' failed. GTKAPIWidget_new END [TgtkObject.CreateComponent] csFixed B STOPPOK: [TGtkObject.SetText] Possible superfluous use of SetText, use SetLabel instead! TMainIDE.DoNewUnit end TMainIDE.DoNewProject end 0 TMainIDE.Create B TMainIDE.DoSaveProject A SaveAs=FALSE SaveToTestDir=FALSE TMainIDE.DoSaveEditorUnit A PageIndex=0 SaveAs=FALSE SaveToTestDir=FALSE AnUnitInfo.Filename=unit1.pas Gtk-WARNING **: invalid cast from `(unknown)' to `GtkObject' Gtk-WARNING **: invalid cast from `(unknown)' to `GtkObject' Gtk-CRITICAL **: file gtkwidget.c: line 2725 (gtk_widget_event): assertion `GTK_IS_WIDGET (widget)' failed. TPascalParserTool.BuildTree A OnlyInterfaceNeeded=TRUE TPascalParserTool.BuildTree A OnlyInterfaceNeeded=FALSE An unhandled exception occurred at 0x0815B481 : List index exceeds bounds (-1) 0x0815B481 0x00000000 forms.pp - finalization section [TMainIDE.Destroy] A [TMainIDE.Destroy] B -> inherited Destroy... An unhandled exception occurred at 0x08093528 : Access violation 0x08093528 THEFONTSINFOMANAGER__RELEASEFONTSINFO, line 524 of syntextdrawer.pp 0x3B2E4132 main, line 234 of graphics.pplcllinux.pp 0xBC8DF689 main, line 234 of graphics.pplcllinux.pp An unhandled exception occurred at 0x6E617453 : Access violation 0x6E617453 main, line 234 of graphics.pplcllinux.pp 0x00000001 0x081FB97C main, line 234 of graphics.pplcllinux.pp

Reply by email

Mattias Gaertner
to Luis R. Hilario: In splash.pp is used: "BorderStyle: = bsNone;", but "BorderStyle: = bsToolWindow;"…
Show quoted text 13 lines
Mattias Gaertner wrote: > > > > If it is done clic in "Run" does not pass anything. > > > > > > Run just builds and starts the program. There is currently no debugger, so the IDE will not switch to debugger mode. If you write a console program, you will not see anything, since the program is executed in background. If you write a window application, your program should appear. > > > > Not, not it is executing the program and is compiled. > > It does not compile? Yes, compile. > Is there any error message? No error message.

Using the Run Button did not automatically build the project. I changed that. Was this the bug?

> I need some more output to fix that. > Plz activcate in include/ide.inc the IDE_DEBUG define, do a 'make clean all' and send me the output (e.g. last 100 lines). OK.

Fixed.

Also fixed incomplete project loading and splash form timer AV.

Mattias

Reply by email

Luis R. Hilario
to Luis R. Hilario: In splash.pp is used: "BorderStyle: = bsNone;", but "BorderStyle: = bsToolWindow;"…
Mattias Gaertner wrote 8 lines
On Sun, 18 Nov 2001 21:06:13 -0300 "Luis R. Hilario" wrote: > In splash.pp is used: "BorderStyle: = bsNone;", but "BorderStyle: = > bsToolWindow;" functions better, that is to say, without border. Changed.

Now the logo needs border. :)

Show quoted text 5 lines
> It does lack in the menu the option "Help"/"About". Where it can be seen > the logo with a small description. I added a simple MessageDlg for About Lazarus. Everyone is welcome to write a nice 'About Lazarus Dialog' with Logo and hints.

I use rectangles to paint the windows.
http://www.luis-digital.8m.com/klinton/winini.gif

This already implemented the color for the windows?

> If it is done clic in "Run" does not pass anything. Run just builds and starts the program. There is currently no debugger, so the IDE will not switch to debugger mode. If you write a console program, you will not see anything, since the program is executed in background. If you write a window application, your program should appear.

Not, not it is executing the program and is compiled.

Now not it can save the projects, this error occurs:

TPascalParserTool.BuildTree A OnlyInterfaceNeeded=FALSE An unhandled exception occurred at 0x0815BD11 :
List index exceeds bounds (-1)
0x0815BD11
0x00000000

|------------------------------| | Luis R. Hilario | | http://www.luis-digital.8m.com | |------------------------------| _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

Reply by email

Luis R. Hilario
to Luis R. Hilario: In splash.pp is used: "BorderStyle: = bsNone;", but "BorderStyle: = bsToolWindow;"…
Mattias Gaertner wrote
I added a line in main.pp to TMainIDE.DoRunProject, so that the program, that is executed, is written. Plz look for EXECUTING "<filename>".

But why is not it executed if all is correct?

The next time, the program is not executed, open a terminal and try to run the executable by yourself.

Always it has functioned of that form or doing click.

|------------------------------| | Luis R. Hilario | | http://www.luis-digital.8m.com | |------------------------------| _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

Reply by email

Mattias Gaertner
to Luis R. Hilario: In splash.pp is used: "BorderStyle: = bsNone;", but "BorderStyle: = bsToolWindow;"…
Show quoted text 15 lines
Mattias Gaertner wrote: > > Hmm. Strange indeed. If you got the 'EXECUTING' line then only TProcess can be the black sheep. All it is correct, if I enter the line ('EXECUTING') in a terminal, the program is executed. > I added some more checks for the executable for linux. > If this does not give any message, there must be a bug in TProcess. Now I cannot compile to Lazarus by this error: Assembling viewunit_dlg Compiling ./designer/designer.pp designer.pp(790,10) Error: Identifier not found SETPIXEL designer.pp(790,34) Error: Illegal expression

Yep, someone has committed dirty code. I fixed this yesterday. Plz 'update -d' your sources and tell me, if there is a new error message, when running a program. There is a new check, which asks linux, to do various checks for permissions and paths. If there is no new message, then there seems to be a bug in TProcess. Perhaps you can send me a small example program, which does not run?

Mattias

Reply by email

Mattias Gaertner
to Luis R. Hilario: In splash.pp is used: "BorderStyle: = bsNone;", but "BorderStyle: = bsToolWindow;"…
Show quoted text 6 lines
Mattias Gaertner wrote: > > > I added a line in main.pp to TMainIDE.DoRunProject, so that the program, that is executed, is written. Plz look for EXECUTING "<filename>". But why is not it executed if all is correct?

Hmm. Strange indeed. If you got the 'EXECUTING' line then only TProcess can be the black sheep. I added some more checks for the executable for linux. If this does not give any message, there must be a bug in TProcess.

Mattias

Reply by email

Luis R. Hilario
to Luis R. Hilario: In splash.pp is used: "BorderStyle: = bsNone;", but "BorderStyle: = bsToolWindow;"…
Mattias Gaertner wrote
Yep, someone has committed dirty code. I fixed this yesterday.

Really I fixed the problem also here.

Really the E-Mail arrived with a delay:

Reporting-MTA: dns; harding.miraclec.com
Arrival-Date: Wed, 21 Nov 2001 16:30:00 -0500

Final-Recipient: RFC822;
Action: delayed
Status: 4.4.3
Last-Attempt-Date: Wed, 21 Nov 2001 21:13:18 -0500 Will-Retry-Until: Mon, 26 Nov 2001 16:30:00 -0500

A delay in the E-Mail, who would tell it? :-)

Plz 'update -d' your sources and tell me, if there is a new error message, when running a program. There is a new check, which asks linux, to do various checks for permissions and paths. If there is no new message, then there seems to be a bug in TProcess. Perhaps you can send me a small example program, which does not run?

Output:
-------
[TCompiler.Compile] Output="13 Lines compiled, 7.1 sec" [TCompiler.Compile] end
[TMainIDE.DoRunProject] A
EXECUTING "/home/luis/FPC/lazarus/lazarus/x/about" [TMainIDE.DoRunProject] END

But not it is executed.

If I enter a terminal: /home/luis/FPC/lazarus/lazarus/x/about Yes, is executed.

|------------------------------| | Luis R. Hilario | | http://www.luis-digital.8m.com | |------------------------------| _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

Reply by email

Mattias Gaertner
to Luis R. Hilario: In splash.pp is used: "BorderStyle: = bsNone;", but "BorderStyle: = bsToolWindow;"…
Show quoted text 16 lines
> Plz 'update -d' your sources and tell me, if there is a new error message, when running a program. There is a new check, which asks linux, to do various checks for permissions and paths. If there is no new message, then there seems to be a bug in TProcess. > Perhaps you can send me a small example program, which does not run? > Output: ------- [TCompiler.Compile] Output="13 Lines compiled, 7.1 sec" [TCompiler.Compile] end [TMainIDE.DoRunProject] A EXECUTING "/home/luis/FPC/lazarus/lazarus/x/about" [TMainIDE.DoRunProject] END But not it is executed. If I enter a terminal: /home/luis/FPC/lazarus/lazarus/x/about Yes, is executed.

I believe you. But I know no example where it fails, so I can only guess what's going wrong. Can u send me a small example source?

Mattias

Reply by email

Mattias Gaertner
to Luis R. Hilario: In splash.pp is used: "BorderStyle: = bsNone;", but "BorderStyle: = bsToolWindow;"…
Show quoted text 6 lines
> Using the Run Button did not automatically build the project. I changed that. > Was this the bug? Now "Run" also compiles the program, but is not executed. It has noted that to times the button functions "Run", but not I know under which conditions.

I added a line in main.pp to TMainIDE.DoRunProject, so that the program, that is executed, is written. Plz look for EXECUTING "<filename>". The next time, the program is not executed, open a terminal and try to run the executable by yourself.

Mattias

Reply by email

Luis R. Hilario
to Luis R. Hilario: In splash.pp is used: "BorderStyle: = bsNone;", but "BorderStyle: = bsToolWindow;"…
Mattias Gaertner wrote
Hmm. Strange indeed. If you got the 'EXECUTING' line then only TProcess can be the black sheep.

All it is correct, if I enter the line ('EXECUTING') in a terminal, the program is executed.

I added some more checks for the executable for linux. If this does not give any message, there must be a bug in TProcess.

Now I cannot compile to Lazarus by this error:
Assembling viewunit_dlg
Compiling ./designer/designer.pp
designer.pp(790,10) Error: Identifier not found SETPIXEL designer.pp(790,34) Error: Illegal expression

|------------------------------| | Luis R. Hilario | | http://www.luis-digital.8m.com | |------------------------------| _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

Reply by email

Luis R. Hilario
to Luis R. Hilario: In splash.pp is used: "BorderStyle: = bsNone;", but "BorderStyle: = bsToolWindow;"…
Mattias Gaertner wrote
I believe you.

I understand its position, is as saying:

in DOS
A:\>CLS <ENTER>

and that not function.

But I know no example where it fails, so I can only guess what's going wrong. Can u send me a small example source?

It does not matter. Neither the project by defect is executed with the button "Run".

To another person passes her the same thing?

|------------------------------| | Luis R. Hilario | | http://www.luis-digital.8m.com | |------------------------------| _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

Reply by email