Skip to content
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

PyLance has totally weird/aribtrary color highlighting n Visual Studio (on notebooks) #1957

Closed
fschiffers opened this issue Oct 18, 2021 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@fschiffers
Copy link

Environment data

  • Language Server version: PyLance v2021.10.1
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.8

Actual Behaviour

image
image
image

Expected Behavior (this is without PyLance)

image
image

Description

Hi, my colors in the my text editor are totally messed up when turning on PyLance. I never observed this before and I can't remember what I've changed. I see this behavior mostly in Jupyter Notebooks, but it make reading my files almost impossible :(

Does anyone have an idea what could have gone wrong? I'm happy to provide more context, but I have no idea what information I could provide you to resolve this issue.

@ValdsteiN
Copy link

I have encountered the same problem today. I was going crazy as I thought I messed my extensions up, but after a few hours of playing around and googling I found out that Pylance is indeed somehow broken in Jupyter Notebooks at the moment. It works well in the native Python environment, but in Notebooks the highlighting is ridiculous and annoying.
In addition to that IntelliCode also does not work with Notebooks, again probably because of the Pylance issue.

VSCode version: 1.61.1
Pylance: v2021.10.1
Python: 3.9.6 64-bit

@jakebailey
Copy link
Member

This is #1932; there are ongoing issues with notebooks in the browser as they are not handled the same way as Python notebooks are in the desktop.

@jakebailey jakebailey added the duplicate This issue or pull request already exists label Oct 18, 2021
@github-actions github-actions bot removed the triage label Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants