Skip to content
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

pyright lsp not working #6043

Closed
ghost opened this issue Feb 18, 2023 · 1 comment
Closed

pyright lsp not working #6043

ghost opened this issue Feb 18, 2023 · 1 comment
Labels
R-duplicate Duplicated issue: please refer to the linked issue

Comments

@ghost
Copy link

ghost commented Feb 18, 2023

I don't know if this is a problem with helix or if there is a silly step i've missed in the configuration. Let me start by saying that I have checked most other pyright related issues on this github and tried the different solutions I found, so far nothing has worked and I don't know why. I was initially using pylsp which was the default lsp on hx --health, oddly enough I got no diagnostics, error reporting/warnings, and no intellisense/autocompletion. I saw a common patterns of people switching to pyright in this repository's issues, so I gave it a try. Similarly to pylsp, i get no support, but on top of that I get an error; Async job failed: request timed out

I checked these issues: #5479, #5369 (reply in thread)

So I saw that setting config = {} solved their error, but it didn't with mine. Here is my configuration:

[[language]]
name = "python"
roots = ["pyproject.toml"]
language-server = { command = "pyright-langserver", args = ["--stdio"] }
config = {}
formatter = { command = "black", args = ["--quite", "-"] }
auto-format = true
diagnostic-severity = "Hint"

When I check python's health using hx --health python I get the following:

Configured language server: pyright-langserver
Binary for language server: /opt/homebrew/bin/pyright-langserver
Configured debug adapter: None
Highlight queries: ✓
Textobject queries: ✓
Indent queries: ✓

And this is my config.toml incase it helps:

theme = "dark_plus"

[editor]
cursorline = true

[editor.lsp]
display-messages = true

I'm running on MacOS Ventura 13.2.1 and I used Homebrew 4.0.1 to install helix 22.12 and pyright 1.1.294.

@kirawi
Copy link
Member

kirawi commented Feb 18, 2023

Likely a duplicate of #5958

@kirawi kirawi closed this as not planned Won't fix, can't repro, duplicate, stale Feb 18, 2023
@kirawi kirawi added the R-duplicate Duplicated issue: please refer to the linked issue label Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R-duplicate Duplicated issue: please refer to the linked issue
Projects
None yet
Development

No branches or pull requests

1 participant