Re: [Lazarus] Developing on Linux with files on Windows NTFS [NOT Fully Solved]

2015-02-09 Thread Marc Weustink

Donald Ziesig wrote:

There is still one residual problem.  Right now I am developing and
testing on Linux with the files on NTFS using ntfs-3g with case
sensitive file names.  Everything seems to be ok until I get a
compilation error at which point I get two editor windows pointing to
the same file with tabs showing:

MyFileMyFile(2)


This has to do with the difference between the path of the opened file 
and the path reported by the compiler.


This one I've never seen, but when debugging I had te same when gdb 
reports its paths.


Try to find out if tere is a difference in casing between the 2 files

Marc


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Developing on Linux with files on Windows NTFS [NOT Fully Solved]

2015-02-08 Thread Donald Ziesig
There is still one residual problem.  Right now I am developing and 
testing on Linux with the files on NTFS using ntfs-3g with case 
sensitive file names.  Everything seems to be ok until I get a 
compilation error at which point I get two editor windows pointing to 
the same file with tabs showing:


MyFileMyFile(2)

If I re-compile, a window pops up telling me that the file on disk has 
changed and asking if I would like to reload.  If I press reload I get 
the modified file, else I get the file from before the compilation 
error.  Strangely, the compilation error will re-occur even with the 
modified file showing in the source editor and the unmodified file 
closed in the source editor.  It doesn't seem to matter if I use 
file-contents or file timestamp to determine the modification state 
of the file.  Also, I have looked on the disk and see only the 
MyFile.pas, never MyFile(2).pas.


There is a simple work-around (which might give someone a clue as to the 
cause).  If I explicitly save the modified files before starting 
compilation the problem never occurs.  (I just have to remember to do it 
;-) ).


This never occurs when the files are on the Linux ext4 file system.

Don Ziesig

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus