microsoft / vscode

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

Titlebar overlay is not enabled #226860

Closed karthiknadig closed 1 month ago

karthiknadig commented 1 month ago

Type: Bug

ERR [uncaught exception in main]: Titlebar overlay is not enabled: Error: Titlebar overlay is not enabled at $.updateWindowControls (C:\Program Files\Microsoft VS Code Insiders\resources\app\out\vs\code\electron-main\main.js:117:119996) at $.n (C:\Program Files\Microsoft VS Code Insiders\resources\app\out\vs\code\electron-main\main.js:117:117632) at $.Q (C:\Program Files\Microsoft VS Code Insiders\resources\app\out\vs\code\electron-main\main.js:118:3434) at $.tryClaimWindow (C:\Program Files\Microsoft VS Code Insiders\resources\app\out\vs\code\electron-main\main.js:118:3152) at App. (C:\Program Files\Microsoft VS Code Insiders\resources\app\out\vs\code\electron-main\main.js:118:4453) at App.emit (node:events:519:28) at n._init (node:electron/js2c/browser_init:2:12346) at openGuestWindow (node:electron/js2c/browser_init:2:98561) at WebContents. (node:electron/js2c/browser_init:2:85743) at WebContents.emit (node:events:519:28)

VS Code version: Code - Insiders 1.93.0-insider (ff7a154d5e5e9034914f0466420f0f1407f0c95e, 2024-08-27T05:04:20.235Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz (8 x 1498)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|undefined| |Memory (System)|31.60GB (15.79GB free)| |Process Argv|--log info --log ms-python.python=info --crash-reporter-id 4fb1ebc1-cf4c-4880-a88a-47738ec3768d| |Screen Reader|no| |VM|0%|
Extensions (22) Extension|Author (truncated)|Version ---|---|--- tsl-problem-matcher|amo|0.6.2 ruff|cha|2024.42.0 vscode-eslint|dba|3.0.10 gitlens|eam|15.3.1 EditorConfig|Edi|0.16.4 prettier-vscode|esb|11.0.0 copilot|Git|1.223.1070 copilot-chat|Git|0.20.2024082705 vscode-github-actions|git|0.26.3 vscode-pull-request-github|Git|0.95.2024082704 copilot-for-security|Mic|0.3.1 vscode-language-pack-de|MS-|1.93.2024082109 debugpy|ms-|2024.10.0 python|ms-|2024.13.2024082701 vscode-pylance|ms-|2024.8.2 jupyter|ms-|2024.8.2024081201 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.19 vscode-jupyter-cell-tags|ms-|0.1.9 vscode-jupyter-slideshow|ms-|0.1.6 remote-wsl|ms-|0.88.2 code-spell-checker|str|3.0.1
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vsc_aacf:30263846 vscod805cf:30301675 vsaa593cf:30376535 py29gd2263:31024238 c4g48928:30535728 vscrpc:30624061 a9j8j154:30646983 962ge761:30841072 pythongtdpath:30726887 welcomedialog:30812478 pythonnoceb:30776497 asynctok:30898717 dsvsc014:30777825 dsvsc015:30821418 pythonregdiag2:30926734 pythonmypyd1:30859725 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30870582 dsvsc016:30879898 dsvsc017:30880771 dsvsc018:30880772 cppperfnew:30980852 pythonait:30973460 0ee40948:31013168 a69g1124:31018687 dvdeprecation:31040973 dwnewjupytercf:31046870 newcmakeconfigv2:31071590 impr_priority:31057980 nativerepl1:31104042 refactort:31084545 pythonrstrctxt:31093868 flighttreat:31119334 wkspc-onlycs-c:31111717 nativeloc1:31118317 wkspc-ranged-c:31125598 cf971741:31111988 jh802675:31111929 notreesitter:31116712 e80f6927:31120813 ei213698:31121563 i21gd607:31121876 aajjf12562:31125793 ```
bpasero commented 1 month ago

@karthiknadig any steps, is this reproducible?

karthiknadig commented 1 month ago

I got this on Windows. I opened an existing project for an extension. After the vscode window came up I opened the developer tools and I see this.

bpasero commented 1 month ago

I cannot reproduce, what are your settings?

karthiknadig commented 1 month ago

I had just this one in user settings: image

This does not seem to be happening with the build from today: Version: 1.93.0-exploration (system setup) Commit: 96475999252541f346cc68976cc3e15ac6701b7f Date: 2024-08-28T04:04:01.271Z Electron: 30.4.0 ElectronBuildId: 10073054 Chromium: 124.0.6367.243 Node.js: 20.15.1 V8: 12.4.254.20-electron.0 OS: Windows_NT x64 10.0.22631

bpasero commented 1 month ago

Ok, if you see this again and can distill steps, that would be great. Maybe some setting got synced that caused this.

vikthorvergara commented 1 month ago

It's happening to me on Windows as well. I'm not sure but I think it might have something to do with this Apc setting:

  "apc.electron": {
    "titleBarStyle": "hiddenInset"
  }
ChristoferMendes commented 1 month ago

It's happening to me on Windows as well. I'm not sure but I think it might have something to do with this Apc setting:

  "apc.electron": {
    "titleBarStyle": "hiddenInset"
  }

My vscode was not opening, If I remove this apc setting it opens now

luispazcode commented 1 month ago

It's happening to me on Windows as well. I'm not sure but I think it might have something to do with this Apc setting:

  "apc.electron": {
    "titleBarStyle": "hiddenInset"
  }

It happened to me too, but I commented it and it works.