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
3
votes
1 answer

Why is clangd not seeing my custom library location

Problem Statement: I have a library installed in a custom location, and compilation and linkage works properly, but clangd is reporting various errors related to the custom lib. My Makefile has the following flags: CFLAGS += -I/usr/local/share/mylib…
Brett Holman
  • 743
  • 6
  • 18
3
votes
2 answers

lsp-mode for go erring out with "no views in session"

What I'm trying to accomplish I'd like to use go-mode/lsp-mode together. I struggle to get lsp-mode to even execute at first, finally got it to work by appending the paths :facepalm:. The issue The issue now is that when lsp-mode starts up for the…
Busch
  • 857
  • 10
  • 29
3
votes
1 answer

Debugging C++ language server errors: Invalid AST

I've got a C++ project in which I can open up any .cpp or .h, and the LSP will crash/fail (I'm using emacs with lsp-mode). For instance if I try to open a file called IDictionary.h, clangd will fail with the following errors in the clangd::stderr…
pipsqueaker117
  • 2,280
  • 9
  • 35
  • 47
3
votes
1 answer

How to setup a Java Language Server with Qt Creator?

I can't find any information about the way I should configure the Java Language Server in Qt Creator (for android development, if it matters). I've found two repos with the language servers: by @georgewfraser and eclipse, but I have no idea how to…
Vincent
  • 43
  • 4
3
votes
1 answer

VSCode displays 'Installing Kotlin Language Server' for a long time. Can I stop it?

VScode displays this status when I open it: Installing Kotlin Language Server... It takes a long time to go away. It also seems to make it impossible for me to debug my Android projects. How can I know how long it will take to complete? Is it…
JerryZhou
  • 4,566
  • 3
  • 37
  • 60
3
votes
0 answers

Add a custom language defined in OCaml to Monaco Editor

I have already written a non-trivial custom language in OCaml. I know this way purely in JavaScript to make Monaco Editor register a new language. However, I don't know how to leverage the language defined in OCaml while registering it in Monaco…
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
3
votes
1 answer

language server onCompletion is only listening to letters [a-z], how do I enable a period (.)

The lsp-sample in repository https://github.com/microsoft/vscode-extension-samples/tree/master/lsp-sample shows how to implement onCompletion the server only listens to letters [a-z] and not to a period (.) I have seen that this is controlled with…
Corno
  • 5,448
  • 4
  • 25
  • 41
3
votes
1 answer

How to react to file-system events in the language server

I'm writing a language server protocol extension for a custom language for VS Code. I'm writing the server part in C# using OmniSharp Language Server API. I'm having trouble implementing DidChangeWatchedFile functionality. Even if I implement the…
3
votes
2 answers

How to create and edit a new file in the workspace via Language Server Extension

How do I get a Language Server Extension to trigger the creation of a new file , edit it, and display it in the attached client's workspace? I have a LSP extension written with vscode-languageserver in node.js that executes a Command on the server…
3
votes
1 answer

How to select symbols onWorkspaceSymbol

I am developing an extension for visual studio code using language server protocol, and I am including the support for "Go to symbol in workspace". My problem is that I don't know how to select the matches... Actually I use this function I…
Perry
  • 1,113
  • 2
  • 10
  • 22
3
votes
0 answers

How can i use cquery with spacemacs

Is there a canonical/robust way to use cquery with spacemacs? I recently swiched from vim to spacemacs and am not yet very familiar with emacs/spacemacs configuration/customization. I have used cquery with vim before. My projects have a…
xophos
  • 366
  • 4
  • 19
3
votes
1 answer

How to publish a LSP language server on VSCODE as we do extension

Have been through official site, the whole process is very well documented for publishing extension : vscode publish extension My doubt is regarding publish Language server(LSP) in vscode as file structure for LSP is different from that of Extension…
3
votes
1 answer

How do I provide method parameter info from a Language Server?

I am trying to implement a language server for visual studio code for a language whose method calling is similar to JavaScript (method name plus parameters inside parenthesis). I would like to provide parameter info (name and type) after the user…
2
votes
0 answers

gopls extract function not working in neovim lsp

I am using Neovim v0.8.3 on Ubuntu 22.04.2 LTS. I have configured neovim LSP using mason plugin to use the Go language server gopls v0.13.1. I can confirm that the language server works for some functions. For example with my LSP config (see below),…
Ayub Malik
  • 2,488
  • 6
  • 27
  • 42
2
votes
0 answers

neovim + lsp/clangd based autocompletion on Raspberry Pi 4

I am trying to configure a RPi4-based programming environment for embedded systems programming. I chose neovim as a primary editor due to ability to work with both "desktop" (with monitor and keyboard attached) and headless (remote, with ssh…