SanderRonde / phpstan-vscode

PHPStan plugin for VSCode
https://marketplace.visualstudio.com/items?itemName=SanderRonde.phpstan-vscode
MIT License
37 stars 7 forks source link

docker howto #53

Closed quazardous closed 2 months ago

quazardous commented 5 months ago

Hi,

I would like to ask you on the right way to use the plugin with a dockerized phpstan stack.

the main issue is how to map the path between vscode and the container.

Before I start diving into it, could you provide me some pointers ?

thx

quazardous commented 5 months ago

just read the doc doo

quazardous commented 5 months ago

but it does not work because of docker verbose output...

17:02 $ bin/phpstan_docker 
[+] Creating 1/0
 ✔ Container xxx-mariadb-1  Running                                                                                                      0.0s 
Note: Using configuration file /var/www/xxx/phpstan.neon.

vscode output

[check:18] PHPStan process exited with error  filteredErr=Container m2m-mariadb-1  Running  rawErr= Container m2m-mariadb-1  Running

  data=
[status-bar] Hiding status bar, last operation result = Error

EDIT:

I've a depends_on

    depends_on:
      mariadb:
        condition: service_healthy

I should create a fully dedicated php container for phpstan, I made it run from the main container because I'm lazy...

SanderRonde commented 5 months ago

Is there not some way to prevent that output while running the docker phpstan command? If not then it's going to be pretty hard to work around this. I'd have make the phpstan command specifically ignore docker-related output but not the rest.

github-actions[bot] commented 3 months ago

Issues go stale after too much time without activity. If inactive for another 7 days this issue will be closed.