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.

Archlinux - ms-vscode.csharp - "Error while installing .NET Core Debugger"

See original GitHub issue

From @vindicatorr on July 13, 2016 9:17

  • VSCode Version: 1.3.1
  • OS Version: Archlinux 4.6.3 - KDE 5.7.1
  • Mono Version: 4.3.3

Steps to Reproduce:

  1. Extract VSCode

  2. mkdir test; cd test; dotnet new

  3. Start VSCode and Open Folder for newly created “test”

  4. Enable recommended “ms-vscode.csharp” (and restart VSCode)

    Error while installing .NET Core Debugger
    
  5. View Log

    ...
    Creating /home/username/.vscode/extensions/ms-vscode.csharp-1.2.2/coreclr-debug/project.json
    Telemetry is: Enabled
    
    log  : Restoring packages for /home/username/.vscode/extensions/ms-vscode.csharp-1.2.2/coreclr-debug/project.json...
    
    error: System.IO 4.1.0 provides a compile-time reference assembly for System.IO on .NETCoreApp,Version=v1.0, but there is no run-time assembly compatible with arch.-x64.
    ...
    log  : Writing lock file to disk. Path: /home/username/.vscode/extensions/ms-vscode.csharp-1.2.2/coreclr-debug/project.lock.json
    
    log  : /home/username/.vscode/extensions/ms-vscode.csharp-1.2.2/coreclr-debug/project.json
    log  : Restore failed in 2012ms.
    
    Error: 
    Errors in /home/username/.vscode/extensions/ms-vscode.csharp-1.2.2/coreclr-debug/project.json
    
    Error:     System.IO 4.1.0 provides a compile-time reference assembly for System.IO on .NETCoreApp,Version=v1.0, but there is no run-time assembly compatible with arch.-x64.
    ...
    System.Threading.Timer on .NETCoreApp,Version=v1.0, but there is no run-time assembly compatible with arch.-x64.
    One or more packages are incompatible with .NETCoreApp,Version=v1.0 (arch.-x64).
    
    dotnet exited with error code 1
    

That is only part of the issue. The other part relates to omnisharp which I think I’ll be submitting to their repository.

Copied from original issue: Microsoft/vscode#9192

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:23 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
gregg-miskellycommented, Dec 5, 2016

@cra0zy we will respect ID_LIKE so actually that will automatically work if I check for ‘arch’.

Okay, I will try and get out a fix for this soon.

1reaction
elangelocommented, Dec 5, 2016

@gregg-miskelly this worked thnx! what i did:

  • created .debugger directory in ~/.vscode/extensions/ms-vscode.csharp-1.5.3/.debugger
  • unzipped the content of coreclr-debug-ubuntu.16.04-x64.zip in .debugger
  • chmod +x OpenDebugAD7 and clrdbg (not sure why these two lost their executable properties, maybe zip doesn’t understand those?)
  • open C# project and finally enjoy debugging

for your info: /etc/OS_RELEASE#NAME=“Arch Linux” ID=arch PRETTY_NAME=“Arch Linux” ANSI_COLOR=“0;36” HOME_URL=“https://www.archlinux.org/” SUPPORT_URL=“https://bbs.archlinux.org/” BUG_REPORT_URL=“https://bugs.archlinux.org/” VERSION_ID=“2016.06.20”

VERSION_ID is actually the installed date of the OS so this has nothing to do with the actual version of Arch Linux, Arch Linux is a rolling release distro so everybody that cares a bit for their machine is actually running recent stuff.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Archlinux - ms-vscode.csharp - "Error while installing .NET ...
Archlinux - ms-vscode.csharp - "Error while installing .NET Core Debugger" #9192 ... x64). dotnet exited with error code 1.
Read more >
[SOLVED] .NET Core, unable to debug in Visual Studio Code
I'm currently trying to develop C# software with .NET Code in Visual Studio Code. I succeeded to run the code via dotnet run,...
Read more >
Error while installing .NET Core Debugger on OSX
I received the same error. For me, I noticed there was an update available for the VS Code C# extension (I saw the...
Read more >
Linux installation details - Visual Studio Live Share
Distributions outside of the Debian / Ubuntu or RHL trees are not officially supported by Visual Studio Code or .NET Core. Therefore, by...
Read more >
VS Code and .Net Core Arch Linux Install - YouTube
If you're up and running with Arch Linux and want a Microsoft workflow you're going to want to install . Net Core and...
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