Fork me on GitHub
#cursive
<
2016-10-07
>
imre10:10:21

anyone knows where Cursive stores the resolve as... settings? I accidentally set def resolve on for a macro and want to remove it 馃檪

tawonga11:10:29

@imre settings > Languages and Frameworks > Clojure > Symbol Resolution

henryw37412:10:04

@imre so resolve as still works for you? I cannot get it to work as described in the docs . for example ...

(defmacro xyz [& args])

(xyz asd)
putting the caret over the second xyz I don鈥檛 get an option to resolve

imre13:10:26

I put caret, alt enter, enter on second option in popup menu

imre13:10:30

Worked this morning

snoe15:10:14

@spieden you can call (require 'clojure.tools.namespace.repl) (clojure.tools.namespace.repl/refresh) in the repl to reload all changed files and their deps

snoe15:10:39

you might have to have the dependency in your ~/.profiles.clj

devn21:10:22

Am I stupid or something? (Don't answer that.) I can't seem to get cursive working. It's complaining about ForkJoinPool which leads me to believe it's using a 1.6 JVM. In addition, the latest version of leiningen it shows under build tools is 2.6.1, and I'm on 2.7.1.

devn21:10:14

Long story short, I can't get cursive working after killing /Library/Application Support/Idea* and /Library/Preferences/Idea*

kidpollo21:10:15

I鈥檝e seen weird things happen with some lein plugins

devn21:10:31

It's complaining about reducers... Color me confused.

kidpollo21:10:47

hmmm yeah I鈥檝e never seen that

devn21:10:07

The cursive getting started page links to Idea CE 15

devn21:10:14

Should I be running IDEA 2016.2?

kidpollo21:10:59

I try to keep updated

shaun-mahood21:10:37

@devn: What platform are you trying to install on? I'm on community edition, of my intellij it says "IntelliJ IDEA 2016.1.4" - Cursive 1.3.0 supports IntelliJ 2016.2, so that should work as long as your Cursive is newer.

devn21:10:30

I hit the page that the getting started page references, followed that link, then started up intellij and it told me to update to the newer version

devn21:10:06

followed that link, and got what i believe is a newer build, just blew away all of the intellij preferences and making another attempt at opening my project

devn21:10:20

also commented out everything except cider-nrepl 0.13.0 in my ~/.lein/profile.clj

shaun-mahood21:10:39

Hmm, that seems like it should work - so you should be on IntelliJ 2016.2.4 then.

devn21:10:25

right so then, as i understand it, i just grab the plugin by browsing for sources, restart, and then Open -> find project.clj, and hit OK, yes?

devn21:10:36

I got this on first start: We wanted your IDE to receive upgrades over a secure connection. Unfortunately, this doesn't work on Java 6, so the option was disabled. You can enabled it again in settings after upgrading the JRE.

devn21:10:05

And on this update, guess what: A new version of IntelliJ IDEA is available!

shaun-mahood21:10:33

Yeah, that should work. I get that IntelliJ popup pretty much right away any time I upgrade, I tend to ignore it as hard as I can.

shaun-mahood21:10:29

I'm assuming you have a newer JDK installed and have done some Clojure work on the same machine with cider, right?

devn21:10:44

This worked like 12 months ago

devn21:10:56

I drop in from emacs every now and then

shaun-mahood21:10:31

Maybe something useful on https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under - I've not had that problem before though, so no idea if it's at all going to help

devn21:10:04

@shaun-mahood do I import my project using "Create project from existing sources" or "Import project from external model" and select Leiningen?>

bfabry21:10:49

@devn project from existing sources

bfabry21:10:05

then select the project.clj

devn21:10:08

When I look at the default SDK that IntelliJ created "IDE SDK"

devn21:10:22

I see 1.6.0jdk paths under the Classpath tab

devn21:10:58

so, I switched it to point at my java 1.8.0 home dir, that looks more reasonable

devn21:10:24

Still no dice. Every core fn is highlighted as being unresolved

snoe21:10:44

You'll need to "Refresh Leinigen Projects" (the refresh button on the leinigen tab)

devn21:10:39

@snoe where's that tab at?

snoe22:10:31

view->tool windows->lein

devn22:10:05

@snoe still nothin'

devn22:10:40

I can't be the only one who has run into this, right?

devn22:10:37

@snoe I hit refresh and see "There are no Leiningen projects to display."

snoe22:10:40

sorry @devn that's the extent of my experience 炉\(銉)/炉

devn22:10:03

@snoe do you see Leiningen version 2.7.1 in the dropdown under Leiningen -> Project Settings?

devn22:10:24

@snoe When I use the "run REPL" feature, how should that be set up? Do I need to list leiningen as an external tool and provide the path?

devn22:10:48

"Run nREPL with Leiningen" is blurred out

snoe22:10:56

I connect to an nrepl in a terminal

devn22:10:13

and I continue to receive this error in that dialog: "Run Configuration Error: No modules containing clojure.main found"

snoe22:10:45

sounds like the project import didn't go right

devn22:10:35

Finally found a decent error: "Unmatched delimiter in ~/.lein/profiles.clj" because I commented almost all of it out to try and get past the other error

snoe22:10:14

just opening the project.clj is an easy way to load a new or existing project

snoe22:10:41

and, yknow, closing your braces

devn22:10:31

Back to this shit:

java.lang.ClassNotFoundException: jsr166y.ForkJoinPool, compiling:(clojure/core/reducers.clj:56:21) jsr166y.ForkJoinPool

devn22:10:38

Opening the project.clj in intellij shows no dirs in the project view

devn22:10:11

@jrheard -- thanks for bothering him for me 馃檪

devn22:10:52

I'm on Yosemite, btw

devn22:10:04

I googled and see someone had this problem, and their solution was to edit the JVM Version in the Idea.app/Contents/Info.plist manually. See here: https://clojurians-log.clojureverse.org/cursive/2016-06-14.html

devn22:10:27

Today is not my day. Just realized that I have two IntelliJ installed. One is 2016.2, the other 15.*. I thought the 15 version was overwritten when I dragged and dropped the 2016.2 version to /Applications.

devn22:10:02

Then, because I hadn't said "Open anyway", it never showed up in the list of launchable apps, so I kept launching CE 15 and not 2016.2.

bfabry22:10:16

ugh, OSX's application management 馃憥

devn22:10:24

I think the last time I set up cursive was like the exact same day of a big IntelliJ release, and I wound up with an app "IntelliJ IDEA 15 CE", and one named "IntelliJ IDEA CE". The 15/no 15 caused a bit of confusion, as the release date for version of 15 I'd downloaded was 2016.

bfabry22:10:15

I actually have the same deal of both 16 and 15 in my app list, too scared of trying to remove 15 for fear of breaking the osx rube goldberg package management

devn22:10:03

@bfabry if you're just dumping the .app you should be fine

devn22:10:23

Really the thing is: "What package management?" Off-topic, but I used to run something that watched file creation using fs_usage + execsnoop and company and kept track of processing launching processes which wrote files to disk. Then when I wanted to truly delete an app, I could find all of its litter.

devn22:10:09

There's some awfully fancy obfuscation techniques that some of these software vendors use, like setting a noop hidden property on 7 random plists which are referenced via a hash in another plist, which points at an obfuscated timestamp of the modification time on a file, yadda yadda

devn22:10:37

Or running processes which spawn and terminate so quickly you don't see them in top, ps, Activity Monitor, etc.

devn22:10:49

</rant over>

devn22:10:51

Thank you for your help.