Questions tagged [language-server-protocol]

Questions about the Language Server Protocol (LSP), a Microsoft open source protocol used between an editor or IDE and a language server that provides language features.

The Language Server Protocol (LSP) is an open source protocol used between an editor or IDE and a language server that provides language features such as code completion and syntax highlighting.

The LSP was originally developed for Microsoft's Visual Studio Code.

357 questions
2
votes
0 answers

How to connect to a LSP server running at some PID?

I got a LSP server and it is a binary. Now I could run that library at a certain PID. How could I connect to that server and do some testing using vim.lsp.buf_request? I do not want to use vim.lsp.start({ cmd = {'name-of-language-server-executable'}…
Trung Do
  • 115
  • 5
2
votes
0 answers

Clangd with compile_commands.json inside header files

I am using neovim with configured lsp (clangd) for a C project I'm working on. Whenever I'm inside a source .c file, the lsp works great and can locate definitions and stuff whether they're inside other source files or in one of the headers.…
matko031
  • 53
  • 7
2
votes
0 answers

Suppress C++17 warnings from LSP client in neovim

I installed the LSP client for C++ development using the plugin manager "packer" in neovim. My lua config was almost exclusively copied from this website: LSP in Neovim When working with modern CPP however, I get warning messages. The native LSP…
2
votes
1 answer

"unbound module Base" in VS Code with ocaml-lsp

I have Ocaml switch 4.13.1 running on Mac. utop is working fine, can load the Base module when I do: #use "topfind";; #require "base";; open Base List.mem ["1"] "1" ~equal:String.equal even though I followed these instructions…
v_head
  • 759
  • 4
  • 13
2
votes
0 answers

pylsp can't find installed editable packages

The problem is fairly straightforward: pylsp can't deal with editable packages. To create an environment that reproduces my problem: $ mkdir /tmp/pyslp_test $ cd /tmp/pylsp_test $ echo "import jaxtyping" > script.py $ mkdir editable_packages $ git…
2
votes
1 answer

How to include/configure lua_ls on lspconfig?

I am trying to include lua_ls on my lspconfig but I am getting this error [lspconfig] Cannot access configuration for lua_ls. Ensure this server is listed in `server_configurations.md` or added as a custom server. It will only appear after I add…
zer09
  • 1,507
  • 2
  • 28
  • 48
2
votes
1 answer

NeoVim shows diagnostic for `std` and other crates outside my current workspace

I use NeoVim with LSP Zero plugin + Rust analyzer for rust programming. When I jump to a definition in some external crate (including std) Nvim's diagnostic starts to show me all the errors from that crate. For example, if I just create new project…
Dmitry
  • 1,426
  • 5
  • 11
2
votes
0 answers

Port vscode (visual studio code) language server to Visual Studio extension

I want to add ansible DSL (based on yaml) support for Visual Studio 2022 (with extension), I found a language server for ansible DSL in visual studio code, and I want to port this language server into my extension for Visual Studio 2022. Can anybody…
2
votes
0 answers

Cannot disable linting warning from pylsp

I am trying to disable the warning from pylsp that my line is too long. However, evertime I open or save a python file I notice a message that pyflake, mccabe and pycodestyle are completed and I get a warning that some lines are too long. I cannot…
2
votes
1 answer

java.util.concurrent.ExecutionException: org.eclipse.lsp4j.jsonrpc.JsonRpcException: java.io.IOException: The pipe is being closed

Getting following exception in my Eclipse '.metadata.log' file that is resulting into almost 80% of CPU usage. Anybody knows what this means? Or how it needs to be fixed? This started after STS plugin was installed on…
Siva
  • 598
  • 3
  • 11
2
votes
1 answer

How to start clangd via web socket

I wanted to integrate Clangd with Monaco Editor and while trying to achieve this I found that I can't start Clangd via Web Sockets. When I run clangd in my terminal, it outputs Starting LSP over stdin/stdout, is there a way to let it launch a web…
2
votes
0 answers

How can I get the typescript version that my LSP server is using?

How do I get the typescript version that LSP is using to check my code? I'm seeing some bugs in my typescript code that may possibly be version-dependant.
leinaD_natipaC
  • 4,299
  • 5
  • 21
  • 40
2
votes
1 answer

elm language server does not work with neovim

I have tried to use elmls with nvim-lsp but lsp does not work. I am using nvim-lspconfig and nvim-lspinstaller. as for elmls i have the following configuration. lspconfig.elmls.setup { root_dir = require…
musako
  • 897
  • 2
  • 10
  • 26
2
votes
1 answer

Emacs - Python LSP setup.cfg not honored

I'm using vanilla Emacs and I installed lsp-mode as follows: (use-package lsp-mode :init (setq lsp-keymap-prefix "C-c l") :commands (lsp lsp-deferred) :config (defun lsp-go-install-save-hooks () (add-hook 'before-save-hook…
se7entyse7en
  • 4,310
  • 7
  • 33
  • 50
2
votes
0 answers

VSCode LSP (Language Server Protocol) DidDeleteFiles Notification not working

I am building VSCode plugin using VSCode language server. Delete file notification not working. Server code: this.connection.workspace.onDidDeleteFiles(event => this.fileDeleteHandler(event)) Server Dependencies "vscode-json-languageservice":…