Here are 2 issues that I'm having that I'd appreciate help on:
- Following the screencast (http://blip.tv/file/4160578) example I'd like to edit in TextMate but keep a REPL running in Terminal for trying things out as I define them. I create a project with "cake new foo", edit the project.clj file to include clojure-contrib, open the automatically generated core.clj file and add some code (just creating a var with a def for now). Do command-R to start cake from within TextMate, then in Terminal cd into the project directory, do "cake repl", and then in-ns into the right namespace. At this point I can type the var to the repl and it evaluates appropriately, giving the value from the def that I typed into core.clj in TextMate. Hooray, that all looks good. BUT, now I add another var definition to core.clj and evaluate it in TextMate (either by shift-command-L to load the file or shift-command-X to evaluate a highlighted expression) and on the TextMate side everything looks fine (I get a success message). But back in Terminal typing the new var in the REPL produces a "java.lang.Exception: Unable to resolve symbol" error. If I re-do the in-ns and then retype the new var then all is good -- I get the value as expected. But I have to re-do the in-ns to get it. The screencast shows this working WITHOUT re-doing the in-ns. Why doesn't that work for me?
- Autocompletion fails for me (giving "No matches were found.") if the symbol before the cursor occurs immediately after "(". Again, this is in contrast to the behavior demonstrated in the screencast. It works correctly if the cursor is at the end of a symbol that is not preceded by a "(", but not if there's a leading "(".
Perhaps both of these stem from some sort of installation issue? Any pointers would be appreciated.
-Lee