massCodeIO / assistant-vscode

massCode assistant for VS Code
MIT License
28 stars 10 forks source link

masscode assistant wont work with Remote - Containers (Docker) #3

Open mschoenbein opened 2 years ago

mschoenbein commented 2 years ago

Hi, iam using Windows with Docker (WSL2). VSCode is running with remote containers (https://github.com/Microsoft/vscode-remote-release). The assistant "wont work" with this setup. I get the message "masscode app not found". Greetings

antonreshetov commented 2 years ago

@mschoenbein massCode API work on port 3030. Maybe you need to expose this port in the docker.

mschoenbein commented 2 years ago

@antonreshetov I think that is the Problem. The host cannot be reached in the container with "localhost" but with "host.docker.internal". Can you make a config var for the host adress?

Zeqiang-Lai commented 2 years ago

I encounter the similar issue for remote development (not WSL), I try to forward port 3030, but it doesn't work. How can I fix it ?

@mschoenbein massCode API work on port 3030. Maybe you need to expose this port in the docker.

Zeqiang-Lai commented 2 years ago

manage to make it work by forcing the extension to run locally.

add this to the vscode setting

  "remote.extensionKind": {
        "antonreshetov.masscode-assistant": [
            "ui"
        ]
    }
mschoenbein commented 2 years ago

manage to make it work by forcing the extension to run locally.

add this to the vscode setting

  "remote.extensionKind": {
        "antonreshetov.masscode-assistant": [
            "ui"
        ]
    }

This works for me too! Thank you!