Fork me on GitHub
#cursive
<
2018-04-11
>
lukesp02:04:45

@cfleming I am trying to run Cursive in IntelliJ getting Could not locate clojure/spec/alpha__init.class or clojure/spec/alpha.clj on classpath.

cfleming03:04:12

@lukasz.pomorski01 Yes, my apologies, there’s a bug in the latest EAP when creating projects using the Clojure project template if you’re using Clojure 1.9

lukesp03:04:47

I am brand new to clojure, How could I get this fix?

cfleming03:04:26

The best solution is probably to create your project with Leiningen. So when you create your project, use the Leiningen option rather than the Clojure one.

lukesp03:04:44

great it works

lukesp03:04:11

How can I get a program to actually output something. Not run REPL but run a core.clj file. It seems to run fine but return nothing

cfleming03:04:44

You should be able to right-click the file and choose “Run ‘<filename>’”

lukesp03:04:30

when I do lein run I get output. When I right click I get no output

cfleming03:04:56

How are you creating your output?

lukesp03:04:50

ok I got it to work. Getting familiar with terminology. Thanks 🙂

cfleming03:04:29

No problem, glad it’s working!

royalaid04:04:57

@cfleming Are you aware of an issue with custom symbol resolution being broken?

royalaid04:04:40

and I have to open that via arrow keys

cfleming07:04:13

@royalaid That’s actually just a confusing part of the IntelliJ UI - you don’t expand the menu out to the right, you select the “Resolve <var> as…” item in the first menu with enter.

royalaid07:04:59

I have tired that, menu just closes out :white_frowning_face:

cfleming07:04:33

Can you send me your log file?

royalaid07:04:15

Sure, let me make sure I can reproduce again and am missing something silly. Do you have directions on how to dump the debug log?

cfleming07:04:45

Just Help-&gt;Show log in Finder/Explorer is fine as a first step

royalaid07:04:41

Oh, I also use IdeaVim

royalaid07:04:45

that may be a part of this

cfleming07:04:24

Hmm, possibly. Does the menu work for other vars, i.e. can you customise defn or something?

royalaid07:04:02

Coworker has experienced the same as well so this isn’t isolated to just me

royalaid07:04:02

AHHHHHHHHHH

royalaid07:04:06

found the case

royalaid07:04:23

in side of lein refed library, http-kit in my case

royalaid07:04:31

but in my source files its fine

royalaid07:04:38

(or so it seems)

cfleming07:04:09

That’s… really weird. So you can customise your own macros, but not those from third-party libs?

royalaid07:04:22

from the 3rd party source

royalaid07:04:32

the menu breaks so I can’t follow through

royalaid07:04:39

let me try to pull it in

royalaid07:04:42

for context

royalaid07:04:05

is the file I am trying from

cfleming07:04:58

Oh, I see. So it doesn’t work from the definition - does it work if you try to do that from a usage of the macro instead, so a (defreq ...) call?

royalaid07:04:33

and it works

cfleming07:04:31

Yeah, I can reproduce that.

royalaid07:04:07

You want me to follow up with anything?

cfleming07:04:46

No thanks, I’ll track it via the issue.

royalaid07:04:51

Thanks for all the hard work!

cfleming07:04:25

No worries, thanks for the report!

joelsanchez21:04:26

i wish paredit worked with css, such that I could slurp properties inside a block

joelsanchez21:04:34

dreams are free