-
Notifications
You must be signed in to change notification settings - Fork 278
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
WIP: Generate scala code from protobuf using @com_google_protobuf//:protoc #705
Closed
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
a49e001
Init
simuons 66d10dd
introduce scala_proto_gen
simuons 262bd8d
scala_proto_gen based on descriptor sets
simuons 280f111
base scalapb_proto_library on scala_proto_gen
simuons fe4ceab
add blacklisted_protos support
simuons aaa4889
remove srcjar from scala_library deps in scalapb_proto_library becaus…
simuons ac05d0b
Cleanup
simuons ca97f88
Naming
simuons b0c1ef1
Comment runtime arg
simuons 7beb38f
Add comments to scala_proto_gen
simuons 88bcafd
Update readme
simuons 86ec569
Rename scalapb_proto_library runtime arg to with_java_deps as it is r…
simuons c258a1a
Preserve scalapb_proto_library behaviour
simuons 5d8d7d3
Try to remove some duplication
simuons b1aa1d5
Comments
simuons File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package scripts | ||
|
||
import com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest.parseFrom | ||
import scalapb.compiler.ProtobufGenerator.handleCodeGeneratorRequest | ||
|
||
object ScalaPBPlugin extends App { | ||
|
||
handleCodeGeneratorRequest(parseFrom(System.in)).writeTo(System.out) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is going to prevent using workers right? So you have to spin up a new JVM for each file, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it would prevent using workers. I thought this is what is happening now as well. Now I think my assumptions might be wrong as
protoc-bridge
is doing some tricks to reuse jvm. I'll dig more and update.