Hey #dev Fedi, I need help!

Recently, #Kate #LSP for #Python (using python-lsp and #jedi) stopped working for me.
Apparently Kate does not provide the expected document variable to jedi but just "None", which obviously breaks the whole package.

Anyone else also having this issue? Are there other tools I can test to replace jedi to detect docstrings and jump to definitions in Python files?

Thanks in advance for any tip.

#KDE #IDE #development #PythonDev #pylsp #pythonLSP

hit an issue with neovim, mason and pylsp. After updating to neovim 0.11.2 and updating all my Mason plugins I started getting the error "No module named 'pylsp.plugins.rope_rename'"

Turned out that I had a copy of pylsp installed via apt and I was hitting a conflict, removing the system level pylsp resolved the issue #neovim #python #pylsp

ruff looks like very interesting tooling. Trying to make it work for Emacs groundup. Has anyone been able to run it with eglot using this pylsp plugin: https://github.com/python-lsp/python-lsp-ruff ?

So finicky!

#ruff #pylsp #lsp #python #tooling #emacsgroundup #emacs

GitHub - python-lsp/python-lsp-ruff: Linter plugin for pylsp based on ruff.

Linter plugin for pylsp based on ruff. Contribute to python-lsp/python-lsp-ruff development by creating an account on GitHub.

GitHub

@pkw Btw, here is a `.dir-locals.el` file with the #Eglot configuration for #pylsp with fuzzy #jedi completion and #ruff instead of #yapf for formatting, and #mypy for type checking.

(copy-pastable code in alt-text)

#Python #Emacs

@pkw #Eglot and #lspmode are #LSP clients for #Emacs, use either or. Eglot is built-into Emacs 29 and upwards and is meant to integrate with existing Emacs utilities, LSP-mode has some more bells and whistles. I found I don't need those and use Eglot. As the language server I use #pylsp, which by default uses the #jedi Python package for completion. You don't need a jedi-specific Emacs package anymore if you use LSP, but still should install the Python package.
Anybody knows how to perform a notebook formatting using #jupyterlab and #jupyterlab-lsp and #pylsp ? I can't find anything in the docs how it actually would be activated and apparently nobody in the forums knows it either.

@cta I've just finished configuring my #neovim for #python on #windows10. :)

I can open #ipython in a split, and send paragraphs, cells and single lines from my source file. It uses the #vim-slime plugin, but I had to put a #lua script over it to get it to work (due to how Windows does newlines or something).

I also have autocompletions via #pyright, because my preferred #pylsp kept opening lots of Python processes?!

It was awful at times, but I'm really happy with how it turned out.

So I'm trying the #helix editor. It has a vim like interface & tutor, themes, support for multiple languages through a language server. I'm using #pylsp instead of pyright.

Even if I'm working in W11 I'm slowly getting myself off their products and using more #opensource products.

And why am I stuck in W11 - I really love my Surface Pro. When there is a #linux that works as well between a laptop and a tablet I'll switch.

I wrote this "issue":

How do I instruct #pylsp to use a workspace local configuration ?

https://github.com/python-lsp/python-lsp-server/issues/156

#Python
#Emacs
#lsp
#lsp_mode

configuration: how to · Issue #156 · python-lsp/python-lsp-server

How do I write a configuration file that is local to a project ? The home page says that Pylsp follows this order a conf in the user home folder supeseded by a configuration passed in by the lsp cl...

GitHub