Closed MrGreenTea closed 2 years ago
I found this related report in pytoolconfig
: https://github.com/bageljrkhanofemus/pytoolconfig/issues/5 and https://github.com/bageljrkhanofemus/pytoolconfig/issues/4
Thanks for writing this bug report @MrGreenTea.
fyi: @bageljrkhanofemus
Ye I saw the issues, I'll probably tackle it tomorrow and release. If someone wants to PR it I can look at it too.
@bageljrkhanofemus I started on a fix yesterday but then haven't finished. I'll try to put up a PR today 👍
Fixed in 1.2.2. Lmk if it isn't working.
@bageljrkhanofemus thanks, confirmed that upgrading to 1.2.2 fixed the issue
0.1.9
Neovim 0.7.2
3.9.13
Ubuntu 22.04 WSL on Windows 10
Description
I wanted to use code actions by calling
:lua vim.lsp.buf.code_action()
but get a message that there are no code actions available. When thepyproject.toml
file exists and has sections, but no[tool]
section it seemspylsp-rope
runs in to an exception. If any other sections exist there is aKeyError('tool')
. If the file is empty there is anAssertionError
. Both seem to originate inpytoolconfig
.It works fine when I either remove this
pyproject.toml
file or just add an empty[tool]
section like this:Details
Output of
:LspLog
inneovim
Reproduction
Here is a parametrized test that will reproduce the error: