-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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 runtime - VSCode Ubuntu 20.10 #31757
Comments
App runs fine, but cannot debug |
@captainsafia I believe this is an issue with how the blazor extension is calling into the ensureDotnetDependencies command: https://github.com/dotnet/aspnetcore-tooling/blob/main/src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmDebuggingExtension/src/acquireDotnetInstall.ts#L23. We expect the arguments passed in IDotnetEnsureDependenciesContext to be of type Also, I would suggest wrapping this call in some sort of try catch to produce a better error message and since a failure on this command does not necessarily mean that the rest of the install has failed. |
@sfoslund You can transfer this issue to the aspnetcore repo for tracking there. |
Thanks for contacting us. |
Is there any known workarround? |
@kattunga We'll have a fix for this out soon! |
Repro steps:
dotnet new blazorwasm -p
There's a red status button -
Error acquiring .NET runtimes!
Extension Version: 1.0.0
Error Message: The "args" argument must be of type object. Received type string ('--info')
Error Stack: TypeError [ERR_INVALID_ARG_TYPE]: The "args" argument must be of type object. Received type string ('--info')
at normalizeSpawnArguments (child_process.js:425:11)
at Object.spawnSync (child_process.js:575:16)
at Object. (/home/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.0.0/dist/extension.js:157:67942)
at Generator.next ()
at /home/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.0.0/dist/extension.js:157:64437
at new Promise ()
at n (/home/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.0.0/dist/extension.js:157:64211)
at /home/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.0.0/dist/extension.js:157:67865
at Object. (/home/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.0.0/dist/extension.js:1:195071)
at Generator.next ()
at /home/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.0.0/dist/extension.js:1:193638
at new Promise ()
at n (/home/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.0.0/dist/extension.js:1:193412)
at Object.t.callWithErrorHandling (/home/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.0.0/dist/extension.js:1:195019)
at Object. (/home/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.0.0/dist/extension.js:157:67839)
at Generator.next ()
at /home/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.0.0/dist/extension.js:157:64437
at new Promise ()
at n (/home/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.0.0/dist/extension.js:157:64211)
at /home/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.0.0/dist/extension.js:157:67797
at S._executeContributedCommand (/snap/code/60/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:86:106770)
at S._doExecuteCommand (/snap/code/60/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:86:105915)
at S.executeCommand (/snap/code/60/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:86:105821)
at Object.executeCommand (/snap/code/60/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:95:21932)
at Object. (/home/anonymous/.vscode/extensions/ms-dotnettools.blazorwasm-companion-1.0.0/dist/acquireDotnetInstall.js:29:35)
at Generator.next ()
at fulfilled (/home/anonymous/.vscode/extensions/ms-dotnettools.blazorwasm-companion-1.0.0/dist/acquireDotnetInstall.js:9:58)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
The text was updated successfully, but these errors were encountered: