-
Notifications
You must be signed in to change notification settings - Fork 41
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
RSocket Protoc 0.2.19 generates invalid protobuf code for rsocket-java 1.0.1 #68
Comments
Ooops, of course you're right @OlegDokuka :) Thanks for transferring! |
Also, seems like this already got mentioned in #65 😬 |
@OlegDokuka , hi, is it possible to make a fix of this bug in the nearest future? Our work depends a lot on rsocket and we cannot upgrade it without this fix. Thanks. |
@eksd I will take a look at that today. Cheers, |
@OlegDokuka , did you have a chance to take a look at that bug? Thanks. |
Expected Behavior
When running the
generateProto
task using the latest version ofio.rsocket.rpc:rsocket-rpc-core
/io.rsocket.rpc:rsocket-rpc-protobuf
(0.2.19) and the latest version ofio.rsocket:rsocket-core
(1.0.1), the generated code can be compiled without any issues.Actual Behavior
When running the
generateProto
task using the latest version ofio.rsocket.rpc:rsocket-rpc-core
/io.rsocket.rpc:rsocket-rpc-protobuf
(0.2.19) and the latest version ofio.rsocket:rsocket-core
(1.0.1), I get an error insidegenerated-sources/main/rsocketRpc/com/rsocket/rpc/Blocking...Service.java
:Cannot resolve symbol 'SwitchTransformFlux'
This is because of the following snippet:
It seems to me like the
SwitchTransformFlux
class got removed/replaced in version 1.0.0 of rsocket-java. When I downgrade to 0.12.1, the error is gone. None the less, this is an issue as a lot of dependencies (e.g. the spring boot rsocket starter lib) already use v1.X and therefore cannot produce valid code.Steps to Reproduce
./gradlew generateProto
)generated-sources/main/rsocketRpc/com/rsocket/rpc/BlockingSomeServiceServer.java
)Should fail with the exception mentioned above.
Possible Solution
Either reintroduce
SwitchTransformFlux
or change the rsocket protoc to not use it anymore.Your Environment
The text was updated successfully, but these errors were encountered: