-
Notifications
You must be signed in to change notification settings - Fork 510
Preview extension not loading #1721
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
Comments
Have you disabled the non-preview version of the PowerShell extension? Sorry, looks like you disable the non-preview extension. Reloading VSCode doesn't help? |
Yes. Even tried uninstalling it as well.
…On Wed, Jan 23, 2019, 10:41 PM Keith Hill ***@***.*** wrote:
Have you disabled the non-preview version of the PowerShell extension?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1721 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHOSOilr1es-RDNkBu2s5-xM9O8Vpw5Xks5vGSt6gaJpZM4aQE95>
.
|
Odd... Random question... Did you open a folder with vscode or just a blank instance? |
Blank instance
Sent from mobile
…On Wed, Jan 23, 2019, 11:51 PM Tyler James Leonhardt < ***@***.*** wrote:
Odd... Random question... Did you open a folder with vscode or just a
blank instance?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1721 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHOSOiRg_UfmjZjRbGWxQDRk9az9uWYBks5vGTvagaJpZM4aQE95>
.
|
Having the same problem (on both my home and work machines), and it only seems to happen if I'm not working within a folder (workspace?) in VS Code. |
Same thing for me when in an untitled workspace. It's almost like the activation event doesn't get sent, but the extension host log does indeed show it.
|
So strange... I wonder if this has something to do with the extension name being "PowerShell Preview" I'll run some tests. |
I can repro this with a CI build that isn't marked "Preview" as well. |
Another confirmation. Opening a new file, doesn't trigger loading of the preview extension. If I load a folder, and then open a .ps1 file, preview extension is loaded as expected. |
Interesting note; it works fine on my work PC.
|
Same here. |
I've figured this out and have a fix for it. Will submit a PR soon. |
PR here ^ for those interested in testing it out. You can grab a CI build here: https://ci.appveyor.com/project/PowerShell/vscode-powershell/builds/21895485/artifacts Let me know if that fixes it for you 😄 |
The CI build is working for me. |
Yeah that was intentional. Ignore that. |
I imagine this is related, so I'll post it here: When building master, I was getting the message "Activating extension 'ms-vscode.PowerShell' failed: Cannot read property 'toLowerCase' of undefined." pop up. When I loaded a workspace then it loaded without problem. Based on this line: https://github.com/PowerShell/vscode-powershell/pull/1728/files#diff-8cfead41d88ad47d44509a8ab0a109adR163 I'll leave this here as related. If it's not related let me know and I'll open a new issue. |
Hmm, if this is indeed the spot where this error originates then it seems that for some reason |
In local testing I confirmed that I suppose we can have a default if it IS null... Or I might just do this work: microsoft/vscode#66515 (comment) |
I updated #1728 to have a default of |
System Details
Issue Description
I am experiencing a problem with getting the preview extension to load, after disabling the release extension
Expected Behaviour
Extension should load; be able to open the Integrated Console, access PowerShell options from the command pallet; etc.
Actual Behaviour
command 'PowerShell.OpenLogFolder' not found
command 'PowerShell.ShowSessionConsole' not found
command 'PowerShell.RestartSession' not found
Attached Logs
Logs never generate. 👎
The text was updated successfully, but these errors were encountered: