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.
> Project located at D:\projects\ThickLazarus\utils\CamCalibration.
> This unit didn't included into project's unit list because in this
> case i cannot use relative paths.
> What i do wrong?
Use \ under windows, not /.
> P.S. I cannot send example because of 40 kb limitation of mail list.
> I tried to repeat this error
> in simple dummy project, but it works OK.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives