-
Notifications
You must be signed in to change notification settings - Fork 121
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
Optimize imports on file generation #92
Comments
Apologies for the delayed response @AdrianRaFo.
I would certainly be in favor of the first option, and although my shedule is tight for the time being, I'll try to prioritize this over the next couple weeks. Thanks for pointing this out. Time for |
HI @julianpeeters |
I've opened a PR that solves a problem of too many imports. I'm not sure if it covers this case as well (it's been a while), but maybe someone could test it on the branch from the PR? |
sorry @lachatak, this is still pretty far down on my queue, I don't have a good estimation of a time frame. You may like to consider the fork that @karolchmist mentioned? Thank you for the PR @karolchmist , however I'll have to decline anything but a general fix, because any added complexity will further impede maintenance. |
No problem @julianpeeters. I'll close my PR and keep the fork. Do you think a bigger refactoring would be needed to get rid of unused imports? Can I help? Do you have any hints or work in progress? |
@karolchmist Yes, avrohugger needs a revamp, but I believe there are some goals here that are achievable:
I'd be happy to expand on any of the above. |
For the meantime, as a workaround, I'm using the
with a
to silent all the warning from code under the target folder (usually generated code) |
@AdrianRaFo nice workaround! Worth noting that a native solution will be incorporated into scala 2.13.2 :) |
Thanks guys, for Scala 2.12 which are the options?
|
@nicolaemarasoiu I didn't create that plugin, just suggested |
ok, for me the silencer plugin approach worked great; since i had scala version 2.12.10 for other dependencies, I've used: |
I have realized that when I import an
avdl
file into another, the result statement looks like this:Too many times a lot of them are unused which cause a huge list of unused imports. So my question is: Is it possible to import only the necessary fields? or Could we change that statement by
import domain._
or something like that?Thank you so much for your attention.
The text was updated successfully, but these errors were encountered: