You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling goto definiton on foo and bar in the // 1 case works for both of them.
Calling goto definition in the // 2 case works only on the method baz. For Foo$ and MODULE$ nothing happens. I think that both of them could navigate to the Foo object.
Calling goto definition in the // 3 case works for Foo but for baz it only works partially as editor navigates to the Foo class definition.
Below I include snippets from calling goto def. on the baz method from case 2 and 3.
Describe the bug
Given a following scala code:
and the java code in the same module:
Calling goto definiton on
foo
andbar
in the// 1
case works for both of them.Calling goto definition in the
// 2
case works only on the methodbaz
. ForFoo$
andMODULE$
nothing happens. I think that both of them could navigate to theFoo
object.Calling goto definition in the
// 3
case works forFoo
but forbaz
it only works partially as editor navigates to theFoo
class definition.Below I include snippets from calling goto def. on the
baz
method from case 2 and 3.For the 2nd case:
For the 3rd case:
Expected behavior
First, I would expect that calling goto def on method
baz
should navigate tobaz
method fromFoo
object in both of the cases.Second, it would be great if
Foo$
andMODULE$
could also navigate to theFoo
object.Operating system
Linux
Editor/Extension
Nvim (nvim-metals)
Version of Metals
1.3.0
Extra context or search terms
Project to reproduce: https://github.com/ghostbuster91/demos/tree/goto-def-java
The text was updated successfully, but these errors were encountered: