Fork me on GitHub
#cider
<
2019-12-02
>
cjohansen07:12:15

I have the following in .dir-locals.el:

((nil
  (cider-clojure-cli-global-options . "-A:dev")
  (cider-default-cljs-repl . figwheel-main)
  (cider-figwheel-main-default-options . ":dev")))
But CIDER still prompts me for which figwheel build to start after connecting

kirill.salykin08:12:03

emacs should recognize it and propose to add

cjohansen08:12:05

emacs picks up the first two values, but I'm prompted for the figwheel build

kirill.salykin17:12:36

oh, i see, sorry

cjohansen07:12:27

am I doing something wrong? I'm pretty sure this used to work

bozhidar08:12:41

Seems to me your setup is correct. You can debug what’s happening in cider-figwheel-main-init-form when you invoke it. It’s supposed to take the build from the default options if present.

cjohansen08:12:35

seems to be project-specific. just created another project that only has one target, and it works as expected. the project I'm experiencing this in has multiple builds and several .dir-locals.el files in various directories

cjohansen08:12:48

I'll look into debugging that function @bozhidar