Bug 439403 - Tool-tip for method is not displaying and exception is thrown
Summary: Tool-tip for method is not displaying and exception is thrown
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-11 04:19 EDT by Michal Niewrzal CLA
Modified: 2020-05-14 11:42 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Niewrzal CLA 2014-07-11 04:19:27 EDT
PDT 3.3.0.201407102211

Use code from below and try show tool tip for method 'indexAction'.

class IndexController
{
    /**
     * Some text
     * 
     * (non-PHPdoc)
     * @see \Zend\Mvc\Controller\AbstractActionController::indexAction()
     */
    public function indexAction()
    {      
        return new ViewModel();
    }
}

Exception from log:

!ENTRY org.eclipse.jface.text 4 0 2014-07-08 15:17:58.759
!MESSAGE Unexpected runtime error while computing a text hover
!STACK 0
java.lang.StringIndexOutOfBoundsException: String index out of range: -14
	at java.lang.String.substring(Unknown Source)
	at org.eclipse.php.internal.ui.documentation.PHPDocumentationContentAccess.handleLink(PHPDocumentationContentAccess.java:1410)
	at org.eclipse.php.internal.ui.documentation.PHPDocumentationContentAccess.handleSeeTag(PHPDocumentationContentAccess.java:1266)
	at org.eclipse.php.internal.ui.documentation.PHPDocumentationContentAccess.handleBlockTags(PHPDocumentationContentAccess.java:1202)
	at org.eclipse.php.internal.ui.documentation.PHPDocumentationContentAccess.toHTML(PHPDocumentationContentAccess.java:915)
	at org.eclipse.php.internal.ui.documentation.PHPDocumentationContentAccess.javadoc2HTML(PHPDocumentationContentAccess.java:624)
	at org.eclipse.php.internal.ui.documentation.PHPDocumentationContentAccess.getHTMLContentFromSource(PHPDocumentationContentAccess.java:583)
	at org.eclipse.php.internal.ui.documentation.PHPDocumentationContentAccess.getHTMLContent(PHPDocumentationContentAccess.java:496)
	at org.eclipse.php.internal.ui.editor.hover.PHPDocumentationHover.getHTMLContent(PHPDocumentationHover.java:891)
	at org.eclipse.php.internal.ui.editor.hover.PHPDocumentationHover.getHoverInfo(PHPDocumentationHover.java:565)
	at org.eclipse.php.internal.ui.editor.hover.PHPDocumentationHover.internalGetHoverInfo(PHPDocumentationHover.java:533)
	at org.eclipse.php.internal.ui.editor.hover.PHPDocumentationHover.getHoverInfo2(PHPDocumentationHover.java:483)
	at org.eclipse.php.internal.ui.editor.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:132)
	at org.eclipse.php.internal.ui.editor.hover.PHPTextHoverProxy.getHoverInfo2(PHPTextHoverProxy.java:77)
	at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
Comment 1 Michal Niewrzal CLA 2014-07-11 10:52:10 EDT
Patch https://git.eclipse.org/r/29824
Comment 3 Sylvia Tancheva CLA 2015-05-28 08:33:57 EDT
Verified. Closing