We're updating the issue view to help you get more done. 

try to catch using - instead of _ in filenames so the compiler can give a better error message for people who don't know that you need to use _ in file names

Description

Problem: Clojure requires the files that back a namespace that has dashes in it to have the dashes replaced with underscores on the filesystem (ie a.b_c.clj for namespace a.b-c). If you require a file that has been mistakenly saved as b-c.clj instead, you will get an error message:

1 2 Exception in thread "main" java.io.FileNotFoundException: Could not locate a/b_c__init.class or a/b_c.clj on classpath: ...

Proposed:
Fix the bad ending colon in this sentence and add a second sentence only when the file name has an _ in it: "Please check that namespaces with dashes use underscores in the Clojure file name."

Patch: clj-1297-v5.patch

Screened by: Alex Miller

Environment

None

Status

Assignee

Unassigned

Reporter

Kevin Downey

Labels

Approval

Ok

Patch

Code

Fix versions

Priority

Major