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...

Mailing lists / lazarus / 2003-03
16 messages · 4 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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...
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!Title: Duplicate Editor Window on Error Entered by: Jesus Reyes on Compile or clicking on…
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
Title: Duplicate Editor Window on Error Entered by: Jesus Reyes on Compile or clicking on…
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...
Title: Duplicate Editor Window on Error Entered by: Jesus Reyes on Compile or clicking on…
----- Original Message -----
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.
Title: Duplicate Editor Window on Error Entered by: Jesus Reyes on Compile or clicking on…
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
There should be a message. In the best case, make it configurable. 'Warn when opening symlinked file twice' or something.
Michael.
Title: Duplicate Editor Window on Error Entered by: Jesus Reyes on Compile or clicking on…
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
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
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
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
Normally, linux ignores double slashes in paths.
Windows is more difficult in this matter.
Michael.
Title: Duplicate Editor Window on Error Entered by: Jesus Reyes on Compile or clicking on…
Mattias Gaertner wroteIf 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?
I would think just do it automatically, since after the check you can be sure they are one and the same...
-Tony
No Hi, I found the problem, I have: /home/prog/lazarus/ in "enviroment->enviroment…
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
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