12 release: Broken type hints in PHP

I has reported it before in “report a problem”, but you made release with it.

If you are trying to type the type, it’s not hinting it anymore, just showing some standard php things or nothing. Right now I need to go to the class manually, copy its namespace, and paste it as “use … something” in the code. Then it’s see it.

1 Like

Thank you for the report. We may need more info, however, as I’m not sure what type hints you are referring to and if they should be coming from an extension you have installed.

Could you provide a screenshot or recording of what you’re seeing, as well as what extensions you have?

Thank you!

Well, I think something broken when Nova working Intelephense plugin. Screen recording is already inside your system, named “Nova 12, still broken typehint”.

Problem is, it’s not hinting at all, not from Nova, not from plugin (then I disabling it, Nova tries to show something). I has downgraded to 11 now, it’s works again as expected.

Thank you. Then in that case, if your recording has been sent to our support team, you should be receiving a response from them as they handle your email.

Same bug here since the update. (for html scss php)
It’s really annoying because it slows down coding enormously.
This was one of Nova’s great basic strengths :confused:
is there a possibility of regression to an older version ?

Hello Colibri,

Unfortunately, much like the first case, I am at a bit of a loss as to what you are referring to specifically without more information.

Please provide either a screen recording or detailed steps, and info about which extensions you have installed, and what you’re expecting to see that isn’t working.

You can provide this either here in this thread, or by contacting our support team if you’d prefer it remain private.

Thank you!

for example, handwritten code is

    private EntityManagerInterface $em;

Nova 11 with Intelephense plugin suggested, what EntityManagerInterface is a Doctrine\ORM\EntityManagerInterface in a droplist.

Nova 12 without plugin shows some suggestions, but they are not related.

Nova 12 with Intelephense plugin shows nothing.

It’s a screenshot from Nova 11, how it’s should to work

Снимок экрана 2024-11-22 в 18.41.25

Thank you! We can look into this.

For my investigation of this, Intelephense seems to be suggesting type names from a project correctly in a similar example to your description. (This does not mean that my setup isn’t somehow different from yours, though, so I’m trying to narrow things down.)

Before I dig too deeply, though, could you check something in your setup? We’ve had a few reports from other users hitting a different issue with PHP, and have traced that to a third-party extension they had installed named “advanced PHP.” It seems that as of Nova 12, this extension has started taking priority over our built-in PHP support for some reason, leading to issues with both Intelephense and syntax highlighting. You can check if you have it installed from the Extensions window, or by checking the syntax language name displayed in the editor’s info footer. If that’s installed, try disabling it and checking your issue once more.

If that’s not the case for you, then no worries! I just want to eliminate it as a possibility before I dig much deeper.

Снимок экрана 2024-11-23 в 00.41.31

No, I have small amount of plugins. CS Fixer works only on save.

Try to get type hint for something what is not already used in current file. If something is already described in "use … " it’s works.

Thank you for confirming. Will continue to investigate!

Thank you, wokenlex! Your info helped me find the issue. There was a bug introduced specifically with our language server support and completions.

We should have a fix for this in the upcoming Nova 12.1 bugfix release.

Hello,
As requested, here’s an example, here the scss variable is no longer retrieved.
In the previous version, when I typed ‘$toto…’ it gave me the rest

Sans titre

Or no more href option in html a tag
Capture d’écran 2024-11-25 à 10.22.05

Logan no news about my problem ?