Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Cannot have two "Main" modules open at the same time #620

Closed
@alanz

Description

@alanz

e.g., working on hie, if app/MainHie.hs and test/Functional.hs are both loaded, we get

Got error while processing diagnostics: <no location info>: error:
    module ‘haskell-ide-engine-0.2.0.0-7HZrGfRRjONEXbBFqqpRFd:Main’ is defined in multiple files:
         /tmp/ghc-mod17562/MainHie17561-6.hs
         /tmp/ghc-mod17564/RealFunctional17561-5.hs

Note: I think is because we put all the mapped files into the targets list in ghc-mod when loading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions