Confused on Exception suggestion redundancy and colors Follow
I updated to PhpStorm 2022.3 (from an old version since the update pop-ups stopped happening last year for some reason, which I'd really like to have back), and suddenly function suggestions for the Exception class object start showing redundantly but some of them are in red and others in black... before, they were just in black.
Note that my language level is set to PHP 5 for this project (sorry, we're working on upgrading it). I haven't seen what happens in PHP 7 or 8 yet. Yes I know PHP 5 and 7 are outdated.
I just noticed that the little barely-noticeable orange up-arrow appeared at the top right of the editor (obscuring the settings gear icon for some reason), which upon clicking shows that there's an update to PHPStorm 2022.3. Maybe that fixes this issue?
Or what new behavior am I not understanding?
Please sign in to leave a comment.
They've disabled it in the platform, not exactly sure why:
This icon was supposed to replace the notification, although in my opinion, it's much less impactful and thus lots of people continue using outdated IDE builds.
That's weird that it suggests you to upgrade to 2022.3 now that you are on 2022.3 already. Could you please share screenshots of Help | About together with a screenshot of the menu shown upon clicking the orange arrow icon?
It looks like you have duplicated stubs, some of them for the correct PHP verison, and some for a different one.
Do you have anything specified at Settings | PHP | PHP Rumtime | Advanced settings | Default stubs path?
If not, please share what custom plugins you have installed.
I've tried to reproduce the issue in a local empty project and it didn't happen for me; please also try to reproduce it this way.
I think the change alone contributed to people becoming out of date for longer than months. A lot of people I know just don't update the app for whatever reason, but I think the change is causing an excess of that. I like to keep mine up to date, which is why I prefer the pop-up.
I'm now on version PhpStorm 2022.3.2.
This is my PHP Runtime:
It looks the same as any other time I've glanced at it, for any project, for any version of PHP. I have to run projects in PHP 5, 7, and 8, but the current project is 5. I don't know why the redundant/red stubs issue would be present in any version of PHP. My language level for the project is set to 5.6, and the CLI Interpreter is PHP 5.6.40.
At the bottom of this settings pane, there are
Advanced settings. Is the
Default stubs pathempty there?
If it is, could you please create a new empty project and check if the issue is still reproducible there?
If it's also reproducible, please share the list of your custom plugins (Help | About | Copy).
The `Default stubs path` is empty there.
How should I create the new project?
I created a new project using File > New Project, which automatically chose a path for me named "untitled":
`Default stubs path` is also empty for this project:
I don't know what you mean by Help | About | Copy
I'm on macOS, now Ventura.
I don't know what you mean by "custom plugins"... my Settings > Plugins list shows 4 downloaded (3 of them enabled), and a long list of apparently pre-installed plugins (I know I didn't add them):
Thank you for the update.
The empty default stubs is perfectly fine and it means that only a built-in stubs are being used.
Is it still reproducible on a new empty project (untitled), do you still have duplicating records there?
Also, what happens when you click on "$e->getMessage()", to what declaration would it navigate you?