Skip to content

executablePath in docker container #31

@danielcosta

Description

@danielcosta

Hello,

I'm guessing if its possible to run phpcbf in vscode through a docker container (or image). I'm trying to configure phpcbf.executablePath with value below but it's not working:

"phpcbf.executablePath": "docker exec -it name_of_container /bin/sh -c '/var/www/html/vendor/bin/phpcbf \"$@\"' -- ",

Giving me this error:

PHPCBF: spawn docker exec -it name_of_container /bin/sh -c '/var/www/html/vendor/bin/phpcbf "$@"' -- ENOENT. executablePath not found.

Could anyone help me make this work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions