Mattias Gaertner wrote:
On Mon, 08 Oct 2007 23:05:04 +0200
Marc Weustink <[EMAIL PROTECTED]> wrote:
Mattias Gaertner wrote:
On Mon, 08 Oct 2007 17:46:04 +0400
12 12 <[EMAIL PROTECTED]> wrote:
Bug: Lazarus opens twice the same source file!
I use relative paths for units. This simplifies moving of project.
This way i add to compiler options in "Other units" section:
../../includes\
../../../../Library\
../../../../Library/LazRGBGraphics\
../../../../Library/vfp\
The project uses unit unEdgePositionFinder.pas located in
../../includes\.
But when i "Ctrl + click" with mouse on unit name in "Uses" section
of main form unit
Lazarus opens unit unEdgePositionFinder.pas twice!
The path for each copy displayed at bottom of edit window.
The first has path
D:\projects\ThickLazarus\includes\unEdgePositionFinder.pas.
The second has path
D:\projects\ThickLazarus\utils\CamCalibration\../../includes\unEdgePositionFinder.pas.
I didn't know, that windows allows using / as path delimiter.
Windows itself not, but the utilities we use do.
Which utilities? He said, he just opens a file.
utilities like the compiler (eventually make link assember etc. ;)
IIRC we don't pass paths to windows only/native functions/exes.
So that the / or \ get parsed OK doesn't surprise me.
OTOH he said, "The project uses unit unEdgePositionFinder.pas located
in ../../includes\" - which I guess he does not mean literally, but
I guess he really means "The project uses unit unEdgePositionFinder.pas
located in ..\..\includes\".
When switching a
project between linux and linux sometimes the / stays in the path
Do you mean between windows and linux?
What paths stay? The unit path? Include path?
I don't recall. I noticed once for a test project I use for windows and
linux testing. The only solution for me at that time was editing the
.lpi myself.
Normally I use different .lpi for different platforms since using the
same doesnt't work well (lots of complaining on linux that
F:\rtl\somesource cannot be found for instance)
Marc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives