-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Hello.
I get following error when starting vscode with the extension enabled. This causes the inline errors or problem view listing to not show up.
Unhandled method phpstan.configResolve
at Oe (/home/user/.vscode-server/extensions/sanderronde.phpstan-vscode-4.0.9/out/extension.js:4:233)
at ue (/home/user/.vscode-server/extensions/sanderronde.phpstan-vscode-4.0.9/out/extension.js:3:7388)
at se (/home/user/.vscode-server/extensions/sanderronde.phpstan-vscode-4.0.9/out/extension.js:3:7511)
at Immediate.<anonymous> (/home/user/.vscode-server/extensions/sanderronde.phpstan-vscode-4.0.9/out/extension.js:3:7275)
at processImmediate (node:internal/timers:485:21)
phpstan.neon config:
parameters:
level: 1
paths:
- app
- tests
excludePaths:
- app/Policies
The analysis runs fine according to the phpstan output window but the error can be seen in Extension Host (remote) window.
Startup parameters:
[10/31/2025, 11:37:07 AM] [client] Starting extension with configuration: {
"phpstan.singleFileMode": false,
"phpstan.binPath": "vendor/bin/phpstan",
"phpstan.binCommand": [],
"phpstan.configFile": "phpstan.neon",
"phpstan.paths": {},
"phpstan.dockerContainerName": "",
"phpstan.rootDir": "",
"phpstan.options": [],
"phpstan.enableStatusBar": true,
"phpstan.memoryLimit": "1G",
"phpstan.enabled": true,
"phpstan.projectTimeout": 300000,
"phpstan.timeout": 300000,
"phpstan.suppressTimeoutMessage": false,
"phpstan.showProgress": true,
"phpstan.showTypeOnHover": true,
"phpstan.enableLanguageServer": false,
"phpstan.ignoreErrors": [
"Xdebug: .*"
],
"phpstan.suppressWorkspaceMessage": false,
"phpstan.pro": false,
"phpstan.tmpDir": "",
"phpstan.checkValidity": true
}
[10/31/2025, 11:37:07 AM] [client] Initializing done
[10/31/2025, 11:37:07 AM] [client] Showing one-time messages (if needed)
[10/31/2025, 11:37:07 AM] [server] Language server ready
[10/31/2025, 11:37:07 AM] [server] Language server started
I have autosave on and check validity setting enabled.
Interesting thing is that after manually saving some file, the analysis is done again and then the inline errors show up. It seems that there might be issues with the extension startup!
Overall this does not halt my extension usage but causes small inconvenience when the analysis seems to be OK when staring vscode but after some typing (automatic file save), errors show up.
ie: Opening vscode > navigatge to file > "All seems OK". > write code --> Old errors show up.
OS: WSL2 ubuntu with Laravel Sail Docker environment.
Ext v4.0.9
phpstan v2.1.31
Thanks in advance!