Coder Social home page Coder Social logo

vscode-dotnet-runtime's Introduction

.NET Runtime and SDK Installation Tools

This repo contains two VS Code extensions, vscode-dotnet-runtime and vscode-dotnet-sdk. The vscode-dotnet-runtime can be used to install the .NET runtime and is meant to be leveraged by other extensions which depend on the runtime. The vscode-dotnet-sdk is a special install for internal features and not designed to be used by other extensions because it will conflict with existing SDK installations on the users machine.

Contributing to Repository

Looking for something to work on? The list of up-for-grabs issues is a great place to start.

Please read the following documents to get started.

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information, see the .NET Foundation Code of Conduct.

Building

Requirements

  • Node.js + npm
  • VSCode

Running the sample

  1. Run the build script at the root of the repo (build.sh or build.cmd).
  2. Open the repo's workspace in VSCode
  3. Run the Run Sample Extension configuration in VSCode
  4. In the launched experimental instance open the command pallete and run the Sample: Run a dynamically acquired .NET Core Hello World App.

.NET Foundation

.NET Core for VSCode is a .NET Foundation project.

See the .NET home repo to find other .NET-related projects.

License

.NET Core (including this repo) is licensed under the MIT license.

vscode-dotnet-runtime's People

Contributors

baronfel avatar carloslahrssen avatar dependabot[bot] avatar ievangelist avatar jl03-yue avatar jogo- avatar nagilson avatar ntaylormullen avatar rainersigwald avatar scottaddie avatar sfoslund avatar stephenweatherford avatar svenaelterman avatar terrajobst avatar webreidi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vscode-dotnet-runtime's Issues

Unable to get local issuer certificate

Please ensure that you are online: Request to https://dot.net/v1/dotnet-install.ps1 Failed: Error: unable to get local issuer certificate

We're primarily seeing this issue on Windows 10, but in some cases on Linux.

Tooling terminology is misleading

As discussed with @sfoslund, use of the word "tooling" in the extension is misleading. "Tooling" leads me to believe the .NET Core SDK is installed. My understanding is that only .NET Core runtimes are installed.

.NET Branding Pass

We need to to a branding pass to update instances of .NET Core to .NET. We should also update the sample extension's default version from 2.2 to a runtime version that is in support and update the channel output wording from .NET tooling to .NET runtime to reduce confusion.

Error on some windows machines: The property 'PSDrive' cannot be fo und on this object

The property 'PSDrive' cannot be fo und on this object. Verify that the property exists. At line:1 char:261 + ... pe]::Tls13; & 'c:\Users<user>.vscode\extensions\msazurermtools.az ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [dotnet-install.ps1], Property NotFoundException + FullyQualifiedErrorId : PropertyNotFoundStrict,dotnet-install.ps1

Differentiate between install script failures

Currently we treat the install script as a black box and report all errors in the same way. It would be a better experience and useful for getting a proper understanding of why failures occur to differentiate between install script failure reasons.

Specifically, the most likely reason for the script failing is the machine being offline. We should recognize this error and surface a message to the user with instructions to try again when online.

TEST

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

Please attach the log file located at /Users/jakob/Library/Application Support/Code/logs/20200704T224145/exthost1/ms-dotnettools.vscode-dotnet-runtime/DotNetAcquisition1593896023383.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

Enable Lint in CI

And we should also add "install tslint" in VSCode to the contribute guideline

Got this error when via VS Code when updating Azure ARm Template extension

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

Repro steps:

Extension Version: 0.1.2
Error Message: Dotnet Core Acquisition Failed: Command failed: "/home/anonymous/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-0.1.2/dist/install scripts/dotnet-install.sh" -InstallDir "/home/anonymous/.vscode-server/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/3.1.5" -Runtime dotnet -Version 3.1.5
/home/anonymous/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-0.1.2/dist/install scripts/dotnet-install.sh: 7: /home/anonymous/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-0.1.2/dist/install scripts/dotnet-install.sh: Syntax error: newline unexpected

Error Stack: Error: Dotnet Core Acquisition Failed: Command failed: "/home/anonymous/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-0.1.2/dist/install scripts/dotnet-install.sh" -InstallDir "/home/anonymous/.vscode-server/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/3.1.5" -Runtime dotnet -Version 3.1.5
/home/anonymous/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-0.1.2/dist/install scripts/dotnet-install.sh: 7: /home/anonymous/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-0.1.2/dist/install scripts/dotnet-install.sh: Syntax error: newline unexpected

at /home/anonymous/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-0.1.2/dist/extension.js:211:111243

Please attach the log file located at /home/fisteele/.vscode-server/data/logs/20200616T083335/exthost1/ms-dotnettools.vscode-dotnet-runtime/DotNetAcquisition1592321647042.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

Install script fails on Arch Linux (unbound variable VERSION_ID)

From microsoft/vscode-azurearmtools#318:

Downloading .NET Core tooling version(s) 2.2.5 ...... Error!
Failed to download .NET Core tooling 2.2.5:
/home/ha/.vscode/extensions/msazurermtools.azurerm-vscode-tools-0.7.0/assets/install scripts/dotnet-install.sh: line 147: VERSION_ID: unbound variable
/home/ha/.vscode/extensions/msazurermtools.azurerm-vscode-tools-0.7.0/assets/install scripts/dotnet-install.sh: line 205: VERSION_ID: unbound variable
/home/ha/.vscode/extensions/msazurermtools.azurerm-vscode-tools-0.7.0/assets/install scripts/dotnet-install.sh: line 147: VERSION_ID: unbound variable
/home/ha/.vscode/extensions/msazurermtools.azurerm-vscode-tools-0.7.0/assets/install scripts/dotnet-install.sh: line 147: VERSION_ID: unbound variable

Error: /home/ha/.vscode/extensions/msazurermtools.azurerm-vscode-tools-0.7.0/assets/install scripts/dotnet-install.sh: line 147: VERSION_ID: unbound variable
/home/ha/.vscode/extensions/msazurermtools.azurerm-vscode-tools-0.7.0/assets/install scripts/dotnet-install.sh: line 205: VERSION_ID: unbound variable
/home/ha/.vscode/extensions/msazurermtools.azurerm-vscode-tools-0.7.0/assets/install scripts/dotnet-install.sh: line 147: VERSION_ID: unbound variable
/home/ha/.vscode/extensions/msazurermtools.azurerm-vscode-tools-0.7.0/assets/install scripts/dotnet-install.sh: line 147: VERSION_ID: unbound variable

If I run dotnet-install.sh, it works with the similar unbound VERSION_ID error. It installs sdk 2.1.802.
I realized that the dotnet-install.sh script sources /etc/os-release to get VERSION_ID, but arch linux does not define that variable.
$ cat /etc/os-release
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
LOGO=archlinux

I tried adding a line to /etc/os-release and it worked.
VERSION_ID=0
So, it looks like the issue needs to be filed for dotnet-install.sh.

error

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

Please attach the log file located at c:\Users\Leif\AppData\Roaming\Code\logs\20200609T002014\exthost1\ms-dotnettools.vscode-dotnet-runtime\DotNetAcquisition1591658217109.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

Do a future-proofing design pass on public API

Prior to the first release a pass on all of the public API should be done to ensure we can add/remove parameters/return values etc. in future releases. It'll be very difficult to onboard early adopters if we break the primary dotnet acquisition experience.

An example of future proofing this design involves returning an object from dotnet.acquire with a property for the dotnet.exe path. This way any future parameters we want to add as part of the return result wont be considered a breaking change. Same future proof design can be applied to parameters of common public API (take an object). All that being said, not every public API needs to be future proofed. For instance uninstallAll can continue to take 0 arguments and return nothing, each public API should be individually looked at to do "the right thing".

/cc @livarcocc

Code

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

Please attach the log file located at /home/teodor/.config/Code/logs/20200527T143754/exthost1/ms-dotnettools.vscode-dotnet-runtime/DotNetAcquisition1590581119481.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

Web Request errors

3 common errors associated with the way we construct the web request for the install script:

Request to https://dot.net/v1/dotnet-install.ps1 Failed: Error: unable to get local issuer certificate

Error: Client network socket disconnected before secure TLS connection was established

Error: socket hang up

We should backport changes made for the ARM extension

Shipping code here: https://github.com/microsoft/vscode-azurearmtools/tree/master/src/acquisition

The changes I made mostly fall into these categories:

  1. Didn't want it to be an extension, and didn't want to expose the current commands (so as not to interfere with the eventual extension), so I made the code callable
  2. Added telemetry in a few paths (ideally we need an API for that)
  3. strict null checking/lint

Didn't have time to figure out how to properly made a fork and reference the fork from another repo, so I made a copy and modified the copy, but most filenames have renamed the same, so we could probably turn it into a fork and backport some of the changes if that would be useful.

Error on Windows 7 (Property setting is supported only on core types in this language mode)

Original bug here: microsoft/vscode-azurearmtools#549, filed by @cetincig

This extension requires .NET Core for full functionality.
[dotnet 2.2.5]: Found an incompletely-installed version of dotnet 2.2.5... Uninstalling.
[dotnet 2.2.5]: Uninstalling dotnet version 2.2.5
[dotnet 2.2.5]: Removing folder c:\Users\[email protected]\AppData\Roaming\Code\User\globalStorage\msazurermtools.azurerm-vscode-tools.dotnet\2.2.5
[dotnet 2.2.5]: Finished removing folder c:\Users\[email protected]\AppData\Roaming\Code\User\globalStorage\msazurermtools.azurerm-vscode-tools.dotnet\2.2.5
[dotnet 2.2.5]: Finished uninstalling dotnet version 2.2.5
Using this command to install .NET Core version 2.2.5:
"c:\Users\[email protected]\extensions\msazurermtools.azurerm-vscode-tools-0.8.4\assets\install scripts\dotnet-install.cmd" -InstallDir 'c:\Users\[email protected]\AppData\Roaming\Code\User\globalStorage\msazurermtools.azurerm-vscode-tools.dotnet\2.2.5' -Runtime dotnet -Version 2.2.5
Downloading .NET Core tooling version(s) 2.2.5............[dotnet 2.2.5]: STDERR: Cannot set property. Property setting is supported only on core types in this language mode.
At line:1 char:1

  • [System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System ...
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : PropertySetterNotSupportedInConstrainedLanguage
    
    

Cannot set property. Property setting is supported only on core types in this language mode.
At line:1 char:63

  • ... lture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertySetterNotSupportedInConstrainedLanguage

C:\Users\[email protected]\extensions\msazurermtools.azurerm-vscode-tools-0.8.4\assets\install scripts\dotnet-install.ps1 : Cannot invoke
method. Method invocation is supported only on core types in this language mode.
At line:1 char:126

  • ... ulture = '';& 'c:\Users\[email protected]\extensions\ms ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [dotnet-install.ps1], RuntimeException
    • FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage,dotnet-install.ps1

Error!
Failed to download .NET Core tooling 2.2.5:
Cannot set property. Property setting is supported only on core types in this language mode.
At line:1 char:1

  • [System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System ...
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : PropertySetterNotSupportedInConstrainedLanguage
    
    

Cannot set property. Property setting is supported only on core types in this language mode.
At line:1 char:63

  • ... lture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertySetterNotSupportedInConstrainedLanguage

C:\Users\[email protected]\extensions\msazurermtools.azurerm-vscode-tools-0.8.4\assets\install scripts\dotnet-install.ps1 : Cannot invoke
method. Method invocation is supported only on core types in this language mode.
At line:1 char:126

  • ... ulture = '';& 'c:\Users\[email protected]\extensions\ms ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [dotnet-install.ps1], RuntimeException
    • FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage,dotnet-install.ps1

Error: >>>> This extension requires .NET Core for full functionality, but we were unable to download and install a local copy for the extension. If this error persists, please see https://aka.ms/vscode-armtools-dotnet for troubleshooting tips.
Cannot set property. Property setting is supported only on core types in this language mode.
At line:1 char:1

  • [System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System ...
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : PropertySetterNotSupportedInConstrainedLanguage
    
    

Cannot set property. Property setting is supported only on core types in this language mode.
At line:1 char:63

  • ... lture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertySetterNotSupportedInConstrainedLanguage

C:\Users\[email protected]\extensions\msazurermtools.azurerm-vscode-tools-0.8.4\assets\install scripts\dotnet-install.ps1 : Cannot invoke
method. Method invocation is supported only on core types in this language mode.
At line:1 char:126

  • ... ulture = '';& 'c:\Users\[email protected]\extensions\ms ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [dotnet-install.ps1], RuntimeException
    • FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage,dotnet-install.ps1

21ede

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

Please attach the log file located at c:\Users\Leif\AppData\Roaming\Code\logs\20200609T002014\exthost1\ms-dotnettools.vscode-dotnet-runtime\DotNetAcquisition1591658217109.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

Fail to download .NET Core tooling version 3.0.3 on Mac

OS: Mac (We have 3 Mac, 2 Mac have this issue but the other one works well)
Build Version: 20200416.27

Repro Steps:

  1. Open a template file in VS Code.
  2. Check the .NET Core Tooling output.
    Downloading .NET Core tooling version(s) 3.0.3 ................................. Error!
    Failed to download .NET Core tooling 3.0.3:
    Command failed: "/Users/bys/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-0.1.0/dist/install scripts/dotnet-install.sh" -InstallDir "/Users/bys/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/3.0.3" -Runtime dotnet -Version 3.0.3

The detail logs in log file shows as below:

4/20/2020, 1:48:47 PM DotnetVersionResolutionCompleted
3.0
3.0.3

4/20/2020, 1:48:47 PM DotnetAcquisitionPartialInstallation
3.0.3

4/20/2020, 1:48:47 PM DotnetAcquisitionDeletion
/Users/bys/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/3.0.3

4/20/2020, 1:48:48 PM DotnetAcquisitionStarted
3.0.3

4/20/2020, 1:48:48 PM DotnetInstallScriptAcquisitionCompleted

4/20/2020, 1:49:18 PM DotnetAcquisitionScriptOuput
3.0.3
dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Runtime/3.0.3/dotnet-runtime-3.0.3-osx-x64.tar.gz
dotnet-install: Extracting zip from https://dotnetcli.azureedge.net/dotnet/Runtime/3.0.3/dotnet-runtime-3.0.3-osx-x64.tar.gz

4/20/2020, 1:49:18 PM DotnetAcquisitionInstallError
Command failed: "/Users/bys/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-0.1.0/dist/install scripts/dotnet-install.sh" -InstallDir "/Users/bys/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/3.0.3" -Runtime dotnet -Version 3.0.3

3.0.3
Error
Error: Command failed: "/Users/bys/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-0.1.0/dist/install scripts/dotnet-install.sh" -InstallDir "/Users/bys/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/3.0.3" -Runtime dotnet -Version 3.0.3

at ChildProcess.exithandler (child_process.js:308:12)
at ChildProcess.emit (events.js:203:13)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)

Expand on Extension Tests

Tests to add for DotnetCoreAcquisitionExtension:

  • Ensuring Linux dependencies properly detects failure cases. This will be quite a bit harder (stretch goal) because you need to fabricate .NET apps that explode in known ways to indicate missing dependencies.

Edit 12/11/19, 1/15/20: Completed test cases:

  • Installing/ uninstalling multiple versions
  • Invalid dotnet version fails gracefully with appropriate error
  • Bad network (can be mocked with custom dotnet-install scripts) results in appropriate error
  • Commands besides install/uninstall
  • Check it doesn't re-download the same version twice

Download fails on Windows 7 (keeps displaying the download message)

From ARM extension

Fail to download .NET Core tooling 3.1.3 on Windows 7 machine.

More info:

  1. This issue only reproduces on Win 7, not reproduce on Win 8.1 and Win 10.
  2. Changing the timeout value “dotnetAcquisitionExtension.installTimeoutValue” can’t fix this issue.
  3. It will keeps “Still downloading the .NET Core tooling” state after timeout.

I need some help resolving "Git bash exited with code 1 ( Compile Sass assets )" error on pushing below yml file to azure pipeline from VS code

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

Please attach the log file located at c:\Users\lenovo\AppData\Roaming\Code\logs\20200531T010919\exthost1\ms-dotnettools.vscode-dotnet-runtime\DotNetAcquisition1590885686178.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

c:\Users\opera\AppData\Roaming\Code\logs\20200515T094411\exthost1\ms-dotnettools.vscode-dotnet-runtime\

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

Please attach the log file located at c:\Users\opera\AppData\Roaming\Code\logs\20200515T094411\exthost1\ms-dotnettools.vscode-dotnet-runtime\DotNetAcquisition1589530167732.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

Add telemetry

Overview

  • We will be collecting telemetry to help us understand the usage patterns of the extension and diagnose problems.

  • We will not be collecting any personally identifiable information such as usernames or emails.

Behavior

What do we collect?

  • Which .NET Core runtime versions are being acquired and uninstalled.

  • Information on the state of the installed runtimes. For example, we collect runtime versions if partial installations are detected.

  • Error information including error names, messages, and stack traces. If corrupted installations of the .NET runtime are detected, may collect the relative file structure of the .dotnet directory. In some cases, this may collect file paths as part of error messages.

Blocked by software restriction policies

From microsoft/vscode-azurearmtools#331

Action: acquireDotnet
Error type: string
Error Message: & : File C:\Users\guestuser.vscode\extensions\msazurermtools.azurerm-vscode-tools-0.7.0\assets\install scripts\dotnet-i
nstall.ps1 cannot be loaded because its operation is blocked by software restriction policies, such as those created by
using Group Policy.
At line:1 char:128

  • ... ture = '';& 'C:\Users\guestuser.vscode\extensions\msazurermtools.azur ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : SecurityError: (:) [], PSSecurityException
    • FullyQualifiedErrorId : UnauthorizedAccess

Version: 0.7.0
OS: win32
Product: Visual Studio Code
Product Version: 1.36.1
Language: en

I asked if they could install directly via https://dot.net/v1/dotnet-install.ps1 but haven't received a response.

Setting up project environment

Just to clarify, to run our own extension with the library and extension (excluding the sample) we just add the two folders (library and extension) to our project directory and then reference as a file dependency in our own projects package.json correct?

On another note, is there support on a branch for acquiring dotnet for windows, linux and mac? If not what are the OS limitations.

Thanks

<!-- IMPORTANT: Please be sure to remove any private information before submitting. --> **Repro steps:** 1.

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

Please attach the log file located at c:\Users\Perry\AppData\Roaming\Code\logs\20200505T001536\exthost1\ms-dotnettools.vscode-dotnet-runtime\DotNetAcquisition1588659363554.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

gutExpreApp

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

Please attach the log file located at c:\Users\Usuário\AppData\Roaming\Code\logs\20200503T151950\exthost1\ms-dotnettools.vscode-dotnet-runtime\DotNetAcquisition1588531650753.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

error in VSCCode

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

Please attach the log file located at c:\Users\nrynearson\AppData\Roaming\Code\logs\20200529T080846\exthost1\ms-dotnettools.vscode-dotnet-runtime\DotNetAcquisition1590754188448.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

git .NET

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

Please attach the log file located at c:\Users\USER\AppData\Roaming\Code\logs\20200617T124025\exthost1\ms-dotnettools.vscode-dotnet-runtime\DotNetAcquisition1592392415999.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

Mac: Dotnet Core Acquisition Failed

Error Message: Dotnet Core Acquisition Failed: Failed to Acquire Dotnet Install Script: Error: ENOENT: no such file or directory, mkdir '/install scripts'
Error Stack: Error: Dotnet Core Acquisition Failed: Failed to Acquire Dotnet Install Script: Error: ENOENT: no such file or directory, mkdir '/install scripts'
at /Users/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-0.1.0/dist/extension.js:211:111185
at processTicksAndRejections (internal/process/task_queues.js:89:5)

Please attach the log file located at /Users/stephwe/Library/Application Support/Code/logs/20200226T122833/exthost1/ms-dotnettools.vscode-dotnet-runtime/DotNetAcquisition1582749607812.txt

DotNetAcquisition1582749607812.txt

yerwa

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

Please attach the log file located at c:\Users\Hussaini\AppData\Roaming\Code\logs\20200502T182551\exthost3\ms-dotnettools.vscode-dotnet-runtime\DotNetAcquisition1588469574484.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

[API] Surface the .NET Core SDK/runtime download progress

While the .NET Core SDK/runtime is being installed, I expect VS Code extensions to display something to the users to let them know the installation is completing.

Given the size of the .NET Core binaries (25Mb for the runtime, 120Mb for the SDK), it might be great to provide a download progress, so that extensions can surface this information as well and make the user experience better.

Do you think it could make sense to include this in the API?

If in the end only the runtime is provided, then we might skip this as the size is significantly lower.

as

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

Please attach the log file located at c:\Users\Leif\AppData\Roaming\Code\logs\20200603T172328\exthost1\ms-dotnettools.vscode-dotnet-runtime\DotNetAcquisition1591197879709.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

Support .NET Core with SDK for user development

Today this repo allows for users to download a .NET Core runtime to enable other extensions to run their .NET Core dependent bits; this can be expanded to enable users to download a development worthy .NET Core.

Ensure log files contain enough debugging information

In the condensing process, webpack removes some of the class names that show up in the log files, resulting in log files being somewhat bare. Do a pass to ensure log files are useful in debugging and potentially add more detail.

Consider supporting pre-baked .NET's in extension

VSCode extensions today cannot have different flavors for different platforms; however, this is changing with: microsoft/vscode#23251 (comment)

We can take a model where we have a default .NET included in the box to avoid dynamic acquisition; and then if another extension attempts to download a different version of .NET not included in the box we can fall back.

Issue in my system while installing

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

Please attach the log file located at c:\Users\admin\AppData\Roaming\Code\logs\20200430T111219\exthost1\ms-dotnettools.vscode-dotnet-runtime\DotNetAcquisition1588257437996.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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.