-
Notifications
You must be signed in to change notification settings - Fork 34
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
Source generation fails with a package declaration #604
Comments
@AdrianRaFo Could you please add more context about what are you trying to do? Configs and code would be helpful. Thanks! |
code
config
Just the same config and same scala protocol works without declaring |
Thanks @AdrianRaFo , I see what you mean now. You want to generate IDL files from the Scala code.. That reminds me that we need to deprecate and remove that feature. Scala protocols are discouraged because of the binary issues, hence this wouldn't make sense. |
@juanpedromoreno Is such a This is powerful and very useful for mapping protocol Since the Scala from IDL generated code uses Not sure what you mean by "Scala protocols" since even when starting with "*.proto" the end result is Scala objects. The answer should be in how the |
That's fine and that's the ideal pattern to use. What I meant is that we shouldn't define the messages and services directly in Scala, by hand. If you do so, you might need to use them as jar dependencies in the client side, for example. This highly dangerous since you would be carrying on all the transitive dependencies from where the Scala protocol was defined. Therefore this might end with evictions and binary incompatibilities. What would be the recommended pattern? Defining the protocol in IDL, so |
Please forgive me for missing something maybe important. If "yes" then why would I need custom Scala objects on the client. |
No problem :) Taking into account that we are on a |
I think "yes". :-) I expect that any Is that a "yes" too :-) |
@juanpedromoreno, do you mean that the future-proof way to use Mu in all cases is to (1) define the protocols in IDL (e.g. From the response by @fedefernandez on #599 I had the impression that @AdrianRaFo, I had the same |
Thanks for your quick reply @fedefernandez. Just to be sure I understand well: Mu has
You write that the annotation is supposed to be written by |
Yes, you're right, edited 😊 |
idlGen has been removed and this issue shouldn't be reproducible 👍 |
I have this error when I add a package declaration on a scala protocol and try to generate
avro
orproto
from it.The text was updated successfully, but these errors were encountered: