BoostIO / BoostNote-Legacy

This repository is outdated and new Boost Note app is available! We've launched a new Boost Note app which supports real-time collaborative writing. https://github.com/BoostIO/BoostNote-App
Other
17.06k stars 1.47k forks source link

specific SQL snippet causes failure to load storage #677

Closed incredibleweirdo closed 7 years ago

incredibleweirdo commented 7 years ago

I'm using the most recent version, on Windows 7.

After adding the SQL found at the bottom of this article on sqlservercentral to a snippet, on restart of Boostnote the storage fails to load. Loading developer tools shows errors in the console

121431d0284c159a2d9a545b3.cson
(anonymous function) @ main.js:formatted:12143

and...

undefined:1 Uncaught (in promise) SyntaxError: regular expressions cannot begin with *

When attempting to re-add the storage, the errors are repeated with some more detail:

1d0284c159a2d9a545b3.cson
(anonymous function) @ main.js:13
o @ main.js:13
(anonymous function) @ main.js:79

Uncaught (in promise) SyntaxError: regular expressions cannot begin with * C:\Users\anthony.cary\AppData\Local\boost\app-0.8.11\resources\app\node_modules\cson-parser\node_mo…:188 
exports.throwSyntaxError @ C:\Users\anthony.cary\AppData\Local\boost\app-0.8.11\resources\app\node_modules\cson-parser\node_mo…:188
exports.Lexer.Lexer.error @ C:\Users\anthony.cary\AppData\Local\boost\app-0.8.11\resources\app\node_modules\cson-parser\node_mo…:997
exports.Lexer.Lexer.regexToken @ C:\Users\anthony.cary\AppData\Local\boost\app-0.8.11\resources\app\node_modules\cson-parser\node_mo…:359
exports.Lexer.Lexer.tokenize @ C:\Users\anthony.cary\AppData\Local\boost\app-0.8.11\resources\app\node_modules\cson-parser\node_mo…:37
(anonymous function) @ C:\Users\anthony.cary\AppData\Local\boost\app-0.8.11\resources\app\node_modules\cson-parser\node_mo…:153
(anonymous function) @ C:\Users\anthony.cary\AppData\Local\boost\app-0.8.11\resources\app\node_modules\cson-parser\node_mo…:48
parse @ C:\Users\anthony.cary\AppData\Local\boost\app-0.8.11\resources\app\node_modules\cson-parser\lib\par…:227
parseObject @ C:\Users\anthony.cary\AppData\Local\boost\app-0.8.11\resources\app\node_modules\@rokt33r\season\lib…:42
parseContentsSync @ C:\Users\anthony.cary\AppData\Local\boost\app-0.8.11\resources\app\node_modules\@rokt33r\season\lib…:68
readFileSync @ C:\Users\anthony.cary\AppData\Local\boost\app-0.8.11\resources\app\node_modules\@rokt33r\season\lib…:170
(anonymous function) @ main.js:13
o @ main.js:13
(anonymous function) @ main.js:79
asmsuechan commented 7 years ago

Hi, @incredibleweirdo. Thank you for your report. To avoid this error happen, you should move or remove 121431d0284c159a2d9a545b3.cson from your storage directly.

incredibleweirdo commented 7 years ago

Yes, I have done that. Thanks.

Perhaps of note, it may be helpful if the storage failed to add entirely when this occurs (vs seeming to fail and not loading). After removing the file and restarting Boostnote, the storage loaded for each time that I had clicked to attempt to re-add it. Thus I had 10 copies of the same storage loaded within Boostnote on start.

asmsuechan commented 7 years ago

Duplicated https://github.com/BoostIO/Boostnote/issues/691.