omnisharp-roslyn: Incomplete/missing system API methods
I’m trying to manipulate some binary data represented as a hexadecimal string and I noticed that the language server incorrectly reports that some API methods do not exist. As a specific example (I have not had time to exhaustively go through all the API and see which are reported incorrectly) I would like to highlight Convert.ToHexString
To reproduce this problem:
- Start a new .NET 6 console application:
$ dotnet new console --framework net6.0
- Edit the generated Program.cs in emacs. Type just enough to get the autocomplete and syntax checkers to kick in:
using System;
byte[] bytes = new byte[] { 1, 2, 3, 4, 5 };
Convert.ToHexString(bytes);
- Note the syntax checker informing you that
ToHexStringis invalid:
And that’s all there is to it. I am using emacs with an up-to-date omnisharp (verified by running M-x lsp-update-server) on macOS 12.5 (Monterey).
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (9 by maintainers)
Yeah, that seems to be it. Here’s the function on disk:
So I guess that’s pulling the wrong zip, and I guess that’s what I get for assuming lsp was up to date. Thanks for bearing with me through this mess.