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

RPC errors when trying to connect to the LSP server #73

Open
OmanF opened this issue Jul 29, 2023 · 2 comments
Open

RPC errors when trying to connect to the LSP server #73

OmanF opened this issue Jul 29, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@OmanF
Copy link

OmanF commented Jul 29, 2023

Describe the bug
When starting an F# file, or running an operation that requires the LSP server being queried, I get RPC[Error] of varying types:

  1. When starting a file, the error is it couldn't find the last non-whitespace char
  2. When trying to comment a line using Tim Pope's vim-commentary plugin (which I've bound to gcc, for example), the error is it can't find a triggering char.
  3. For auto-complete dropdown, it's a coin toss: sometimes I get the same results as I get using Ionide for VSCode, and sometimes I get very partial results.

To Reproduce
As indicated in the description, either open an F# or perform an operation that requires LSP server interaction.

Expected behaviour
No RPC errors so the LSP communication is fluid and I get the full benefits of using the plugin.

Screenshots

ksnip_20230729-103018

ksnip_20230729-103102

Environment (please complete the following information):

  • OS: ArchLinux (kept up-to-date on a daily basis, all packages are at the latest available on AUR)
  • Vim / Neovim version: NVIM 0.9.1, Release, LuaJIT 2.1.0-beta3
  • dotnet SDK version: 7.0.306
  • mono / .Net Framework version: N/A (on Linux, using dotnet)

Additional context
I don't know if it's important, but I've fsautocomplete installed globally, version 0.61.1 and am starting the plugin in NVIM via the following call:

let g:fsharp#fsautocomplete_command = [ "fsautocomplete" ]
let g:fsharp#lsp_codelens = 0
@OmanF OmanF added the bug Something isn't working label Jul 29, 2023
@TheAngryByrd
Copy link
Member

@baronfel is this another case of missing more places to return null instead of an error?

@baronfel
Copy link

baronfel commented Aug 9, 2023

Yeah, I think so - I bet we could search for these errors and return more gracefully!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants