Skip to content

Maybe check for case mismatch between modules and files? #1986

Open
@nateabele

Description

@nateabele

Quick Summary: Case mismatches between modules and file paths work fine on OSX but break on *nix

SSCCE

import Foo.Bar

-- Then make a module file at `foo/Bar.elm` (note directory case)
-- Works fine on Mac, breaks on Linux
  • Elm: 0.19.0
  • Browser: N/A
  • Operating System: OSX / HFS+ (Case-Insensitive)

Additional Details

I've been working on an Elm project on a Mac, then recently went to set it up on CI in a Linux environment and ran into this. Clearly this isn't Elm's fault, or Elm's problem, strictly speaking—however, even after having run into this dozens of times in my career, it took a couple hours before checking this even occurred to me.

On that basis, I thought that having the compiler look for and warn about something like this would be in keeping with the spirit of Elm. Just a thought! Thanks. 😃

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions