Skip to content

Proposal: List all files involved in DuplicateModule error #3884

Description

@milesfrain

It would be more helpful to list all duplicate files detected, rather than just one of them.

For example:

spago init
mkdir src/sneaky
echo "module Main where" > src/sneaky/Dup.purs
spago build
Error found:
at src/Main.purs:1:1 - 6:28 (line 1, column 1 - line 6, column 28)

  Module Main has been defined multiple times

See https://github.com/purescript/documentation/blob/master/errors/DuplicateModule.md for more information,
or to contribute content related to this error.

[error] Failed to build.

I'm actually more interested in knowing about src/sneaky/Dup.purs than src/Main.purs.

Related to #1828

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