-
Notifications
You must be signed in to change notification settings - Fork 50
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
Kotlinter 3.7.0 removes needed star imports #227
Comments
Thanks for the report @henrik242. I assume this is a new issue in kotlinter 3.7.0? It might be a manifestation of this bug that's new with ktlint 0.43.0 which was incorporated in the latest release: Are you using If it's in fact the same issue, I'm watching ktlint for a patch release and will incorporate. |
Correct!
Yup:
I guess it's the same. |
Ok, thanks. Just in case, also try moving that configuration to .editorconfig and see if the result is the same. I don't think there's a bug picking up the config in either place, but might as well eliminate that. |
I tried adding |
Never mind, I still had |
Hey, how is the state here? We experience this issue after upgrading from 3.4.5 to 3.8.0. Greetings 😄 |
@paulschuetz The latest working version is still 3.6.0 😕 |
Yea just tried it out and downgraded to 3.6.0 😄 Thanks for your quick reply and confirmation. And thanks to @jeremymailen for the great library! |
Thanks appreciate it! And sorry, yeah the issue still exists upstream and the efforts to fix it seem to be a little stuck. |
I'm running with
The diff for the FlagStore file is:
|
You might need to dig into the ktlint level debugging. Do you get the same result running the |
This is now fixed in ktlint 0.45.0! pinterest/ktlint#1402 |
Or will once there's been a release :) |
@jeremymailen 0.45.1 is out! 🥳 |
Yup, there's some design discussions about how to incorporate the new release since it changes the api to ktlint. Hopefully have an update soon. |
@jeremymailen Cool, looking forward to that : ) |
Fixed via 3.10.0 release |
Kotlinter removes the star import here, which makes our builds fail:
Here's
LocationType
:I refer to
CITY
,COUNTRY
andLocationType
in the calling code.The text was updated successfully, but these errors were encountered: