Skip to content
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

Errors with new version of Omnisharp #2571

Closed
tilupe opened this issue Oct 5, 2023 · 3 comments · Fixed by #2572
Closed

Errors with new version of Omnisharp #2571

tilupe opened this issue Oct 5, 2023 · 3 comments · Fixed by #2572
Labels

Comments

@tilupe
Copy link

tilupe commented Oct 5, 2023

I updated my omnisharp-server this morning with the newest version via Mason (Neovim).

The server starts, but as soon as I try to use GoToDefinitio or any other method I get an error.

Error when executing textDocument/definition : Internal Error - System.MissingMethodException: Method not found: 'System.Collections.Generic.IEnumerator1<Microsoft.CodeAnalysis.NodeStateEntry1<System.ValueTuple2<System.__Canon,System.__Canon>>> Microsoft.CodeAnalysis.NodeStateTable1.GetEnumerator()'.
09:58:07 AM msg_show at Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler.HostOutputNode`1.AppendOutputs(IncrementalExecutionContext context, CancellationToken cancellationToken)

@JoeRobich JoeRobich added the razor label Oct 5, 2023
@JoeRobich
Copy link
Member

@TimothyPescatore Thanks for opening this issue. I can repro with a new project using the razor template.

@333fred @davidwengier Does this error look familiar? Does Razor need to be updated now that we took a new Roslyn?

@davidwengier
Copy link

@allisonchou knows all about this error and the pain it has caused. I was on holiday. 😛

@333fred
Copy link
Contributor

333fred commented Oct 5, 2023

We need to have O# include and prefer a matched version of the RazorCompiler external access dll (matched meaning the same version as our roslyn version). Sorry I forgot about this, I thought that the razor support was an entirely separate process and didn't need to line up with O# versions at all. See dotnet/roslyn#70176.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants