-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: parse error #101
Comments
When you use --verbose flag, all parsing errors are printed right after "file parsed with errors" warning. This is your parse error on line 571373, column 95 in Personal.enex:
|
@vzhd1701 Thanks also from my side for enex2notion! Thanks for the explanation - I'm getting the same error, and looking at the location in my ENEX file, it's in the middle of a Is there a way to increase the maximum allowed node size, or some other workaround for this? I tried using |
- Enabled the "huge_tree" option in the XML parser to prevent the "xmlSAX2Characters: huge text node" error. - Fixed a "list index out of range" error that happened on some notes with title but no content. Fixes vzhd1701#101.
I've just submitted PR #102 to fix this bug and another one I found, where some notes that had just a title and no content were failing. |
* Fix parse errors for huge and empty nodes - Enabled the "huge_tree" option in the XML parser to prevent the "xmlSAX2Characters: huge text node" error. - Fixed a "list index out of range" error that happened on some notes with title but no content. Fixes #101. * refactor: make empty dom check explicit * test: add big resource note test * test: add empty note dom test --------- Co-authored-by: vzhd1701 <[email protected]>
This should be fixed in the new version. Thanks again, @zzamboni! Homebrew version will be updated in a few hours. |
enex2notion version
0.3.0
What OS are you using?
MacOS
OS Version / Linux distribution
MacOS 14.0
Bug description
In general enex2notion works terrifically well, thank you.
In some Evernote notebooks I get a parse error at the beginning of the process. Even in verbose mode there is no information beyond that.
In each case a bunch of notes get correctly imported, but way less than the source .enex file contains. Is there any more information on what the parsing problem was? I can't work out how to rectify a hidden issue.
In the log info provided below for "Personal" the original file contains 4569 notes, NOT the 284 that enex2notion thinks.
Log excerpt
The text was updated successfully, but these errors were encountered: