menu
announcement

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

Theia

Eclipse Theia - Cloud & Desktop IDE

Channels
Team

Using vscode:extension/MS-SarifVSCode.sarif-viewer in local docker fails

January 15, 2020 at 1:31pm

Using vscode:extension/MS-SarifVSCode.sarif-viewer in local docker fails

January 15, 2020 at 1:31pm
Hi I want to test vscode:extension/MS-SarifVSCode.sarif-viewer in a local docker instance of Theia. It's working on gitpod and VSCode but for Theia it says "server adress could not be found" for a webview. Might this be related to me not accessing theia over https?
Show previous messages

January 20, 2020 at 1:42am
Surprise that it all tries to download anything on http, web caches and service workers should not work on http without localhost
Sorry, I cannot really help without running it, i would need to debug and see what is going wrong.
I would suspect that you should not even see another service worker in devtools, since you are not running over https or on localhost.

January 20, 2020 at 8:35am
I would highly appreciate your help here. I'm clueless unfortunately.
I can spend 5 mins if you prepare something which i can pull and hit an error locally, like execute these 2 commands
otherwise I don't have much time :( we are going to migrate theia-apps to vscode extensions eventually and then we will need to look at these issues closely, right now it is not a priority

January 21, 2020 at 6:42pm
I totally understand that. I'll prepare something. Hope it's a minor thing. Thanks a lot for your help!

January 22, 2020 at 3:38pm
Hi Anton. I was now magically able to access Theia over localhost with the exact same comand (docker run -it --init -p 3000:3000 -v "$(pwd):/home/project:cached" theiaide/theia-java:next --hostname=0.0.0.0).
Edited
That solved the problem with the webview and I'm now able to use the plugin.
Thanks a lot for your help! Great community support!
like-fill
1