Pigpen nrepl task doesn't work

13 views
Skip to first unread message

Max Neverov

unread,
Jun 6, 2017, 5:06:40 AM6/6/17
to PigPen Support
Hi,

I have a problem with building Pigpen. After I built the project I want to run nrepl:
> gradlew.bat :pipgen-rx:nrepl

I've got the following error
Exception in thread "main" clojure.lang.LispReader$ReaderException: java.lang.RuntimeException: EOF while reading, starting at line 1
        at clojure.lang.LispReader.read(LispReader.java:218)
        at clojure.core$read.invoke(core.clj:3477)
        at clojure.core$read.invoke(core.clj:3475)
        at clojure.main$eval_opt$fn__6639.invoke(main.clj:286)
        at clojure.main$eval_opt.invoke(main.clj:286)
        at clojure.main$initialize.invoke(main.clj:307)
        at clojure.main$script_opt.invoke(main.clj:333)
        at clojure.main$main.doInvoke(main.clj:420)
        at clojure.lang.RestFn.invoke(RestFn.java:930)
        at clojure.lang.Var.invoke(Var.java:469)
        at clojure.lang.AFn.applyToHelper(AFn.java:228)
        at clojure.lang.Var.applyTo(Var.java:700)
        at clojure.main.main(main.java:37)
Caused by: java.lang.RuntimeException: EOF while reading, starting at line 1
        at clojure.lang.Util.runtimeException(Util.java:221)
        at clojure.lang.LispReader.readDelimitedList(LispReader.java:1129)
        at clojure.lang.LispReader$ListReader.invoke(LispReader.java:972)
        at clojure.lang.LispReader.read(LispReader.java:183)
        ... 12 more         

Is it possible to run nrepl as gradle task?

Matt Bossenbroek

unread,
Jun 6, 2017, 11:14:19 PM6/6/17
to Max Neverov, PigPen Support
It should work - do you have any changes on the branch?

This is the full output on my machine. Could you send the same for yours?

$ ./gradlew pigpen-rx:nrepl
Inferred version: 0.3.4-SNAPSHOT
Inferred version: 0.3.4-SNAPSHOT
Inferred version: 0.3.4-SNAPSHOT
Inferred version: 0.3.4-SNAPSHOT
Inferred version: 0.3.4-SNAPSHOT
Inferred version: 0.3.4-SNAPSHOT
Inferred version: 0.3.4-SNAPSHOT
Inferred version: 0.3.4-SNAPSHOT
Inferred version: 0.3.4-SNAPSHOT
Inferred version: 0.3.4-SNAPSHOT
Inferred version: 0.3.4-SNAPSHOT
Publication mavenNebula not found in project :.
[buildinfo] Properties file path was not found! (Relevant only for builds running on a CI Server)
Publication named 'mavenNebula' does not exist for project ':' in task ':artifactoryPublish'.
None of the specified publications matched for project ':' - nothing to publish.
:pigpen:compileJava UP-TO-DATE
:pigpen:compileClojure UP-TO-DATE
:pigpen:processResources UP-TO-DATE
:pigpen:classes UP-TO-DATE
:pigpen:writeManifestProperties UP-TO-DATE
:pigpen:jar UP-TO-DATE
:pigpen:compileTestJava UP-TO-DATE
:pigpen:processTestResources UP-TO-DATE
:pigpen:testClasses UP-TO-DATE
:pigpen:jarTest UP-TO-DATE
:pigpen-rx:compileJava UP-TO-DATE
:pigpen-rx:compileClojure
:pigpen-rx:processResources UP-TO-DATE
:pigpen-rx:classes
:pigpen-rx:compileTestJava UP-TO-DATE
:pigpen-rx:processTestResources UP-TO-DATE
:pigpen-rx:testClasses UP-TO-DATE
:pigpen-rx:nrepl
Starting nrepl server on port 9999
#'gradle-nrepl/server
> Building 94% > :pigpen-rx:nrepl

-Matt

--
You received this message because you are subscribed to the Google Groups "PigPen Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pigpen-suppor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Max Neverov

unread,
Jun 7, 2017, 4:25:09 AM6/7/17
to PigPen Support, never...@gmail.com
Hi, Matt,

It works fine on OSx, so I believe that the problem is windows. I'm good with it.
Thanks for your response anyway!

Matt Bossenbroek

unread,
Jun 7, 2017, 11:16:14 AM6/7/17
to Max Neverov, PigPen Support, sgh...@netflix.com
+Steve

Steve, are there be any differences in the gradlew script that would cause the nREPL task not to work on windows? Any idea what would cause that?

Thanks,
Matt

Steve Hill

unread,
Jun 7, 2017, 11:04:46 PM6/7/17
to Matt Bossenbroek, Max Neverov, PigPen Support
It looks like the task is being invoked OK, but fails on the main method. I had a quick look at the code and didn't notice anything obvious -- possibly line endings? I also searched for windows issues on the plugin project and nREPL's JIRA, but didn't get any results.

Sounds like there is already a workaround, but cygwin is another option for windows users that may work.

Best,
Steve
Reply all
Reply to author
Forward
0 new messages