Exception during completion: `java.lang.IllegalStateException: must specify at least one linked position`
Got the following while asking for completion
java.lang.IllegalStateException: must specify at least one linked position
at org.eclipse.jface.text.link.LinkedModeModel.enforceNotEmpty(LinkedModeModel.java:534)
at org.eclipse.jface.text.link.LinkedModeModel.install(LinkedModeModel.java:487)
at org.eclipse.jface.text.link.LinkedModeModel.forceInstall(LinkedModeModel.java:444)
at scala.tools.eclipse.ui.ScalaCompletionProposal.addArgumentTemplates(ScalaCompletionProposal.scala:191)
at scala.tools.eclipse.ui.ScalaCompletionProposal.apply(ScalaCompletionProposal.scala:143)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertProposal(CompletionProposalPopup.java:933)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertSelectedProposalWithMask(CompletionProposalPopup.java:881)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.verifyKey(CompletionProposalPopup.java:1307)
at org.eclipse.jface.text.contentassist.ContentAssistant$InternalListener.verifyKey(ContentAssistant.java:807)
at org.eclipse.jface.text.TextViewer$VerifyKeyListenersManager.verifyKey(TextViewer.java:491)
at org.eclipse.swt.custom.StyledTextListener.handleEvent(StyledTextListener.java:65)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
Leave a comment
on 2013-03-06 07:40 *
By Iulian Dragos
Assigned to set to Iulian Dragos
Status changed from New to Fixed
(In scala-ide:ffcf62afa48f6b775258493f5cc34e84e517d2e0) Lazy retrieval of Java parameter names in completions.
When a completion is selected we need to show the parameter names as placeholders.
If the method comes from Java, we need to retrieve the Java element, a potentially
long-running operation that can trigger the structure builder. Instead of retrieving
all parameter names eagerly, for each completion proposal, we delay it to the
moment a completion is selected and inserted in the editor.
Fixed #1001560, #1001497.
Branch: master
When a completion is selected we need to show the parameter names as placeholders.
If the method comes from Java, we need to retrieve the Java element, a potentially
long-running operation that can trigger the structure builder. Instead of retrieving
all parameter names eagerly, for each completion proposal, we delay it to the
moment a completion is selected and inserted in the editor.
Fixed #1001560, #1001497.
Branch: master
on 2013-03-06 07:49 *
By Iulian Dragos
(In scala-ide:1b16c890f1170c2c805fd5a525c5cb5b33d28ed5) Lazy retrieval of Java parameter names in completions.
When a completion is selected we need to show the parameter names as placeholders.
If the method comes from Java, we need to retrieve the Java element, a potentially
long-running operation that can trigger the structure builder. Instead of retrieving
all parameter names eagerly, for each completion proposal, we delay it to the
moment a completion is selected and inserted in the editor.
Fixed #1001560, #1001497.(cherry picked from commit ffcf62afa48f6b775258493f5cc34e84e517d2e0)
Branch: release/scala-ide-3.0.x
When a completion is selected we need to show the parameter names as placeholders.
If the method comes from Java, we need to retrieve the Java element, a potentially
long-running operation that can trigger the structure builder. Instead of retrieving
all parameter names eagerly, for each completion proposal, we delay it to the
moment a completion is selected and inserted in the editor.
Fixed #1001560, #1001497.(cherry picked from commit ffcf62afa48f6b775258493f5cc34e84e517d2e0)
Branch: release/scala-ide-3.0.x
on 2013-06-05 02:55 *
By Iulian Dragos
(In scala-ide:ffcf62afa48f6b775258493f5cc34e84e517d2e0) Lazy retrieval of Java parameter names in completions.
When a completion is selected we need to show the parameter names as placeholders.
If the method comes from Java, we need to retrieve the Java element, a potentially
long-running operation that can trigger the structure builder. Instead of retrieving
all parameter names eagerly, for each completion proposal, we delay it to the
moment a completion is selected and inserted in the editor.
Fixed #1001560, #1001497.
Branch: platform/juno
When a completion is selected we need to show the parameter names as placeholders.
If the method comes from Java, we need to retrieve the Java element, a potentially
long-running operation that can trigger the structure builder. Instead of retrieving
all parameter names eagerly, for each completion proposal, we delay it to the
moment a completion is selected and inserted in the editor.
Fixed #1001560, #1001497.
Branch: platform/juno