Questions tagged [cursive]

Cursive is a plug-in for IntelliJ for writing Clojure and ClojureScript code.

Cursive is a plugin-in for for writing code. It is written in large parts in Clojure itself to allow easy use and integration of signature tooling and features of Clojure (like and a ).

Features from the homepage:

  • Syntax Highlighting
  • Navigation (Jump to symbol, Find Usages)
  • Symbol renaming
  • nREPL based REPL
  • Leiningen support
  • Paredit-style structural editing
  • Code formatting
  • A symbolic debugger
  • Solid integration with Java for mixed projects
  • All standard IntelliJ features (project management, VCS
80 questions
16
votes
4 answers

Can't delete Parenthesis in IntelliJ/Cursive

I'm using IntelliJ/Cursive to write Clojure. I found out that the only way to erase parenthesis is to totally erase the content inside them, and only then, the parenthesis can be deleted. For example, let's say that I have the following code:…
CrazySynthax
  • 13,662
  • 34
  • 99
  • 183
9
votes
1 answer

How to disambiguate in Clojure

I have this function in a namespace that does not import/require/use any other packages: (defn crash [msg] (throw (Throwable. msg))) Cursive (the IntelliJ IDEA IDE Plugin) highlights Throwable and gives me the message Cannot disambiguate…
Chris Murphy
  • 6,411
  • 1
  • 24
  • 42
8
votes
1 answer

How to enable rainbow brackets in Cursive IDE?

I use Cursive in IDEA community edition. It displays all brackets in black color which is lead to a problem of catching by eyes the edges of expression. Does rainbow brackets support by Cursive? If yes, how to enable it?
Aleksei Sotnikov
  • 633
  • 4
  • 15
8
votes
1 answer

How to set up the configuration in Cursive for Clojurescript?

Just how to init a new project? How to compile, test and run? Since the cursive user guide says nothing about cljs.
speedcell4
  • 666
  • 8
  • 23
6
votes
1 answer

What Leiningen path can't Cursive locate? (IntelliJ Clojure IDE)

I'm trying out Cursive, a Clojure IDE on top of IntelliJ. The Leiningen console works, but prints a "path not found" error. I can't seem to figure out what it can't locate. Leiningen appears to be working, though. Any idea how I can figure out what…
Ryan
  • 7,733
  • 10
  • 61
  • 106
5
votes
2 answers

REPL broke out of nowhere

I use IntelliJ + Cursive. I was doing some testing on a Genetic Algorithm I'm writing, and got a NPE. It wasn't clear where it was coming from, so I started up my debugger. As it was starting up however, a RuntimeException break was activated, and…
Carcigenicate
  • 43,494
  • 9
  • 68
  • 117
5
votes
3 answers

loading namespace in cursive REPL

I have loaded up Intellij and Cursive on my computer, all appears to work well except for the fact that I can not load a namespace in to the REPL nor can I run with Leinigen. When I load the code into the REPL the REPL loads up but nothing is loaded…
4
votes
0 answers

Extract character images from cursive continuous handwritten image

I am trying to extract individual character as an image from below I have a python code, which is able to extract each line and words in order. But, it is not able to identify and extract each character. Below is the python code that I am…
Gladiator
  • 354
  • 3
  • 19
4
votes
1 answer

How to bind variables in Clojure macros?

I'm trying to write a macro that takes a vector of bindings and a function that can access these bindings. In the simplest form: (defmacro f-with-binds [binds f] `(let [~@binds] ~f)) even though the above works: (f-with-binds [n 123 m 456]…
Tomas Zaoral
  • 499
  • 2
  • 5
  • 11
4
votes
2 answers

How can I tell a Cursive Clojure module to depend on a local Java/Scala module?

I imported a Leiningen project into Intellij to sit alongside some existing Java & Scala modules. I would like to call functions from those modules from my Clojure module, but I'm not sure how to define this dependency. I went to Project Settings ->…
jm0
  • 3,294
  • 2
  • 16
  • 18
4
votes
2 answers

Running Clojure project in Cursive

I'm trying to run a short Clojure program in IntelliJ\Cursive. My program includes two files: project.clj: (defproject try3 "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse…
CrazySynthax
  • 13,662
  • 34
  • 99
  • 183
4
votes
1 answer

How to build Android apps using Cursive in Android Studio

I'd like to do Android development in Clojure, using the Cursive plugin in Android Studio. I've seen several posts where people have stated that it is possible, but I haven't been able to get it working. When I try to build, I get errors reported…
Steve Moseley
  • 5,797
  • 2
  • 19
  • 22
3
votes
1 answer

Cursive cannot resolve "js/require" in CLJS

I'm trying to get started learning cljs by prototyping a react native app with expo. I set up a project with a Leiningen template "lein new expo". I installed cursive as well and added a configuration to connect it to the nRepl of my project. The…
imagio
  • 1,390
  • 2
  • 16
  • 27
3
votes
1 answer

Clojure pedestal.io code is not resolved in IntelliJ

I have a small application of Clojure and Pedestal that I grabbed from pedestal.io tutorial. It works fine in the terminal. When I open it in IntelliJ some "cannot be resolved" tips are appearing. And some code parts are getting a beige…
trzczy
  • 1,325
  • 2
  • 18
  • 43
3
votes
0 answers

how to run junit tests that require classes compiled from clojure in intelliJ

I am working in Intellij with Cursive on a clojure project that has sub projects below it. I imported the top level project asking the import to search for projects recursively. Each of the sub module projects has a combination of clojure and java…
GregA100k
  • 1,385
  • 1
  • 11
  • 16
1
2 3 4 5 6