Skip to content

Parsing of an existing storage fails in own compiled app #158

@tejado

Description

@tejado

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").

parse.js:205 Uncaught (in promise) SyntaxError: Syntax error on line 1, column 7: Unexpected StringLiteral
  at transformNode (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:205:13)
  at Value (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:87:14)
  at transformNode (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:207:12)
  at /Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:124:17
  at Array.reduce (native)
  at Obj (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:117:30)
  at transformNode (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:207:12)
  at Value (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:87:14)
  at transformNode (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:207:12)
  at Block (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:84:14)
  at transformNode (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:207:12)
  at Object.parse (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:213:12)
  at parseObject (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/lib/cson.js:42:23)
  at parseContentsSync (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/lib/cson.js:68:16)
  at Object.readFileSync (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/lib/cson.js:170:14)
  at parseCSONFile (<anonymous>:26:23)
  at Array.map (native)
  at resolveStorageNotes (<anonymous>:24:6)
  at eval (<anonymous>:59:12)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Issue concerns a bug.needs more info ℹ️Issue requires more information from the issue's reporter.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions