Comments (8)
It looks like the plugin does not know how to handle a vector of middleware symbols, which is what cider.nrepl/cider-middleware
ends up being.
from clojure-maven-plugin.
Ok yes closing.
from clojure-maven-plugin.
@arichiardi π
Yes, the README needs some love, for sure. I could do a PR after the weekend.
@talios In my opinion, not a problem, a README update is enough. Kind of interesting to contemplate the fact of authoring a wrapper to the Clojure compiler but then not using it much. Life is unpredictable, isn't it?! At any rate, thank you for your work, it's awesome. I have and still am benefiting from your efforts. π
from clojure-maven-plugin.
I was wondering: have you tried configuring the cider handler instead?
From the Cider manual:
(ns my-app
(:require [nrepl.server :as nrepl-server]
[cider.nrepl :refer (cider-nrepl-handler)]))
(defn -main
[]
(nrepl-server/start-server :port 7888 :handler cider-nrepl-handler))
I suppose that translates to something like that:
<build>
<plugins>
<plugin>
<groupId>com.theoryinpractise</groupId>
<artifactId>clojure-maven-plugin</artifactId>
<version>1.8.4</version>
<extensions>true</extensions>
<configuration>
<nreplHandler>
cider.nrepl/cider-nrepl-handler
</nreplHandler>
</configuration>
</plugin>
</plugins>
</build>
from clojure-maven-plugin.
Can we close this? I think the above is the recommended way forward with regards to Cider.
from clojure-maven-plugin.
Thanks, I feel like I should explain just a little bit more:
cider.nrepl/cider-middleware
itself is not middleware. It is a vector that contains all Cider's middleware. It is a convenience used by Leiningen and Boot because it facilitates end-user configuration. In our case, we configure nREPL with the cider handler, which handles that for us:
(def cider-nrepl-handler
"CIDER's nREPL handler."
(apply nrepl-server/default-handler (map resolve-or-fail cider-middleware)))
Sorry if I rushed things a little bit. Maybe I shouldn't have.
from clojure-maven-plugin.
@danielsz so is this actually a problem? Or maybe something just needed a README update? ( I don't use nrepl or cider, or - actually actively use clojure beyond some libs our other teams use ).
from clojure-maven-plugin.
No problem @danielsz! You did not rush it π
For sure it is something we can add to the README, because it kind of gives different directions compared to what the current cider
manual gives. It is also a newer addition to the cider.nrepl
namespace and indeed quite convenient πΈ
from clojure-maven-plugin.
Related Issues (20)
- Add support for direct linking ( 1.8 clojure required )
- 1.8.1 is not in Maven Central HOT 3
- Plugin picks up all files in the source/test folders
- Cannot build the plugin
- Transpile .cljc files to .clj HOT 1
- AOT compilation order is not predictable HOT 1
- Not able to generate test output with junit xml format
- compiler mojo does not respect JAVA_HOME when searching for executable HOT 3
- what does the `it` directory do? HOT 2
- Support nrepl/nrepl HOT 12
- nREPL support , missing edge case HOT 1
- NamespaceDiscovery.findNamespaceInFile String index out of range HOT 1
- Incorrect test summary with clojure >= 1.7.0-alpha6
- Request for a sample pom.xml that shows how to use this plugin with SpringBoot HOT 3
- Is it possible to run a single Clojure test namespace?
- All dependencies get packaged into jar HOT 8
- Maven seems to compile with wrong version of Clojure
- Plugin Not Running When Java Test Fails HOT 5
- ClojureScript tests? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clojure-maven-plugin.