microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.9k stars 29.52k forks source link

Jupyter notebook has no syntax highlithging #201095

Closed ndbp97 closed 11 months ago

ndbp97 commented 11 months ago

Type: Bug

image

VS Code version: Code 1.85.1 (0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2, 2023-12-13T09:49:37.021Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD EPYC 7763 64-Core Processor (8 x 2445)| |GPU Status|2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software| |Load (avg)|undefined| |Memory (System)|31.95GB (19.91GB free)| |Process Argv|--crash-reporter-id 1ba90d8f-1770-41e5-a4b9-2d517c8f2500| |Screen Reader|no| |VM|0%|
Extensions (83) Extension|Author (truncated)|Version ---|---|--- project-manager|ale|12.7.0 arepl|alm|2.0.5 sort-imports|ama|6.3.1 python-import-helper|Bar|1.0.34 vscode-django|bat|1.14.0 simple-react-snippets|bur|1.2.7 vscode-pytest|Cam|0.1.1 npm-intellisense|chr|1.4.5 path-intellisense|chr|2.8.5 importmagic|cod|0.2.5 gitignore|cod|0.9.0 ssh-terminal|coo|0.0.4 python-snippets|cst|0.1.2 dataiku-dss|Dat|1.3.0 vscode-eslint|dba|2.4.2 vscode-dash|dee|2.4.0 python-extensions-pack|dem|1.0.2 python-preview|don|0.0.4 git-extension-pack|don|0.1.3 githistory|don|0.6.20 python-environment-manager|don|1.2.4 python-extension-pack|don|1.7.0 es7-react-js-snippets|dsz|4.4.3 gitlens|eam|14.6.1 shell-format|fox|7.2.5 pythonsnippets|frh|1.0.2 copilot|Git|1.143.0 copilot-chat|Git|0.12.2023120701 pyformat|giy|1.0.2 vscode-test-explorer|hbe|2.21.1 pytest-snippets|jai|1.0.0 py-sort-imports|Jan|0.0.1 search-node-modules|jas|1.3.0 react-vscode-extension-pack|jaw|1.0.0 python-resource-monitor|kai|0.2.2 vsc-python-indent|Kev|1.18.0 vscode-python-test-adapter|lit|0.8.1 bash-extension-pack|liz|0.0.4 bash-ide-vscode|mad|1.39.0 start-git-bash|McC|1.2.1 rainbow-csv|mec|3.9.0 python-path|mge|0.0.14 git-graph|mhu|1.30.0 autoflake-extension|mik|1.0.4 document|min|2.2.1 autopep8|ms-|2023.8.0 black-formatter|ms-|2023.6.0 isort|ms-|2023.10.1 pylint|ms-|2023.10.1 python|ms-|2023.22.1 vscode-pylance|ms-|2023.12.1 jupyter|ms-|2023.11.1003402403 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.17 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 powershell|ms-|2023.8.0 test-adapter-converter|ms-|0.1.8 pytest-fixtures|nic|0.3.3 autodocstring|njp|0.6.1 vscode-python-typehint|njq|1.5.1 indent-rainbow|ode|8.3.1 pytest-runner|pam|0.0.7 auto-format-imports|pit|0.2.1 shellman|Rem|5.7.0 bash-debug|rog|0.3.9 shebang-snippets|rpi|0.1.4 sourcery|sou|1.14.0 autoimport|ste|1.5.4 code-spell-checker|str|3.0.1 vscode-djaneiro|the|1.4.2 shellcheck|tim|0.35.0 wolf|tra|0.4.3 python-extended-snippets|tus|0.0.1 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.2.30 gitblame|wad|10.6.0 jinja|who|0.0.8 JavaScriptSnippets|xab|1.8.0 ReactSnippets|xab|2.4.0 livecode|xir|1.3.10 vscode-react|zha|0.0.5 vscode-open-in-github|ziy|1.3.6
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263:30899288 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 azure-dev_surveyone:30548225 2e4cg342:30602488 89544117:30613380 vscrp:30673768 showlangstatbar:30737416 0bi6i642:30917235 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 welcomedialogc:30910334 pythonnosmt12:30797651 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 dsvsc013:30795093 dsvsc014:30804076 dsvsc015:30845448 pythontestfixt:30902429 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 2e7ec940:30885897 pythontbext0:30879054 accentitlementsc:30887149 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 aa_t_chat:30882232 dsvsc019:30917259 cp7184c:30925681 ```
rebornix commented 11 months ago

@ndbp97 can you please try disable all extensions and check if it reproduces? code --disable-extensions.

vscodenpa commented 11 months ago

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

Happy Coding!

ndbp97 commented 11 months ago

This solved the problem. The issue was the py-sort-imports extension.

From: VSCode Triage Bot @.> Date: Tuesday, 19 December 2023 at 18:28 To: microsoft/vscode @.> Cc: Dickreuter, Nicolas @.>, Mention @.> Subject: Re: [microsoft/vscode] Jupyter notebook has no syntax highlithging (Issue #201095) You don't often get email from @.*** Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelineshttps://aka.ms/vscodeissuereporting. Please take the time to review these and update the issue.

Happy Coding!

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/vscode/issues/201095#issuecomment-1863281433, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BEAGM6S3IGE3A3BRLW22F5LYKHMGHAVCNFSM6AAAAABAYWMNRWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRTGI4DCNBTGM. You are receiving this because you were mentioned.Message ID: @.***>

vscodenpa commented 11 months ago

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.

Happy Coding!