-
Notifications
You must be signed in to change notification settings - Fork 168
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
Issue with dotnet version 2.1.500 and later #427
Comments
Tested again with version 2.1.403, and 2.1.500. Doesn't work with 2.1.500.
But, as we see at https://dotnet.microsoft.com/download/dotnet-core/2.1, version 2.1.500 is an LTS version. |
I'm sorry @JulioJu I haven't found time to investigate. Have you by any chance tried VSCode to see if OmniSharp-roslyn is working with I think it might be a good idea to leave this issue open for a while and see if it affects anyone else. |
@JulioJu I can confirm that there appears to be a problem with |
@JulioJu unfortunately it's going to be difficult to debug this, since most users (including me and I assume you?) are using an old version of OmniSharp-roslyn, since the Http version which OmniSharp-vim uses is broken after |
@nickspoons I've tried to test with a new version of omnisharp-roslyn compiled by me, as you explained at OmniSharp/omnisharp-roslyn#1274 (comment). But I don't understand how the compiled version should be put in ~/.omnisharp/omnisharp-roslyn. The generated tree is different. I didin't seen any particular issue published on omnisharp-roslyn or omnisharp-vscode projects about a problem with dotnet v.2.1.500. Please, could you release your own version of omnisharp-roslyn, compiled on your ArchLinux ? Thanks a lot in advance :-) ! |
This all seems very strange to me, because I've been using .NET Core 2.1.500 for quite a while now with no issues at all. I captured this from my terminal pane, and editing the resulting code in Vim with OmniSharp-vim worked perfectly for me. [axvr@arctic ~]$ cd Documents/Projects/ [axvr@arctic Projects]$ mkdir Test [axvr@arctic Projects]$ cd Test/ [axvr@arctic Test]$ dotnet --version 2.1.500 [axvr@arctic Test]$ dotnet new sln The template "Solution File" was created successfully. [axvr@arctic Test]$ dotnet new console The template "Console Application" was created successfully. Processing post-creation actions... Running 'dotnet restore' on /home/axvr/Documents/Projects/Test/Test.csproj... Restoring packages for /home/axvr/Documents/Projects/Test/Test.csproj... Generating MSBuild file /home/axvr/Documents/Projects/Test/obj/Test.csproj.nuget.g.props. Generating MSBuild file /home/axvr/Documents/Projects/Test/obj/Test.csproj.nuget.g.targets. Restore completed in 139.23 ms for /home/axvr/Documents/Projects/Test/Test.csproj. Restore succeeded. [axvr@arctic Test]$ dotnet sln add Test.csproj Project `Test.csproj` added to the solution. [axvr@arctic Test]$ ls obj Program.cs Test.csproj Test.sln [axvr@arctic Test]$ I'm running Fedora Linux 29, however I'm not using the official packages from Microsoft, instead I'm using these builds https://copr.fedorainfracloud.org/coprs/g/dotnet-sig/dotnet/. |
Yes, it's confusing and upsetting 😢 I just tried that build I compiled when I commented on omnisharp-roslyn#1202 and it works fine with dotnet 2.1.500 I'm not really sure about making a release - I can wrap up what I have into a tarball but it's better if you can build it yourself @JulioJu - this one is already quite out of date. To use it, I added these to my .vimrc: let g:OmniSharp_server_path = '/home/nickspoon/tools/omnisharp-roslyn/bin/Debug/OmniSharp.Http.Driver/net461/OmniSharp.exe'
let g:OmniSharp_server_use_mono = 1 |
@axvr I've tested with the official compiled version by Microsoft, and with the packaged version of ArchLinux. @nickspoons thanks for your information. I will test next week. It could be very cool for newbies that want use your excellent plugin ! |
@nickspoons tested.
What do you think about that ? |
@JulioJu I don't have any permissions for [OmniSharp/omnisharp-roslyn]. I don't think it would be right to host omnisharp-roslyn releases in omnisharp-vim. However the current situation is very frustrating. If you can convince the OmniSharp-roslyn guys to publish an Arch Linux build then that will presumably be useful to other arch users ... but I'm not sure it will work. The omnisharp-roslyn repo has a good release build system running with Travis so they'll want any other releases they do to use similar tooling. And it appears to be something in the Travis build that is causing the problem. At somepoint somebody with the right combination of knowledge and time is going to need to investigate properly - possibly by recreating the ubunty environment that Travis uses and tinkering the the builds there? I don't know. I'm painfully short on time myself at the moment! All of that said, by all means create an issue with omnisharp-roslyn. I'd love to be able to start using the latest versions of omnisharp-roslyn again, and keep up with the changes they are making over there! |
What do you think about that ? As I'm nobody (no contributions in this Repository, no particular skills) I can't ask for me :-). |
Sorry, tested further.
If you won't publish your OmniSharp bin, could you send me by email ? Thanks in advance. |
@JulioJu I'm not going to publish my compiled omnisharp-roslyn. As described in the omnisharp-roslyn issues mentioned previously, mine was a hacked together solution for debugging - the fact that it works doesn't make it at ready to be shared as a release. The "linux" release at omnisharp-roslyn works perfectly well on arch linux. The issues we have been having since 1.32.2 affect all *nix variants, so a specific arch linux build won't help. As to your completion - ALE is only used for error highlighting in omnisharp-vim. ALE can perform autocompletion, but it does this internally and only for LSP language servers, which omnisharp-roslyn is not (currently). So to get completions you can use |
@JulioJu I can send you a tarball of my outdated omnisharp-roslyn if you want me to, but why? Didn't you say you had successfully built it yourself? |
Ok I understand Sorry, I was not clear. When I try to compile 2881c46e2212b41aed22ee5ec1aafab99b6b6ecf, all work when I follow OmniSharp/omnisharp-roslyn#1202 (comment).
Sorry, I was unclear ! I like if you send me your old binary, thanks. I send you an email :-). Thanks a lot. |
See also #437 (comment) @nickspoons maybe could you confirm ? If you confirm, maybe I must wait that OmniSharp/omnisharp-roslyn#1361 will be closed before open a new issue on omnisharp-roslyn ? I've tried to upgrade all package of build/Packages.csproj and replace all reference of dotnet core 2.1 to dotnet core 2.2 and upgrade from net461 to net462 without results (build fail). Probably upgrade packages is more complicated ? And maybe it's not the caused of the error described at #437 (comment) ? What do you think about that ? |
@nickspoons after many search I've found a cool workaround ! Replace: omnisharp-vim/autoload/OmniSharp.vim Line 607 in 8829316
by let savedPath = $PATH
let $PATH = '/media/data/home/dotnet2.1.301/:'.$PATH
call OmniSharp#proc#RunAsyncCommand(command, a:sln_or_dir)
let $PATH = savedPath Then when you are in your Vim, you keep your dotnet installed globally ! (e.g. 2.2.100). You could test, in a file .cs to type @nickspoons what do you think about that ! Like that, you keep And I've tested with the version of omnisharp-roslyn Note: I've noticed that with the following configuration, I have the same problem as described at #437 (comment), even with let g:OmniSharp_server_use_mono = 1
let g:OmniSharp_server_path = '/media/data/home/omnisharp-roslyn/artifacts/publish/OmniSharp.Http.Driver/mono/OmniSharp.exe' |
@nickspoons so cool, I've seen OmniSharp/omnisharp-roslyn#1274 (comment) therefore I close the current issue. I'm happy. Maybe you could update https://github.com/OmniSharp/omnisharp-vim#Server and advise to use pre-released version of OmniSharp ? |
Great job getting this diagnosed and fixed @JulioJu! For now I think it's less confusing to just wait for the next OmniSharp-roslyn release. Downloading and installing the pre-release is a bit messy, and in the meantime the old 1.32.1 release still seems to work fine for most people (maybe not? I'm not sure). The ones who are desperate enough to watch this issue will see that there's a solution now anyway 😄 |
Is this solution patching the omnisharp-vim as shown in this comment? |
@masaeedu you don't need to patch vim, the solution in that comment just manually adds a specific The solution @JulioJu is taking about is the fix to Http communication in OmniSharp-roslyn so we can start using newer versions than There hasn't been a tagged OmniSharp-roslyn release including the fix yet, but it'll be along soon. Anyone wanting to upgrade immediately can try a prerelease build of OmniSharp-roslyn, see this comment |
@nickspoons pre-release here https://github.com/OmniSharp/omnisharp-roslyn/releases/tag/v1.32.12 !! Therefore maybe you could update the README now ? And change default behaviour of |
I saw it @JulioJu, but there was a problem with that release (note that there are no Linux/Mac assets). I informed the OmniSharp-roslyn guys and they have made a new release - I'll update soon. |
@JulioJu updated |
So cool ! End of a very very old issue… Near height months ! |
Hi !
Today, I've experienced a problem with
$ dotnet --version
:2.1.500
.But all works well with
$ dotnet --version : 2.1.403
, no problems with2.1.403
, only with2.1.500
. Is it normal ?I've tested on a complete new project, generated thanks
$ dotnet new web && dotnet new sln && dotnet sln add Aspnet.csproj
,and with the following vimrc:
Thanks command
:message
in Neovim we have the output:Thanks in advance ;-).
EDIT: see also #437 (comment)
The text was updated successfully, but these errors were encountered: