-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Hi,
after updating phpstan 1.9.16 through composer the extension does no longer fetch problems in vscode and errors out with this message:
2023-02-08 14:27:26.131 [error] [Extension Host] [phpstan] failed:
! [NOTE] The Xdebug PHP extension is active, but "--xdebug" is not used. This may slow down performance and the process
! will not halt at breakpoints.
My quick and dirty fix is to hack the extensions controller.js to push --xdebug as command line parameter to phpstan like this:
makeCommandArgs(args) {
let result = [];
result.push("analyse");
result.push("--xdebug");
result.push("--error-format=json");
if (args.level === "config") {
// set level in config file
}
else if (args.level) {
result.push("--level=" + args.level);
}
else {
result.push("--level=max");
}
if (args.noProgress) {
result.push("--no-progress");
}
if (args.memoryLimit) {
result.push("--memory-limit=" + args.memoryLimit);
}
if (args.configuration) {
result.push("--configuration=" + args.configuration);
}
if (args.autoloadFile) {
result.push("--autoload-file=" + args.autoloadFile);
}
if (args.path) {
result.push(args.path);
}
return result;
}Metadata
Metadata
Assignees
Labels
No labels