[Error] unhandlederror-ModelService: Cannot add model because it already exists!
Nobody has claimed this yet.
Assessment
This issue has not been assessed yet.
Description
Error Message
unhandlederror-ModelService: Cannot add model because it already exists!
Stack Trace
at Ont._createModelData (./src/vs/editor/common/services/modelService.ts:352:9)
at Ont.createModel (./src/vs/editor/common/services/modelService.ts:444:20)
at (anonymous) (./src/vs/workbench/contrib/output/common/outputChannelModel.ts:496:35)
at bodyFn (./src/vs/base/common/async.ts:1867:10)
at Object.i [as withAsyncBody] (./src/vs/base/common/async.ts:1865:9)
at pye.loadModel (./src/vs/workbench/contrib/output/common/outputChannelModel.ts:493:35)
at vGe.provideTextContent (./src/vs/workbench/contrib/output/browser/outputServices.ts:401:0)
at Lnt.ensureResolvedTextModelContent (./src/vs/workbench/services/textmodelResolver/common/textModelResolverService.ts:192:22)
at Lnt.doCreateReferencedObject (./src/vs/workbench/services/textmodelResolver/common/textModelResolverService.ts:65:14)
at Lnt.createReferencedObject (./src/vs/workbench/services/textmodelResolver/common/textModelResolverService.ts:37:14)
at Lnt.acquire (./src/vs/base/common/lifecycle.ts:694:42)
at dCe.acquire (./src/vs/base/common/lifecycle.ts:724:39)
at Mnt.createModelReference (./src/vs/workbench/services/textmodelResolver/common/textModelResolverService.ts:242:41)
at nk.resolve (./src/vs/workbench/common/editor/textResourceEditorInput.ts:169:47)
at Dmt.setInput (./src/vs/workbench/browser/parts/editor/textResourceEditor.ts:57:36)
at async Dmt.setInput (./src/vs/workbench/contrib/output/browser/outputView.ts:310:0)
Raw Stack Trace (minified)
Error: ModelService: Cannot add model because it already exists! at Ont._createModelData (out/vs/workbench/workbench.desktop.main.js:1870:3251) at Ont.createModel (out/vs/workbench/workbench.desktop.main.js:1871:898) at out/vs/workbench/workbench.desktop.main.js:4003:731 at out/vs/workbench/workbench.desktop.main.js:434:84566 at new Promise (<anonymous>) at Object.i [as withAsyncBody] (out/vs/workbench/workbench.desktop.main.js:434:84531) at pye.loadModel (out/vs/workbench/workbench.desktop.main.js:4003:638) at vGe.provideTextContent (out/vs/workbench/workbench.desktop.main.js:4003:11929) at Lnt.ensureResolvedTextModelContent (out/vs/workbench/workbench.desktop.main.js:1846:29283) at Lnt.doCreateReferencedObject (out/vs/workbench/workbench.desktop.main.js:1846:28034) at Lnt.createReferencedObject (out/vs/workbench/workbench.desktop.main.js:1846:27546) at Lnt.acquire (out/vs/workbench/workbench.desktop.main.js:431:3513) at dCe.acquire (out/vs/workbench/workbench.desktop.main.js:431:3832) at Mnt.createModelReference (out/vs/workbench/workbench.desktop.main.js:1846:30199) at nk.resolve (out/vs/workbench/workbench.desktop.main.js:1047:32698) at Dmt.setInput (out/vs/workbench/workbench.desktop.main.js:1244:95569) at async Dmt.setInput (out/vs/workbench/workbench.desktop.main.js:4003:20662)
Details
| Property | Value |
|---|---|
| Bucket ID | d24ca92f-fb3c-3369-dc19-792878e12908 |
| Version | 1.125.1 |
| Commit | fcf60477 |
| Last Seen | Sun Jun 21 2026 23:58:17 GMT+0000 (Coordinated Universal Time) |
| Platforms | Windows, Linux, Mac |
| Product | VSCode |
This issue was automatically created from the VS Code Errors Dashboard
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.9k
- PR merge metrics
- PR metrics pending
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/vscode
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
new release
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
All issues in microsoft/vscode
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·