Skip to content

Extension initialization failed. #283

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
haomingvince opened this issue Apr 21, 2019 · 7 comments
Closed

Extension initialization failed. #283

haomingvince opened this issue Apr 21, 2019 · 7 comments

Comments

@haomingvince
Copy link

🐛 Bug Report

Cannot initialize the extension.

To Reproduce

The error message shows when i try to startup the extension.

Extension Output

v11.14.0
undefined:1

SyntaxError: Unexpected token
undefined:1

SyntaxError: Unexpected token
Error: Command "node "C:\Users[username].vscode\extensions\shengchen.vscode-leetcode-0.13.3\node_modules\vsc-leetcode-cli\bin\leetcode",plugin,-i,company" failed with exit code "1".

Your Environment

  • os: Windows 10
  • extension settings:
  • nodejs version: 11.14.0
  • vscode version: 1.33.1
  • extension version: 0.13.3
@jdneo
Copy link
Member

jdneo commented Apr 22, 2019

@haomingvince Could you please try to remove the folder $HOME/.lc and to see if the problem still occur?

@jdneo jdneo added the need more info Further information is requested label Apr 22, 2019
@haomingvince
Copy link
Author

It worked! Thank you!

@no-response no-response bot removed the need more info Further information is requested label Apr 22, 2019
@gittestjp
Copy link

I got exactly same problem, and there is no $HOME/.1c in my system.
How to fix it?

@gittestjp
Copy link

Here is log:
v0.12.5
c:\Users\user.vscode\extensions\shengchen.vscode-leetcode-0.15.2\node_modules\vsc-leetcode-cli\lib\cli.js:30
let level = 'INFO';
^^^
SyntaxError: Unexpected strict mode reserved word
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (c:\Users\user.vscode\extensions\shengchen.vscode-leetcode-0.15.2\node_modules\vsc-leetcode-cli\bin\leetcode:3:1)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
c:\Users\user.vscode\extensions\shengchen.vscode-leetcode-0.15.2\node_modules\vsc-leetcode-cli\lib\cli.js:30
let level = 'INFO';
^^^
SyntaxError: Unexpected strict mode reserved word
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (c:\Users\user.vscode\extensions\shengchen.vscode-leetcode-0.15.2\node_modules\vsc-leetcode-cli\bin\leetcode:3:1)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
Error: Command "node "c:\Users\user.vscode\extensions\shengchen.vscode-leetcode-0.15.2\node_modules\vsc-leetcode-cli\bin\leetcode",plugin,-i,company" failed with exit code "1".

@jdneo
Copy link
Member

jdneo commented Aug 16, 2019

@gittestjp I think your node version is wrong. Is that 0.12.5?

@gittestjp
Copy link

Here is from Windows cmd console:

node -v
v0.12.5

Is this version too old? I will upgrade to latest version and try it.
Thanks

@gittestjp
Copy link

It seems working well now. Thanks, If it can detect version of Node.js and pop out more meaningful message, it will be more user friendly.

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