Sign in Join

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

Mailing lists / lazarus / 2003-03

New Bug Entered

16 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Unknown author

Title: New project doesn\'t auto-create first form

Entered by: Tony Maro

When creating a new project, the default form it creates is not added to the auto-create forms list, resulting in an application that does nothing...

Reply by email

Unknown author

Title: Missing winapi.pp ???

Entered by: Serg

After downloading snapshot and trying MAKE under winxp I\'m got  \"postscriptprinter.pas(245,62) Fatal: Can\'t find unit WINAPI\"
winapi.inc and winapih.inc are present, but winapi.pp is absent!

Reply by email

Mattias Gaertner
to Unknown author: Title: Duplicate Editor Window on Error Entered by: Jesus Reyes on Compile or clicking on…
Show quoted text 6 lines
I find it only does this if I'm accessing a unit that I've compiled into the palette. Part may have to do with my symlinks, because I'll sometimes open the file from /home/tony/lazarus/components/custom instead of what Lazarus has set as path which is /usr/src/lazaruscvs/lazarus/components/custom - so truly it looks just like two separate files.

Every editor handles symlinks differently.
I would suggest a message, when the IDE detects an already opened link, but others seems to prefer more automatic ways. Ideas?

Mattias

Show quoted text 27 lines
On Fri, 2003-03-28 at 14:48, wrote: > > Title: Duplicate Editor Window on Error > > Entered by: Jesus Reyes > > on Compile or clicking on error in then messages window the IDE opens a > duplicate editor window even when there is one open > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives -- Thanks, Tony Maro Need a Linux replacement for Microsoft Money? Check out CheckBook Tracker! http://tony.maro.net/ _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Tony Maro
to Unknown author: Title: Duplicate Editor Window on Error Entered by: Jesus Reyes on Compile or clicking on…
Mattias Gaertner wrote 7 lines
Every editor handles symlinks differently. I would suggest a message, when the IDE detects an already opened link, but others seems to prefer more automatic ways. Ideas? Mattias

Well, in the fileutil.pp unit (isn't that what it was?) didn't I notice some routines that would extract out symlinks back to the real full path? You could do that on each of the opened editor files and on the error from the compiler to see if they match...

Reply by email

Jesus Reyes
to Unknown author: Title: Duplicate Editor Window on Error Entered by: Jesus Reyes on Compile or clicking on…

----- Original Message -----

Earlier message 25 lines
From: Tony Maro To: Lazarus List Sent: Friday, March 28, 2003 4:02 PM Subject: Re: [lazarus] New Bug Entered > I find it only does this if I'm accessing a unit that I've compiled into > the palette. Part may have to do with my symlinks, because I'll > sometimes open the file from /home/tony/lazarus/components/custom > instead of what Lazarus has set as path which is > /usr/src/lazaruscvs/lazarus/components/custom - so truly it looks just > like two separate files. > I'm editing a unit (grids.pas) which is in lazarus/lcl/ after some changes, I build Lazarus lcl and if one error occurs the IDE opens a new window, I'm pretty sure that before it worked ok, my sources are from 2 days, tomorrow I will cvs update again to see if this continue to happen. I'm not using symlinks. The funny thing is that if for example I add a new incomplete property and then Shift+Ctrl+C a new window appears, the new window get marked as modified and the existing one not!. Regards. Jesus Reyes A.

Reply by email

Tony Maro
to Unknown author: Title: Duplicate Editor Window on Error Entered by: Jesus Reyes on Compile or clicking on…

I find it only does this if I'm accessing a unit that I've compiled into the palette. Part may have to do with my symlinks, because I'll sometimes open the file from /home/tony/lazarus/components/custom instead of what Lazarus has set as path which is
/usr/src/lazaruscvs/lazarus/components/custom - so truly it looks just like two separate files.

Show quoted text 11 lines
Title: Duplicate Editor Window on Error Entered by: Jesus Reyes on Compile or clicking on error in then messages window the IDE opens a duplicate editor window even when there is one open _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Thanks, Tony Maro Need a Linux replacement for Microsoft Money? Check out CheckBook Tracker! http://tony.maro.net/

Reply by email

Mattias Gaertner
to Unknown author: Title: Duplicate Editor Window on Error Entered by: Jesus Reyes on Compile or clicking on…
Show quoted text 12 lines
On Fri, 2003-03-28 at 18:08, Mattias Gaertner wrote: > > Every editor handles symlinks differently. > I would suggest a message, when the IDE detects an already opened link, > but others seems to prefer more automatic ways. Ideas? > > > Mattias Well, in the fileutil.pp unit (isn't that what it was?) didn't I notice some routines that would extract out symlinks back to the real full path?

filectrl.pp.
Just to avoid misunderstandings: I just wanted to know, when the IDE should do the symlink check and what it should do on finding one. Anjuta, moleskine, emacs, ... every editor does it differently.

You could do that on each of the opened editor files and on the error from the compiler to see if they match...

If I understand it correct, you suggest to do a symlink check whenever a file is opened automatically in the editor. Should there be a message or should it automatically go to the already opened file?

Mattias

Reply by email

Unknown author
to Mattias Gaertner
Mattias Gaertner wrote 28 lines
On 28 Mar 2003 19:58:32 -0600 Tony Maro wrote: > On Fri, 2003-03-28 at 18:08, Mattias Gaertner wrote: > > > > Every editor handles symlinks differently. > > I would suggest a message, when the IDE detects an already opened link, > > but others seems to prefer more automatic ways. Ideas? > > > > > > Mattias > > Well, in the fileutil.pp unit (isn't that what it was?) didn't I notice > some routines that would extract out symlinks back to the real full > path? filectrl.pp. Just to avoid misunderstandings: I just wanted to know, when the IDE should do the symlink check and what it should do on finding one. Anjuta, moleskine, emacs, ... every editor does it differently. > You could do that on each of the opened editor files and on the > error from the compiler to see if they match... If I understand it correct, you suggest to do a symlink check whenever a file is opened automatically in the editor. Should there be a message or should it automatically go to the already opened file?

There should be a message. In the best case, make it configurable. 'Warn when opening symlinked file twice' or something.

Michael.

Reply by email

Mattias Gaertner
to Unknown author: Title: Duplicate Editor Window on Error Entered by: Jesus Reyes on Compile or clicking on…
Show quoted text 22 lines
----- Original Message ----- From: Tony Maro To: Lazarus List Sent: Friday, March 28, 2003 4:02 PM Subject: Re: [lazarus] New Bug Entered > I find it only does this if I'm accessing a unit that I've compiled into > the palette. Part may have to do with my symlinks, because I'll > sometimes open the file from /home/tony/lazarus/components/custom > instead of what Lazarus has set as path which is > /usr/src/lazaruscvs/lazarus/components/custom - so truly it looks just > like two separate files. > I'm editing a unit (grids.pas) which is in lazarus/lcl/ after some changes, I build Lazarus lcl and if one error occurs the IDE opens a new window, I'm pretty sure that before it worked ok, my sources are from 2 days, tomorrow I will cvs update again to see if this continue to happen. I'm not using symlinks. The funny thing is that if for example I add a new incomplete property and then Shift+Ctrl+C a new window appears, the new window get marked as modified and the existing one not!.

Somehow the filenames look different for the IDE.
Is the file on a windows vfat filesystem?

BTW, how can I get the filename on disk in such a case?

Mattias

Reply by email

Unknown author

Title: Duplicate Editor Window on Error

Entered by: Jesus Reyes

on Compile or clicking on error in then messages window the IDE opens a duplicate editor window even when there is one open

Reply by email

Unknown author

Title: (Win32) Crash on right click on form1

Entered by: Cristiano Magro

when I right click on form1 the lazarus crash with this error logs

Note: environment config file not found - using defaults NOTE: editor options config file not found - using defaults NOTE: miscellaneous options file not found - using defaults NOTE: codetools config file not found - using defaults

NOTE: Compiler Filename not set! (see Environment Options)

NOTE: FPC Source Directory not set! (see Environment Options)

NOTE: Could not create Define Template for Free Pascal Compiler

NOTE: Could not create Define Template for Free Pascal Sources TMainIDE.DoNewProject A
TMainIDE.DoNewEditorFile A NewFilename=
TPascalParserTool.BuildTree B OnlyIntf=FALSE project1.lpr [TCustomFormEditor.CreateComponent] Class=\'TFORM\' TPascalParserTool.BuildTree B OnlyIntf=FALSE project1.lpr TMainIDE.DoNewEditorFile end unit1.pas
TMainIDE.DoNewProject end 0
************************************************************ MouseDownOnControl Form1:TForm1 No Shift down, No CTRL down [TDesigner.MouseDownOnControl] END
************************************************************ MouseUpOnControl Form1:TForm1
An unhandled exception occurred at 0x006357E9 :
Invalid type cast
0x006357E9
0x005FE439 SETMENUITEMCAPTION, line 234 of win32object.inc An unhandled exception occurred at 0x0063011E :
Access violation
0x0063011E

[TMainIDE.Destroy] A
An unhandled exception occurred at 0x005C3C12 :
Access violation
0x005C3C12 TSCROLLINGWINCONTROL__WMSIZE, line 448 of ./include/scrollingwincontrol.inc 0x005C4910 TCUSTOMFORM__WMSIZE, line 456 of ./include/customform.inc 0x00635DE9
0x00343536
0x004584DC TDESIGNER__ISDESIGNMSG, line 1177 of ./designer/designer.pp 0x005D2DB5 TCONTROL__WNDPROC, line 854 of ./include/control.inc 0x005CFABB TWINCONTROL__WNDPROC, line 1338 of ./include/wincontrol.inc 0x005C4EE8 TCUSTOMFORM__WNDPROC, line 796 of ./include/customform.inc 0x005FBE09 DELIVERMESSAGE, line 435 of win32proc.inc 0x005FDA6E WINDOWPROC, line 499 of win32callback.inc 0x77D37B17 line 182 of winext.pas

Reply by email

Tony Maro
to Jesus Reyes: No Hi, I found the problem, I have: /home/prog/lazarus/ in "enviroment->enviroment…

Aha, double slash...

Maybe when it saves the settings we could have Lazarus detect this and remove the extra slash at the end of paths? Or is that dangerous in Linux because it might break some other compatibility? I've only been doing Linux programming for less than a year, and I've learned to expect the unexpected...

-Tony

Jesus Reyes wrote 24 lines
> > Somehow the filenames look different for the IDE. > Is the file on a windows vfat filesystem? > No Hi, I found the problem, I have: /home/prog/lazarus/ in "enviroment->enviroment options->lazarus directory" I corrected that as: /home/prog/lazarus thanks _________________________________________________________ Do You Yahoo!? La mejor conexi�n a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Thanks, Tony Maro Need a Linux replacement for Microsoft Money? Check out CheckBook Tracker! http://tony.maro.net/

Reply by email

Unknown author
to Tony Maro
Tony Maro wrote 7 lines
Aha, double slash... Maybe when it saves the settings we could have Lazarus detect this and remove the extra slash at the end of paths? Or is that dangerous in Linux because it might break some other compatibility? I've only been doing Linux programming for less than a year, and I've learned to expect the unexpected...

Normally, linux ignores double slashes in paths.
Windows is more difficult in this matter.

Michael.

Reply by email

Mattias Gaertner
to Jesus Reyes: No Hi, I found the problem, I have: /home/prog/lazarus/ in "enviroment->enviroment…
Show quoted text 7 lines
Aha, double slash... Maybe when it saves the settings we could have Lazarus detect this and remove the extra slash at the end of paths? Or is that dangerous in Linux because it might break some other compatibility? I've only been doing Linux programming for less than a year, and I've learned to expect the unexpected...

Has nothing to do with linux.
The IDE normally uses the TrimFilename function to normalize filenames, which is neccessary to compare filenames. This eleminates double slashes, parent dirs '..', current dirs '.' and spaces at start and end of filenames. There was one normalization missing.
But for readability, environment directories are now always appended a slash.

Mattias

Show quoted text 42 lines
-Tony On Sat, 2003-03-29 at 14:43, Jesus Reyes wrote: > > > > Somehow the filenames look different for the IDE. > > Is the file on a windows vfat filesystem? > > > > No > > > Hi, I found the problem, I have: /home/prog/lazarus/ in > "enviroment->enviroment options->lazarus directory" I corrected that > as: /home/prog/lazarus > > thanks > > > > _________________________________________________________ > Do You Yahoo!? > La mejor conexi�n a internet y 25MB extra a tu correo por $100 al mes. > http://net.yahoo.com.mx > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives -- Thanks, Tony Maro Need a Linux replacement for Microsoft Money? Check out CheckBook Tracker! http://tony.maro.net/ _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Jesus Reyes
to Mattias Gaertner: On Sat, 29 Mar 2003 00:14:44 -0600 Somehow the filenames look different for the IDE. Is…
Somehow the filenames look different for the IDE. Is the file on a windows vfat filesystem?

No

Hi, I found the problem, I have: /home/prog/lazarus/ in "enviroment->enviroment options->lazarus directory" I corrected that as: /home/prog/lazarus

thanks

_________________________________________________________ Do You Yahoo!?
La mejor conexi�n a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx

Reply by email