Skip to content

cake repl in Terminal requires new in-ns to see changes made in TextMate #13

@lspector

Description

@lspector

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 (http://blip.tv/file/4160578) shows this working WITHOUT re-doing the in-ns. Why doesn't that work for me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions