Fork me on GitHub
#clojure
<
2019-07-28
>
tianshu05:07:25

How can I add a custom handler for a specific Java class like java.time.LocalDateTime

tianshu05:07:59

looks like a good article

steveh201814:07:06

Is there a specific channel where those interested in the clojure-clr can ask questions? The Google Group is not very active. I'd like to be able to rebuild from source (on Windows 10), but obviously, cloning the git repository, loading up the project solution in Visual Studio 2019 Community, selecting Rebuild, is not the way. Thanks.

fabrao15:07:41

Hello all. Anyone had this kind of problem? I´m using emacs with clojure.

[nREPL] Starting server via "c:/ProgramData/chocolatey/bin/lein.bat" update-in :dependencies conj ^"[org.clojure/tools.nrepl \^"0.2.13\^" :exclusions [org.clojure/clojure]]^" -- update-in :plugins conj ^"[refactor-nrepl \^"2.4.0-SNAPSHOT\^"]^" -- update-in :plugins conj ^"[cider/cider-nrepl \^"0.18.0-SNAPSHOT\^"]^" -- repl :headless :host ::...
error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: clojure.lang.Compiler$CompilerException: Syntax error compiling var at (cider/nrepl/middleware/pprint.clj:73:3).

#:clojure.error{:phase :compile-syntax-check, :line 73, :column 3, :source "cider/nrepl/middleware/pprint.clj", :symbol var}

lilactown15:07:30

is this after running the cider-jack-in command?

fabrao15:07:37

Java version?

fabrao15:07:10

this happen after windows 8.1 to 10

lilactown16:07:03

try upgrading CIDER

lilactown16:07:19

it is using an old version of tools.nrepl / cider-nrepl

schmidt7320:07:31

I'm having trouble importing a java dependency into my leiningen project.

schmidt7320:07:10

I get class not found when running (import java_cup.runtime.scanner) despite having java_cup on my classpath.

Andrew20:07:15

(import 'java_cup.runtime.Scanner)

andy.fingerhut20:07:42

FYI, Clojure import is only needed if you want to refer to a class by something other than its full name. But also what @Andrew said as far as syntax.

schmidt7320:07:10

@clojurians971 this doesn't work either 😞

schmidt7320:07:17

I think there must be something wrong with the classpath

schmidt7320:07:26

C:\Users\schmidt73\.m2\repository\java_cup\java_cup\0.9e\java_cup-0.9e.jar

Andrew20:07:26

I’ve just edited to capitalise the S

schmidt7320:07:33

but it says it is on there

Andrew20:07:44

What are you using as a lein dependency?

schmidt7320:07:08

I think I'm using the wrong dependency

schmidt7320:07:16

[java_cup/java_cup "0.9e"]]

schmidt7320:07:45

the project is here

schmidt7320:07:00

but idk how to incorporate that into lein

Andrew20:07:47

From what I can see from the docs the Scanner interface was added in v0.10j: http://www2.cs.tum.edu/projects/cup/docs.php (see section 5.1).

Andrew20:07:40

I don’t know if that’s been released though. I can’t see anything obvious on http://search.maven.org

schmidt7321:07:00

Yes @clojurians971 it seems like there isn't anything on maven.

schmidt7321:07:06

Fixed my issue by adding jars directly into project and loading with resource-paths