-
Notifications
You must be signed in to change notification settings - Fork 511
PowerShell integrated Console - version no. #599
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
It's very likely a Powershell issue, please file against the powershell extension you are using :) |
This seems like an unnecessary limitation of the SQL module, it is throwing an error because the |
Fix #599: SSASCMDLETS module cannot be loaded
Thanks @daviwil |
@lw-schick did the 0.11.0 update fix it for you? |
Yes: Starting PowerShell...
PS C:\git\OlapDbMetaData> Import-Module SQLASCMDLETS
PS C:\git\OlapDbMetaData> now all is fine |
Great, thanks for confirming! |
Ran across this closed case. I'm running into the same issue with a different module. I'm on v0.12.2. import-module : The current Windows PowerShell host is: 'Visual Studio Code Host' (version 1.0.0). The module PS /usr/local/microsoft/powershell/6.0.0-alpha.18/Modules> $host Name : Visual Studio Code Host Can anything be done here? Thanks! |
@szhivotovsky Do you know why the module is looking for a specific host and host version? That seems like a bad idea in general because it prevents that module from being loaded in any other host. Can you ask the module author to loosen their check? |
@szhivotovsky ... found this while looking for the same issue. Minimum version of the Windows PowerShell host required by this module |
@daviwil Are you saying that to use the vs code powershell debugger I need to make all my powershell modules backwards compatible with PowerShell v 1? I must be misunderstanding something. I'm experiencing the same issue, and definitely can't decrease the minimum version of my powershell modules. Is there a way I can increase the $host.Version? |
that's not quite right. The version of PowerShell itself, and the version of the host represents 2 different things. A good example of this is... Open actual pwsh.exe (or powershell.exe) and type The "host version" is just the version of the thing that's giving you access to PowerShell otherwise known as the host. There's a line of code in the extension that sets the host version. As David said before, we don't necessarily want to have to change this just for a specific module to work... What do your modules want it to be set to? |
@jschmitter Honestly the idea of manifest field If you are aiming to declare a minimum version of PowerShell, use |
For reference, our host version is the extension version: vscode-powershell/src/session.ts Lines 74 to 79 in bb545ab
|
From @lw-schick on March 22, 2017 13:4
Description
I can't import the PowerShell module SSASCMDLETS from SQL Server Analytics Service.
Steps to Reproduce:
Results in:
The PSVersionTable looks OK:
Copied from original issue: microsoft/vscode#23017
The text was updated successfully, but these errors were encountered: