Fork me on GitHub
#cursive
<
2019-04-26
>
manutter5116:04:06

I just tried that, but it just takes me to the online help for the IntelliJ Editor, it doesn’t bring up the downloaded clojuredocs at all.

kenny17:04:48

How does Cursive set the Clojure version for a REPL?

joshkh17:04:06

what might i be doing wrong here? i'm firing up a repl with src and test dirs in my dep.edn's :paths key. one of my test namespaces has a dependency on one of my src namespaces, but cursive says it can't find the src namespace:

; src/cljc/schema/spec.cljc
(ns schema.spec
  (:require [clojure.spec-alpha2 :as s]))
; test/schema/format.clj
(ns schema.format
  (:require [clojure.test :as t :refer [deftest is testing]]
            [schema.spec :as ss]
            [clojure.spec-alpha2 :as s]))
; attempting to load schema.format:
Loading test/schema/format.clj... 
Syntax error (FileNotFoundException) compiling at (format.clj:1:1).
Could not locate schema/spec__init.class, schema/spec.clj or schema/spec.cljc on classpath.
thanks!

alexmiller18:04:19

based on what you have, seems like src/cljc should be in paths

joshkh09:04:43

ah, of course. thanks alex.

alexmiller18:04:35

basically whatever directory is containing the root of the namespaces

alexmiller18:04:15

to use spec-alpha2, you will also need a git dep on clojure.spec-alpha2 repo

hlship22:04:04

Is there a cheatsheet somewhere about which version of Cursive are compatible with which versions of IntelliJ. I'm thinking of upgrading to 2019.1.1 and don't know if that will break Cursive.

cfleming23:04:08

@hlship You’re fine to upgrade, basically any given version of Cursive supports the previous two years’ versions of IntelliJ, so currently it’s back to 2017.1. There is a problem with the indexing which I suspect is a 2019.1 bug in IntelliJ (discussed above) and an annoying issue with brace matching, so if you don’t have a compelling reason to upgrade you may wish to wait.

cfleming23:04:04

@joshkh What Alex said, seems like src/cljc should be in your path, not src.

cfleming23:04:38

@kenny It doesn’t really, it’s just taken from the classpath, so whichever version of Clojure your module has as a dependency.

cfleming23:04:47

@manutter51 It’s just shown in the standard doc popup, so whatever you have View | Quick Documentation bound to.