Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Double clicking fails to open .txt files #93
Storage Explorer Version: 1.0.0
Steps to Reproduce:
Clicking Details provides only the following in the text box.
This appears to only happen to .txt files, I tried with a .log file which is also associated with Notepad++ and that opened fine. Downloading the .txt file then manually double clicking on it in the folder works fine.
Attached is a copy of the dev tools console when the error happens with my access key redacted, line 65 contains the exception that was thrown.
Trying to open it from a command prompt I get
Trying to double click the file from explorer also does nothing.
The ACL definition for the file is
Copying the file to another location like the desktop allows me to open the file normally. My suspicion is this might be windows disagreeing with the length of the file path. Does
I'm having problems with the long paths, excel can't seem to handle them (even though the path is less than 255 chars...). I notice the VS Cloud Explorer uses a temp directory directly:
Cloud Explorer, 101 chars
Storage Explorer, 235 chars
Does Excel open the file if you shorten the file name?
I agree. That's probably an excessively long path for a temp location. @MRayermannMSFT, where do we generate the temp location and how? Is there a way to shorten this?
This page contains some interesting information on path lengths. I notice particularly that character limits should be lifted in Windows 10 (though you have to opt into it somehow).
Yes, I know where the path is generated. The implementer of the function (it wasn't me!
Anyway, it sounds like @redwyre has confirmed this is a path issue. Let's reopen the bug and try to get it fixed.