lsif-java v0.6.4
Scala support
It's now possible to index Scala code with lsif-java. For example, this link shows you references to the java.lang.String.split()
method from the Scala standard library, Spark and MUnit. The versions Scala 2.11.x, 2.12.x, 2.13.x and 3.x are supported.
sbt support
Previously, only the build tools Gradle and Maven were supported for the lsif-java index
command. Now, you can also run lsif-java index
in sbt projects. Both Java and Scala sources will be indexed.
For example, you can now use precise code intelligence on Sourcegraph.com to browse the akka/akka and haifengl/smile repositories.
- https://sourcegraph.com/github.com/akka/akka/-/blob/akka-actor/src/main/java/akka/actor/dungeon/AbstractActorCell.java?L10:13#tab=references
- https://sourcegraph.com/github.com/haifengl/smile/-/blob/core/src/main/java/smile/validation/metric/Specificity.java?L36:14#tab=references
Observe that "find references" shows results in both Java and Scala sources.
⚠️ Caveats
The lsif-java index
command does not yet support Scala projects using the build tools Maven or Gradle. Subscribe to #301 to get notified when we add support for Scala Maven projects and #302 when we add support for Scala Gradle projects.
Pull Requests
- Handle null/unit constant types. (#300) @olafurpg
- Trim the inferred metadata information POM files (#299) @olafurpg
- Make
snapshot-lsif
command more LSIF-compliant (#298) @olafurpg - Upgrade to the latest sbt-sourcegraph (#295) @olafurpg
- Add build tool support for sbt. (#292) @olafurpg
- Update dependency org.flywaydb:flyway-core to v7.12.1 (#289) @renovate
- Update dependency ch.epfl.scala:sbt-bloop to v1.4.8-98-e7d4e01e (#290) @renovate
- Update dependency net.bytebuddy:byte-buddy-agent to v1.11.12 (#287) @renovate
- Update dependency com.google.cloud.sql:postgres-socket-factory to v1.3.2 (#282) @renovate
- Swap order of signature and docstrings in hover messages (#285) @olafurpg
- Start emitting
SymbolInformation
for Scala package repos. (#280) @olafurpg - Update dependency ch.epfl.scala:sbt-bloop to v1.4.8-94-1cfdf0bd (#269) @renovate
- Update dependency net.bytebuddy:byte-buddy to v1.11.9 (#273) @renovate
- Update dependency org.scalameta:sbt-scalafmt to v2.4.3 (#275) @renovate
- Update dependency com.zaxxer:HikariCP to v5 (#276) @renovate
- Update olafurpg/setup-scala action to v13 (#277) @renovate
- Add Scala support. (#278) @olafurpg