Theia: Theia fails to load with webview and preferences opened

Created on 13 Jan 2020  路  7Comments  路  Source: eclipse-theia/theia

Description

When refreshing browser while some Webview widget is opened in the first tab, and preferences in the second tab, Theia fails to load without any error in browser console:
image
After clearing layout value from browser local storage Theia is able to load again.

Reproduction Steps

  1. Open some Webview widget. I loaded GitLens vscode extension and then opened its settings with GitLens: Open Settings comand.
  2. Open preferences in a second tab: File->Settings->Open Preferences
  3. Refresh browser.

OS and Theia version:
Windows 10.
Theia master.

Diagnostics:
By debugging the flow I noticed that the issue resides in restoreLayout method inside shell-layout-restorer: await app.shell.setLayoutData(layoutData); call is not resolved.
https://github.com/eclipse-theia/theia/blob/f11045a0f886b3a6ad10fbc5255288abff424aeb/packages/core/src/browser/shell/shell-layout-restorer.ts#L170

bug help wanted vscode webviews

Most helpful comment

@akosyakov do you know if there is any work on that issue currently or we can take it?

All 7 comments

Which Theia and VS Code extensions you have installed?

I built Theia from master branch and loaded GitLens vscode extension, but I could reproduce this issue with any webview.

@akosyakov do you know if there is any work on that issue currently or we can take it?

@akosyakov do you know if there is any work on that issue currently or we can take it?

I don't think anyone is working on the issue, we'd be happy for you to take it @amiramw.

I checked this issue again.
When repeating the steps written above with git lens webview, Theia is loaded but the editor area is blank/ lost it's state. i didn't saw any error or warning in the browser console.
I checked with other random webviews and some have the same issue and some have no issue at all.

issue (git lens):
ezgif com-video-to-gif (2)

no issue (svg viewer):
ezgif com-video-to-gif (1)

Should be working now.

Was this page helpful?
0 / 5 - 0 ratings