Skip to content

OrganizeImports.groups not correctly grouping imports if doing a nested import statement #2100

Open
@mdedetrich

Description

@mdedetrich

Here is the PR in context and here is the specific .scalafix configuration

https://github.com/mdedetrich/pekko-streams-circe/pull/12/files#diff-8fe42aaf3e5d1a3f8804efa64a6206f5af6a826dea8f6ce51ad0ce8105188858R1-R32

My current expectation of that configuration is that java/scala imports go to the bottom of the import list and all other imports gravitate to the top but as you can see from https://github.com/mdedetrich/pekko-streams-circe/pull/12/files#diff-ba5a4a197dba09e4d184afb14c8a2f50b68a870a27cfd9ceebc328fd2a96618b the various pekko.* imports are being placed after the scala/java imports.

I tried adding pekko/org.apache.pekko to the group list but that didn't have any effect, this is just a suspicion but maybe the underlying issue is that there is a import org.apache.pekko and then after that import statement we do import pekko.NotUsed etc etc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions