Please see this SublimeREPL issue for instructions on how I got REPL for Clojure, at least on XP (I havenβt tried it on Win7 or another 8). Basically, I edited the menu file for Clojure and changed the command from lein repl to lein trampoline run -m clojure.main , which for some reason did the trick. I also changed the path to $file so that you can open the REPL while your project.clj is the current tab in Sublime and the REPL should inherit the project settings.
For reference, the full Packages/User/SublimeREPL/config/Clojure/Main.sublime-menu file ( Packages available through Preferences -> Browse Packages... ) looks like this:
[ { "id": "tools", "children": [{ "caption": "SublimeREPL", "mnemonic": "r", "id": "SublimeREPL", "children": [ {"caption": "Clojure", "id": "Clojure", "children":[ {"command": "repl_open", "caption": "Clojure Trampoline", "id": "repl_clojure", "args": { "type": "subprocess", "encoding": "utf8", "cmd": {"windows": ["lein.bat", "trampoline", "run", "-m", "clojure.main"], "linux": ["lein", "repl"], "osx": ["lein", "repl"]}, "soft_quit": "\n(. System exit 0)\n", "cwd": {"windows":"$file_path", "linux": "$file_path", "osx": "$file_path"}, "syntax": "Packages/Clojure/Clojure.tmLanguage", "external_id": "clojure", "extend_env": {"INSIDE_EMACS": "1"} } }, {"command": "clojure_auto_telnet_repl", "id": "repl_clojure_telnet", "caption": "Clojure-Telnet"}]} ] }] } ]
MattDMo
source share