I just realized something. I'm so used to working in Debian that I forgot VSCode is running from Windows, so of course it doesn't know how to work with my bash script. I'll try turning this into a bat file instead.
Conversation
Notices
-
Embed this notice
Alex Hall (alexhall@mastodon.social)'s status on Monday, 30-Oct-2023 23:43:03 JST Alex Hall -
Embed this notice
Alex Hall (alexhall@mastodon.social)'s status on Monday, 30-Oct-2023 23:43:04 JST Alex Hall I want to have VSCode use PHP in a Docker container as its executable. I'm also using Debian 10 in WSL. My setup:
* In VSCode, php.executablePath is set to "\\\\wsl.localhost\\debian\\usr\\local\\bin\\php".
* That file is a simple bash script:```
#!/bin/bash
docker exec -t php-dev php $@
```* If I run `php --version` in WSL, I get a valid response. My script and container seem to work.
* VSCode says the path isn't a valid PHP executable.
* My script has 777 permissions.Any ideas?
GreenSkyOverMe (Monika) repeated this.
-
Embed this notice