vscode-laravel-artisan icon indicating copy to clipboard operation
vscode-laravel-artisan copied to clipboard

Add sail compatibility

Open adammpkins opened this issue 2 years ago • 3 comments

I don't seem to be able to run these commands from sail. You may know that sail uses the syntax: sail artisan

but there doesn't seem to be an option to enable that option or integrate with sail otherwise.

adammpkins avatar Dec 07 '21 16:12 adammpkins

@adammpkins you could edit settings for:

Sets a custom location to the php executable as sail

However that only wont work because it uses it as a string so it will fail, maybe if there is a eval "sail" it would work.

Inside: src/Common.ts There is:

command = `"${phpLocation}" artisan ${command}`

Not sure why is phpLocation under double quotes? @TheColorRed

soixt avatar Feb 09 '22 19:02 soixt

I know it's been a long time and it may have already been resolved. I will record this for the benefit of those who visit here.

I was able to execute the command with the following configuration "artisan.docker.command": "docker-compose exec -T -u sail 'laravel.test'",

aska-kaneda avatar Mar 04 '22 07:03 aska-kaneda

I just set "artisan.docker.command": "./vendor/bin/sail"

chWagnr avatar Mar 29 '22 11:03 chWagnr

Stale issue message

github-actions[bot] avatar Apr 24 '23 22:04 github-actions[bot]