-
-
Notifications
You must be signed in to change notification settings - Fork 247
nrepl #99
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
nrepl #99
Conversation
Looks like we got a stray char on line 409, and we're still requiring nrepl with the Thanks a bunch! |
Argh, not sure how that 'n' got in there. Thanks for checking :) |
Hi guys. I just tried these changes locally on one of my projects and it seems to work well. Just FYI. Cheers. |
Sweeeeet |
So this works great if you open a test file, run nrepl-jack-in, compile the test file, then use C-c C-, to run the tests. However, if you open a non-test file, run nrepl-jack-in, compile the file with C-c C-k, then open a test file (in the same project) and attempt to compile and run the tests, you get this exception:
|
Yes you're right. Looks like an issue with the |
I decided to clean up my setup completely as I was getting inconsistent results, and now I cannot reproduce this problem at all. I basically removed clojure-mode and nrepl from my packages and instead downloaded clojure-mode.el/clojure-test-mode.el (master), and nrepl.el (lastest release version), put them on my load path and required them in init.el. Now it works in all scenarios. I can nrepl-jack-in, go to a src file, compile, switch to test and run and it all works. I can also go to the test first and just Can I ask @dakrone, how were you testing out the changes? |
@gar3thjon3s I am using the latest nrepl.el (directly from git, latest master commit - 923234c4) and latest clojure-mode and clojure-test-mode.el from MELPA (http://melpa.milkbox.net/packages/clojure-test-mode-20121025.1300.el) |
Hi Phil,
Got a chance to look at this this morning. Got it all working AFAICT. I removed the swank support like you suggested. One weird thing is that there seems to be some kind of chicken and egg situation with namespaces that means I am using nrepl-load-current-buffer effectively twice on each run of the tests. If I don't do this, you have to manually compile/load the test file before you can run the tests.
Please give it a shot and see if you notice anything I missed.
Thanks,
Gaz