Recent

Author Topic: Where are files stored?  (Read 1569 times)

andyH

  • Jr. Member
  • **
  • Posts: 99
Where are files stored?
« on: June 12, 2021, 09:23:03 pm »
Was happily doing my main project, got it to a certain point compiled and quit. Started lazarus again, opened another (test) project did some stuff, got it working, compiled, quit lazarus.

Started lazarus again, opened my main project (via project > open project), compiled - lots of errors. What appears to have happened (and no idea how) is that some (if not most) of my units have been saving in /home/me/myproject/backup instead of /home/me/myproject.

Done a restore (backintime) to get back to where I was yesterday, but it would appear the problem is more than a day old. I'm now doing a check on datetime stamps to find out where the latest version of each unit is (11 of them). By the time I get back to where I think I was this is likely to take me several hours, instead of including updates from the test project = zero progress  :(

I've looked at project inspector, but that just gives you a list of filenames, not pathnames.

Is there any way in lazarus to see the full pathname of the units used?

Running under linux if not obvious from the above.

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Where are files stored?
« Reply #1 on: June 12, 2021, 09:52:52 pm »
Is there any way in lazarus to see the full pathname of the units used?

Open them in the editor and the full path will show in the status bar.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

andyH

  • Jr. Member
  • **
  • Posts: 99
Re: Where are files stored?
« Reply #2 on: June 12, 2021, 10:21:11 pm »
Thanks for that, bit obvious - but if you never looked you wouldn't see it.

What I find disconcerting is that, having checked the datetime stamps on all my units, the latest version is in the backup folder 10 out of 11 times?

Also checked the project file, myproject.lpi. Copy in the main project folder = 25 May, copy in the backup folder = 10 June?

Now I could put it down to my stupidity if a couple of units had been saved in the backup folder, but...

I'll be watching this with an eagle eye from now on.


MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: Where are files stored?
« Reply #3 on: June 12, 2021, 10:26:15 pm »
Open them in the editor and the full path will show in the status bar.

Also Source -> Unit Information

Beware of symlinks in your unit (etc.) paths.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018