Fork me on GitHub
#cursive
<
2019-03-04
>
Yehonathan Sharvit06:03:30

What is really nav to keyword? Does it take me to the first time the keyword is used?

Daniel Schlaug08:03:09

I'm trying to get my REPL to run tests in a re-natal (React Native) context. I can do (start-figwheel "ios") in both the nREPL and Clojure.main REPL but in the nREPL Cursive or IntelliJ starts taking input through a dialog ("Enter string for standard input") instead of through the REPL input field. Any ideas on how to rectify this? (I cannot use the otherwise functional Clojure.main REPL since that does not support running all tests in a namespace.)

cfleming09:03:06

@daniel975 Right now the test-running functionality in Cursive only works for Clojure, not for CLJS.

cfleming09:03:38

That dialog means that the figwheel REPL is reading from stdin, which means it’s designed to be used with a clojure.main REPL.

cfleming09:03:01

Since the test-running doesn’t yet work for CLJS you’re better off using whatever makes your REPL more functional.

cfleming09:03:09

@viebel No, you select the keyword and then it opens a Find Usages popup showing all the usages, and you can pick one to navigate to.

chrisps11:03:19

I am having a problem using :import in a project. Any :import fails with a ClassNotFoundException. I am using deps/cli. How can I approach this?

chrisps11:03:22

(ns sample.project
  (:import [org.apache.commons.lang3 StringEscapeUtils]))

chrisps11:03:14

{:deps {org.apache.commons/commons-lang3 {:mvn/version "3.5"}}

chrisps11:03:40

I’ve invalidated caches etc

chrisps11:03:33

I’ve also clojure -Spom and imported the pom.xml in the maven-tab

conan15:03:58

Hi, I'm having trouble importing a project that uses deps.edn on Windows. I can't get past this dialogue box - any ideas? Thanks

conan15:03:42

I've pressed "Download" and it seemed to download some stuff

conan15:03:09

I'm running Cursive v1.8.1-eap3-2018.3

Ben Hammond15:03:16

I am running edge projects in Cursive and I don't 'use tools.deps directly`

Ben Hammond15:03:25

can you click on the other radio button

conan15:03:45

hi, let me try

conan15:03:36

same error

Ben Hammond15:03:56

FWIW mine looks like

Ben Hammond16:03:46

you do need to tell it where to find the clojure command line tools

conan16:03:01

there are no clojure command-line tools for windows, sadly

conan16:03:28

solution there seems to solve the problem. thanks for your help Ben!

👀 5
helios15:03:13

does anybody have a tip on how to resolve as enlive deftemplates?

boris16:03:19

Haven’t used enlive before, but it seems like resolving as defn would work pretty well in that it would provide symbol resolution of the template and show parameters in the suggestions popup. Have you tried that?

helios08:03:03

enlive deftemplate has a slightly different pattern, as it's (deftemplate template-name "page.html" [& args] ... )

helios08:03:49

I tried it, and it does look better than i had thought. I'll give it a try, thanks

joelsanchez18:03:34

I think I found a bug!

joelsanchez18:03:52

it complains about nested function literals, but it's just a string with a "#"

joelsanchez18:03:58

Cursive got fooled

cfleming23:03:59

@joelsanchez I bet you a beer it didn’t 🙂. It’s complaining that the outer form (the one which is basically the whole screenshot you sent) is inside another #( ... )

cfleming23:03:02

@chris.schreiner If you open File-&gt;Project Structure, select Modules, <your module>, Dependencies do you see the lib there?