HvyIndustries / crane

PHP Intellisense/code-completion for VS Code
https://hvy.io/crane
Other
240 stars 25 forks source link

Usage with ephemeral docker container #312

Closed sudoforge closed 7 years ago

sudoforge commented 7 years ago

I've tried a few different ways of using this extension with Docker, to no avail:

docker command as executablePath

{
    "php.validate.executablePath": "docker run -it --rm php:7.1.4-fpm-alpine php",
}

custom script in PATH

#!/usr/bin/env sh

docker run -it --rm php:7.1.4-fpm-alpine php "$@"
{
    "php.validate.executablePath": "php",
}

Both generate the Error spawning PHP: Command failed: php --version message when opening a .php file in VSCode.

Is it possible to use an ephemeral docker container as my "php executable" with this extension?

nevadascout commented 7 years ago

Crane doesn't require a PHP executable to run so I think you've talking about a different extension!

sudoforge commented 7 years ago

Hm - that's really odd. You're correct, but I arrived at this repo from within the other extension's settings menu. That seems to be resolved, so, until we meet again!