emacs-lsp / lsp-pyright

lsp-mode :heart: pyright
https://emacs-lsp.github.io/lsp-pyright
GNU General Public License v3.0
291 stars 25 forks source link

Auto import not working anymore #83

Open suidpit opened 1 year ago

suidpit commented 1 year ago

Suddenly, auto import is not working anymore in my Doom Emacs setup. I have pyright version 1.1.300 and lsp-pyright version 0.2.0.

Capture to demonstrate the issue: Screencast from 2023-03-28 10-15-43.webm

Even though I press enter on the auto import popup, the line is not imported. Debugging this seems hard because I don't see any error line.

rcdilorenzo commented 1 year ago

After doing a doom upgrade with all the packages (and working through the subsequent errors), this was resolved for me. I don't have the before/after versions on hand though.

iNecas commented 1 year ago

I had similar issue with pyright 1.1.302. It worked with older lsp-pyright but once I updated to the newer one (byt stayed with pyright 1.1.302), it stopped working. Once I've updated pyright to 1.1.311, the feature got back, so I assume some incompatibility between different versions of these libraries.