-
Notifications
You must be signed in to change notification settings - Fork 81
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
Error acquiring .NET Core tooling (multiple issues) #318
Comments
+1 on windows. vscode insiders. Version: 1.39.0-insider (system setup)
I have dotnet.exe already in my path. gcm dotnet
CommandType Name Version Source
----------- ---- ------- ------
Application dotnet.exe 3.0.27912.14 C:\Program Files\dotnet\dotnet.exe |
@brwilkinson Can you tell me if a dir on "c:\Users<user>\AppData\Roaming\Code - Insiders\User\globalStorage\msazurermtools.azurerm-vscode-tools.dotnet\2.2.5\dotnet.exe" succeeds? The extension seems to think that the file doesn't exist or that it's a folder. |
No it doesn't exist.. In fact there is only a single file in that whole tree |
I restarted the extension here are the logs.. Action: acquireDotnet Version: 0.7.0 Call Stack
|
Can you try F1 -> "Azure Resource Manager Tools: Uninstall dotnet core for this extension", then restart vscode? |
@hlee-gs1us Can you try the attached version and see if it works? You'll need to unzip, then use F1 -> Install from VSIX... azurerm-vscode-tools-0.7.1-alpha.zip If this doesn't work, I'll need to know:
Thanks! |
Then on restart ...
The (217) files from the extension have now been populated ... in the child directory tree, .. including dotnet.exe ls 'c:\Users\<user>\AppData\Roaming\Code - Insiders\User\globalStorage\msazurermtools.azurerm-vscode-tools' -file -Recurse | measure
Count : 217 So I guess that workaround fixed my issue. |
p.s. apologies if this is a separate issue from the linux issue, I figured they maybe related, otherwise I would have opened a new issue. Let me know if there are any old logs to see why the initial update failed to download the .net components in the first place. |
@brwilkinson No problem, glad that worked out for you. |
@StephenWeatherford - Sorry about my silence. I tried 0.7.1-alpha and had the same result. I use arch linux. 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.
|
I tried adding a line to /etc/os-release and it worked.
So, it looks like the issue needs to be filed for dotnet-install.sh. |
Weird, will do that, thanks! |
I am still seeing this error with new installs.. I have also seen the same with working with many of my customers. So just in case any of this is helpful. Repro steps:
Action: acquireDotnet Error Message: Unexpected path returned for .net core: c:\Users\<user>\AppData\Roaming\Code - Insiders\User\globalStorage\msazurermtools.azurerm-vscode-tools\.dotnet\2.2.5\dotnet.exe Version: 0.8.2 -- Also this is what actually is in the directory.. tree "c:\Users\<user>\AppData\Roaming\Code - Insiders\User\globalStorage\msazurermtools.azurerm-vscode-tools\.dotnet\2.2.5\shared"
Folder PATH listing for volume OS
Volume serial number is A414-F210
C:\USERS\<usesr>\APPDATA\ROAMING\CODE - INSIDERS\USER\GLOBALSTORAGE\MSAZURERMTOOLS.AZURERM-VSCODE-TOOLS\.DOTNET\2.2.5\SHARED
└───Microsoft.NETCore.App
└───2.2.5 This workaround does work: Call Stack
|
Trying to get a handle on these acquire dotnet issues. Is this error message from above correct?
I.e., is there really no backslash before ".dotnet"? |
In the error when it tries to install, there is no slash... where there should be a .dotnet I guess this regex? |
Never mind, I see in the original markdown that there is a slash, apparently markdown is interpreting the "." as an escaped period. |
Clue: the install script bails and says ".NET Core Runtime version 2.2.5 is already installed." if the 2.2.5 folder already exists, even if there's nothing in it. That explains why uninstalling works around this issue but restarting vscode does not. Will change to make sure any existing folder is deleted |
@StephenWeatherford okay yeah I updated the post to be a code snippet so it didn't interpret the error message. |
Thanks. BTW, you can use the new azureResourceManagerTools.languageServer.dotnetExePath setting to point to an existing dotnet.exe instead of us downloading it. |
@brwilkinson Sorry for the long delay. We've changed our architecture since we last spoke. Does this still repro for you? Thanks. |
To test. . . I commented out the following.. which I now to default to in my profile... then restarted VSCode. // "azureResourceManagerTools.languageServer.dotnetExePath": "C:\\Program Files\\dotnet\\dotnet.exe", when I look at the logs . . it shows that the DOTNET was successfully installed. So I assume the issue is resolved. Also I have not seen this with any customers in the past several months. |
Great! Thanks for letting us know! |
I have a deploy project (.deployproj file) that was created in visual studio and includes ARM templates. I get the following error when I open the project folder.
vscode version information
Version: 1.38.1
Commit: b37e54c98e1a74ba89e03073e5a3761284e3ffb0
Date: 2019-09-11T13:30:08.229Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Linux x64 5.3.1-arch1-1-ARCH
The text was updated successfully, but these errors were encountered: