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
nix develop to initialize dev environment. This is not required to repro, but a proper scala-native environment is required.
start sbt
start neovim (or other metals editor?)
navigate to path wes/lib/shared/src/main/scala/wes/nes/ppu/RenderTile.scala - the source for RenderTile
"Find References" on RenderTile
The expectation is that all usages, in particular calls to the constructor, are located. Specifically the reference to RenderTile at line 473 in PPU.scala. Instead the references are:
lib/shared/src/main/scala/wes/PPU.scala|100 col 28| def orIn(renderTile: RenderTile): Unit = {
lib/shared/src/main/scala/wes/PPU.scala|117 col 31| def shiftIn(renderTile: RenderTile): Unit = {
lib/shared/src/main/scala/wes/PPU.scala|410 col 23| nextRenderTile: RenderTile = RenderTile.zero,
Which does not include that reference.
Curiously, finding references on the companion object does locate the line 473 reference. However, this is not as expected: As a developer I'd expect finding references for a class to include finding constructions of that case class.
doctor reports:
Metals Info
Metals Server version: 1.3.5+114-8e729b2b-SNAPSHOT
Metals Java: 21.0.3 from N/A located at /nix/store/y9dcp2rgh70wz2q3nybv45k8zaz3jdwa-openjdk-21.0.3+9/lib/openjdk
Describe the bug
Using the
wes
project at this SHA:nix develop
to initialize dev environment. This is not required to repro, but a proper scala-native environment is required.sbt
wes/lib/shared/src/main/scala/wes/nes/ppu/RenderTile.scala
- the source forRenderTile
RenderTile
The expectation is that all usages, in particular calls to the constructor, are located. Specifically the reference to
RenderTile
at line 473 inPPU.scala
. Instead the references are:Which does not include that reference.
Curiously, finding references on the companion object does locate the line 473 reference. However, this is not as expected: As a developer I'd expect finding references for a class to include finding constructions of that case class.
doctor reports:
Metals Info
project is
lib
:lib
Expected behavior
Locate references to constructor calls when finding references of a
case class
Operating system
Linux
Editor/Extension
Nvim (nvim-metals)
Version of Metals
1.3.5+114-8e729b2b-SNAPSHOT
Extra context or search terms
No response
The text was updated successfully, but these errors were encountered: