"The operation is unavailable on the current selection" when hitting 'Find References'
When trying to find references of the identifier under the cursor, a popup window appears: "The operation is unavailable on the current selection". This is because Scala compilation units don't implement `codeSelect` anymore.
Implementing this method will allow both search and the Javadoc View to correctly identify what is the element currently selected in the editor.
Implementing this method will allow both search and the Javadoc View to correctly identify what is the element currently selected in the editor.
Leave a comment
on 2012-06-26 19:43 *
By Mirco Dotta
(In scala-ide:2795c4af14d5a4b0bafcb5c19ab766d1c39a07dc) Correctly handle find references on field declarations
When Find References was performed on a val/var declaration, a popup dialog
used to be shown saying:
> The operation is unavailable on the current selection. Please select a valid
> Java element name.
The issue is in the compiler symbol found for the val/var declaration.
It turns out that the symbol's name can contain a trailing space, which
caused the equality test between the editor's current selection and the
symbol's name to always fail.
A test was also created to prove the issue is now corrected.
Re #1000773
Branch: master
When Find References was performed on a val/var declaration, a popup dialog
used to be shown saying:
> The operation is unavailable on the current selection. Please select a valid
> Java element name.
The issue is in the compiler symbol found for the val/var declaration.
It turns out that the symbol's name can contain a trailing space, which
caused the equality test between the editor's current selection and the
symbol's name to always fail.
A test was also created to prove the issue is now corrected.
Re #1000773
Branch: master
on 2012-06-27 21:21 *
By Mirco Dotta
(In scala-ide:2795c4af14d5a4b0bafcb5c19ab766d1c39a07dc) Correctly handle find references on field declarations
When Find References was performed on a val/var declaration, a popup dialog
used to be shown saying:
> The operation is unavailable on the current selection. Please select a valid
> Java element name.
The issue is in the compiler symbol found for the val/var declaration.
It turns out that the symbol's name can contain a trailing space, which
caused the equality test between the editor's current selection and the
symbol's name to always fail.
A test was also created to prove the issue is now corrected.
Re #1000773
Branch: platform/juno
When Find References was performed on a val/var declaration, a popup dialog
used to be shown saying:
> The operation is unavailable on the current selection. Please select a valid
> Java element name.
The issue is in the compiler symbol found for the val/var declaration.
It turns out that the symbol's name can contain a trailing space, which
caused the equality test between the editor's current selection and the
symbol's name to always fail.
A test was also created to prove the issue is now corrected.
Re #1000773
Branch: platform/juno
on 2012-06-28 19:20 *
By Mirco Dotta
(In scala-ide:01614448df44a691a31238563c6f5d8d4ba76577) Correctly handle find references on field declarations
When Find References was performed on a val/var declaration, a popup dialog
used to be shown saying:
> The operation is unavailable on the current selection. Please select a valid
> Java element name.
The issue is in the compiler symbol found for the val/var declaration.
It turns out that the symbol's name can contain a trailing space, which
caused the equality test between the editor's current selection and the
symbol's name to always fail.
A test was also created to prove the issue is now corrected.
Re #1000773
Branch: issue/code-analysis-1000629
When Find References was performed on a val/var declaration, a popup dialog
used to be shown saying:
> The operation is unavailable on the current selection. Please select a valid
> Java element name.
The issue is in the compiler symbol found for the val/var declaration.
It turns out that the symbol's name can contain a trailing space, which
caused the equality test between the editor's current selection and the
symbol's name to always fail.
A test was also created to prove the issue is now corrected.
Re #1000773
Branch: issue/code-analysis-1000629
on 2012-10-10 13:18 *
By Mirco Dotta
Version changed from 2.0.0-RC2-29 to 2.0.2-final-29
Eclipse version changed from Helios to Helios - Eclipse 3.6
Assigned to changed from login to -none-
Milestone changed from Helium to Lithium
on 2015-03-13 18:10 *
By Simon Schäfer
Eclipse version changed from Helios - Eclipse 3.6 to Luna - Eclipse 4.4
Version changed from 2.0.2-final-29 to 4.0.0
Status changed from New to Accepted