Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.

Elm module names are case-insensitive on Windows/OS X, case sensitive on Linux #44

Open
eeue56 opened this issue Aug 17, 2015 · 1 comment
Labels

Comments

@eeue56
Copy link

eeue56 commented Aug 17, 2015

Example:

File b.elm

module B where
f = identity

File a.elm

import B

On Windows and OS X), there will be no error and it will work even though the file is called b.elm, not B.elm. On case-sensitive operating systems (Linux) it will create an error.

Expected behaviour should be that an error is raised on Windows too, or at least a warning.

@evancz evancz added the bug label May 12, 2016
@aaronwhite
Copy link

aaronwhite commented Sep 27, 2016

Oddly, enough, I'm running into this problem in a sort of reverse! (Elm 0.17)

On my mac OSX 10.12 import App.Model in Main correctly resolves file app/model.elm however in CircleCI (Ubuntu 14.04) it fails to find App.Model ..... unless I rename the directories and capitalize them.

I'd actually prefer case insensitivity for matching module names with folders, but either way, it's painful for us now having to remember to bend our local environments because downstream the CI machine doesn't like our lower-cased folder names.

@eeue56 eeue56 changed the title Elm module names are case-insensitive on Windows, case sensitive on Linux/OS X Elm module names are case-insensitive on Windows/OS X, case sensitive on Linux Mar 19, 2017
neallred pushed a commit to choiceats/choiceats that referenced this issue Jan 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants