Skip to content

启动插件报错 #666

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

Closed
Igezo7 opened this issue Jan 11, 2021 · 3 comments
Closed

启动插件报错 #666

Igezo7 opened this issue Jan 11, 2021 · 3 comments

Comments

@Igezo7
Copy link

Igezo7 commented Jan 11, 2021

启动插件的时候报如下错误

v12.13.0
undefined:1
{"solution.discuss":true,"company":true,"cache":true,"retry":true,"leetcode.cn":true,"leetcode":true}}
^

SyntaxError: Unexpected token } in JSON at position 101
at JSON.parse ()
at Object.cache.get (c:\Users\admin.Nuser.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\vsc-leetcode-cli\lib\cache.js:16:15)
at Function.Plugin.init (c:\Users\admin.Nuser.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\vsc-leetcode-cli\lib\plugin.js:86:23)
at initPlugins (c:\Users\admin.Nuser.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\vsc-leetcode-cli\lib\cli.js:62:14)
at Object.cli.run (c:\Users\admin.Nuser.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\vsc-leetcode-cli\lib\cli.js:100:3)
at Object. (c:\Users\admin.Nuser.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\vsc-leetcode-cli\bin\leetcode:3:23)
at Module._compile (internal/modules/cjs/loader.js:956:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
undefined:1
{"solution.discuss":true,"company":true,"cache":true,"retry":true,"leetcode.cn":true,"leetcode":true}}
^

SyntaxError: Unexpected token } in JSON at position 101
at JSON.parse ()
at Object.cache.get (c:\Users\admin.Nuser.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\vsc-leetcode-cli\lib\cache.js:16:15)
at Function.Plugin.init (c:\Users\admin.Nuser.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\vsc-leetcode-cli\lib\plugin.js:86:23)
at initPlugins (c:\Users\admin.Nuser.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\vsc-leetcode-cli\lib\cli.js:62:14)
at Object.cli.run (c:\Users\admin.Nuser.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\vsc-leetcode-cli\lib\cli.js:100:3)
at Object. (c:\Users\admin.Nuser.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\vsc-leetcode-cli\bin\leetcode:3:23)
at Module._compile (internal/modules/cjs/loader.js:956:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
Error: Command "node "c:\Users\admin.Nuser.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\vsc-leetcode-cli\bin\leetcode",plugin,-i,company" failed with exit code "1".

@yihong0618
Copy link
Contributor

rm -rf ~/.lc

@Igezo7
Copy link
Author

Igezo7 commented Jan 11, 2021

rm -rf ~/.lc

感谢,刚顺着js代码找到了,应该是缓存问题

@yihong0618
Copy link
Contributor

rm -rf ~/.lc

感谢,刚顺着js代码找到了,应该是缓存问题

客气。

@jdneo jdneo closed this as completed Jun 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants