Skip to content
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

Extension is installed and it doesn't load #45

Closed
fgauna12 opened this issue Mar 20, 2018 · 8 comments
Closed

Extension is installed and it doesn't load #45

fgauna12 opened this issue Mar 20, 2018 · 8 comments

Comments

@fgauna12
Copy link

fgauna12 commented Mar 20, 2018

I'm using version 0.4.0
Windows 10 x64
VS Code Version: 1.21.1 x64

I used to be able to rename my arm template parameters with F2.
Now F2 doesn't work.

I can't also jump to definition.
I don't have intellisense either.

I don't know how to troubleshoot why my extension is not loading and why.
Best I can find on the Output console is this

[2018-03-20 09:50:40.409] [exthost1] [info] ExtensionService#_doActivateExtension msazurermtools.azurerm-vscode-tools {"startup":false,"activationEvent":"onLanguage:json"}

Update: I toggled developer tools and found the following console error:

console.ts:136 [Extension Host] Activating extension `msazurermtools.azurerm-vscode-tools` failed:  Cannot find module 'open'

[Extension Host] Here is the error stack:  Error: Cannot find module 'open'
	at Function.Module._resolveFilename (module.js:470:15)
	at Function.Module._load (module.js:418:25)
	at Function.o._load (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:671:784)
	at Module.require (module.js:498:17)
	at Module.patchedRequire [as require] (c:\Program Files\Microsoft VS Code\resources\app\extensions\git\node_modules\diagnostic-channel\dist\src\patchRequire.js:14:46)
	at require (internal/module.js:20:19)
	at Object.<anonymous> (C:\Users\FacundoGauna\.vscode\extensions\msazurermtools.azurerm-vscode-tools-0.4.0\out\src\AzureRMTools.js:12:14)
	at Object.<anonymous> (C:\Users\FacundoGauna\.vscode\extensions\msazurermtools.azurerm-vscode-tools-0.4.0\out\src\AzureRMTools.js:602:3)
	at Module._compile (module.js:571:32)
	at Object.Module._extensions..js (module.js:580:10)
@StephenWeatherford
Copy link
Contributor

@fgauna12 Have you uninstalled/reinstalled? If yes, what OS are you on and what version of VSCode (insiders?).

@fgauna12
Copy link
Author

fgauna12 commented Mar 20, 2018

I have tried uninstalling it and reinstalling it.
I am on Windows 10 x64
VS Code Version: 1.21.1

@StephenWeatherford
Copy link
Contributor

Is VSCode 32-bit or 64-bit?

@fgauna12
Copy link
Author

64 bit

@StephenWeatherford
Copy link
Contributor

I can't repro it. @EricJizbaMSFT have you seen anything like this? I know we had this issue on Linux, but not on Windows.

@ejizba
Copy link
Member

ejizba commented Mar 22, 2018

Yeah I've seen occasional failures like this. I don't know the cause, but my only other suggestion is the following:

  1. Make sure the extension is installed
  2. Navigate to VS Code's extensions folder (Probably something like this: C:\Users\<user name>\.vscode\extensions\)
  3. Delete the specific extension's folder (Probably named msazurermtools.azurerm-vscode-tools-0.4.0)
  4. Re-install the extension

@fgauna12
Copy link
Author

Thanks! That worked!
To be more specific: I deleted the folder, also restarted VS Code, then installed the extension, then restarted VS Code.

@StephenWeatherford
Copy link
Contributor

Good to know how to fix, thanks @fgauna12 and @EricJizbaMSFT

@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants