troizet opened a new issue, #5881:
URL: https://github.com/apache/netbeans/issues/5881
### Apache NetBeans version
Apache NetBeans 18 release candidate
### What happened
Documentation for methods and properties is not displayed when `Ctrl + Shift
+ Space` is pressed
### How to reproduce
```php
class TestClass
{
public $property;
public function testFunction()
{
}
}
$test = new TestClass();
$x = $test->property;
$test->testFunction();
```
Case 1:
- set the caret to `$test->property^` or `$test->testFunction^`
- press `Ctrl + Shft + Space`
- the documentation is displayed
Case 2:
- set the caret to `$test->prop^erty` or `$test->testFun^ction`
- press `Ctrl + Shft + Space`
- documentation will not be displayed
### Did this work correctly in an earlier version?
Apache NetBeans 16
### Operating System
Debian 10
### JDK
OpenJDK Runtime Environment 11.0.18+10-post-Debian-1deb10u1
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
The reason seems to be that the anchor is not calculated correctly
https://github.com/apache/netbeans/blob/a56df8c75784ea61c41c5e54f9d0dfd6d96a0ac5/php/php.editor/src/org/netbeans/modules/php/editor/completion/PHPCodeCompletion.java#L361-L364
### Are you willing to submit a pull request?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists