“Setting the mark” means typing <CTRL>-space in the java file (emacs keybinding mode). It marks the position in the text so you can then select a region with the keyboard.
You can see what the bug has to be from the stacktrace snippet I sent. It’s in genuitec code: com.genuitec.copilot4eclipse.CopilotEditSession.handleSelectionEvent
and in that code you’re casting an org.eclipse.jface.text.MarkSelection to org.eclipse.jface.text.ITextSelection
which is not a valid cast since MarkSelection is not in the type hierarchy for ITextSelection.
The type hierarchy for MarkSelection is ISelection -> IMarkSelection -> MarkSelection
ITextSelection splits off further up the tree: ISelection -> ITextSelection
See: https://help.eclipse.org/latest/nftopic/org.eclipse.platform.doc.isv/reference/api/org/eclipse/jface/viewers/ISelection.html
Hope that helps!
(Eclipse details:
Eclipse IDE for Enterprise Java and Web Developers (includes Incubating components)
Version: 2023-12 (4.30.0)
Build id: 20231201-2043)
-
This reply was modified 1 year, 9 months ago by
JBcopilot.