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

Why does clangd respond with "method not found" when using textDocument/didOpen?

I try to communicate with clangd. The first initialization is fine, but when trying to open a document with "textDocument/didOpen" i get the response "method not found". I cannot find any other method in the specification for opening documents. Is…
Lasersköld
  • 2,028
  • 14
  • 20
0
votes
0 answers

How to configure lsp-mode to run pylsp installed in a pipenv virtual environment?

I have tried to set lsp-pylsp-server-command to pipenv run pylsp and also to the path of pylsp in the virtual environment in .dir-locals.el. Both ways did not work because the language server seems to be started before the local variables are…
user7018565
  • 209
  • 2
  • 12
0
votes
0 answers

Get DialogPage settings from a ILanguageClient

I am trying to create an extension for visual studio with AsyncPackage and ILanguageClient. I have created a DialogPage named Config. When I launch my extension the page "Config" does exist but impossible to get its values from the OnLoadedAsync I…
0
votes
0 answers

Rust lsp-server get editing text

I'm currently writing a language server in rust and have the following problem: I want to add code completion sensitive to the code already been written. I followed the the example for the crate lsp-server I'm using. How can I get the text of the…
0
votes
0 answers

How to implement a multi character auto-complete trigger in language server

I'm building a language server for a custom DSL using the Pygls library. Member expressions are handled with . in the language as used commonly in other languages, eg datum.deadline. I've made auto-completions work with this trigger…
et97
  • 75
  • 1
  • 6
0
votes
0 answers

Monaco Editor and LSP written on Java

Is it really possible to connect Monaco editor with Groovy Language Server using monaco-languageclient as described here with Python? Has someone seen any examples of this at all?
0
votes
0 answers

analyzer_plugin generates Legacy protocol of Dart analyzer server instead of LSP

I try to write some custom lint rules. To achieve this, I used the analyzer_plugin package and I set up my project as it should be. Here is a simplified excerpt of the main class : class LintAnalyzerPlugin extends ServerPlugin { @override …
0
votes
1 answer

Breakpoints not binding in language server protocol extension

We are building our LSP extension using the sample as a basis. Breakpoints are binding successfully for code in the client folder but not in the server folder. Our launch configs are very similar to the ones in the sample and all our typescript gets…
GabeV
  • 859
  • 8
  • 21
0
votes
1 answer

Intellisense not working for external libraries in Kotlin language server

For external libraries kotlin intellisense is not working. It is showing "Unresolved Reference" error. I am trying to inject dependencies of Jackson jars to my Kotlin LSP. Can anyone suggest how we can achieve this? Sample Image
0
votes
1 answer

Track GitHub session on the server

I am writing a language server that sometimes needs to access data from a GitHub repository. I am following this sample to obtain GitHub authentication. The sample is based on client-side code, so I'm wondering how I would provide the authenticated…
0
votes
1 answer

Python communicating with clangd in a non-blocking way

I'm implementing a plugin for one of my hobby projects and basically I want to use an LSP for highlightning code put on a website. In my case, I want to use clangd to gather information about pre-written C and C++ code. The problem I'm facing is how…
Xeverous
  • 973
  • 1
  • 12
  • 25
0
votes
1 answer

Mypy Flycheck Clears Errors On Unsaved File

I am currently trying to port over my python enviornment to Doom Emacs from VSCode. One of the major features I want is type checking from MyPy. Doom Emacs' flycheck comes with MyPy as an option by default so I was going to use that. My major issue…
0
votes
0 answers

Eclipse Xtext and an independent LSP server do not (appear to) work together - should they?

I have an independently written LSP-compliant language server for a custom language and an Xtext framework for that language, as Eclipse plugins. The two work fine independently; the LSP is connected in using LSP4E. But when I try to connect the…
David Cok
  • 1
  • 1
0
votes
2 answers

Java language server (redhad) error in VSCode (Linux)

Since some days I get an error at startup of language server. The log file looks as follows indicating a NollPointerException: message: '[Error - 11:53:59 AM] Sep 23, 2022, 11:53:59 AM Error in JDT Core during AST creation\n' + 'Cannot invoke…
user2609605
  • 419
  • 2
  • 14
0
votes
0 answers

VSCode LSP - display notifications

Working on an LSP extension (for vscode), I'm trying to show arbitrary progress bars as notifications, initiated by the Server. As I understand, the server needs to send a "window/workDoneProgress/create" request followed by "$/progress"…
Cohars
  • 3,822
  • 1
  • 29
  • 50