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
Recently I was confused as Metals couldn't find any implementation of a type in the project, even thought it had to be used somewhere. Turns out that Go to Implementation is unable to find anonymous instantiations if SAM conversion is applied. Example, only test3 and test4 are shown when trying to search for the MyTestTrait implementations:
Thanks for the report. Go to implementation bases on SemanticDB, which doesn't produce an anonymous class for SAM conversion both in Scala 2 and Scala 3.
@kasiaMarek Thank you for the explanation! 👍 Is there an upstream ticket that could be tracked? 🙂 @tgodzik Oops, sorry about that, my bad for not noticing this earlier. I had filed the issue late at night after getting a reproduction and haven't thought to check. 😅
Describe the bug
Recently I was confused as Metals couldn't find any implementation of a type in the project, even thought it had to be used somewhere. Turns out that Go to Implementation is unable to find anonymous instantiations if SAM conversion is applied. Example, only
test3
andtest4
are shown when trying to search for theMyTestTrait
implementations:Tested on Scala 2.13.
Expected behavior
All implementations are shown by Metals, including the
test1
andtest2
in the provided code sample.Operating system
Linux
Editor/Extension
VS Code
Version of Metals
1.1.0+100-58b80be5-SNAPSHOT
Extra context or search terms
go to implementation, SAM, anonymous type, class, trait
The text was updated successfully, but these errors were encountered: