Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot require macros from test directory? #52

Closed
exupero opened this issue Oct 26, 2015 · 2 comments
Closed

Cannot require macros from test directory? #52

exupero opened this issue Oct 26, 2015 · 2 comments

Comments

@exupero
Copy link

exupero commented Oct 26, 2015

I have a then.clj file in the test/project directory (as opposed to src/project), but when I require it I get

java.io.FileNotFoundException: Could not locate project/then__init.class or project/then.clj on classpath.

I know the test directory is getting included in the build because it finds the .cljs files. Is there something special I need to do to get .clj files outside src to be found by the ClojureScript compiler?

@danielcompton
Copy link
Contributor

Does this work in cljsbuild? Can you post your project.clj?

@exupero
Copy link
Author

exupero commented Oct 27, 2015

Turns out the problem was that I didn't have a top-level :source-paths set in my project.clj. Adding :source-paths ["src" "test"] solved the problem.

@exupero exupero closed this as completed Oct 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants