{"action":"opened","issue":{"url":"https://api.github.com/repos/atom/atom/issues/11402","repository_url":"https://api.github.com/repos/atom/atom","labels_url":"https://api.github.com/repos/atom/atom/issues/11402/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/11402/comments","events_url":"https://api.github.com/repos/atom/atom/issues/11402/events","html_url":"https://github.com/atom/atom/issues/11402","id":146784749,"number":11402,"title":"Uncaught Error: ENOENT: no such file or directory, close","user":{"login":"losmaven","id":6753709,"avatar_url":"https://avatars.githubusercontent.com/u/6753709?v=3","gravatar_id":"","url":"https://api.github.com/users/losmaven","html_url":"https://github.com/losmaven","followers_url":"https://api.github.com/users/losmaven/followers","following_url":"https://api.github.com/users/losmaven/following{/other_user}","gists_url":"https://api.github.com/users/losmaven/gists{/gist_id}","starred_url":"https://api.github.com/users/losmaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/losmaven/subscriptions","organizations_url":"https://api.github.com/users/losmaven/orgs","repos_url":"https://api.github.com/users/losmaven/repos","events_url":"https://api.github.com/users/losmaven/events{/privacy}","received_events_url":"https://api.github.com/users/losmaven/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-08T01:14:08Z","updated_at":"2016-04-08T01:14:08Z","closed_at":null,"body":"### Prerequisites\r\n\r\n* [x ] Can you reproduce the problem in [safe mode](http://flight-manual.atom.io/hacking-atom/sections/debugging/#check-if-the-problem-shows-up-in-safe-mode)?\r\n* [x ] Are you running the [latest version of Atom](http://flight-manual.atom.io/hacking-atom/sections/debugging/#update-to-the-latest-version)?\r\n* [ ] Did you check the [debugging guide](flight-manual.atom.io/hacking-atom/sections/debugging/)?\r\n* [ ] Did you check the [FAQs on Discuss](https://discuss.atom.io/c/faq)?\r\n* [ ] Are you reporting to the [correct repository](https://github.com/atom/atom/blob/master/CONTRIBUTING.md#atom-and-packages)?\r\n* [x ] Did you [perform a cursory search](https://github.com/issues?q=is%3Aissue+user%3Aatom+-repo%3Aatom%2Felectron) to see if your bug or enhancement is already reported?\r\n\r\n-- I had updated another bug which looked similar to me (10774), but was asked to open a new issue.\r\n\r\n\r\n\r\n### Description\r\nWhile trying to save a file, which was moved from one directory to another, saw this error.\r\n\r\n\r\n### Steps to Reproduce\r\n\r\n1. Create a file in a directory and open it for editing\r\n2. While the file is open, go to the terminal and move the file to another directory\r\n3. In Atom, open this file in a new tab and then try to save..see the \"ENOENT...\" error\r\n\r\nNotes:\r\n1. The file does seem to get saved.\r\n2. I am working on a directory which is mounted remotely.\r\n\r\n**Expected behavior:** [What you expected to happen]\r\n\r\n**Actual behavior:** [What actually happened]\r\n\r\n### Versions\r\n\r\nYou can get this information from executing `atom --version` and `apm --version` at the command line. Also, please include the OS and what version of the OS you're running.\r\n\r\nMacBook-Pro:ha uvanzara$ atom --version\r\n1.6.2\r\nMacBook-Pro:ha uvanzara$ apm --version\r\napm  1.6.0\r\nnpm  2.13.3\r\nnode 0.10.40\r\npython 2.7.10\r\ngit 2.6.4\r\n\r\n[Enter steps to reproduce below:]\r\n\r\n1. ...\r\n2. ...\r\n\r\n**Atom Version**: 1.6.2\r\n**System**: Mac OS X 10.11.4\r\n**Thrown From**: Atom Core\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught Error: ENOENT: no such file or directory, close\r\n\r\n```\r\nAt /Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:896\r\n\r\nError: ENOENT: no such file or directory, close\r\n    at Error (native)\r\n    at Object.fs.closeSync (fs.js:518:18)\r\n    at Object.closeSync (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/babel-core/node_modules/regenerator/node_modules/commoner/node_modules/graceful-fs/graceful-fs.js:51:27)\r\n    at Object.fs.writeFileSync (fs.js:1188:8)\r\n    at Object.fsPlus.writeFileSync (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/fs-plus/lib/fs-plus.js:279:17)\r\n    at File.module.exports.File.writeFileSync (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/pathwatcher/lib/file.js:282:19)\r\n    at File.module.exports.File.writeFileWithPrivilegeEscalationSync (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/pathwatcher/lib/file.js:398:21)\r\n    at File.module.exports.File.writeSync (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/pathwatcher/lib/file.js:355:12)\r\n    at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1059:19)\r\n    at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1043:19)\r\n    at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:629:26)\r\n    at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:613:18)\r\n    at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:596:19)\r\n    at Workspace.module.exports.Workspace.saveActivePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:673:35)\r\n    at atom-workspace.commandRegistry.add.core:save (/Applications/Atom.app/Contents/Resources/app.asar/src/register-default-commands.js:205:32)\r\n    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)\r\n    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61\r\n    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)\r\n    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)\r\n    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:97:36)\r\n    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -0:00.6.0 core:save (atom-text-editor.editor.is-focused)\r\n```\r\n\r\n### Config\r\n\r\n```json\r\n{\r\n  \"core\": {\r\n    \"themes\": [\r\n      \"atom-dark-ui\",\r\n      \"genesis-syntax\"\r\n    ]\r\n  },\r\n  \"editor\": {\r\n    \"fontSize\": 11,\r\n    \"invisibles\": {},\r\n    \"preferredLineLength\": 120,\r\n    \"showIndentGuide\": true,\r\n    \"softWrap\": true,\r\n    \"softWrapAtPreferredLineLength\": true,\r\n    \"tabLength\": 4\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\nNo installed packages\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"}}