Closed nielsvd closed 8 years ago
Thanks for the report, @nielsvd. I wasn't able to reproduce this on OSX -- here's what I did:
rm
The pdf file was still open in Atom and no exceptions were reported. Did I understand correctly that these steps trigger the exception for you? It's possible that there are some OS-level differences here (you're on linux), so would be great to confirm exact steps which reproduce this for you.
Hi @izuzak,
I don't seem to be able to reproduce the problem at the moment either, i.e. I try remove via terminal (rm) and using the latex-plugin like yesterday. I will notify you when I stumble upon the problem again.
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.
It ocurred after cleaning the folder with the atom-latex package (again).
Stack-trace:
fs.js:519
Hide Stack Trace
Error: ENOENT: no such file or directory, open '/home/.../description.pdf'
at Error (native)
at Object.fs.openSync (fs.js:544:18)
at Object.module.(anonymous function) [as openSync] (ATOM_SHELL_ASAR.js:118:20)
at Object.fs.readFileSync (fs.js:396:15)
at Object.fs.readFileSync (ATOM_SHELL_ASAR.js:369:29)
at PdfEditorView.module.exports.PdfEditorView.updatePdf (/home/niels/.atom/packages/pdf-view/lib/pdf-editor-view.coffee:110:33)
at /home/niels/.atom/packages/pdf-view/lib/pdf-editor-view.coffee:44:12
at later (/usr/share/atom/resources/app.asar/node_modules/underscore-plus/node_modules/underscore/underscore.js:724:25)
Thanks for reopening. Yeah, I guess this is a real problem, but don't have the time to investigate right now. If someone wants to make a pull request -- I'd be happy to review+merge.
[If PDF doesn't exist, pdf-view crashes]
Use 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.
Atom Version: 1.0.7 System: linux 4.1.5-1-ARCH Thrown From: pdf-view package, v0.23.0
Stack Trace
Uncaught Error: ENOENT: no such file or directory, open '/home/***/root.pdf'
Commands
Config
Installed Packages