wormi4ok / evernote2md

Convert Evernote .enex files to Markdown
MIT License
941 stars 80 forks source link

Only EOF reported - no files produced #45

Closed sedlund closed 3 years ago

sedlund commented 3 years ago
**Problem statement** Moved all my notes into Inbox and exported everything yesterday (2021-03-17) into Inbox.enex `` Inbox.enex is 257MB Tried v0.15.0 on Windows and Linux Output is: ``` ./evernote2md -v Inbox.enex 2021/03/17 15:02:43 [DEBUG] Decoding a file: /home/user/Downloads/Inbox.enex 2021/03/17 15:02:49 EOF ``` No files are produced in notes. Tried creating a ./notes and specifying - same result. **Example file**
wormi4ok commented 3 years ago

Hey @sedlund,

Based on the output, it seems that evernote2md fails to decode the file - it doesn't even start converting. I've just released a new version with additional debug logs - v0.16.0. Could you please try to run again using this version with -v flag?

I hope that it will show which note exactly causes the parsing error. You can then export just this note and examine it or upload it here.

We need to narrow down the problem; going over 257MB is not an option :)

sedlund commented 3 years ago

Thanks that was helpful.

Inspecting the note that it stopped on showed that the content of the note was malformed in the export:

    <content>
      <![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?>
      ]]>
    </content>

Content missing!

wormi4ok commented 3 years ago

This is much better. I've written a test case for this kind of input and will try to find an elegant solution. Thank you 🙌🏻