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
when I try to show the type of a variable it doesn't work, or just shown as Any when I insert type with code action. The code is fine and sbt compile works.
It happens in a cross js jvm project, not sure how to reproduce yet
metals .log:
`2024.07.11 11:14:11 INFO no build target found for /path/to/xx.scala. Using presentation compiler with project's scala-library version: 2.13.14
2024.07.11 11:19:23 WARN Could not load snapshot text for /path/to/xx.scala`
Expected behavior
should be able to show the type of a variable
Operating system
Linux
Editor/Extension
VS Code
Version of Metals
1.3.2
Extra context or search terms
scala 2.13.14
sbt.version=1.5.8
The text was updated successfully, but these errors were encountered:
Thanks for reporting! This looks like the file is not recognized as part of the build structure. We would some more details however for a reproduction. If it is using Bloop, what build targets are generated, you can also check those targets in the doctor and see if there is one that is responsible for the file at hand.
yeah it's using bloop, The doctor shows ok status for the project containing the file(only complaint is that java src is missing but those are pure Scala files).
You can click on the targets in the metals doctor to get all the info that metals has, for example what it considers to be sources for each module. There should be one for js, jvm and native if enabled.
Describe the bug
when I try to show the type of a variable it doesn't work, or just shown as Any when I insert type with code action. The code is fine and sbt compile works.
It happens in a cross js jvm project, not sure how to reproduce yet
metals .log:
`2024.07.11 11:14:11 INFO no build target found for /path/to/xx.scala. Using presentation compiler with project's scala-library version: 2.13.14
2024.07.11 11:19:23 WARN Could not load snapshot text for /path/to/xx.scala`
Expected behavior
should be able to show the type of a variable
Operating system
Linux
Editor/Extension
VS Code
Version of Metals
1.3.2
Extra context or search terms
scala 2.13.14
sbt.version=1.5.8
The text was updated successfully, but these errors were encountered: