Have a look in File/Project Structure and you may find your project has no JDK defined for it.
Thanks @cjmurphy! That's the first thing I checked. I also made sure that all my new default projects has a JDK defined.
And Modules / Dependencies has a has a Module SDK?
Yes, I just checked, and it's set to the Project SDK
Invalidate Caches and Restart?
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 {}}
Can someone help me setup deps.edn for cursive?
Usually you right click on it and 'Add as Clojure Deps project'. But you would want a better file than that...
oh! where do I right click?
Oh! That worked! Thanks @cjmurphy! i didn't know about that step!
The deps.edn
file is read by Cursive, but contains nothing that is particular to Cursive.
Do I have to do that every time I make a new project?
@watchtheblur How did you create that project?
Normally you would create it using some variant of this: https://cursive-ide.com/userguide/deps.html#create-a-new-project-with-deps
Yes a deps.edn
project. Else you can add the xml file under .idea
yourself. But no need these days...
I made a new folder, then opened it with intellij. Ahh. I think that might've been my mistake
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 🙂
Thank so much again @cjmurphy. I'll make sure to create all my project via the the new project wizard next time
Lol, yeah. I feel really dumb 🤦
Don’t feel dumb, IntelliJ is huge and confusing if you’re not used to it.
And in particular it works a bit differently to more file-based things like Emacs, VSCode or whatever.
Since it’s more project-based.
Ha. No worries. Yes setup things can be tough sometimes.
Yes, I see that now. I'm coming from vscode, so that was a learning experience. Thanks again! 😄
thanks @cfleming as well! 😄
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.
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.
Hmm, I’ll check that - CLJC is still a bit funky unfortunately.
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.
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
@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
Yes, I do, hopefully sometime soon.
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.
That appears so common of a question that the message right before your joining this channel seems to be about it
See https://github.com/cursive-ide/cursive/issues/391 I believe that's what you're looking for
Hoo, that's right. Thanks.