Opened 8 years ago

Closed 6 years ago

Last modified 43 years ago

#346 closed Bugs (None)

Comment causes editor freeze

Reported by: nobody Owned by: nobody
Priority: 5 Milestone:
Component: PHP Editor Version: None
Keywords: Cc:

Description

When inserting a comment above a method, such as:

/**
* Blah, blah, blah...
* 
* @return datatype description
*
*/


Sometimes the @return causes a NullPointerException 
after using code completion (eg typing '@ret' then 
pressing CTRL+Space). If you press backspace to delete 
the word 'description', the editor freezes when you get to 
'datatype'.

This is in Eclipse version 3.1.0, build ID I20050627-1435
and PHP Eclipse 1.1.6

Change History (2)

comment:1 Changed 8 years ago by nobody

Logged In: NO 

The NPE doesn't occurr everytime. 
This seems to be a class loading problem, because the class
mentioned in the NoClassDefFoundError exception is available
in the project.

This is the stacktrace for the NPE:
java.lang.NoClassDefFoundError:
net/sourceforge/phpdt/internal/ui/text/template/contentassist/TemplateProposal
	at
net.sourceforge.phpdt.internal.ui.text.template.contentassist.TemplateEngine.complete(TemplateEngine.java:100)
	at
net.sourceforge.phpdt.internal.ui.text.phpdoc.PHPDocCompletionProcessor.computeCompletionProposals(PHPDocCompletionProcessor.java:165)
	at
org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1503)
	at
org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:261)
	at
org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$7(CompletionProposalPopup.java:258)
	at
org.eclipse.jface.text.contentassist.CompletionProposalPopup$1.run(CompletionProposalPopup.java:221)
	at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
	at
org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:216)
	at
org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1352)
	at
net.sourceforge.phpeclipse.phpeditor.PHPUnitEditor$AdaptedSourceViewer.doOperation(PHPUnitEditor.java:293)
	at
org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
	at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)

comment:2 Changed 6 years ago by scorphus

  • Status changed from assigned to closed
Logged In: YES 
user_id=987242
Originator: NO

This issue is fixed in 1.1.9, so is now closed.

Regards,
Pablo.
Note: See TracTickets for help on using tickets.