Questions tagged [counterclockwise]

Counterclockwise is an Eclipse plugin to help developers write Clojure code.

Counterclockwise is an plugin helping develop solutions with .

62 questions
28
votes
1 answer

Counterclockwise HTTP REPL

In Eclipse+Counterclockwise, when I want to connect to REPL, the dialog tells me I can use nREPL over HTTP: How to set this up? Is this somehow connected to drawbridge? I haven't been able to make these work together, although lein repl :connect…
Martin Janiczek
  • 2,996
  • 3
  • 24
  • 32
22
votes
3 answers

Code formatting utility for Clojure in Eclipse

I'm using Counterclockwise but unfortunately they haven't implemented this functionality yet. Do you have any ideas how can I format my Clojure code automatically in the "lispy" way?
Adam Arold
  • 29,285
  • 22
  • 112
  • 207
15
votes
3 answers

Last input in Counterclockwise REPL?

Is it possible to go through a history of what you've typed into the Counterclockwise REPL in Eclipse? Like pressing the up-arrow or ctrl-p or various other things that work in other repls? Thanks! -Philip
Philip
  • 231
  • 1
  • 6
8
votes
1 answer

Invalid anti-forgery token

I'm getting an "Invalid anti-forgery token" when I try using POST method in a Clojure Webapp project I created using Compojure template. I researched, and Ring middle ware creates CSRF (cross site request forms) tokens to authenticated requests…
7
votes
2 answers

How to run/debug compojure web app via counterclockwise (or la clojure)

I'm trying to write my first web app in compojure. I'm using ccw, and I File-New-Project, Clojure Project and use the "compojure" leiningen template. End up with project.clj looking like (defproject asdf "0.1.0-SNAPSHOT" :description "FIXME:…
lobsterism
  • 3,469
  • 2
  • 22
  • 36
5
votes
1 answer

Can I configure CounterClockWise's REPL so that it starts up with source and doc?

I find it weird that CCW doesn't start up with the (source) or the (doc) functions in the namespace. It also doesn't have (e). I can't think of being in a situation where I wouldn't want these in my repl. Is there a way to have these available to…
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
5
votes
1 answer

Output is sent to console instead of REPL when using threads in Eclipse/CounterClockWise

I tried this code from this guide: (defn my-fn [ms] (println "entered my-fn") (Thread/sleep ms) (println "leaving my-fn")) (let [thread (Thread. #(my-fn 1))] (.start thread) (println "started thread") (while (.isAlive thread) (print…
ChocoDeveloper
  • 14,160
  • 26
  • 79
  • 117
5
votes
1 answer

Delete extra brackets in Counterclockwise strict paredit mode

I'm sure the answer to this question is obvious, but I've read the Counterclockwise documentation and searched on the internet and haven't been able to find it. I frequently end up accidentally putting extra brackets, parens, etc while editing…
4
votes
1 answer

running clojure in eclipse (counterclockwise)

I'm learning clojure on eclipse (counterclockwise plugin). When I click "run" in eclipse (as I would do with Java) I get not only the console opened but this "REPL" window. Why is it necessary and what does it do? When I click "run" it takes quite…
Caballero
  • 11,546
  • 22
  • 103
  • 163
4
votes
1 answer

IDE for Clojure - Counterclockwise(Eclipse) vs Emacs. What (if any) features Counterclockwise is missing comparing to Emacs?

I want to know what are limitations of Counterclockwise plugin for Eclipse comparing to Emacs. What Lisp (and Clojure) magic will not be available from Eclipse? -- UPDATE -- I know Emacs will have more features, shourtcuts, various sophisticated key…
SuitUp
  • 3,112
  • 5
  • 28
  • 41
4
votes
2 answers

Call Clojure from Java, they said, it'll be easy, they said

I am a fledgling Clojure programmer experienced wielding straight-up-the-middle Java in eclipse. I am trying to get my Java program to call the simple "hello" function created from the…
Bob Kuhar
  • 10,838
  • 11
  • 62
  • 115
4
votes
2 answers

Counterclockwise and :gen-class

I'm using Eclipse (4.2.0) with Counteclockwise (0.10.1.STABLE001). I have a clojure namespace for which I would like to generate a class: (ns a.b.c (:gen-class :name "a.b.c.Service")) (-method [] ...) There is a defect, but it's marked as…
yakshaver
  • 2,472
  • 1
  • 18
  • 21
4
votes
1 answer

Counterclockwise doesn't use stepping debugger in eclipse?

The Counterclockwise doco contains he following statement: use the out-of-the-box Eclipse debugger possibilities to launch your launch configurations (Debug instead of Run What you can currently do is being able to place breakpoints in clojure code…
hawkeye
  • 34,745
  • 30
  • 150
  • 304
4
votes
1 answer

Looking up symbol documentation in Counterclockwise

In Counterclockwise, if I use CTRL-Space to complete a symbol name, and there are more than one possibility, it gives me a list, and on the right and side of the list is a box with the documentation for each symbol as I scroll through the names. Is…
3
votes
1 answer

Clojure 1.6.0 error: Could not locate clojure/core/logic__init.class

I am using Clojure 1.6.0 and I get this error: CompilerException java.io.FileNotFoundException: Could not locate clojure/core/logic__init.class or clojure/core/logic.clj on classpath: , compiling:(hello\core.clj:8:70)
1
2 3 4 5