You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Uncaught Error: ENOENT, no such file or directory '/Users/ars/0.atom/packages/atom-beautify/' #416
Atom Version: 0.188.0 System: Mac OS X 10.10.2 Thrown From: tree-view package, v0.168.0
Stack Trace
Uncaught Error: ENOENT, no such file or directory '/Users/ars/0.atom/packages/atom-beautify/'
At fs.js:503
Error: ENOENT, no such file or directory '/Users/ars/0.atom/packages/atom-beautify/'
at Error (native)
at Object.fs.openSync (fs.js:503:18)
at Object.module.(anonymous function) [as openSync] (ATOM_SHELL_ASAR.js:118:20)
at Object.fs.writeFileSync (fs.js:1116:15)
at Object.fsPlus.writeFileSync (/Users/ars/Downloads/Atom.app/Contents/Resources/app/node_modules/fs-plus/lib/fs-plus.js:246:17)
at TreeView.module.exports.TreeView.pasteEntries (/Users/ars/Downloads/Atom.app/Contents/Resources/app/node_modules/tree-view/lib/tree-view.js:965:32)
at space-pen-div.atom.commands.add.tree-view:paste (/Users/ars/Downloads/Atom.app/Contents/Resources/app/node_modules/tree-view/lib/tree-view.js:277:26)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Users/ars/Downloads/Atom.app/Contents/Resources/app/src/command-registry.js:242:29)
at /Users/ars/Downloads/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Users/ars/Downloads/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Users/ars/Downloads/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Users/ars/Downloads/Atom.app/Contents/Resources/app/src/window-event-handler.js:180:20)
@izuzak any ideas on this one? I would have thought this was fixed by #371
@kevinsawicki Hmmmm, that's interesting. Looking again at #371, it only prevents problems where the source item is removed (e.g. you copy an item, delete it and try to paste it), but it doesn't handle any possible problems related to the the destination.
The stack trace above indicates that things failed when Tree View tried to write to the destination:
at Object.fs.writeFileSync (fs.js:1116:15)
at Object.fsPlus.writeFileSync (/Users/ars/Downloads/Atom.app/Contents/Resources/app/node_modules/fs-plus/lib/fs-plus.js:246:17)
Also, it's interesting that the exception message says that the destination location which caused the problem was this:
Uncaught Error: ENOENT, no such file or directory '/Users/ars/0.atom/packages/atom-beautify/'
I'm not sure how such a destination location could be created, but I'm probably missing something here. It doesn't seem to be a folder (the writeFileSync call should never be called for a folder, it should be called only for files -- folders are pasted with copySync). And it doesn't seem to be a file because it's not possible to have empty filenames.
Activity
kevinsawicki commentedon Apr 28, 2015
@izuzak any ideas on this one? I would have thought this was fixed by #371
izuzak commentedon Apr 29, 2015
@kevinsawicki Hmmmm, that's interesting. Looking again at #371, it only prevents problems where the source item is removed (e.g. you copy an item, delete it and try to paste it), but it doesn't handle any possible problems related to the the destination.
The stack trace above indicates that things failed when Tree View tried to write to the destination:
Looking at the code around that
writeFileSynccall, I'd guess that reading the source file succeeded, but writing it to the destination didn't succeed. I'm not sure why that would happen, though :(. As far as I can tell,writeFileSyncwill create the necessary directory structure when writing files.Also, it's interesting that the exception message says that the destination location which caused the problem was this:
I'm not sure how such a destination location could be created, but I'm probably missing something here. It doesn't seem to be a folder (the
writeFileSynccall should never be called for a folder, it should be called only for files -- folders are pasted withcopySync). And it doesn't seem to be a file because it's not possible to have empty filenames.😕