-
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
Pattern not found #440
Comments
Hi @mvrozanti, could you give us the commands you ran to create the project you detailed above, it seems to me that there could be something wrong with the If you are using .NET Core 2.0+, could you test using OmniSharp-vim with the project generated by running these commands: mkdir -p TestProject/
cd TestProject
dotnet new console -o TestProject
dotnet new sln
dotnet sln add TestProject/TestProject.csproj Then open the file |
Done as instructed but still no completions. This time upon opening Trying |
Ok, could you now give us the output from running |
I'm supposing |
If you start the OmniSharp server manually, could you give everything it outputs to stdout. ~/.omnisharp/omnisharp-roslyn/run -vs "$(pwd)/TestProject.sln" |
The bottom directory |
Oh sorry, you are using the Mono version, so maybe try this command instead. mono ~/.omnisharp/omnisharp-roslyn/OmniSharp.exe -vs "$(pwd)/TestProject.sln" |
Sorry I forgot to mention that. Maybe I should update the title or first comment
|
Could you run these commands on the dotnet restore TestProject.sln
dotnet build TestProject.sln
dotnet run -p TestProject/TestProject.csproj |
Looks like ok output |
Yeah, that output is exactly what should be expected from a working installation. Could I ask you if you manually installed OmniSharp-roslyn, or if you let OmniSharp-vim install it for you? |
Since we know that your .NET Core environment is working, maybe we could try not using Mono, by removing the line: let g:OmniSharp_server_use_mono = 1 from your Vim (or Neovim) config, then open the ~/.omnisharp/omnisharp-roslyn/run -vs "$(pwd)/TestProject.sln" |
I installed I will try that right away |
Removed
|
Hm, Ok so that made no difference. Two more questions:
If your .NET Core version if |
That might just be it.
Lemme read up on #427 |
Actually ignore that, it probably won't make a difference, but feel free to test it anyway if you like. |
The workaround mentioned in that issue is pretty hackish. Maybe just downgrading I'm not too comfortable installing stuff from AUR unless extremely necessary. This package might also add a few dependency bugs with |
Good debugging @axvr. I notice that both of the terminal outputs you've posted have been from your original project - could you show what is getting output when you manually start the test project created with the commands @axvr gave? If it also shows the |
I see. May I ask, what do you mean by "manually start the test project"? |
I'm sorry I misunderstood - this is the clean TestProject you've been posting the output of, after manually starting it from the command line. |
I'm in the same boat I think. On Arch Linux, have installed Omnisharp-Vim, but can't get any completions. When I try to start up the server by hand I get the same "Attemped [sic] to update project that is not loaded" error message:
|
Searching for the "Attemped xyz" error message brings up a bunch of results on the VS Code extension's issue tracker, not sure if these are relevant: dotnet/vscode-csharp#2509 |
Following the advice of someone in that thread, here it is again with log level trace:
it seems to be looking for something it can't find, although idk if that's just one of those exceptions that are being thrown and caught as a matter of course and there's nothing wrong with it. |
@masaeedu I think this is different, your errors are not the same as the errors from OP, However your errors do look like those from #403:
The issue was solved there by installing mono and using the mono version of OmniSharp-roslyn - could you give that a try? |
Since these are all OmniSharp-roslyn issues, and that repo has had several releases since this issue was opened which may fix it, I'm closing this. |
It automatically starts the Roslyn server on startup but if I shut it down and start it again I get the following:
<C-x><C-o>:
stdout: ['^[[40m^[[32minfo^[[39m^[[22m^[[49m: OmniSharp.Http.Middleware.LoggingMiddleware[0]', ' /autocomplete: 200 0ms', '']
But does not bring omnicompletion menu up
csharp_test.csproj
test.sln
How else may I debug this?
EDIT: I must say that I have https://github.com/neoclide/coc.nvim plugin installed
The text was updated successfully, but these errors were encountered: