-
Notifications
You must be signed in to change notification settings - Fork 201
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
Failed to load hook pylsp_completions: 'NoneType' object has no attribute 'type'
when working with Numpy 1.23
#243
Comments
Hey @jhossbach, thanks for reporting. I guess you're using Numpy 1.23, right? If that's the case, please downgrade to 1.22 and try again. That should fix your problem for now. |
Failed to load hook pylsp_completions: 'NoneType' object has no attribute 'type'
when working with Numpy
This works indeed, may I ask why that is? |
We don't know yet. We just noticed that our tests started to fail as soon as Numpy 1.23 was released. |
Failed to load hook pylsp_completions: 'NoneType' object has no attribute 'type'
when working with NumpyFailed to load hook pylsp_completions: 'NoneType' object has no attribute 'type'
when working with Numpy 1.23
Hmm, that is weird indeed, thanks for the quick reply! |
Note: This is a bug in Jedi, see davidhalter/jedi#1864. |
This will be solved in the next PyLSP version by directly importing Numpy to provide completions. |
Hey,
I am currently getting the error
Failed to load hook pylsp_completions: 'NoneType' object has no attribute 'type'
when I import numpy and try to trigger autocompletion. I think as a result I don't receive any autocompletion options for numpy, but for any submodules such asnumpy.testing
this works again.I am not sure how to debug this, any ideas are welcome. My pylsp version is
v1.4.1
, I am using neovimv0.8.0-dev+595-g95c65a6b22
. As config option I passto pylsp.
The text was updated successfully, but these errors were encountered: