{"action":"created","issue":{"url":"https://api.github.com/repos/izuzak/atom-pdf-view/issues/70","labels_url":"https://api.github.com/repos/izuzak/atom-pdf-view/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/izuzak/atom-pdf-view/issues/70/comments","events_url":"https://api.github.com/repos/izuzak/atom-pdf-view/issues/70/events","html_url":"https://github.com/izuzak/atom-pdf-view/issues/70","id":102126918,"number":70,"title":"Uncaught Error: ENOENT: no such file or directory, open '/home/niels/GIT/gitlab-niels/abb-irb120-...","user":{"login":"nielsvd","id":11959015,"avatar_url":"https://avatars.githubusercontent.com/u/11959015?v=3","gravatar_id":"","url":"https://api.github.com/users/nielsvd","html_url":"https://github.com/nielsvd","followers_url":"https://api.github.com/users/nielsvd/followers","following_url":"https://api.github.com/users/nielsvd/following{/other_user}","gists_url":"https://api.github.com/users/nielsvd/gists{/gist_id}","starred_url":"https://api.github.com/users/nielsvd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nielsvd/subscriptions","organizations_url":"https://api.github.com/users/nielsvd/orgs","repos_url":"https://api.github.com/users/nielsvd/repos","events_url":"https://api.github.com/users/nielsvd/events{/privacy}","received_events_url":"https://api.github.com/users/nielsvd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/izuzak/atom-pdf-view/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-20T12:23:26Z","updated_at":"2015-08-26T07:54:05Z","closed_at":null,"body":"[If PDF doesn't exist, pdf-view crashes]\r\n1. Open pdf-file with pdf-view\r\n2. Remove pdf-file from disk\r\n\r\nUse case: pdf-file is removed by latex-package when a \"clean\"-command is given. Simply showing text with \"Cannot find PDF\" instead of crashing would be great.\r\n\r\n**Atom Version**: 1.0.7\r\n**System**: linux 4.1.5-1-ARCH\r\n**Thrown From**: [pdf-view](https://github.com/izuzak/atom-pdf-view) package, v0.23.0\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught Error: ENOENT: no such file or directory, open '/home/***/root.pdf'\r\n\r\n```\r\nAt fs.js:519\r\n\r\nError: ENOENT: no such file or directory, open '/home/niels/***/root.pdf'\r\n  at Error (native)\r\n  at Object.fs.openSync (fs.js:544:18)\r\n  at Object.module.(anonymous function) [as openSync] (ATOM_SHELL_ASAR.js:118:20)\r\n  at Object.fs.readFileSync (fs.js:396:15)\r\n  at Object.fs.readFileSync (ATOM_SHELL_ASAR.js:369:29)\r\n  at PdfEditorView.module.exports.PdfEditorView.updatePdf (/home/niels/.atom/packages/pdf-view/lib/pdf-editor-view.coffee:110:33)\r\n  at /home/niels/.atom/packages/pdf-view/lib/pdf-editor-view.coffee:44:12\r\n  at later (/usr/share/atom/resources/app.asar/node_modules/underscore-plus/node_modules/underscore/underscore.js:724:25)\r\n\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n  4x -4:59.3.0 latex:build (div.pdf-view)\r\n     -3:16.8.0 settings-view:check-for-package-updates (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)\r\n  6x -2:51 latex:build (atom-text-editor.editor.is-focused)\r\n     -0:18.3.0 editor:newline (atom-text-editor.editor.is-focused)\r\n     -0:13.2.0 core:save (atom-text-editor.editor.is-focused)\r\n  2x -0:12.5.0 latex:build (atom-text-editor.editor.is-focused)\r\n     -0:00.7.0 latex:clean (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}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\nlanguage-cmake, v0.1.4\r\nlanguage-latex, v0.6.1\r\nlatex, v0.25.0\r\nlatexer, v0.2.4\r\nminimap, v4.13.1\r\npdf-view, v0.23.0\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/izuzak/atom-pdf-view/issues/comments/134887857","html_url":"https://github.com/izuzak/atom-pdf-view/issues/70#issuecomment-134887857","issue_url":"https://api.github.com/repos/izuzak/atom-pdf-view/issues/70","id":134887857,"user":{"login":"nielsvd","id":11959015,"avatar_url":"https://avatars.githubusercontent.com/u/11959015?v=3","gravatar_id":"","url":"https://api.github.com/users/nielsvd","html_url":"https://github.com/nielsvd","followers_url":"https://api.github.com/users/nielsvd/followers","following_url":"https://api.github.com/users/nielsvd/following{/other_user}","gists_url":"https://api.github.com/users/nielsvd/gists{/gist_id}","starred_url":"https://api.github.com/users/nielsvd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nielsvd/subscriptions","organizations_url":"https://api.github.com/users/nielsvd/orgs","repos_url":"https://api.github.com/users/nielsvd/repos","events_url":"https://api.github.com/users/nielsvd/events{/privacy}","received_events_url":"https://api.github.com/users/nielsvd/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T07:54:05Z","updated_at":"2015-08-26T07:54:05Z","body":"The problem appeared again, unfortunately it seems to be nontrivial to reproduce. I will reply to this issue if I find I reliable way of reproduction..\r\n\r\nStack-trace:\r\n```\r\nfs.js:519\r\nHide Stack Trace\r\nError: ENOENT: no such file or directory, open '/home/.../description.pdf'\r\n  at Error (native)\r\n  at Object.fs.openSync (fs.js:544:18)\r\n  at Object.module.(anonymous function) [as openSync] (ATOM_SHELL_ASAR.js:118:20)\r\n  at Object.fs.readFileSync (fs.js:396:15)\r\n  at Object.fs.readFileSync (ATOM_SHELL_ASAR.js:369:29)\r\n  at PdfEditorView.module.exports.PdfEditorView.updatePdf (/home/niels/.atom/packages/pdf-view/lib/pdf-editor-view.coffee:110:33)\r\n  at /home/niels/.atom/packages/pdf-view/lib/pdf-editor-view.coffee:44:12\r\n  at later (/usr/share/atom/resources/app.asar/node_modules/underscore-plus/node_modules/underscore/underscore.js:724:25)\r\n```"}}