Fork me on GitHub
#cursive
<
2019-01-12
>
kenny00:01:40

I have no idea what button I hit but now my project looks like this. Anyone have any idea how to get all the panels back?

kenny00:01:33

Restarting IntelliJ fixed it. Phew 😅

cfleming00:01:57

@mike1452 Yes, you can do this with Cursive. In Settings-&gt;Build, Execution, Deployment-&gt;Build Tools-&gt;Clojure Deps, select the “Use tools.deps directly” option. You’ll have to select the version of tools.deps.alpha to use, generally the most recent is best. You can also configure where Cursive should get the user deps.edn from.

cfleming00:01:42

The one caveat with doing this is that you’re tied to the system deps.edn bundled with Cursive, but it’s unlikely that will change much.

grav11:01:28

Seems Cursive doesn’t know about this “one cool trick” wrt destructuring:

user=> (defn foo [{:keys [bar]}
                  {baz bar}]
         baz)
#'user/foo
user=> (foo {:bar 'buzz} {'buzz 42})
42

😮 5
👆 5
grav11:01:43

It shows up in the editor like this:

grav11:01:30

Btw, same with:

(defn foo2 [{:keys [bar baz]
             :or {baz bar}}])

idiomancy21:01:07

anyone here use an amazon linux workspace by chance? Trying to get the damn jdk installed on it and having a terrible time

idiomancy21:01:26

got it! the answer is corretto