dotnet / vscode-dotnet-runtime

VSCode Extension for Installing .NET via VS Code
MIT License
138 stars 256 forks source link

PowerShell LanguageMode: ConstrainedLanguage causing Installation failed #487

Open kipphoward opened 2 years ago

kipphoward commented 2 years ago

The issue text was copied to the clipboard. Please paste it into this window.

Please attach the log file located at DotNetAcquisition-ms-dotnettools.vscode-dotnet-runtime-1655313344149.txtDotNetAcquisition-ms-dotnettools.vscode-dotnet-runtime-1655313344149.txt. Note that this file may contain personal data.

Privacy Alert! The contents copied to your clipboard may contain personal data. Prior to posting to GitHub, please remove any personal data which should not be publicly viewable. https://privacy.microsoft.com/en-US/privacystatement

I believe this is related to my machine constantly getting set into ContrainedLanguage mode in Powershell: PS> $ExecutionContext.SessionState.LanguageMode ConstrainedLanguage

Is there any way to get around this (i.e., not use PowerShell)?

Repro steps:

  1. Get into ContrainedL,anguage mode and
  2. Trigger loading of Azure Resource Manager Tools
    1. Extension version upgrading (?) which causes the below error.

Extension Version: 1.0.0 Error Message: .NET Acquisition Failed: Installation failed: Cannot set property. Property setting is supported only on core types in this language mode. At line:1 char:5

Error Stack: Error: .NET Acquisition Failed: Installation failed: Cannot set property. Property setting is supported only on core types in this language mode. At line:1 char:5

fluffy-cakes commented 2 years ago

ditto ^

nagilson commented 1 year ago

@StephenWeatherford Is this something you've seen before?