Skip to content

Tab completion inserts import that creates an import cycle #4770

@andreasabel

Description

@andreasabel

I have experienced that tab-completion to generate code will sometimes

  • add imports that are not actually used in the final version of the tab-completed code (I don't know how this works, it seems like tab-completion makes sometimes intermediary versions that it corrects later, maybe on a second tab press)
  • these imports may create import cycles, effectively shutting down the whole HLS interaction (as this is a fatal error)

I just experienced this in the Agda code base (which has 450 modules).
It is probably not easy to generate a small reproducer, but maybe some finds one or I can try later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HackathonThis issue is suitable for hackathon sessionscomponent: ghcidetype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions