Sourcegraph precise code navigation with scala-cli #549
ckipp01
started this conversation in
Show and tell
Replies: 1 comment
-
To elaborate, a JVM dependency is encoded as a "repository" in Sourcegraph terminology and "cross-repository navigation" is the ability to navigate to external dependencies from Maven Central or the JDK. Whenever a user uploads an LSIF file that references a JVM dependency like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm a big Sourcegraph fan. I use it both when I'm searching for code, and also on GitHub as a browser extension to be able to navigate around my code more intelligently. I was able to set up indexing with my scala-cli project enabling precise code navigation which I think is pretty neat.
You can see an example of how I set this up here.
One missing piece that I'd love to have though is cross-repository navigation. In order to achieve this you need to be able to grab what is actually passed to the compiler (basically most interested in the classpath), and put that in a file to also be uploaded. This is outlined here. I can sort of see this information when I use a couple
-v -v -v
during the compile, but is there any way for me to actually grab this information or export this information? I basically just want this info:Outputted or available for me to grab it, stick it in the file, and then let lsif-java do it's thing, get the info from their pom files, and then upload them. This would allow for me to jump right to jsoup or the scala standard lib from my project.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions