microsoft / vscode-tools-for-ai

Azure Machine Learning for Visual Studio Code, previously called Visual Studio Code Tools for AI, is an extension to easily build, train, and deploy machine learning models to the cloud or the edge with Azure Machine Learning service.
Other
321 stars 91 forks source link

Pylance is not able to highlight code in jupyter #2220

Closed edgBR closed 8 months ago

edgBR commented 8 months ago

Expected Behavior

Highlighted code like:

image

Actual Behavior

No highlight:

image

image

2023-11-01 18:44:19.672 [info] [Error - 6:44:19 PM] Request textDocument/documentHighlight failed. 2023-11-01 18:44:19.672 [info] Message: Request textDocument/documentHighlight failed with message: Debug Failure. Unable to find notebook URI for vscode-notebook-cell://amlext%2B2f737562736372697074696f6e732f61313265613231642d656565652d343436382d613630322d6662356163633737656237662f7265736f7572636547726f7570732f73776564656e2d646174616c616b652d6465762d72672f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f73776564656e2d6d6c2d6465762f636f6d70757465732f65626168696c6f726f6472696775657a2d687063/home/azureuser/cloudfiles/code/Users/myusers/my_project/notebooks/26_new_model_sample.ipynb#W1sdnNjb2RlLXJlbW90ZQ%3D%3D Code: -32603

Steps to Reproduce the Problem

1.Open any notebook

Specifications

Local Setup:

Version: 1.84.0 (user setup) Commit: d037ac076cee195194f93ce6fe2bdfe2969cc82d Date: 2023-11-01T11:29:04.398Z Electron: 25.9.2 ElectronBuildId: 24603566 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.19045

Azure Machine Learning Extension v0.38.0 Azure Machine Learning Remote v0.36.0 Pylance v2023.10.50

shsuman commented 8 months ago

@edgBR Please open an issue on https://github.com/microsoft/pylance-release/issues. They would be able to help you with this.

edgBR commented 8 months ago

Why I should open the issue in pylance if in my local machine is working?

BR E

shsuman commented 8 months ago

@edgBR Ultimately its their extension that's providing the above mentioned functionality. We just facilitate the remote connection which is basically communication between the client and server.

Please let them know that its working in local but not in Azure ML remote. Also, tag me as well so I can follow up if need be :)

edgBR commented 8 months ago

Hi, done.

Thanks for the support.