JGCarroll / joplin-desktop-snap

MIT License
19 stars 1 forks source link

Error when trying to export to PDF (Linux snap, v 2.7.14) #18

Open MWH-Rookie opened 2 years ago

MWH-Rookie commented 2 years ago

Hi

When I try to export a notebook to PDF (after fresh snap install of joplin desktop and just taking my first notes), I first get a file browser window, which lets me choose a destination of the PDF and afterwards I get an error message. This message states: "Error: ENOENT: no such file or directory, stat '/home/myname/snap/joplin-desktop/27/.config/joplin-desktop/tmp/VERYLONGALPHANUMERICFILENAME.html" Well, and that's it.

Environment

Joplin version: 2.7.14 Platform: Linux OS specifics: Ubuntu 20.04

Steps to reproduce

see above

Describe what you expected to happen

I expected a PDF to be created.

I have issued this bug first at https://github.com/laurent22/joplin/issues/6372 and was directed here.

JGCarroll commented 2 years ago

Thanks for the information, I'll try schedule some time later to take a look at this on my end.

In the meantime, can you please try activate the Joplin debugging tools and send over the log files it produces? https://joplinapp.org/debugging/

It's interesting to me that the error message specifies ".html", rather than ".pdf". I wouldn't expect there to be an HTML file there either if you're using a PDF export. It might be that a .pdf is actually being generated properly but not opened because of the incorrect filename. If you open /home/myname/snap/joplin-desktop/27/.config/joplin-desktop/tmp/ after attemting to export the PDF, is the export actually in there at all?

JGCarroll commented 2 years ago

Hello again,

I'm struggling to reproduce this on my end on a fresh set-up. I've tried entering a myraid of perculiar filenames incase that has anything to do with it, although it doesn't appear to make much of a difference.

Unfortunately, it looks like I'd definitely need the logs in order to have a good chance of working out what might be going on in this instance.