question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Syntax Highlighting for Python Broken

See original GitHub issue

Issue Type: Bug

Latest release syntax highlighting appears to be buggy. Lots of error and warning squigglies out of place.

Extension version: 2021.11.1001550889 VS Code version: Code 1.63.2 (899d46d82c4c95423fb7e10e68eba52050e30ba3, 2021-12-15T09:40:02.816Z) OS version: Windows_NT x64 10.0.22000 Restricted Mode: No

System Info
Item Value
CPUs AMD Ryzen 7 2700X Eight-Core Processor (16 x 3800)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 63.92GB (40.69GB free)
Process Argv –folder-uri file:///c%3A/git/fetch/theia-models --crash-reporter-id 28592bab-0cbd-42c4-b35d-ec0a4bb99be1
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythontb:30283811
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30421291
pythonvs932:30410667
vscop804:30404766
vs360:30404995
vsrem710:30416614
vsccppwtstudy:30421978

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rchiodocommented, Jan 12, 2022

Can you set these two settings before you repro?

    "notebook-intellisense.logLevel": "Trace",
    "notebook-intellisense.trace.server.verbosity": "Verbose",

That should generate an output tab like so that logs all of the changes sent to pylance:

image

The name of the output tab is derived from the current kernel in the notebook.

Thanks.

That output log should let me reproduce your edits.

0reactions
denisprovostcommented, Oct 31, 2022

Same here, since the last update

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python syntax highlighting randomly breaks
After editing for a while, Python syntax highlighting breaks until Visual Studio is restarted. Sometimes some specific colors disappear; some other times ...
Read more >
Visual Studio Code syntax highlighting not working
I just opened my command palette (Command + Shift + p) and typed python: select linter. Then selected pylint, selected the install with...
Read more >
Broken Python syntax highlighting when raw strings ... - GitLab
Syntax highlighting fails after a Python raw string is encountered. All the subsequent code is wrongly displayed as a string.
Read more >
[VSCODE] Broken Syntax Highlighting When Add Func Return ...
When you write a function/method in vscode Python editor, and put arrow to mark that the function returns value -> , the arrow...
Read more >
Syntax highlighting broken on correct code
Here's my code. For both String and System, there's a "Cannot Resolve [token] error." Furthermore, there's a lack of a Run...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found