Fork me on GitHub
#cursive
<
2018-10-24
>
danm10:10:07

I know I've asked this before, but I have forgotten the answer 😞 I had a Clojure project in my workspace. As it's a monorepo I actually have lots of projects in there. I deleted one of them I no longer need, went into File > Project Structure > Modules and removed the module from the list. But when I Refresh Leiningen Projects it still complains that it can't find that project.clj file for the deleted project

danm10:10:21

What do I need to do to get Cursive to stop looking for that project?

polymeris12:10:48

In my project.clj, if I (def foo 1) and then use that in defproject as ~foo, cursive complains about Attempting to call unbound fn: #'clojure.core/unquote: Attempting to call unbound fn: #'clojure.core/unquote. Am I doing something wrong?

polymeris12:10:15

Oh, nevermind. there was an error in another project.clj -- didn't realize cursive refreshed all modules, not just the one I had just modified

isak15:10:29

Is there a way to get cursive to not hike me wayy to the right when I start a comment at the end of a line? I see this, but not sure what I would set it to:

isak15:10:33

Oh never mind, looks like setting it to 0 works

frankiesardo22:10:06

Hello everyone. Trying the new deps.edn integration (sleek!) but I was wondering: how do I get an integrated REPL using it?

frankiesardo22:10:26

I can try and run the repl task but it finishes with no output

frankiesardo22:10:24

Second question: what's a good keybinding set to use with Parinfer? Older versions of Clojure had an emacs-like Paredit keyset and now it's gone. I'm happy to embrace Parinfer, I was just wondering if there was an opinionated set to use as a starting point for inspiration

isak22:10:07

I can't speak to parinfer, though with paredit, some keys that have worked pretty well for me in IntelliJ are Ctrl-Space {W,A,S,D} for Splice sexp killing backwards, Slurp backwards, Kill, and Slurp Forwards respectively @frankie

isak22:10:36

np. It is kind of intuitive if you play any games, may not make sense otherwise

cfleming23:10:23

@frankie That looks like you’re running a deps task there - what you want to do is configure a REPL as with the lein integration, but select the deps option instead. Hopefully it’ll be clear but if it’s not let me know, things have moved around a bit.

frankiesardo09:10:21

Ok I've updated Cursive and I've found the option , it works!

frankiesardo09:10:12

One thing tho: if I launch clj -A:repl from the terminal and I do things like (js/alert "Hi") or invoke functions from my namespace, everything works. When the repl launches from clojure.deps it cannot find the js namespace or my user defined namespaces

frankiesardo09:10:25

Autocomplete works but actual resolution doesn't

frankiesardo09:10:29

Oh, I found the problem: you have to select clojure.main rather than nREPL, is that expected?