Open pcantalupo opened 7 years ago
I figured out that the error occurs when I add a project folder that exists on my remove drive "Y". However, I do not get the error if I add a project folder from my remote drive "Z". Both these drives are on the same remote machine.
Repro steps from https://github.com/atom/atom/issues/18474:
- Map U:\ to a network drive on a VPN
- Add a project folder from U:\
- Do some editing, minding your own business.
- Have your VPN mysteriously fail.
From https://github.com/atom/atom/issues/19036#issue-424369584:
I tried to open a file in an smb share and while it was not responding I shut my laptop. I think.
I have seen a very similar error in Julia, which started to occurr for me at the same time as this one. It is probably linked to the opening files on an smb mount where parent directories are not accessible to the user. More details can be found in the linked Julia issue above. The workaround in the Julian case was to catch an error of realpath and in that case simply return the input string.
EDIT: changed the link to the specific comment of the mentioned issue
The error can, indeed, be traced back to node.js:
> fs.realpathSync("\\\\server\\users\\username\\My Documents")
Error: EPERM: operation not permitted, lstat '\\server\users'
at Object.realpathSync (fs.js:1679:5)
whereas
> fs.readdirSync("\\\\server\\users\\username\\My Documents")
is successful
A possible workaround is to map a drive letter to the networkshare, in which case realpathSync
does not error out. - This is different to the Julia case mentioned above!
I get a very similar error in VS Code. Not sure that this is an issue with Atom, though I could be wrong.
Hello,
I updated Atom today on Windows 7 and when I closed and reopened it, I got the follow error:
"Uncaught Error: UNKNOWN: unknown error, lstat 'Y:\'"
that was thrown from the fuzzy-finder package. I'm creating an issue because ATOM suggested that I do so. Below is the information that I copied to the clipboard from the error window:
Atom Version: 1.13.1 Electron Version: 1.3.13 System: Microsoft Windows 7 Professional Thrown From: fuzzy-finder package, v1.4.0
Stack Trace
Uncaught Error: UNKNOWN: unknown error, lstat 'Y:\'
Commands
Config
Installed Packages