cursive

Issues at: https://git.io/cursive-issues
cjmurphy 2020-10-20T00:03:03.129400Z

Have a look in File/Project Structure and you may find your project has no JDK defined for it.

j 2020-10-20T00:10:51.129600Z

Thanks @cjmurphy! That's the first thing I checked. I also made sure that all my new default projects has a JDK defined.

cjmurphy 2020-10-20T00:14:44.129800Z

And Modules / Dependencies has a has a Module SDK?

j 2020-10-20T00:17:04.130Z

Yes, I just checked, and it's set to the Project SDK

cjmurphy 2020-10-20T00:17:38.130200Z

Invalidate Caches and Restart?

j 2020-10-20T00:19:51.130400Z

Just did it, and still the same result. I'm trying to use deps.edn to setup the run configuration instead of lein. I have the simplest deps.edn file right now. Not sure if it's relevant

{:deps {}}

j 2020-10-20T00:38:57.131Z

Can someone help me setup deps.edn for cursive?

cjmurphy 2020-10-20T00:39:58.131100Z

Usually you right click on it and 'Add as Clojure Deps project'. But you would want a better file than that...

j 2020-10-20T00:40:24.131300Z

oh! where do I right click?

j 2020-10-20T00:41:26.131500Z

Oh! That worked! Thanks @cjmurphy! i didn't know about that step!

cjmurphy 2020-10-20T00:41:31.131700Z

The deps.edn file is read by Cursive, but contains nothing that is particular to Cursive.

j 2020-10-20T00:41:42.131900Z

Do I have to do that every time I make a new project?

cfleming 2020-10-20T00:42:28.132100Z

@watchtheblur How did you create that project?

cfleming 2020-10-20T00:43:01.132300Z

Normally you would create it using some variant of this: https://cursive-ide.com/userguide/deps.html#create-a-new-project-with-deps

cjmurphy 2020-10-20T00:43:07.132600Z

Yes a deps.edn project. Else you can add the xml file under .idea yourself. But no need these days...

j 2020-10-20T00:43:09.132800Z

I made a new folder, then opened it with intellij. Ahh. I think that might've been my mistake

cfleming 2020-10-20T00:44:00.133Z

Right, at some point you need to let Cursive know that you want this to be a deps project using whichever deps.edn. If you just open an empty project then you’ll get… an empty project 🙂

j 2020-10-20T00:44:04.133200Z

Thank so much again @cjmurphy. I'll make sure to create all my project via the the new project wizard next time

j 2020-10-20T00:44:36.133400Z

Lol, yeah. I feel really dumb 🤦

cfleming 2020-10-20T00:45:00.133600Z

Don’t feel dumb, IntelliJ is huge and confusing if you’re not used to it.

cfleming 2020-10-20T00:45:30.133800Z

And in particular it works a bit differently to more file-based things like Emacs, VSCode or whatever.

cfleming 2020-10-20T00:45:37.134Z

Since it’s more project-based.

cjmurphy 2020-10-20T00:45:43.134200Z

Ha. No worries. Yes setup things can be tough sometimes.

j 2020-10-20T00:46:01.134400Z

Yes, I see that now. I'm coming from vscode, so that was a learning experience. Thanks again! 😄

j 2020-10-20T00:46:47.134600Z

thanks @cfleming as well! 😄

👍 1
cfleming 2020-10-20T01:20:04.135Z

Thanks for the kind words! I’m glad it’s helpful. I’m planning to document all the interop functionality, it’s not all very discoverable right now.

cfleming 2020-10-20T01:21:04.135200Z

It should be controlled by the soft-wrap icon in the REPL toolbar - is that not working? I’m pretty sure this never happens to me.

cfleming 2020-10-20T01:22:48.135400Z

Hmm, I’ll check that - CLJC is still a bit funky unfortunately.

cfleming 2020-10-20T01:23:22.135600Z

That can happen if IntelliJ decides to index at the time you’re sending the form - I’ve been meaning to add a workaround for that.

2020-10-20T01:30:58.135900Z

yeah it’s strange, I have it turned off via the icon in the toolbar, but it turns itself on when one of my output lines is long enough , i haven’t determined the exact length that makes it turn on but it’s rather frustrating

mike_ananev 2020-10-20T06:06:00.137400Z

@cfleming, hi! Have you any plans to resolve issue https://github.com/cursive-ide/cursive/issues/391 ? It would be great to eval forms and see result in little popup window

➕ 2
cfleming 2020-10-20T08:53:12.137700Z

Yes, I do, hopefully sometime soon.

1
😀 1
lambdam 2020-10-20T10:57:57.140200Z

Hello, Does someone know if there is a way to print the result of an evaluation directly in the file being edited (and not in the repl window). This is the behavior of CIDER and I am wondering if it is possible to have it with Cursive. Thanks.

imre 2020-10-20T12:24:35.140300Z

That appears so common of a question that the message right before your joining this channel seems to be about it

imre 2020-10-20T12:26:03.140500Z

See https://github.com/cursive-ide/cursive/issues/391 I believe that's what you're looking for

lambdam 2020-10-20T16:07:56.140800Z

Hoo, that's right. Thanks.