I can't get a client repl to run on windows 10/64 pro

No matter how I launch a repl, I can never get a prompt.

boot repl
boot repl --client
lein repl
lein repl :start

They all refuse to take input. The --client thing seems promising, but never gives me a prompt. I just sits there like a lump.

I’ve uninstalled everything, including all java jres and jdks, boot, lein, clojure, clojure-clj, chocolatey. Then reinstalled them all (from admin powershells).

Here’s what boot gives me:

PS C:\Users\zipper\documents\GitHub\name> boot repl --client
REPL-y 0.4.3, nREPL 0.6.0
Clojure 1.7.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_221-b11
        Exit: Control+D or (exit) or (quit)
    Commands: (user/help)
        Docs: (doc function-name-here)
              (find-doc "part-of-name-here")
Find by Name: (find-name "part-of-name-here")
      Source: (source function-name-here)
     Javadoc: (javadoc java-object-or-class-here)
    Examples from clojuredocs.org: [clojuredocs or cdoc]
              (user/clojuredocs name-here)
              (user/clojuredocs "ns-here" "name-here")

Then, it just sits there like a lump.

Can anyone offer me a clue?

That sounds a bit like a bug that’s bitten me before.

Do you have a user.clj-file?

I’m not finding one. If it’s hiding, where would I find it?

You would normally create it yourself, for example in src/user.clj.

Also, Clojure 1.7 is way old. Perhaps try getting 1.10.1 to load.

I haven’t created one. I also went looking for a trixy one that might have infiltrated over the weekend. I can say there were no hostile borders.

You point of the version sounds like an excellent place to look. I had thought I only had 1.10. I thought I had deleted everything and reinstalled it all. If there is a 1.7 out there, it arrived in stealth. I think I start a global search for clo*.jar files. Thanks for the help!

It might be worth trying the latest command line tools from Cognitect. See https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows – in particular, see the bit about Scoop at the bottom. It requires Powershell (rather than regular cmd) but that’s a nicer shell for development anyway.

Install Scoop on Powershell:

iwr -useb get.scoop.sh | iex

Add the Java bucket (makes it easy to install and test various JDK versions):

scoop bucket add java

Add the (unofficial) Clojure bucket:

scoop bucket add scoop-clojure https://github.com/littleli/scoop-clojure

(this is just a wrapper around the official Powershell installer)

Install clojure/clj:

scoop install clojure

I use Cognitect’s REBL so I have Zulu OpenJDKs installed with their JavaFX bundle, so either of these will work:

scoop install java/zulufx8

scoop install java/zulufx11

Those are for their OpenJDK 8 and OpenJDK 11 respectively.

Then you can start a basic REPL with:


More information about the Clojure CLI and deps.edn files: https://clojure.org/guides/deps_and_cli

My dot-clojure repo has a great user-level deps.edn file to get you started with a lot of useful aliases (including starting REBL, once you’ve installed it).

1 Like

Thank you very much.

I’m making closing comments here in case someone else has the problem.

Problem: I couldn’t get a Clojure client repl to run on windows.
Cause: ~/.m2/repositories/clojure-complete existed.

Solution: – Wait on this. I need to clean up stuff again.

  • Dump chocolatey in favor of scoop.
  • Uninstall everything in choco -list --local-only
  • Use powershell
  • Remove-Module ClojureTools -Force -Verbose -Debug -Confirm
  • Hunt/destroy \Program Files (x86)\google…\clojure stuff
  • iwr -useb get.scoop.sh | iex
  • Scoop update
  • Scoop install maven
  • Scoop bucket add scoop-clojure https://github.com/littleli/scoop-clojure
  • Scoop install clojure
  • Scoop bucket add extras
  • Scoop install boot-clj
  • Scoop install leiningen
  • Scoop install maven
  • boot repl
    ;; You might need to kill the shell, log out, and log back in
    ;; In the Windows Explorer (not the browser, the Windows file explorer).
    ;;;; Delete USERPROFILE.m2\clojure-complete
    ;; Sign off and sign back into Windows.

Somewhere along the line a “clojure-complete” got installed. It was the windows equivalent of “~/.m2/repositories” that’s c:\users\myaccount.m2

I deleted that directory by hand. After deleting the directory clj, boot repl, lein repl all worked as expected.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.