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
parse error on magic statement on ipython mode. #5808
Comments
sounds like our for |
I have install requests and it can running success. |
how about providing us a log to see what python paths (libraries) we got? if you are using latest pylance (104), then there should be can you provide us the log produced by the command to us? |
The requests problem might be a dupe of this issue: Meaning we don't know which kernel is selected. The log should show that though. |
It seems to be that it doesn't detect my openvino environment correctly. I'm using a virtual python environment under conda. |
so, it probably is the dup of the bug Rich linked, then. |
@heejaechang @rchiodo After reading your reply, it may have been caused by a kernel link error, so I tried switching the kernel multiple times and restarted VSCode and Windows 11. The error regarding import has disappeared now, it seems that the link is correct. But the first mistake still exists. |
ya, first issue looks like this
looks like there is a bug around this - https://github.com/microsoft/pyright/blob/main/packages/pyright-internal/src/parser/tokenizer.ts#L450 |
When I open an. ipynb file using vscode, it always generates strange errors. Clearly able to operate normally.
The meaning of this error is "should be an expression".
Unable to import 'requests' from source parsing
I am using the latest version of VScode that comes with Pylance.
Pylance version:v2024.4.1
The text was updated successfully, but these errors were encountered: