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

boot repl eval options not picked up using cider-jack-in #385

Open
oskarth opened this issue Jan 12, 2016 · 2 comments
Open

boot repl eval options not picked up using cider-jack-in #385

oskarth opened this issue Jan 12, 2016 · 2 comments
Labels

Comments

@oskarth
Copy link

oskarth commented Jan 12, 2016

build.boot:

(set-env!
  :source-paths #{"src"}
  :dependencies '[[org.clojure/clojure "1.7.0"]])

(task-options! repl {:init-ns 'nrepl.foo
                     :eval '(set! *print-length* 20)})

Running cider-jack-in in Emacs and evaluating *print-length* => nil. Expected result: 20. When running boot repl and evaluating *print-length* we see 20. The equivalent behaviour for lein (repl-options) works with cider-jack-in. The problem thus seems to be between boot and CIDER.

  • boot version 2.5.5
  • CIDER 0.10.0snapshot

See clojure-emacs/cider#1462 for related issue.

@pandeiro
Copy link
Contributor

Are we sure this is related to clojure-emacs/cider#1462? That seems to be about Boot not loading data_readers.clj at the root of the classpath by default; does that somehow disable the ability to do eval when the REPL loads? I ask because I don't use cider-jack-in, but rather start a Boot REPL server (which is when, if I understand correctly, the :eval form would be evaluated) and only later do cider-connect from Emacs when I want to use the REPL, but I'm also observing this problem.

@micha micha added the blocked label Apr 13, 2016
@torgeir
Copy link

torgeir commented Apr 2, 2017

I was attempting something similar, to have the repl task automatically call (boot-figwheel/cljs-repl) for me, but failed. Neither (repl :server true :eval '(boot-figwheel/cljs-repl)), nor (repl :server true :init "a-file-to-attempt-the-same-thing.clj") seem to have any effect.

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

No branches or pull requests

4 participants