Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language Server is started twice #10748

Closed
uros-5 opened this issue May 13, 2024 · 0 comments
Closed

Language Server is started twice #10748

uros-5 opened this issue May 13, 2024 · 0 comments

Comments

@uros-5
Copy link

uros-5 commented May 13, 2024

Here is config:

[[language]]
name = "python"
scope = "source.python"
injection-regex = "python"
shebangs = ["python"]
roots = ["setup.py", "setup.cfg", "pyproject.toml"]
comment-token = "#"
language-servers = ["pyright", "jinja-lsp"]
formatter = { command = "black", args = ["--quiet", "-"] }
auto-format = true

[[language]]
name = "jinja"
language-id = "html"
language-servers = ["jinja-lsp"]
formatter = { command = "jinja2fmt" }
auto-format = false

When I open jinja file jinja-lsp is started.

2024-05-13T12:12:03.770 helix_lsp::client [INFO] Using custom LSP config: .. 
2024-05-13T12:12:03.770 helix_lsp::transport [INFO] jinja-lsp -> {"jsonrpc":"2.0","method":"initialize", ..
2024-05-13T12:12:03.794 helix_lsp::transport [INFO] jinja-lsp <- {"jsonrpc":"2.0","result":{"capabilities", ..
2024-05-13T12:12:03.828 helix_lsp::transport [INFO] jinja-lsp <- {"jsonrpc":"2.0","method":"window/logMessage","params":{"message":"Initialized","type":3}}
2024-05-13T12:12:03.828 helix_lsp::transport [INFO] jinja-lsp <- {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics", ..
2024-05-13T12:12:03.829 helix_lsp::transport [INFO] jinja-lsp <- {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics", ..
2024-05-13T12:12:03.829 helix_lsp::transport [INFO] jinja-lsp <- {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics", ..
2024-05-13T12:12:03.829 helix_lsp::transport [INFO] jinja-lsp <- {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics", ..
2024-05-13T12:12:03.829 helix_term::application [INFO] window/logMessage: LogMessageParams { typ: Info, message: "Initialized" }

Later when I open Python file, it starts again same server.

2024-05-13T12:12:03.829 helix_term::application [INFO] window/logMessage: LogMessageParams { typ: Info, message: "Initialized" }
2024-05-13T12:12:09.224 helix_lsp::client [INFO] Using custom LSP config: {}
2024-05-13T12:12:09.225 helix_lsp::transport [INFO] pyright -> {"jsonrpc":"2.0","method":"initialize", ..
2024-05-13T12:12:09.225 helix_lsp::client [INFO] Using custom LSP config:
2024-05-13T12:12:09.225 helix_lsp::transport [INFO] jinja-lsp -> {"jsonrpc":"2.0","method":"initialize", ..
2024-05-13T12:12:09.253 helix_lsp::transport [INFO] jinja-lsp <- {"jsonrpc":"2.0","result":{"capabiliti, ..
2024-05-13T12:12:09.253 helix_lsp::transport [INFO] jinja-lsp <- {"capabilities":{"codeActionProvider":, ..
2024-05-13T12:12:09.253 helix_lsp::transport [INFO] jinja-lsp -> {"jsonrpc":"2.0","method":"initialized, ..
2024-05-13T12:12:09.253 helix_lsp::transport [INFO] jinja-lsp -> {"jsonrpc":"2.0","method":"workspace/d, ..
2024-05-13T12:12:09.253 helix_lsp::transport [INFO] jinja-lsp -> {"jsonrpc":"2.0","method":"textDocumen, ..
2024-05-13T12:12:09.253 helix_lsp::transport [INFO] jinja-lsp <- {"jsonrpc":"2.0","method":"window/logM, ..
2024-05-13T12:12:09.253 helix_term::application [INFO] window/logMessage: LogMessageParams { typ: Info, message: "Initialized" }
2024-05-13T12:12:09.374 helix_term::application [INFO] window/logMessage: LogMessageParams { typ: Info, message: "Pyright language server 1.1.361 starting" }
2024-05-13T12:12:09.377 helix_lsp::transport [INFO] pyright <- {"jsonrpc":"2.0","id":0,"result":{"capabilities"

@helix-editor helix-editor locked and limited conversation to collaborators May 13, 2024
@the-mikedavis the-mikedavis converted this issue into discussion #10750 May 13, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant