Closed tejado closed 5 years ago
+1 It happens when the file is trying to be parsed. The error originates in cson.js
in the parseObject
function at parsed = CSON.parse(content)
. I've been trying to figure this all day! It seems like there may be an odd character in the .cson
file.
:D it seems we are struggling about the same issues! In my opinion it has nothing to do with the cson file. It is more about the parser.js in the @rokt33r/season module. In this file, a object named nodeTransforms is initiated, including a method for the type "Literal". But it will be called with "StringLiteral" which does not exist (-> an exception is thrown in transformNode). So you can add it yourself by copying the "Literal" stuff to "StringLiteral". Then the error dissapears and you get a new one with BooleanLiteral (I guess due to isStarred in the cson file). I'm wondering why this is the case...
By the way: this issue doesn't happen with the official app but same note files!
Here is my debugging result (added some console.log stuff to understand it better and the highlighted StringLiteral function): https://gist.github.com/tejado/5d847ae74036f1a301fc3bb5a84b3e99#file-parser-js-L95-L112
I added one in for BooleanLiteral
too
And it's working? I'm curious if this is really an issue with this parser.js.
It works for me now, I can add existing folders
@tejado Are you still experiencing this issue?
Sorry, I'm not really using Boostnote at the moment so I can't verify this. Feel free to close it.
If I compile/run Boostnote myself, I getting following error in the dev console during start or if I want to add an existing storage. From my perspective, it seems that season parser.js is missing functions for StringLiteral (and furthers) or that somehow the parser type naming changed to more specified ones ("Literal" to "StringLiteral").