Closed berniedurfee-renaissance closed 2 months ago
Hmm what version of PHPStan are you using? If you're using >0.12.0 this should work, if you're using a lower version then the extension should not be running this code
Given that the code we're talking about has been (temporarily) disabled anyways I'll just remove the code for the time being since it is blocking quite a bit and I'm sure you're not alone. Am still wondering about the answer to the above question though so I can figure out what went wrong :)
Fixed in 3.2.9
❯ vendor/bin/phpstan --version
PHPStan - PHP Static Analysis Tool 1.11.5
Same error, here's a little more of the stack trace:
Fatal error: Uncaught Error: Interface "PHPStan\Diagnose\DiagnoseExtension" not found in /Users/<me>/.vscode/extensions/sanderronde.phpstan-vscode-3.2.9/php/Diagnoser.php:12
Stack trace:
#0 /Users/<me>/.vscode/extensions/sanderronde.phpstan-vscode-3.2.9/_config/<uuid>/autoload.php(2): require_once()
The autoloader file:
❯ cat /Users/<me>/.vscode/extensions/sanderronde.phpstan-vscode-3.2.9/_config/<uuid>/autoload.php
<?php
require_once '/Users/<me>/.vscode/extensions/sanderronde.phpstan-vscode-3.2.9/_config/<uuid>/TreeFetcher.php';require_once '/Users/<me>/.vscode/extensions/sanderronde.phpstan-vscode-3.2.9/php/Diagnoser.php';
Ah I think I know why the original error was happening. Should be fixed now though. (the 3.2.9 fix indeed did not work, 3.2.10 is out now)
Working now, thank you!
Getting this error in
3.2.8
:3.2.1
works, anything past that throws the same error:Is there a dependency update or something required that I'm missing after
3.2.1
?