Recent

Author Topic: Project SaveAs on OneDrive fails?  (Read 956 times)

Zvoni

  • Hero Member
  • *****
  • Posts: 3300
Project SaveAs on OneDrive fails?
« on: March 02, 2026, 09:38:07 am »
Hi Folks,

Windows 10-64Bit,
FPC3.2.3 (Fixes)/Lazarus 4.3 (Fixes) both 64-Bit

Starting a new Project, setting Program-Name in lpr file ("Program MyTopSecretProjectName;"), Project - Save As,
choose a Folder in My Documents, which is synced to a OneDrive (IMPORTANT!!), set lpi-filename to your chosen name, hit OK --> Errors out with "lpi-File not found"
It errors out, too, if i don't change anything (default-names etc.).
Just new Project, Save As.... Folder on OneDrive -- KABOOM
At a guess: Confusion about Path-Delimiters (OneDrive uses Forward-Slashes)

If i choose a random folder outside My OneDrive-Domain it works as it should.

Can someone confirm?
(Or what am i doing wrong?)
« Last Edit: March 02, 2026, 09:40:18 am by Zvoni »
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

Bart

  • Hero Member
  • *****
  • Posts: 5702
    • Bart en Mariska's Webstek
Re: Project SaveAs on OneDrive fails?
« Reply #1 on: March 02, 2026, 06:38:15 pm »
If you write to OneDrive using a standard FileSave dialog, this should be transparent.

Bart

Zvoni

  • Hero Member
  • *****
  • Posts: 3300
Re: Project SaveAs on OneDrive fails?
« Reply #2 on: March 03, 2026, 08:00:43 am »
If you write to OneDrive using a standard FileSave dialog, this should be transparent.

Bart
Which means?
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

Bart

  • Hero Member
  • *****
  • Posts: 5702
    • Bart en Mariska's Webstek
Re: Project SaveAs on OneDrive fails?
« Reply #3 on: March 03, 2026, 10:16:43 pm »
Which means?
That the underlying OS should not care wether or not you write to OneDrive or anything else.
The system calls are the same, the OS should re-direct the "write to disk" to "put in the cloud".
My self written notepad replacement has no trouble writing to OneDrive (at work, all files ar on OneDrive, which sucks heavily b.t.w.).

That being said, it does not mean that there might not be some problem/bug, give what you describe (I take your word for it).
It just is, given my reasoning above, a bit odd.

B.t.w. OneDrive (on Windows, when approached from an Explore window (like TSaveDialog)) uses backslashes for directoryseparators.

Bart

 

TinyPortal © 2005-2018