Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with opening files from OneDrive folder #2836

Closed
Alexey-T opened this issue Sep 10, 2020 · 5 comments
Closed

problem with opening files from OneDrive folder #2836

Alexey-T opened this issue Sep 10, 2020 · 5 comments

Comments

@Alexey-T
Copy link
Owner

Alexey-T commented Sep 10, 2020

private msg:
I run on Windows10 and have a folder (with lots of subfolders) synced with Microsoft OneDrive.

In CudaText I cannot open any of these files. In "file open" dialog I can see them as normal, but when I select "open" I get an error message saying
"Path must exist"
"The path (and then path to folder) does not exist."

Almost the same happens when I right mouse click on the file and select "open with cudatext"
Then I get a Windows error with
"CudaText"
"File not found: (path to file)"
"Create it?"

If I select Cancel an empty CudaText opens. If I select OK the file is overwritten with an empty file.

Opening files on other locations than the OneDrive synced folders works just fine.

@Alexey-T Alexey-T added the bug label Sep 10, 2020
@Alexey-T
Copy link
Owner Author

I cannot reproduce it on Win10 x64 OneDrive. @kvichans @iRamSoft @dinkumoil Maybe you see the issue?

@dinkumoil
Copy link
Contributor

Sorry, I do not use OneDrive, don't have an account.

@JairoMartinezA
Copy link

Hi @Alexey-T

I am testing with some scenarios using OneDrive, but I couldn't repro at the end. My comments:

  1. I suppose there are more settings in OneDrive, but basically with my test I could figure out when I try to open a file using OneDrive folder and the file is available on-line, when Cud open the file, the file is downloaded first, in other cases if the file is not downloaded first, Cud doesn't enable the Open button.
  2. I think the issue is more related with this: Maximum path limit. What I really can see is if I try to copy a long path from file explorer like this:
    C:\Users\Jairo Martinez\Documents\Nested Folder 1\Nested Folder 2\Nested Folder 3\Nested Folder 4\Nested Folder 5\Nested Folder 6\Nested Folder 7\Nested Folder 8\Nested Folder 9\Nested Folder 10\Nested Folder 11\Nested Folder 12\Nested Folder 13\Nested Folder 14\Nested Folder 15\Nested Folder 16\Nested Folder 17\Nested Folder 18\Nested Folder 19\Nested Folder 20\TestFile.txt

And if I want to paste this value in Open File Dialog, Windows truncate automatically to fit only 260 chars:
Snipaste_2020-09-10_12-26-28

And in this case after click on Open button, Cud show the "error" (because the truncated path not exists):
Snipaste_2020-09-10_12-31-47

@Alexey-T
Copy link
Owner Author

Alexey-T commented Sep 11, 2020

@Alexey-T
Copy link
Owner Author

fixed in FPC 3.3 trunk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants