Skip to content

Instantly share code, notes, and snippets.

@sjl
Created November 16, 2012 17:48
Show Gist options
  • Save sjl/4089366 to your computer and use it in GitHub Desktop.
Save sjl/4089366 to your computer and use it in GitHub Desktop.

When there's an error in the ns form I get just a bare filename from lein compile:

[1] ><((ˣ> lein compile dram.core
Compiling dram.core
Exception in thread "main" java.lang.IllegalAccessError: cats does not exist, compiling:(core.clj:1)

When the ns form is okay but there's an error in the file, I get the path from the src folder:

[1] ><((ˣ> lein compile dram.core
Compiling dram.core
Exception in thread "main" java.lang.RuntimeException: Unable to resolve symbol: hurr in this context, compiling:(dram/core.clj:6)

What I want is the path to the darn file: src/dram/core.clj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment