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.
372
questions
1
vote
0
answers
17
views
Format completion in VSCode with built-in command
I'm creating the VS Code Language Server and Client. I want to be able to format the completion result before it is shown to the user and use the VS Code formatting capabilities.
When the completion ...
1
vote
1
answer
34
views
Kotlin Language Server Does not recognize gradle dependencies
I have recently switched to using AstroNeoVim. I have installed the kotlin_language_server LSP, Treesitter on my nvim and I saw changes after that. Now only issue i have is that LSP seems not to ...
0
votes
0
answers
60
views
Autocomplete for #include files
Where do I set the path to include files?
I'm using neovim with nvchad. The project compiles without any issues as the makefile has all the necessary stuff.
How do I get autocomplete within the editor
...
0
votes
0
answers
9
views
pylsp mypy plugin discarding result for a.py against b.py
Sometimes pylsp returns an error result (over stderr?) withinformation such as WARNING pylsp_mypy.plugin discarding result for a.py against b.py
What does in mean? Should I, and can I, do something ...
1
vote
1
answer
40
views
Why is jedi installed?
My basic understanding is that jedi was an old method to do autocompletion / hints.
The new method is LSP, and we can use an LSP server with jupyterlab through jupyterlab-lsp.
One such LSP server for ...
0
votes
0
answers
28
views
How I can turn off reportGeneralTypeIssues in lsp pyright?
Below my lspconfig in nvim, I need to turn off reportGeneralTypeIssues, but when I set it to "none" it doesn't work, how I can fix that ?
local on_attach = require("plugins.configs....
0
votes
0
answers
20
views
Ways to access class structure/adding or removing highlighting via eclipse.jdt.ls Plugin API
I want to expand the Java LSP server(jdt.ls) but I didn't find detailed documentation for it. I want to
- access methods/annotations of classes;
- add/turn off error highlighting in some cases.
Are ...
0
votes
0
answers
41
views
Filtering and code completion do not work when '#' character is used
I've reproduced the problem in lsp-sample (description of my original post moved below).
The code completion does not work with # character. How to make it work?
Added CompletionItem for #1000:
...
0
votes
1
answer
35
views
VS Code Language Server Extension Guide Lacks "Attach" Launch Configuration
I am a beginner, learning the basics of Language Server Extensions in VS Code. I'm following this guide: https://code.visualstudio.com/api/language-extensions/language-server-extension-guide
...
0
votes
0
answers
23
views
Why aren't my custom language server VS Code extension's completions showing?
I have a language server for a custom language I'm making, and I launch it via an vscode-languageclient extension. The language server initializes with these capabilities
{
"capabilities"...
0
votes
0
answers
39
views
How does codingame.com's monaco c# language server implementation work
I'm trying to setup a monaco editor in a web project with working C#/.NET IntelliSense. The lack of available resources for this topic is a major problem for me.
By trial and error and some random ...
0
votes
0
answers
25
views
How can I keep the VSCode HTML-language-server formatting from breaking the frontmatter in a WebC-component?
I am working on an 11ty (eleventy) blog in the multimodal editor helix using WebC as a templating language. To get syntax-highlighting and autoformatting for different languages, helix requires a ...
0
votes
1
answer
34
views
How to convert this vscode-languageserver-node-lsp-sample to use on atom and vim?
from this link https://code.visualstudio.com/api/language-extensions/language-server-extension-guide i understood that we can use lsp on multiple IDE`s but I dont know once developed how to deploy it ...
0
votes
0
answers
21
views
clangd installed via mason-lspconfig shows "Use of undeclared indentifier" for evreything
Recently, I took on a C++ project involving 2D games. I started by setting up neovim with clangd LSP but upon opening the project, I encountered warning messages(alotough in red), such as "Use of ...
0
votes
0
answers
24
views
How do I track data flowing through a codebase? Like finding all references to an object after it has been passed through deep function calls?
When I'm going over a codebase, I wanna see how a piece of data flows throughout that codebase. For example, when I have an object, I wanna know how the object's reference gets passed around to ...
0
votes
0
answers
22
views
How should a Language Server Protocol Server determine the correct end of line sequence to use when inserting text into a document?
When implementing a Language Server Protocol server command that inserts lines of text into a document (i.e. by applying a WorkspaceEdit, for example when performing a source code action) is there a ...
0
votes
0
answers
41
views
Debugging pygls language server extensions in VSCode
I am working on Python-based language server (for a domain-specific lanaguage) and VSCode extension using pygls. I have followed the steps in the README and am trying to follow the tutorial. The ...
1
vote
0
answers
76
views
How do I configure .vue files import from .ts file in vim?
I have encountered a problem trying to configure NeoVim to work with Vue. On a freshly installed LunarVim instance I'm trying to work with .ts files, but there is an error with importing .vue file. My ...
0
votes
0
answers
14
views
documentChanges contains unopened files get error: bad edit - model not found
[email protected]
[email protected]
I recently encountered an issue whilst using the ‘rename symbol’ feature on Monaco Editor. The problem arises specifically when trying to rename ...
0
votes
0
answers
14
views
Yarn upgrade vscode lsp version to above 3.17
i am running a c++ project that integrates with vscode and am facing issues currently implementing the type inlay hints for the language server i implement.
I kinda boiled (aka: cannot find any reason ...
0
votes
0
answers
31
views
Rename-Refactoring XText Resource
I am trying to perform rename-refactoring on XText resource. And have added
fragment = refactoring.RefactorElementNameFragment2 {} to the dsl .mwe2.
When I am trying to rename existing EAttribute the ...
1
vote
1
answer
34
views
Properties defined in prototypal base-class's ctor are not identified as own props in a derived class
I'm documenting existing code with JSDoc in Eclipse with jsconfig.json configured (could add it here, but it mainly says "es2017", and path declarations that I saw perfectly working).
I'm ...
1
vote
1
answer
111
views
Custom messages in xtext based language server
I am trying to extend my language server to handle custom commands from VS Code client. To debug, I am using SocketLanguageServer. I send a custom command from the client:
client.sendRequest("...
0
votes
0
answers
34
views
Emacs lsp-metals: How can I setup java(JVM) opts for metals server?
I'm developing Scala with Emacs, using lsp-metals. It spawns metals LSP server (is scala program running under JVM) and interacts to Emacs.
When I coding, I found metals using memory with no limit (...
2
votes
0
answers
310
views
How do I get Metals LSP working in neovim?
Please help me with Metals LSP setup. I tried doing that with no luck, so I hope somebody here can help me please.
I've been using mason and its lsp-config
but now with metals i have trouble to ...
0
votes
0
answers
37
views
Is there a method to generate compilation database in a Yocto Bitbake Project?
This is a complex Yocto & Bitbake Project. I need to build it use bitbake command, like bitbake xx-kernel. And the xx-kernel project looks like the linux kernel, using kbuild, make toolchains for ...
0
votes
1
answer
37
views
Attach java object to Xtext Resource
We are using Xtext LSP for our language contribution in Vscode but facing a challenge .
We want to implement support for basic project where we attach a project configuration with all the xtext ...
1
vote
0
answers
33
views
Resolving Python Symbols with Wildcard Imports using python-lsp-server
I've been using the python-lsp-server to analyze a Python project and extract symbol definitions and references. The server works well for explicit imports, but I've encountered an issue when dealing ...
5
votes
0
answers
157
views
how to specify classpath with java_language_server of neovim?
I setup and config a java language server using ":Lsp install" and lspconfig plugin, but I cannot jump to classes in my project,
I just open single file and for every packages, java language ...
0
votes
0
answers
29
views
why pslsp is not returning correct definition?
I am asking for a go to definition request to pylsp using websockets. However, correct deifinition is not returned.
Here is the definition_request:
definition_request = {
"jsonrpc": &...
1
vote
0
answers
59
views
why pylsp is not returning any response?
I started pylsp with
pylsp --verbose --tcp --host 127.0.0.1 --port 9999
Now I connected to it with following python code:
import json
import socket
def send_request(request):
with socket.socket(...
0
votes
0
answers
38
views
clangd heats up the processor too much
I use lsp in emacs, which runs clangd. For large projects such as Unreal Engine where 1gb compile_commands are generated clangd consumes a lot of resources and heats up the processor, up to +90C. Are ...
0
votes
0
answers
18
views
how to run pylance to find references?
Can I run pylance to find references programatically?
I know pylance is a language server as theoreticallty I can connect to pylance and extract references from a function call is invoked.
For example ...
0
votes
1
answer
192
views
using lunarvim with fortls not working properly
I tried to use fortls language server (installed via Mason) in Lunarvim, but lvim keeps showing "LSP inactive".
The Python and the lua language server are working without any problem
I've ...
0
votes
0
answers
18
views
Extract type information from a Python project using Pyright? [duplicate]
I have to analyze Python codebase programatically and need to extract type information for variables. I'm interested in using Pyright.
Is there a way to programmatically use Pyright to analyze Python ...
0
votes
1
answer
197
views
Why pyright with coc.nvim not working after opening another file?
if I immediately open the file via nvim, then everything works, but if I first open, for example, the config, and after the python file, then pyright does not work
vim.cmd [[packadd packer.nvim]]
...
0
votes
1
answer
175
views
Neovim jdtls config can't persist
I'm setting up my Neovim with lua and using lazy nvim as my plugin manager. I setup lsp with tsp-zero and try to setup nvim-jdtls, however it only works for the first buffer that I open.
Here is the ...
1
vote
0
answers
240
views
What is the difference between the Jedi and Pylance language server?
I'm having difficulty understanding the differences between the Jedi and Pylance language servers. I want to use them to extract repository-related information, such as the location of a function ...
0
votes
0
answers
507
views
client is not running and can't be stopped. its current state is starting
I want to use Kotlin in vscode.
so as kotlinlang.org says for installing kotlin I installed intelliJ IDE and Android Studio but I could not access Kotlin from cmd. so I added Kotlin to the path ...
2
votes
0
answers
273
views
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 ...
2
votes
2
answers
287
views
Python client library for Language Server Protocol (LSP)
I need to interact with a language server (Eclipse JDT LS) implementing the Language Server Protocol (LSP), and I need it for a Python project that will be used to analyze different programming ...
-1
votes
1
answer
105
views
Language Server Protocol(LSP) for VS Code, document.getText() is not working in onCompletion()
I am trying to create a new custom language, with the code completion.
My purpose is to detect user defined functions and variables in the documents every time the code changes and put it in the list ...
0
votes
0
answers
23
views
VS Code Extension LSP Variable completions
Please show me a simple example of how to do autocompletion for example of a variable. The user created a variable with some name and type, value. After the user enters for example var:: and then the ...
0
votes
1
answer
109
views
Vscode extension error "Message header must separate key and value using :"
Vscode extension error: Message header must separate key and value using :
Below image shows the Developer tools console logs.
I saw this specification of protocol
The question is
this is happening ...
2
votes
0
answers
546
views
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 ...
0
votes
1
answer
174
views
Is there any way to make ycm's(Youcompleteme) diagnostics for python more convenient in vi
Ycm build-in in Jedi doesn't support diagnostics. I tried some ways, like YCM's LSP and Syntastics, but various problems appear when using other plugins.
For ycm, lsp, and pyright, it works well ...
2
votes
1
answer
2k
views
How to get lsp to work in Neovim for c++(clangd) and python?
I'm using LazyVim as a bootstrap config.
On top of that I have very few changes. However, I'm not able to get lsp working for c++. LSP is working fine because it is working for Lua files. So, that ...
2
votes
0
answers
124
views
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....
1
vote
0
answers
158
views
Any reliable EJS plugin/formatter/LSP for Neovim?
Does anyone know a reliable EJS plugin/formatter/LSP for Neovim?
I'm not talking about the tree-sitter parser tree-sitter-embedded-template.
I tried using the EJS-Lint but it would be better if there ...
1
vote
1
answer
154
views
Lunar vim does not highlight syntax error on solidity, the default LSP does not show
When I was coding on solidity the syntax erros did not appear, every time I need to compile to solve see compilation problems.
I tried to download several plugins to Lunar VIM, tried to add vscode ...