Repository navigation
UX: List enabled plugins in the startup output - #14510
Merged
Merged
Conversation
Preloader no longer reports one task per class, so LongProgress does not draw a ~1900-tick bar. The preloading and JIT phases now print only their duration.
Print each startup item (PHP version, extensions, plugins) on its own line. A plugin is shown as the Composer package declaring it, without the plugin/psalm affixes (psalm/plugin-phpunit is psalm/phpunit).
…tupMessage The method also lists the enabled extensions and plugins.
alies-dev
marked this pull request as ready for review
November 21, 2026 15:07
Contributor
✅ Performance: unchanged · Types: unchanged
How to read this table
head e480d73 · base c5f4dfd (merge-base) · workflow run |
A project that does not have Psalm in its own vendor directory (phar, global install) got the full class names of the auto-enabled plugins. The plugin packages are now also read from the installed.json of Psalm's own installation, the project's packages winning.
Plugins were deduplicated by their printed name, which merged different classes sharing a short name and kept one file spelled two ways. A class is now identified by its lowercase name, a file by its canonical path.
Strip the plugin/psalm affixes with one regex, read the plugin class of a package like getLibraryPluginClasses() does, return early from LongProgress::startPhase() for the phases that print only a duration, and describe the rules where they live.
realpath() results were compared loosely; Psalm's self-analysis flags that.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Psalm's startup output does not say which plugins are enabled, and preloading, which takes under a second, prints a 32-row progress bar.
Before (
./psalmon Psalm itself)After
When a Composer package declares the plugin class (
extra.psalm.pluginClass), the list shows the package name withoutplugin-,psalm-,-pluginor-psalmin the part after the slash:psalm/plugin-laravelappears aspsalm/laravel. Psalm looks the package up in the project'svendor/composer/installed.jsonand in the one of its own installation, so the plugins it bundles keep their package names when Psalm runs as a phar or from a global install. The list includes the plugins Psalm enables because the project'scomposer.jsonrequires a supported library. Other plugin classes appear by short class name (by full name if that is justPlugin), and file plugins by path. When there are unsupported extensions, they get their ownUnsupported extensions:line.