ojroques / nvim-lspfuzzy

A Neovim plugin to make the LSP client use FZF
BSD 2-Clause "Simplified" License
315 stars 11 forks source link

Code action text missing sometimes (tsserver) #16

Closed sQVe closed 3 years ago

sQVe commented 3 years ago

👋🏼

I mainly use the tsserver LSP and I'm seeing two issues when triggering codeAction with this plugin:

Thank you for an otherwise awesome plugin 🙏🏼 Just ping if you need further input/information.

ojroques commented 3 years ago

Hello,

For the first issue, could you try to perform the same code action without the plugin? Just to be sure the error comes from the plugin and not from your language server.

For the second issue I have no clue why would that happen but I'll take a look.

sQVe commented 3 years ago

@ojroques The first issue is there without this plugin too 👍🏼

RPC[Error] code_name = unknown, code = 0, message = "json: cannot unmarshal number into Go struct field Diagnostic.context.diag
nostics.code of type string"
ojroques commented 3 years ago

Ok that means either there's something wrong with your language server or Neovim's LSP client (less likely). You should open a ticket there :) For the other issue I've checked and tried to reproduce but no luck. If you manage to have a reproducible case that'd be helpful.

sQVe commented 3 years ago

I managed to fix this. See https://github.com/neovim/neovim/issues/14925 for further info. Closing issue! 🎉