vscode: Got `Handler already set!` error when trying to undo in the editor
I just got the follow error when trying to undo – and it keeps happening every time I try to undo. Had to restart vscode to fix it.
This is what I see in the console:
ERR Handler already set!: Error: Handler already set!
at o.setHandler (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1674:15623)
at d.registerListeners (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1676:39804)
at new d (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1676:39602)
at p._createInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625:1371)
at p.createInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625:790)
at new Y (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2314:27281)
at p._createInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625:1371)
at vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625:3551
at P._executor (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:68:18543)
at P.get value [as value] (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:68:18736)
at Object.get (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625:3652)
at Tn.get isMultiSessionView [as isMultiSessionView] (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2322:3179)
at new Tn (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2314:66465)
at p._createInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625:1371)
at p.createInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625:790)
at P.createView (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2558:35572)
at P.onDidAddViewDescriptors (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2558:36996)
at vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2558:32913
at o.fire (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:60:1835)
at h.triggerOnDidAddVisibleViewDescriptors (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2325:9908)
at h.onDidChangeContext (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2325:14055)
at vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2325:6764
at o.fire (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:60:1835)
at vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:58:59092
at v.fire (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:60:1835)
at v.fire (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:60:2784)
at r.setContext (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:634:120752)
at n.set (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:634:119041)
at new d (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1676:39757)
at p._createInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625:1371)
at p.createInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625:790)
at new Y (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2314:27281)
at p._createInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625:1371)
at vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625:3551
at P._executor (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:68:18543)
at P.get value [as value] (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:68:18736)
at Object.get (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625:3652)
at D.registerListeners (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2314:50275)
at new D (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2314:50190)
at p._createInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625:1371)
at p.createInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625:790)
at b.safeCreateInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1715:6069)
at b.doInstantiateByPhase (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1715:5856)
at vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1715:5698
contributions.ts:123
Unable to instantiate workbench contribution D. Error: Handler already set!
at o.setHandler (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1674)
at d.registerListeners (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1676)
at new d (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1676)
at p._createInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625)
at p.createInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625)
at new Y (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2314)
at p._createInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625)
at vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625
at P._executor (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:68)
at P.get value [as value] (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:68)
at Object.get (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625)
at Tn.get isMultiSessionView [as isMultiSessionView] (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2322)
at new Tn (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2314)
at p._createInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625)
at p.createInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625)
at P.createView (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2558)
at P.onDidAddViewDescriptors (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2558)
at vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2558
at o.fire (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:60)
at h.triggerOnDidAddVisibleViewDescriptors (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2325)
at h.onDidChangeContext (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2325)
at vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2325
at o.fire (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:60)
at vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:58
at v.fire (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:60)
at v.fire (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:60)
at r.setContext (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:634)
at n.set (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:634)
at new d (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1676)
at p._createInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625)
at p.createInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625)
at new Y (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2314)
at p._createInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625)
at vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625
at P._executor (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:68)
at P.get value [as value] (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:68)
at Object.get (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625)
at D.registerListeners (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2314)
at new D (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2314)
at p._createInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625)
at p.createInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:625)
at b.safeCreateInstance (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1715)
at b.doInstantiateByPhase (vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1715)
at vscode-file://vscode-app/c:/Users/Eric/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1715
safeCreateInstance @ contributions.ts:123
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 16
- Comments: 22 (11 by maintainers)
Commits related to this issue
- fixes #126339 — committed to microsoft/vscode by isidorn 3 years ago
- fixes #126339 third time's the charm — committed to microsoft/vscode by isidorn 3 years ago
I started getting this message with v1.57.0 when trying to run a Vue project. Long story short: I usually have my DEBUG CONSOLE window docked inside to the right of my TERMINAL (powershell), and upon opening VSCode it wouldn’t be visible and I’d get this message after building successfully and trying to launch. The work-around is to close VSCode, navigate to folder
%USERPROFILE%\AppData\Roaming\Code\User\workspaceStorage
and delete the contents (notably state.vscdb) and then restart VSCode. The DEBUG CONSOLE then shows itself again and all is fine unless I dock it again and close VSCode and there is a good chance of it happening again next time VSCode is opened. I have stopped docking the window inside the terminal and it hasn’t happened since.Next release. Next week.
restart vscode for me as emergency plan.
Yes, this is the case with me as well. I had arranged Problems, Output, Terminal, and Debug Console and build output all in one tab in split view. After setting this, if the workspace is reloaded, the issue occurs. After resetting the view, the issue gets resolved.