-
Notifications
You must be signed in to change notification settings - Fork 677
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
Archlinux - ms-vscode.csharp - "Error while installing .NET Core Debugger" #564
Comments
@Vindicator as far as I know, Arch Linux isn't yet officially supported by .NET Core (ex: I don't see it listed on https://www.microsoft.com/net/core). I don't think we would support it for the debugger until it becomes officially supported. |
So be it if you want to wait for an "official okey-dokey" from the core team, but do know that dotnet does work in Arch: https://github.com/dotnet/coreclr/issues/5006#issuecomment-229472022 I will also add that I may have been a lucky tester of abrodersen's package as I just now looked at the comments for his package on AUR that people were having issues building it. I already had all dependencies from when I attempted building from scratch in the past. If you're looking for a guinea-pig, just come-a-knockin'. |
@vindicatorr in a later comment though, it sounds like Abrodersen rebuilt the native binaries on Arch. Do I have that right? If the Fedora 23 runtime will work as-is (in other words the native binaries in the Fedora package are binary compatible with Arch), then we can probably do a quick tweak to this switch statement to add support for Arch. If we need a new runtime - because both OmniSharp and the debugger package carry there own runtime, there isn't a simple official fix we can do. If you are interested in getting this to work on your own box - that is very doable. |
Oh right, native are built locally on Arch: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=dotnet-cli, just not mscorlib and related managed libraries. For the sake of testing ONLY fedora dotnet in Arch, I overwrote abrodersen's build with the fedora tarball (including native) and as expected dotnet fails (0x80131500). |
Thanks @Vindicator. I moved this issue and #563 to the 'future' milestone for now as I don't know when there will be official packages for Arch. But we can give you instructions that you can try if you want to play around with this yourself. /cc @DustinCampbell |
Certainly, I can give it a go in a couple days after I give clr and fx another go. |
What part of code is generating "runtimes" line in "coreclr-debug/project.json"? EDIT: Never mind, found it, the project is much better organized than I anticipated. |
Is possible to receive some instructions too? I'm used to working with archlinux for quite a while and have been een C# dev for decade too. Hate to have to switch distro just to get debugging to work. |
@elangelo is there an arch-Linux compatible version of .NET Core available for download from Microsoft? If one of the official builds from Microsoft works - this is pretty easy, we just need to change the platform detection code in src/platform.ts to return the runtime id of this compatible distro. Otherwise - this might not be possible to solve. You could try downloading one of the debugger zip files and then replacing all the CoreCLR binaries in it. I would use one of the 1-6-0 zip's as those move to the 1.1 CLR (see #1000 for the PR that switched to this). |
I have dotnet running on my ArchLinux machine. The tarball for ubuntu 16.04 of dotnet (dotnet-dev-ubuntu.16.04-x64.1.0.0-preview2-1-003177.tar.gz) works just fine on archlinux as well. So i downloaded the ubuntu coreclr-debug zip referred to in PR 1000, where am i supposed to put this? I think this one should actually just work on my install. |
@elangelo can you try downloading https://vsdebugger.azureedge.net/coreclr-debug-1-6-0/coreclr-debug-ubuntu.16.04-x64.zip and extracting it to ~/.vscode/extensions/ms-vscode.csharp-ver/.debugger (replace ver with the version you have installed, make sure it is at least 1.5). Please verify you can hit breakpoints and the locals window will populate. If that works, cat you send me your /etc/os-release file? |
@gregg-miskelly this worked thnx!
for your info: /etc/OS_RELEASE#NAME="Arch Linux" 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. |
You can also include Antergos if you are submitting something for Arch Linux, since it's like a glorified installer for Arch, the
|
@cra0zy we will respect Okay, I will try and get out a fix for this soon. |
Okay, I have what I think is a fix. If someone can validate it that would be helpful:
Thanks! |
@gregg-miskelly just tested this. Works like a charm! (Y) |
@elangelo Excellent. I will merge the PR then. Thanks! |
@gregg-miskelly
i added the ID_LIKE line myself |
@NikkyAI do you by chance have trailing spaces after the closing quote? You can see the code here: https://github.com/OmniSharp/omnisharp-vscode/blob/master/src/platform.ts#L75 I don't see anything obviously wrong with the code. You are welcome to open a bug if you want somehow to help investigate. |
@NikkyAI there seems to be some dispute over which version of coreclr actually works on Arch. We had one user previously report that Ubuntu 16 worked, so that is what we went with. But we had another recent user report that Ubuntu 16 didn't work, but Ubuntu 14 did. Can you try this --
Find the ubuntu 14 URL with: Download and extact that zip to the '.debugger' folder under the extension root (ex: ~/.vscode/extensions/ms-vscode.csharp-1.7.0/.debugger).
|
i guess i should have opened another issue for this.. |
I think I managed to fix this. See the referenced issue. |
From @vindicatorr on July 13, 2016 9:17
Steps to Reproduce:
Extract VSCode
mkdir test; cd test; dotnet new
Start VSCode and Open Folder for newly created "test"
Enable recommended "ms-vscode.csharp" (and restart VSCode)
View Log
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
The text was updated successfully, but these errors were encountered: