microsoft / vscode

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

All text is black in all themes #136037

Closed vgrigoriu closed 3 years ago

vgrigoriu commented 3 years ago

Issue Type: Bug

Not sure how I got to this state, but no matter what theme I choose and what syntax the file has, all text is black (background color does change, boldness etc. do change). Weirdly, I do see colors in the minimap on the right.

VS Code version: Code 1.61.2 (6cba118ac49a1b88332f312a8f67186f7f3c1643, 2021-10-19T15:49:28.381Z) OS version: Darwin x64 20.6.0 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled| |Load (avg)|3, 2, 2| |Memory (System)|32.00GB (0.09GB free)| |Process Argv|/Users/grigoriu/Library/Python/3.8/lib/python/site-packages/ansible --crash-reporter-id 285c65de-4fb7-4545-8049-0e91e99afbea| |Screen Reader|no| |VM|0%|
Extensions (7) Extension|Author (truncated)|Version ---|---|--- vscode-docker|ms-|1.17.0 python|ms-|2021.10.1365161279 vscode-pylance|ms-|2021.10.3 jupyter|ms-|2021.9.1101343141 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.3 remote-containers|ms-|0.202.5
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 pythonvspyt602:30300191 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythonvspyt639:30300192 pythontb:30283811 pythonvspyt551cf:30345471 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscorecescf:30384386 pythondataviewer:30285071 pythonvsuse255:30340121 vscod805cf:30301675 pythonvspyt200:30340761 binariesv615:30325510 vsccppwtct:30382698 pythonvssor306:30344512 bridge0708:30335490 pygetstartedt3:30385195 dockerwalkthru:30377721 bridge0723:30353136 pythonrunftest32:30373476 pythonf5test824:30373475 javagetstartedt:30364666 pythonvspyt187:30373474 vsqsis200:30381674 vsaa593cf:30376535 vssld246cf:30379912 ```
nietonfir commented 3 years ago

Same here (terminal is colourless as well). I just happen to upgrade from macOS Catalina (10.15) to macOS Monterey (12). Extension bisect did not help. Does not happen when I remove ~/Library/Application\ Support/Code/.

I could bisect it to a missing/broken font, since removing it from the editor.fontFamily setting fixed the issue for me.

--- settings_broken.json    2021-10-28 18:02:31.000000000 +0200
+++ settings_working.json   2021-10-28 18:05:17.000000000 +0200
@@ -4,7 +4,7 @@
   "editor.tabSize": 4,
   "editor.renderWhitespace": "none",
   "editor.wordWrap": "on",
-  "editor.fontFamily": "Source Code Pro, Menlo, Monaco, 'Courier new', monospace",
+  "editor.fontFamily": "Menlo, Monaco, 'Courier new', monospace",
   "editor.fontSize": 12,
   "editor.scrollBeyondLastLine": false,
   "[javascript]": {
grafik grafik

VS Code version: Code 1.61.2 (Universal) (6cba118ac49a1b88332f312a8f67186f7f3c1643, 2021-10-19T15:49:28.381Z) OS version: Darwin x64 21.1.0 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz (8 x 2700)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled| |Load (avg)|2, 3, 3| |Memory (System)|16.00GB (0.09GB free)| |Process Argv|. --crash-reporter-id 44ef16f0-535f-4e6c-8ba7-ed5cab3a797c| |Screen Reader|no| |VM|0%|
Extensions (17) Extension|Author (truncated)|Version ---|---|--- vscode-django|bat|1.6.0 eslint-disable-snippets|drK|1.3.0 gitlens|eam|11.6.1 EditorConfig|Edi|0.16.4 auto-close-tag|for|0.5.13 path-autocomplete|ion|1.17.1 dotenv|mik|1.0.1 vscode-docker|ms-|1.17.0 python|ms-|2021.10.1365161279 vscode-pylance|ms-|2021.10.3 remote-containers|ms-|0.202.5 sublime-keybindings|ms-|4.0.10 material-icon-theme|PKi|4.10.0 code-settings-sync|Sha|3.4.3 javascript-typescript|sou|0.0.7 gitmoji-vscode|Vtr|1.0.9 better-align|wwm|1.1.6 (2 theme extensions excluded)
nietonfir commented 3 years ago

Replacing "Source Code Pro" Regular OTF with the TTF variant fixes the issue for me. Maybe this needs to be raised at https://github.com/adobe-fonts/source-code-pro ?

IllusionMH commented 3 years ago

/needsMoreInfo

This one looks like duplicate of #100840 (at least it is for @nietonfir). Workaround described in https://github.com/microsoft/vscode/issues/100840#issuecomment-726769115

@vgrigoriu could you please confirm that you have Source Code Pro in your fontFamily settings as well?

@nietonfir I think it's already reported/fixed https://github.com/adobe-fonts/source-code-pro/issues/250 however I'm not sure how/when this font is installed on your devices and how it should be updated.

aeschli commented 3 years ago

Duplicate of #100840

vgrigoriu commented 3 years ago

Thanks everyone, an update of Source Code Pro fixed it!