question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`Failed to find up to date dotnet cli on the path` Error Message Truncated

See original GitHub issue

Issue Description

The error message buttons are truncated and may be difficult to read / see what they actually do.

image

https://github.com/OmniSharp/omnisharp-vscode/blob/3587ab9699f1a38ac5b79797ccce04123a1b1c7a/src/coreclr-debug/activate.ts#L109-L125

Environment information

VSCode version: 1.60.1 C# Extension: 1.23.15

Mono Information OmniSharp using built-in mono
Dotnet Information

Host (useful for support): Version: 6.0.0-rc.2.21460.8 Commit: 8bfc0302a2

.NET SDKs installed: 3.1.102 [/usr/local/share/dotnet/sdk] 5.0.202 [/usr/local/share/dotnet/sdk] 5.0.302 [/usr/local/share/dotnet/sdk] 6.0.100-preview.4.21255.9 [/usr/local/share/dotnet/sdk] 6.0.100-preview.5.21302.13 [/usr/local/share/dotnet/sdk] 6.0.100-preview.6.21355.2 [/usr/local/share/dotnet/sdk] 6.0.100-rc.2.21463.12 [/usr/local/share/dotnet/sdk] 6.0.100-rc.2.21465.13 [/usr/local/share/dotnet/sdk]

.NET runtimes installed: Microsoft.AspNetCore.App 3.1.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0-preview.4.21253.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0-preview.5.21301.17 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0-preview.6.21355.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0-rc.2.21460.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-preview.6.21352.12 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-rc.2.21460.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download

Visual Studio Code Extensions
Extension Author Version
azure-account ms-vscode 0.9.8
csharp ms-dotnettools 1.23.15
EditorConfig EditorConfig 0.16.4
jupyter ms-toolsai 2021.8.2041215044
jupyter-keymap ms-toolsai 1.0.0
markdown-all-in-one yzhang 3.4.0
python ms-python 2021.9.1230869389
vscode-icons vscode-icons-team 11.6.0
vscode-paste-image mushan 1.0.4
vscode-pylance ms-python 2021.9.1
vscode-typescript-tslint-plugin ms-vscode 1.3.3

Console Output:

``` Installing C# dependencies... Platform: darwin, x86_64

Downloading package ‘OmniSharp for OSX’ (38435 KB)… Done! Validating download… Integrity Check succeeded. Installing package ‘OmniSharp for OSX’

Downloading package ‘.NET Core Debugger (macOS / x64)’ (45945 KB)… Done! Validating download… Integrity Check succeeded. Installing package ‘.NET Core Debugger (macOS / x64)’

Downloading package ‘Razor Language Server (macOS / x64)’ (61258 KB)… Done! Installing package ‘Razor Language Server (macOS / x64)’

Finished

TypeError: Invalid Version: undefined

</details>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20 (20 by maintainers)

github_iconTop GitHub Comments

2reactions
JoeRobichcommented, Sep 16, 2021

I was wrong it ends up in the C# log…

This method https://github.com/OmniSharp/omnisharp-vscode/blob/d1785942e51f3afee1d8e62b406ee46b35168c63/src/coreclr-debug/util.ts#L68-L92 is throwing this error TypeError: Invalid Version: undefined

Now to figure out why…

1reaction
JoeRobichcommented, Sep 16, 2021

Wonder if that’s related?

Not sure, but I’ll happily accept a PR for it. =)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extension activation fails with 'Error: Failed to find up to date ...
My particular problem was that I had an old 32-bit version of the dotnet cli installed, and that was before the 64-bit on...
Read more >
VSCode C# Extension: "Failed to find up to date dotnet cli on ...
Google has been no help. Any tips on how I can fix this error? It appears that the answer was to install ....
Read more >
VS Code error "The .NET CLI tools cannot be located..."
NET executable install location and the Visual Studio path. The executable was most likely installed in /usr/local/share/dotnet/dotnet .
Read more >
Troubleshoot .NET tool usage issues - Microsoft Learn
NET CLI tries to add the default location to the PATH environment ... find an appropriate runtime, it fails to run and reports...
Read more >
How to Fix The .NET Core SDK cannot be located ... - YouTube
Today we will fix the . NET Core missing problem of Visual Studio Code. It happened when we installed C# Extension on Visual...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found