Fork me on GitHub
#cursive
<
2022-03-02
>
reefersleep12:03:23

I’m getting “x cannot be resolved” warnings for pretty much all of the symbols in my cljs files. src is marked as sources root, I’ve right clicked on the project.clj and clicked “Add as leiningen project”, and I’ve tried invalidating and restarting.

cfleming21:03:42

Could you look at this list? https://cursive-ide.com/userguide/troubleshooting.html. Sounds like you’ve tried most of it, but looking at the dependencies might give a clue.

reefersleep08:03:09

I’ll do that, thank you 🙂

reefersleep14:04:11

I couldn’t figure out what was wrong - the list of dependencies is really long, so I never really got going checking them. Instead, I tried installing the newest IntelliJ + Cursive, and now, my problem is gone. As always with this type of thing, I’m really bothered that I don’t understand what was wrong and why it appeared seemingly out of nowhere. But life is too short to dwell on that 🙂 Gotta get coding!

reefersleep12:03:16

It’s extremely distracting! 😞 And I feel like this is probably just some configuration/cache clearing issue, though I have no clue what. I haven’t changed anything recently, that I know of.

imre12:03:48

have you tried invalidate caches/restart?

reefersleep12:03:42

It’s one of my favourite debugging cannons, usually

reefersleep12:03:42

Thank you for your suggestion 🙂

manutter5112:03:46

Do you have separate clj/ and cljs/ directories under src/? If so, you might need to mark your cljs/ dir as a sources root.

reefersleep12:03:57

I don’t, but good to know!

reefersleep12:03:54

Thank you for the suggestion 🙂

aratare14:03:11

have you tried checking if you've setup Java Sdk correctly for the project? I've also encountered this several times and usually it could be solved by this.

the-alchemist20:03:28

this seems like a bug. it says “Run Configuration Error: Script does not exist”, but the run configuration actually runs fine

staypufd23:03:03

Hello group, I'm wondering if anyone has been able to make "Run with Deps" alias to work? I get this error:

class java.lang.Character cannot be cast to class java.lang.String (java.lang.Character and java.lang.String are in module java.base of loader 'bootstrap')

staypufd23:03:31

This is the alias I pass in.

staypufd23:03:30

My Clojure Deps

staypufd23:03:54

Oh, I found a bug report for it: https://github.com/cursive-ide/cursive/issues/2617 So I guess it'll be in next update or two...

reefersleep14:04:11

I couldn’t figure out what was wrong - the list of dependencies is really long, so I never really got going checking them. Instead, I tried installing the newest IntelliJ + Cursive, and now, my problem is gone. As always with this type of thing, I’m really bothered that I don’t understand what was wrong and why it appeared seemingly out of nowhere. But life is too short to dwell on that 🙂 Gotta get coding!