TylerLeonhardt / vscode-pester-test-adapter

MIT License
33 stars 13 forks source link

VSCode can't load this extension. #43

Open paule96 opened 3 years ago

paule96 commented 3 years ago

It seems to be that this extension has trouble to get loaded correctly.

[2021-05-01 20:47:15.073] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/Paul-/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/github-authentication/dist/extension.js
[2021-05-01 20:47:15.083] [exthost] [error] Activating extension TylerLeonhardt.vscode-pester-test-adapter failed due to an error:
[2021-05-01 20:47:15.083] [exthost] [error] TypeError: Cannot read property 'registerExternalExtension' of undefined
    at PowerShellExtensionClient.RegisterExtension (c:\Users\Paul-\.vscode\extensions\tylerleonhardt.vscode-pester-test-adapter-0.0.23\out\powershellExtension.js:25:65)
    at new PesterTestRunner (c:\Users\Paul-\.vscode\extensions\tylerleonhardt.vscode-pester-test-adapter-0.0.23\out\pesterTests.js:26:40)
    at new PesterAdapter (c:\Users\Paul-\.vscode\extensions\tylerleonhardt.vscode-pester-test-adapter-0.0.23\out\adapter.js:20:33)
    at TestAdapterRegistrar.adapterFactory (c:\Users\Paul-\.vscode\extensions\tylerleonhardt.vscode-pester-test-adapter-0.0.23\out\main.js:45:120)
    at TestAdapterRegistrar.add (c:\Users\Paul-\.vscode\extensions\tylerleonhardt.vscode-pester-test-adapter-0.0.23\node_modules\vscode-test-adapter-util\out\registrar.js:44:30)
    at new TestAdapterRegistrar (c:\Users\Paul-\.vscode\extensions\tylerleonhardt.vscode-pester-test-adapter-0.0.23\node_modules\vscode-test-adapter-util\out\registrar.js:19:22)
    at c:\Users\Paul-\.vscode\extensions\tylerleonhardt.vscode-pester-test-adapter-0.0.23\out\main.js:45:40
    at Generator.next (<anonymous>)
    at c:\Users\Paul-\.vscode\extensions\tylerleonhardt.vscode-pester-test-adapter-0.0.23\node_modules\tslib\tslib.js:117:75
    at new Promise (<anonymous>)
    at Object.__awaiter (c:\Users\Paul-\.vscode\extensions\tylerleonhardt.vscode-pester-test-adapter-0.0.23\node_modules\tslib\tslib.js:113:16)
    at activate (c:\Users\Paul-\.vscode\extensions\tylerleonhardt.vscode-pester-test-adapter-0.0.23\out\main.js:10:20)
    at Function._callActivateOptional (c:\Users\Paul-\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:91:14382)
    at Function._callActivate (c:\Users\Paul-\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:91:14051)
    at c:\Users\Paul-\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:91:12203
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Promise.all (index 0)
    at async Promise.all (index 128)
    at async Promise.all (index 1)

This is the error I see in the vscode Log (Extension Host)

TylerLeonhardt commented 3 years ago

@paule96 do you have the PowerShell or PowerShell Preview extension also installed? That is a requirement.

paule96 commented 3 years ago

thank's for the hint. It happends if both extensions (PowerShell and PowerShell Preview) are installed and activated. After disabling the non preview version it works fine. Maybe we can implement a simpler error message for that case?

TylerLeonhardt commented 3 years ago

Ah. I could do that. Although the PowerShell extension should already send you a notification saying "hey you need to disable one!".

Do you see that notification? I'd rather not clutter notifications if I can.