-
Notifications
You must be signed in to change notification settings - Fork 120
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
Python 3.8: TypeError: 'type' object is not subscriptable #560
Comments
Line 40 in 5f989df
That seems like a bug in |
That seems like an out of date package. Maybe there are changes on master that weren't release yet. Here's line 193: Line 193 in 5f989df
|
Yes. Works on later versions. I'm pretty sure importlib is standard library though; it shouldn't be out of date |
I mean that your pynvim source is out of date compared to pynvim |
CC @Cassius0924 Edit: oops, wrong account |
It seems like there's a small mistake in your command. It's I used
|
Yup. Typo Could you try to reproduce this with a minimal Python file by importing |
Like below? I wrote a Python file: import importlib
import sys
sys.path.append(
"/root/.local/share/lunarvim/site/pack/lazy/opt/CopilotChat.nvim/rplugin/python3"
)
def test_import(name):
importlib.import_module(name)
test_import("copilot") Still getting error after running:
|
This error seems not to be from pynvim, but from CopilotChat. I tried replacing |
Ah I see. I suppose I got confused by the error output |
Yes, the error was coming from the rplugin code, but the error message printed in Nvim can be confusing. We can improve error messages to clearly indicate that the SyntaxError/RuntimeError originates from the remote plugin. |
Reference: CopilotC-Nvim/CopilotChat.nvim#18
The text was updated successfully, but these errors were encountered: