Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception while launching the boot repl #1652

Closed
arichiardi opened this issue Apr 4, 2016 · 11 comments
Closed

Exception while launching the boot repl #1652

arichiardi opened this issue Apr 4, 2016 · 11 comments

Comments

@arichiardi
Copy link
Contributor

Expected behavior

The repl starts when you execute boot cider repl wait at the terminal.

Actual behavior

An exception is thrown.

Steps to reproduce the problem

At the terminal boot cider repl wait

Environment & Version information

CIDER version information

0.12.0-SNAPSHOT (master)

Lein/Boot version

boot 2.5.5

Emacs version

24.5

Operating system

Ubuntu Linux 14.10

The exception involves fipp and it is here.

My cider task is:

(deftask cider
  "Add CIDER support:
   https://github.com/boot-clj/boot/wiki/Cider-REPL"
  []
  (require 'boot.repl)
  (swap! boot.repl/*default-dependencies*
         conj '[cider/cider-nrepl "0.12.0-SNAPSHOT"])
  (swap! boot.repl/*default-middleware*
         conj 'cider.nrepl/cider-middleware)
  identity)

Removing the cider, removing the middleware, successfully launches the repl.

@Malabarba
Copy link
Member

At the prompt boot cider repl wait

What do you mean by this? Do you mean you ran this command in a terminal?

I think @benedekfazekas might recognize this exception.

@arichiardi
Copy link
Contributor Author

Yes sorry, at the terminal, but it happens with jack-in as well.

@benedekfazekas
Copy link
Member

well I don't but luckily you can search gitter history ;)

based on that it seems we had the same problem with leiningen prior version 2.5.3. no immediate memory how older lein version caused this. just a stab in the dark: what is your clojure version btw?

also a possible workaround could be if you set (setq cider-pprint-fn 'pprint), at least for cider-jack-in

also you only need the cider task if you want to use a separate REPL, cider-jack-in sorts out dependencies (wonder if you get the same exception if you use that.) for itself

@arichiardi
Copy link
Contributor Author

Thanks @benedekfazekas! Clojure version is 1.6.0 which is the minimal supported version that boot supports...it might be that then. I am trying...

@arichiardi
Copy link
Contributor Author

Bumping the version solves, so I can live with this, so basically 1.6.0 is not officially supported anymore for boot right? I would like to add it in their wiki.

REPL-y 0.3.7, nREPL 0.2.12
Clojure 1.7.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_77-b03

@benedekfazekas
Copy link
Member

this may be a reader conditionals related issue then.

@arichiardi
Copy link
Contributor Author

The wiki page is this and as you were saying before I gather that also the "A better way" section is not required anymore (since 0.11.0?)

@benedekfazekas
Copy link
Member

well I guess you can't use stuff with 1.6 that uses reader conditionals. incl. refactor-nrepl as we use some stuff using cljc files. it seems same goes with cider-nrepl as well then?

A better way section only applies if you want to use cider (and refactor-nrepl) with REPL you connect to instead of using cider-jack-in. see this for details

@arichiardi
Copy link
Contributor Author

Ok then, I guess I have to specify it there so that people don't get bitten. Boot still supports back to 1.6.0

@arichiardi
Copy link
Contributor Author

@benedekfazekas
Copy link
Member

thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants