Bug 373415 - Code hints and jumping to declaration for docblocks
Summary: Code hints and jumping to declaration for docblocks
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: PHP (show other bugs)
Version: 5.0.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-08 08:24 UTC by Jan Pavlicek
Modified: 2022-11-14 07:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Pavlicek 2016-12-08 08:24:06 UTC
If I hover over a variable of known type, class usage, method call etc., I get a tooltip with declaration information and the ability to use Ctrl key to jump to declaration.

This does however not work for @var docblock annotations (and others, but this one is the most standard one). This would be very useful, for example for class members, which can be objects or arrays of objects. You could then jump to class definitions of those objects just by hovering the member variable, as opposed to manually searching for the class which is required in the current version.

I don't know if this is a bug and it should be working, or if it is not implemented yet, so please correct me with the severity if I used it wrong.

Thanks, have a nice day!
Comment 1 Justin Zobel 2022-10-27 02:48:23 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 2 Jan Pavlicek 2022-10-30 09:09:08 UTC
(In reply to Justin Zobel from comment #1)
> Thank you for reporting this bug in KDE software. As it has been a while
> since this issue was reported, can we please ask you to see if you can
> reproduce the issue with a recent software version?
> 
> If you can reproduce the issue, please change the status to "REPORTED" when
> replying. Thank you!

Hey Justin,

I am still able to reproduce this issue with the current version (I'm using the version available in archlinux repos, which should be fairly recent, I updated few days ago), the hint tooltip still does not work with annotations. But I think the severity of this issue is now much lower, since PHP is now capable of stronger typing and introduced attributes as a built-in alternative to non-doc annotations - the whole ecosystem is moving into that direction. This would still be a nice feature for dealing with legacy code, but from my point of view the support for PHP8 features is now a much more needed feature (I have created bug reports for several of those as well, I will review and update those when I have a bit more time).

Thanks and all the best!
Comment 3 Bug Janitor Service 2022-11-14 05:15:08 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!