Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

REPL [Clojure] not working on Windows 7 #299

Open
MattDMo opened this Issue · 8 comments

7 participants

@MattDMo

I searched around the issues, and saw hints that there's a workaround for this, but couldn't find it. Any help would be appreciated :)

Platform: Win7 Ultimate x64
ST: both 2.0.2 and Build 3056
SublimeREPL: latest from Package Control
Clojure: 1.5.1
Leiningen: 2.3.4 on Java 1.7.0_45 Java HotSpot(TM) 64-Bit Server VM

If I run lein repl from the command line with some test input, I get the following:

C:\Users\mattdmo>lein repl
nREPL server started on port 51845 on host 127.0.0.1
REPL-y 0.3.0
Clojure 1.5.1
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
    Exit: Control+D or (exit) or (quit)
 Results: Stored in vars *1, *2, *3, an exception in *e

user=> (println "Hello Clojure")
Hello Clojure
nil
user=>

However, if I start a Clojure REPL in Sublime and enter (println "Hello Clojure") it just hangs - no output, no return value, no new user=> prompt.

At the same time, if I run a Clojure REPL in OS X, it works fine. My Linux VM is borked, so I haven't been able to test it there yet.

@wuub wuub was assigned
@MattDMo

For what it's worth, I'm seeing the same behavior on my work laptop running XP, so it seems to be a generic Windows issue.

@MattDMo

Thanks to this StackOverflow question I've been able to get Clojure working on my XP laptop. I copied Packages/SublimeREPL/config/Clojure/Main.sublime-menu to Packages/User/SublimeREPL/config/Clojure/Main.sublime-menu and changed the cmd line to the following:

"cmd": {"windows": ["lein.bat", "trampoline", "run", "-m", "clojure.main"],

I also changed the cwd to $file_path so you can open the REPL when a project.clj file is open. The results:

Retrieving org/clojure/clojure/1.5.1/clojure-1.5.1.jar from central
Clojure 1.5.1
user=> (println "Hello Clojure Trampoline!")
Hello Clojure Trampoline!
nil
user=> 
@starrysl

@MattDMo after adding the trampoline command, I got an error:
could not find project.clj, which is needed by trampoline

Sometimes I do not need the project.clj file in existence.

Any solutions?

@kernelp4nic

Same @starrysl issue and @MattDMo workarround works great.

@kernelp4nic

Also I'm having the same problem on OSX, the workaround works too.

Platforms affected:
Windows 8
Mac OSX Lion 10.7.5

Sublime Text Version:
v3 dev channel build 3061

@acron0

This is still an issue. Windows 8.1, Sublime Text 3 (3080)

@GlogoJava

I have the same problem,And sublimeREPL work fine in my Ubunut 14.04 LTS,

@vganshin

@starrysl @kernelp4nic @acron0 @GlogoJava, to solve this issue i've created the project.clj which looks like this:

(defproject app "somename"
  :dependencies [[org.clojure/clojure "1.6.0"]])

and put it in C:\Clojure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.