Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Protobuf in Gradle projects #361

Closed
wants to merge 1 commit into from

Conversation

olafurpg
Copy link
Member

@olafurpg olafurpg commented Oct 26, 2021

Previously, lsif-java only indexed the generated code from proto files.
Now, we also index the original proto files so that it's possible to
navigate from Java/Scala/Kotlin to Protobuf (and vice-versa).

This new feature only works for Gradle at the moment but the underlying
approach is generic and can be reused for other build tools as well.

Towards #363

TODOs:

  • nested types
  • java_package
  • java_multiple_files
  • java_outer_classname
  • map
  • message
  • repeated
  • enum
  • string
  • double
  • float
  • int32
  • int64
  • uint32
  • uint64
  • sint32
  • sint64
  • fixed32
  • fixed64
  • sfixed32
  • sfixed64
  • bool
  • bytes
  • oneof
  • service
  • rpc
  • google.protobuf.Any
  • optimize_for = SPEED
  • optimize_for = CODE_SIZE
  • optimize_for = LITE_RUNTIME
  • Gradle integration test

Previously, lsif-java only indexed the generated code from proto files.
Now, we also index the original proto files so that it's possible to
navigate from Java/Scala/Kotlin to Protobuf (and vice-versa).

This new feature only works for Gradle at the moment but the underlying
approach is generic and can be reused for other build tools as well.
@olafurpg
Copy link
Member Author

We have validated that the overall approach is good but we want to complete the following upstream issue before shipping Protobuf support. Closing this PR until we pick this up again https://github.com/sourcegraph/sourcegraph/issues/27403

@olafurpg olafurpg closed this Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant