Closed aschmois closed 9 months ago
Hi, thanks for the bug report and sorry for the late triage. I hope such a environment has been working before but i am not using docker myself. haskell has an official image in ms: https://github.com/microsoft/vscode-dev-containers/tree/fecdec6718bc6003ad309989b976c373327ab3dc/containers/haskell maybe does it worth give it a try?
I ran docker-compose run
instead of executing a running container and it now accepts stdio, it's not the best solution but it works. There's different ways to communicate with vscode lsps, I think the most common way that doesn't rely on stdio, is ipc. Do you know if it would be possible to convert to it? I can attempt a PR if you think it's possible.
Closing as old and quiet
We have a docker image that contains HLS and prebuilt dependencies. I thought it would be nice to add HLS to this image and have the extension run a script that wraps around it. HLS will run but it looks like stdin is completely ignored. I tried a few different ways with
docker-compose -T
anddocker -i
but nothing seems to pipe stdin correctly. Maybe I'm setting this up wrong, or maybe vscode's stdin transport just doesn't support doing this.This is the wrapping script I built, it's pretty simple.
stack
is the name of the docker compose container and it's just ubuntu with stack, some prebuilt dependencies, and hls.The ouput generates as expected, but nothing is piped in so the extension just doesn't work: