Thavarajan / vscode-ionic2-Extension

A simple extension for vscode to use the ionic2
6 stars 1 forks source link

command 'i2.Serve' not found #2

Closed SebastianVomMeer closed 7 years ago

SebastianVomMeer commented 7 years ago

I just updated to version 2.3.0 and now all commands just pop up an error message like

command 'i2.Serve' not found

or

command 'i2.Generate' not found

depending on which command I try to invoke.

I use Visual Studio Code 1.6.1 on Linux Mint 18 and would like to add information if someone tells me what can be helpful. The previous version (probably 2.2.5) worked just fine.

This is by far the best Ionic 2 extension I could find so I hope it can be fixed. Thanks for all your effort!

Thavarajan commented 7 years ago

Might be this will be the issue, but i am not sure, i think there is some problem in writing the ionichelp dat file in the temprorty directory, please provide a data path for the ionichelpfile dat in the settings, please make sure that the path has write permision too please inform if it fix your issue

if you still have some proble, under help menu select the toggle developer tools if you found any bug in console plase submit it here

SebastianVomMeer commented 7 years ago

I set the path to a tmp directory in my home folder, so permissions shouldn't be a problem:

"IonicHelpDataPath": "/home/user/tmp"

Unfortunately this doesn't change anything.

But thanks to the developer tools I found better error messages. When I start VSCode it logs:

[Extension Host] Activating extension `Thavarajan.ionic2` failed:  Cannot find module './Commands/Ion-platformbase'

[Extension Host] Here is the error stack:  Error: Cannot find module './Commands/Ion-platformbase'
    at Function.Module._resolveFilename (module.js:455:15)
    at Function.Module._load (module.js:403:25)
    at Function.N.n._load (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:13:19970)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/sg/.vscode/extensions/Thavarajan.ionic2-2.3.0/out/src/Ionic_Command.js:6:26)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)

Hope this helps.

Thavarajan commented 7 years ago

hi @SebastianVomMeer first of all sorry for the inconvenience, Thanks for your input, seems this is some kind of module loader problem, the extension is working perfectly in windows 10 i submit an issue regarding this in vscode #14915 hope, soon i will update the solution

Thavarajan commented 7 years ago

hi @SebastianVomMeer , Extension updated, if the bug is resolved please close this issue, since i don't have linux ENV, i am not able to check it

SebastianVomMeer commented 7 years ago

Latest version works fine again. Thank you so much! :+1: