Fork me on GitHub
#cursive
<
2018-02-19
>
caleb.macdonaldblack01:02:32

My auto-complete for project.clj dependencies has stopped working for a while. I did disable all my intellij plugins and re-enable only a select few a while back. Cursive is enabled in intellij.

cfleming01:02:26

@caleb.macdonaldblack You’re probably missing the Maven plugin, which that functionality requires.

apt19:02:22

Hi. Is there any way to prevent parinfer from automatically modifying files with bad indentation?

apt19:02:38

I'd prefer getting a warning message or something

briantrice20:02:42

Yeah, this is a hassle for me, too.

briantrice20:02:01

Something like a “lazy indent” mode, but maybe that’s what paredit is for.

shaunlebron20:02:15

@andre.peric the latest dev build just highlights the bad indentation without fixing it, and runs Parinfer only after it is manually fixed

apt21:02:33

@shaunlebron Cool, I'll get it. Thanks!

caleb.macdonaldblack22:02:49

I Have a script that exports some environment variables. How can I make them available to be in the cursive REPL? I know I can manually type them into the REPL config. I also know I can run scripts before launch, but anything exported doesn’t seem to be available to my running app.

cfleming22:02:36

@andre.peric check the mailing list, it has details on how to install it. It has to be installed manually for the moment.

cfleming22:02:31

@caleb.macdonaldblack So I don’t have a good solution for this right now, sorry. It’s something that occasionally people need for things like authentication values etc. The only solution I can think of right now is to run the REPL at the command line using lein repl :headless and then connect from within Cursive using a Remote REPL config.

caleb.macdonaldblack22:02:26

@cfleming I’m also running a cljs repl like this: lein run -m clojure.main script/repl.clj

caleb.macdonaldblack22:02:46

Would I be able to get a :headless to work on that somehow?

caleb.macdonaldblack22:02:47

Does :headless just run it in the background

cfleming22:02:22

Right, :headless runs it in the background and waits for a connection. Unfortunately that doesn’t work for CLJS REPLs since it (currently) requires nREPL

cfleming22:02:35

Does your CLJS REPL also need the env vars?

caleb.macdonaldblack22:02:44

Someone else recommended that I create a bash script to export the vars and then open intellij from bash

caleb.macdonaldblack22:02:15

And then intellij and my REPLs will have see the environment variables

cfleming23:02:40

@caleb.macdonaldblack Which platform are you on?

cfleming23:02:28

So that might be possible, but it’s tricky - Mac apps tend to get their env vars from property lists.

caleb.macdonaldblack23:02:12

Okay I just confirmed that this works for in the java repl

caleb.macdonaldblack23:02:43

My env vars for cljs are accessed in project.clj so I assume that’ll work

caleb.macdonaldblack23:02:19

I wonder if that makes a difference to whether or now i can use the remote repl

cfleming23:02:39

Well, you wouldn’t need it if you can get your env vars via IntelliJ, right?

caleb.macdonaldblack23:02:44

Yea I can get them from intellij. Just trying to weigh up my options.