Solvedomnisharp vscode Crash: 'Debug adapter process has terminated unexpectedly' on arch and manjaro

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.1)

Product Information:
 Version:            1.0.1
 Commit SHA-1 hash:  005db40cd1

Runtime Environment:
 OS Name:     manjaro
 OS Version:
 OS Platform: Linux
 RID:         ubuntu.16.10-x64
 Base Path:   /opt/dotnet/sdk/1.0.1

VS Code version:

Version 1.10.2
Commit 8076a19fdcab7e1fc1707952d652f0bb6c6db331
Date 2017-03-08T14:00:46.854Z
Shell 1.4.6
Renderer 53.0.2785.143
Node 6.5.0

C# Extension version:

Steps to reproduce

  • install dotnet, dotnet-cli and dotnet-sdk on archlinux (see additional info for building from aur)
  • install C# extension
  • try to debug anything

Expected behavior

running the debugger

Actual behavior

instant crash when trying to run the debugger

Debug adapter process has terminated unexpectedly
Debug adapter process has terminated unexpectedly

Additional info

Linux railgun 4.9.13-1-rt11-MANJARO #1 SMP PREEMPT RT Wed Mar 1 17:46:29 UTC 2017 x86_64 GNU/Linux

System Info
 OS: Manjaro 17.1-dev Gellivara
 Kernel: x86_64 Linux 4.9.13-1-rt11-MANJARO
 Uptime: 5d 12h 23m
 Packages: 1655
 Shell: zsh 5.3.1
 Resolution: 1920x1080
 WM: Xfwm4
 WM Theme: Vertex-Maia
 GTK Theme: Vertex-Maia-Square [GTK2]
 Icon Theme: Vertex-Maia
 Font: Cantarell 10
 CPU: Intel Core i5-6200U @ 4x 2.8GHz
 GPU: Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2)

to make dotnet build on archlinux/manjaro
i remember i had to patch a single line in corefx build because of

ignoring return value of function declared with 'warn_unused_result'
attribute [-Werror,-Wunused-result]
pipe2(waitForChildToExecPipe, O_CLOEXEC);


-    pipe2(waitForChildToExecPipe, O_CLOEXEC);
+    if (pipe2(waitForChildToExecPipe, O_CLOEXEC)) { } else { }

i wonder if something similar happens with corclr, because i have seen patch files for that flying around too although the line numbers and commit hashes are different now...

followed the steps on #564 #564 (comment)
to install the debugger for 14.04 as well, did not help
tried installing the 16.10 debugger as well (because dotnet --info suggested that it might be compatible with that.. as expected a "Debug adapter process has terminated unexpectedly"

31 Answers

✔️Accepted Answer

So apparently the wrong version of icu is expected. ArchLinux has icu 58.

I executed this command in the debugger folder:find *.so -type f | xargs ldd 2> /dev/null | grep not\ found
which gave met the following output: => not found => not found => not found => not found => not found => not found
./ /usr/lib/ version `CURL_OPENSSL_3' not found (required by ./

I installed icu55 which can be found in the AUR here:

Now debugging works again!

Other Answers:

Here is my tentative plan, let me know if anyone hates this. I haven't finished implementing this yet, so I may change my mind if something doesn't work as well as I am expecting.

  1. Add a new preference to VS Code to select what version of the debugger to use on Linux
  2. Add a new wiki page with the relevant parts of this issue to this repo
  3. Add a new error message when installing on arch that will direct folks to the wiki page

Related Issues:

omnisharp vscode v1.23.1 fails to load Unity project, worked with v1.23.0
The problem is that the new .NET Core 3.1 SDK isn't supported by any current Mono release ...
omnisharp vscode [fail]: OmniSharp.MSBuild.ProjectManager: Attemped to update project that is not loaded.
Thanks a bunch! This solved the issue for me Steps taken Download version 1.15.2 (see link above ...
omnisharp vscode Debug Console window cannot accept Console.ReadLine() input during debugging
From @kieferrm on December 17 2016 14:50 The debug console is output only From @LiangZugeng on Decem...
omnisharp vscode 'System' not found after update to dotnet core 3.0
I was able to resolve this issue by uninstalling mono via brew and letting omnisharp use the MSBuild...
omnisharp vscode Omnisharp can't find .NET SDK when open any C sharp project
Sometimes the Visual Studio warning will still persist even after installing the .NET SDK ...
omnisharp vscode Debug multiple ASP.NET Core projects in Visual Studio Code
Try this also Moved from microsoft/vscode#25628 From @mdmoura VSCode Version: 1.11.2 OS Version: Win...
omnisharp vscode The SDK 'Microsoft.NET.Sdk.Web' specified could not be found.
Solved this problem by adding omnisharp.json with Was asked to create new issue on #2876 Environment...
omnisharp vscode Format code returns: Sorry, but there is no formatter for 'csharp'-files installed.
Ah got it there was line csharp.format.enable: false in my user config after cleared that it started...
omnisharp vscode Issues when upgrading to 1.23.3 - Unity assembly definitions not found correctly
A temporary work-around to anyone who finds this for now: Right-click the C# extention from within V...
omnisharp vscode Always show "Downloading package 'OmniSharp (.NET 4.6 / x64)' (12310 KB) ."
Sorry for the delay I needed to get 1.6 out the door before taking some time to write up the steps b...
omnisharp vscode The SDK 'Microsoft.NET.Sdk.Web' specified could not be found
Latest OmniSharp beta as of now is 3.5.0-beta.2204 which seem to work with the latest .NET Core SDK ...
omnisharp vscode remove unused usings
Bump!.. This reasonably basic capability is a big miss on Visual Studio Code Environment data dotnet...
omnisharp vscode Problem after update to .NET SDK 2.2.202-1
For anyone trying to fix this quickly: which is followed by the list of versions $ sudo apt install ...
omnisharp vscode Omnisharp.msbuild.projectmanager - failed to load project file - no IntelliSense
I'm stuck on this issue with Ubuntu 19.04 I tried setting omnisharp.useGlobalMono: never (for those ...
omnisharp vscode C# Extension fails only for netcoreapp3.0 GA
Guys I've got the solution (for those who don't want to install VS2019) Go to Microsoft VS downloads...
omnisharp vscode The SDK 'Microsoft.NET.Sdk' specified could not be found.
Don't ask me where I found this Couldn't get the (latest) C# extension to work correctly on one of m...
omnisharp vscode Errors when building solution which contains both C# .csproj and F# .fsproj projects.
I just wanted to let everyone here know that I just released on a new beta of C# for VS Code that sh...
omnisharp vscode Could not find document for file, Omnisharp not working
yeah but now it picks up the correct MSBuild which is good so what you need to do now ...
omnisharp vscode Crash: 'Debug adapter process has terminated unexpectedly' on arch and manjaro
So apparently the wrong version of icu is expected ArchLinux has icu 58 Environment data dotnet --in...
omnisharp vscode Cannot download OmniSharp behind proxy/firewall
This worked for me (in VS Code settings file): From @TheBlueSky on July 18 2016 4:37 Hello everyone ...
omnisharp vscode Debugging f# on .net core
@gregg-miskelly @DustinCampbell as a note thx a lot for support ref ionide/ionide-vscode-fsharp#366 ...
omnisharp vscode Intellisense no longer working on C# files
This worked for me Environment data dotnet --info output: VS Code version: 1.16.1 64 bit C# Extensio...
efcore No executable found matching command "dotnet-ef" even after adding CLI
I has this issue and like to share I want to Migrate my Database with Models I am using EF Core 2.0 ...
efcore UseSqlServer() method is missing from Microsoft.EntityFrameworkCore.SqlServer 1.1.1
Hm - try manually adding the using statement using Microsoft.EntityFrameworkCore; and building again...
xunit .NET Core tests produce no output
After some exploration I figured out an easy solution: dotnet test --logger:console;verbosity=detail...
efcore How to write DbFunction's translation?
@Kation You actually does not need so much of code to use JSON_VALUE function Based on documentation...
efcore Inheritance problem with DbContext subclasses requiring constructor to supply DbContextOptions<DerivedContext>
I was able to resolve this without a hack by providing a protected constructor that uses DbContextOp...
efcore MissingMethodException: Method not found: 'Boolean Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer.HasDifferences
@AmSmart just to clarify in the documentation that @ajcvickers mentioned it gives updated code for t...
efcore error NU1202: Package dotnet-ef 3.0.1 is not compatible with netcoreapp3.0
@bricelam Presumably the workaround for anyone hitting this is to install the 3.0.0 version explicit...
efcore Could not load System.Diagnostics.DiagnosticSource
Looks like this only occurs on Class Library projects targeting netcoreapp1.1 Could not load file or...
efcore EF7 (RC1) - Cannot Skip() and Take() in SQL Server 2008
@tobbylee1 This API now uses a nested closure pattern: I am aware that SQL Server 2012 and above has...
ImageSharp WebP Support
I am working on support for webp So far decoding of lossless images is almost done I will continue w...
efcore Problem with dotnet cli ef tools after upgrading to vs 2017 15.4.4 and november .net core rollup
I have the same predicament Error is occurring when running: dotnet ef migrations remove I was able ...
efcore The instance of entity type cannot be tracked because another instance with the same key value for {'Id'} is already being tracked
Numerous issues I've been running into have one nasty root In a nutshell: I've learned the hard way ...
efcore Cannot be tracked because another instance of this type with the same key is already being tracked
@rickco75 I had same issue and get rid of it by below: In your case it will be: var record2 = _conte...
language ext FP design with language-ext
@andyigreg I have talked about this before with Free Monads and you can see the working in the Accou...
efcore Could not load file or assembly System.ComponentModel.Annotations, Version=
In some form this problem is already there for more then two years Hi the past few days I tried to g...
efcore Significant Query Slowdown When Using Multiple Joins Due To Changes In 3.0
I would like to chime in and say that we are also having this issue and is very problematic for us ...
efcore pluggable schemes for mapping c# names
update for efcore3 the Relational() methods have been removed in 469177a I am using EF Core with Pos...
efcore Distinguish cancellation from failure to allow different logging strategies
I think this should have a label urgent-fix not consider-for-next-release What problem are you tryin...
Newtonsoft.Json Serialization of decimals does not respect precision
I agree that this is unexpected behaviour at the very least and imho it is also a bug For 15 the pre...
Entitas CSharp Roslyn based code generator
Wooooot! Just generated the very first time! The current code generator relies on reflection which m...
GitVersion GitVersion on VSTS fails with hosted macOS and Linux agents
Under macOS (10.14) Since version 4.0.0 of GitVersion it seems to be supported to use the GitVersion...
language ext How do I use Try<T> with an existing method?
Anyone able to help me out here? Sorry if this is a dumb question but as I said I'm fairly new to FP...
efcore Mechanism/API to specify a default conversion for any property of a given type in the model
For EF Core 6.0.0-preview6: Value conversions were introduced by #242 Currently conversions are only...
efcore SQL Server Migrations: Idempotent scripts fails with 'invalid column name' (needs EXEC)
Hi Another workaround is to globally wrap SQL scripts with EXECUTE() statement I have encountered a ...
efcore Discussion for announcement: EF Core 2.0: design-time DbContext discovery changes
@markrendle After discussing with Hosting it sounds like Startup.Configure() should only be used to ...
choco PHP Package won't upgrade or uninstall - Path Bind Error
@jansohn only workaround that I know of currently is: Uninstall the package without running the unin...