Show previous messages
Using vscode:extension/MS-SarifVSCode.sarif-viewer in local docker failsJanuary 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?
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.
First request should be redirected by a service worker to main window here: https://github.com/eclipse-theia/theia/blob/fd2d384348348061eadaf67a3651b631cba288bc/packages/plugin-ext/src/main/browser/webview/pre/service-worker.js#L177
then a resource should be fetched here by the main process: https://github.com/eclipse-theia/theia/blob/fd2d384348348061eadaf67a3651b631cba288bc/packages/plugin-ext/src/main/browser/webview/webview.ts#L432
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 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
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).
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!