-
Notifications
You must be signed in to change notification settings - Fork 294
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
KQL syntax stopped working #6253
Comments
The code snippet is not Python. Not sure how Pylance is involved. @DonJayamanne |
This seems like a notebooks bug to me; non-python cells should not be treated as python code and given to language servers. |
Related is microsoft/pylance-release#894, but the code snippet given in the issue isn't Python. The screenshot seems sort of like a magic command in a Python cell, maybe? That, I'm not sure without more context. |
Forgot to add: This works with Jedi. |
Jedi isn't a language server (at least not yet), so the notebook APIs don't try and use it. If you use JediLSP, I'm guessing you'll see it break as well. |
FYI Installing https://marketplace.visualstudio.com/items?itemName=donjayamanne.kusto will give you code completions for KQL in Jupyter notebooks. |
Thanks @DonJayamanne, I have it installed and am an avid fan. |
@jakebailey Does this need to be transferred to vscode-jupyter? Sounds like the recommendation above of not marking these cells as python cells and passing them to the language server would be work on jupyter? |
Yes, I'll transfer it for you. |
This isn't something we did in the past, hence not sure what you (@digitarald ) mean by stopped working?
|
I think the confusing thing is why the KQL cell is being sent to Pylance at all... |
When I said it worked in the past I meant it worked before Pylance rolled out. Using Jedi works. |
thats because its a Python cell, |
TODO:
|
Dupe of #4588 |
Environment data
Expected behaviour
Can use
%kql
Actual behaviour
Pylance puts errors everywhere.
Code Snippet / Additional information
The text was updated successfully, but these errors were encountered: