lein-clr icon indicating copy to clipboard operation
lein-clr copied to clipboard

Sample project not compiling / running tests

Open spiffytech opened this issue 9 years ago • 7 comments

I'm trying to run the sample project generated with lein new lein-clr clr_test, and it looks like the clojure code isn't getting copied to the target directory.

$ lein clr test
Running ClojureCLR tests
true

Unhandled Exception:
System.Exception: No namespace: clr-test.core-test found
...

$ lein clr compile :all
Compiling clr-test.core to /usr/src/app/target/clr/binSystem.Exception: namespace 'clr-test.core' not found after loading '/clr_test/core'
...

spiffytech avatar Sep 28 '15 18:09 spiffytech

Closed via #14

Thanks!

kumarshantanu avatar Sep 29 '15 07:09 kumarshantanu

Sorry, #14 was an unrelated pull request. It does not solve this issue for me.

spiffytech avatar Sep 29 '15 13:09 spiffytech

Reopening the issue. Could you please share sample code to reproduce the issue?

kumarshantanu avatar Sep 29 '15 15:09 kumarshantanu

The sample code is just the project template that lein-clr includes. Creating a project with lein new lein-clr clr_test and running the above commands triggered these errors for me.

spiffytech avatar Sep 29 '15 19:09 spiffytech

Can you try a project name without underscore? Maybe use a dash instead of underscore?

kumarshantanu avatar Sep 30 '15 01:09 kumarshantanu

Ah! I created a project clrtest and everything works fine. Perhaps the plugin could throw an error if the user tries to create / run a project with a name that .NET can't handle?

spiffytech avatar Sep 30 '15 13:09 spiffytech

Good idea. Will try to fix it in some time, and of course a patch would be welcome.

kumarshantanu avatar Sep 30 '15 18:09 kumarshantanu