Fork me on GitHub
#cursive
<
2018-08-26
>
erichmond02:08:58

I might be a complete moron, but I can’t for the life of me get cursive to read a deps.edn file when starting a REPL

erichmond02:08:09

has anyone done this successfully?

steveb8n02:08:34

@erichmond @petrus I struggled when I switched also. I find the best way now it to 1/ add the deps.edn file. 2/ delete the project 3/ import the project and select the deps.edn file. that will start the wizard and load it

steveb8n02:08:10

there’s also a “deps” tool window which you can use to refresh/play with the deps.edn config

erichmond02:08:58

@steveb8n thanks! where is the deps tool window? and once you import the project with deps.edn the REPL will pick it up?

erichmond02:08:05

wow, that did it, thanks @steveb8n 😄

steveb8n02:08:59

I use the “find action” action to open the “deps” window

steveb8n02:08:09

it’s not keymapped by default

steveb8n02:08:48

and yes, once imported you can create a run config that builds the classpath using the deps.edn

steveb8n02:08:07

and it starts much faster than lein. FTW

tap04:08:02

I'm only work in zero Java project for the past 2 years. Is there a way to force Navigate > Class to only search for clojure namespaces, not java classes when I'm on non-clojure related files such as README.md?

tap04:08:43

I mean this ☝️

suomi.esko07:08:20

@tap I've noticed the lack of this one as well, but haven't bothered to report it as feature request/bug yet. Would make tons of sense to have it work exactly as you describe 🙂