eclipse-theia/theia

[windows] TypeError: uri.withoutFragment is not a function when starting Theia in debug mode

Open

#6,733 opened on Dec 11, 2019

View on GitHub
 (3 comments) (0 reactions) (0 assignees)TypeScript (2,478 forks)batch import
bughelp wantedoutline

Repository metrics

Stars
 (18,676 stars)
PR merge metrics
 (Avg merge 15d 4h) (75 merged PRs in 30d)

Description

Description

This is what I get when I start Theia in debug mode on Windows:

navigatable.ts:93 Uncaught (in promise) TypeError: uri.withoutFragment is not a function
    at EditorManager.../node_modules/@theia/core/lib/browser/navigatable.js.NavigatableWidgetOpenHandler.serializeUri (navigatable.ts:93)
    at EditorManager.../node_modules/@theia/core/lib/browser/navigatable.js.NavigatableWidgetOpenHandler.createWidgetOptions (navigatable.ts:85)
    at EditorManager.../node_modules/@theia/core/lib/browser/widget-open-handler.js.WidgetOpenHandler.getOrCreateWidget (widget-open-handler.ts:163)
    at EditorManager.<anonymous> (widget-open-handler.ts:81)
    at step (widget-open-handler.ts:15)
    at Object.next (widget-open-handler.ts:15)
    at widget-open-handler.ts:15
    at new Promise (<anonymous>)
    at ../node_modules/@theia/core/lib/browser/widget-open-handler.js.__awaiter (widget-open-handler.ts:15)
    at EditorManager.../node_modules/@theia/core/lib/browser/widget-open-handler.js.WidgetOpenHandler.open (widget-open-handler.ts:80)

I have added this to my launch config:

"windows": {
  "env": {
    "NODE_ENV": "development",
    "NODE_PRESERVE_SYMLINKS": "1"
  }
},

to workaround eclipse-theia/theia#3590. And probably, the uri.withoutFragment error is related to the incorrect version of vsodee-uri at runtime: #6712.

Reproduction Steps

OS and Theia version:

Diagnostics:

Contributor guide