{"action":"created","issue":{"url":"https://api.github.com/repos/BoostIO/Boostnote/issues/158","repository_url":"https://api.github.com/repos/BoostIO/Boostnote","labels_url":"https://api.github.com/repos/BoostIO/Boostnote/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/BoostIO/Boostnote/issues/158/comments","events_url":"https://api.github.com/repos/BoostIO/Boostnote/issues/158/events","html_url":"https://github.com/BoostIO/Boostnote/issues/158","id":184229174,"number":158,"title":"Can't add existing storage in own-built app","user":{"login":"tejado","id":3774136,"avatar_url":"https://avatars.githubusercontent.com/u/3774136?v=3","gravatar_id":"","url":"https://api.github.com/users/tejado","html_url":"https://github.com/tejado","followers_url":"https://api.github.com/users/tejado/followers","following_url":"https://api.github.com/users/tejado/following{/other_user}","gists_url":"https://api.github.com/users/tejado/gists{/gist_id}","starred_url":"https://api.github.com/users/tejado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tejado/subscriptions","organizations_url":"https://api.github.com/users/tejado/orgs","repos_url":"https://api.github.com/users/tejado/repos","events_url":"https://api.github.com/users/tejado/events{/privacy}","received_events_url":"https://api.github.com/users/tejado/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-20T13:26:44Z","updated_at":"2016-10-20T13:52:28Z","closed_at":null,"body":"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.\r\nFrom 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\").\r\n\r\n```\r\nparse.js:205 Uncaught (in promise) SyntaxError: Syntax error on line 1, column 7: Unexpected StringLiteral\r\n  at transformNode (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:205:13)\r\n  at Value (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:87:14)\r\n  at transformNode (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:207:12)\r\n  at /Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:124:17\r\n  at Array.reduce (native)\r\n  at Obj (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:117:30)\r\n  at transformNode (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:207:12)\r\n  at Value (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:87:14)\r\n  at transformNode (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:207:12)\r\n  at Block (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:84:14)\r\n  at transformNode (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:207:12)\r\n  at Object.parse (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/node_modules/cson-parser/lib/parse.js:213:12)\r\n  at parseObject (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/lib/cson.js:42:23)\r\n  at parseContentsSync (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/lib/cson.js:68:16)\r\n  at Object.readFileSync (/Users/tejado/somedir/Boostnote/node_modules/@rokt33r/season/lib/cson.js:170:14)\r\n  at parseCSONFile (<anonymous>:26:23)\r\n  at Array.map (native)\r\n  at resolveStorageNotes (<anonymous>:24:6)\r\n  at eval (<anonymous>:59:12)\r\n```"},"comment":{"url":"https://api.github.com/repos/BoostIO/Boostnote/issues/comments/255111834","html_url":"https://github.com/BoostIO/Boostnote/issues/158#issuecomment-255111834","issue_url":"https://api.github.com/repos/BoostIO/Boostnote/issues/158","id":255111834,"user":{"login":"tejado","id":3774136,"avatar_url":"https://avatars.githubusercontent.com/u/3774136?v=3","gravatar_id":"","url":"https://api.github.com/users/tejado","html_url":"https://github.com/tejado","followers_url":"https://api.github.com/users/tejado/followers","following_url":"https://api.github.com/users/tejado/following{/other_user}","gists_url":"https://api.github.com/users/tejado/gists{/gist_id}","starred_url":"https://api.github.com/users/tejado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tejado/subscriptions","organizations_url":"https://api.github.com/users/tejado/orgs","repos_url":"https://api.github.com/users/tejado/repos","events_url":"https://api.github.com/users/tejado/events{/privacy}","received_events_url":"https://api.github.com/users/tejado/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T13:52:28Z","updated_at":"2016-10-20T13:52:28Z","body":":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... "}}
{"actor":{"display_login":"tejado"}}