menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Theia

Eclipse Theia - Cloud & Desktop IDE

Channels
Team

Webview Extensions in Theia Electron

February 12, 2020 at 3:01pm

Webview Extensions in Theia Electron

February 12, 2020 at 3:01pm
Hi. I'm having an issue with using webview extensions in an Electron instance of Theia. I get a 404 resource not found error when I open the webview.
WebviewError.png
The command to open the webview is: "Example: Webview"
I also had to clone the extension repo, as I could not get the VSIX to work, but that may just be an issue with the VSIX he uploaded, I haven't had issues with other VSIXs in Theia. If I place the repo folder into the plugins folder, the webview opens just fine, but has the 404 error instead of any contents.
The webview works fine in a browser instance of Theia.
Super sorry if this is an issue that has already come up, I looked around a little bit and couldn't find anything, but it may have already been asked.
Any help or suggestions are appreciated!

February 13, 2020 at 8:41am
Hi, no i don't think something like that was reported, could you file an issue please?
There were some discussions how to debug resource loading for webviews in Theia. Maybe it can help you to investigate.
In Electron you should be able to open dev-tools via help menu and add breakpoints.

February 14, 2020 at 2:14pm
I will definitely look into it. Thank you for the help. I filed the issue here: https://github.com/eclipse-theia/theia/issues/7156
like-fill
2