-
Notifications
You must be signed in to change notification settings - Fork 52
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
A protocol file (.avdl) with only imports will fail to generate #33
Comments
Thanks for the report, @oliviertoupin. I'm happy to fix this, but do you happen to have an example avdl that fails for you? Many of the current tests are in fact avdls with only records, and I'm unable to reproduce your error. |
I just retested. The problem here, is my "main.avdl", which is used to import all my records. Since it's only imports, I think it's considered empty. I guess this issue should renamed: "A protocol file (.avdl) with only imports will fail to generate". This works:
This doesn't:
I did test this previously, but forgot the clean, sorry. |
Ok great, thanks for discovering this. I expect to have time to investigate a fix in the next couple weeks. |
Hi there, to complement this issue : the same problem occurs when the protocol only contains enums. |
I was getting the following error:
An invalid file with the name of the protocol is generated. It contains only the namepace name and the problematic parentheses:
Using
bin/avro-tools-1.8.1.jar
generate the protocol properly (for exemple to convert to .avsc), so it's not a syntax issue.Then I had added a dummy error, to make sure the protocol had more than just records. After a
sbt clean
the protocol then generated properly:I'm using version 0.13.0.
The text was updated successfully, but these errors were encountered: