-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
omnisharp_mono cannot find Unity assemblies upon creating a new file #159
Comments
Hello! This seems to be a usability issue with the server itself? In that case this is no the the place to report the issue. It should either be reported to the LSP server developers or to nvim-lspconfig, depending on what kind of issue it is. |
^exactly. So you might be interested in this old thread, which is exactly the problem you were asking for: OmniSharp/omnisharp-roslyn#2250. @willswats |
Thank you, and sorry for posting to the wrong repository. I'll have a look through at the potential solutions and try them out. |
@willswats can you share your config for omnisharp and neovim? I am having some trouble getting it to work |
@Nikola-Milovic My LSP config is here, but I'm not doing anything special for OmniSharp. Make sure you have |
Problem description
Upon creating a new file in Unity, the assemblies are not found by
omnisharp_mono
. UsingLspRestart
onomnisharp_mono
causes the assemblies to be found.Why do you think this is an issue with mason-lspconfig.nvim?
I attempted this with VSCode and OmniSharp, but did not receive any errors.
Neovim version (>= 0.7)
NVIM v0.8.3
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Operating system/version
Linux will-desktop 6.1.12-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 15 04:35:34 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
I've manually reviewed the Nvim LPS client log (
:LspLog
) to find potential errorsI've recently downloaded the latest plugin version of mason.nvim, mason-lspconfig.nvim, and nvim-lspconfig
Affected language servers
omnisharp_mono
Steps to reproduce
Actual behavior
Receive errors:
Unnecessary using directive.
The type or namespace name 'MonoBehaviour' could not be found (are you missing a using directive or an assembly reference?)
Expected behavior
Receive no errors on newly created cs file.
LspInfo
LspLog
No response
Healthcheck
Screenshots or recordings
The text was updated successfully, but these errors were encountered: