Fork me on GitHub
#dirac
<
2018-05-16
>
Karol Wójcik19:05:07

Hi! What if I use linux and there is no chrome canary available?

darwin19:05:43

there is, but maybe it is hard to find

darwin19:05:20

try to install the build from release page under “Linux 64” https://github.com/binaryage/dirac/releases

darwin19:05:20

I’m not familiar with Linux situation, I use a mac

Karol Wójcik19:05:18

Ok I was searching under google-chrome I was not aware of chromium

spinningtopsofdoom19:05:53

Dirac has worked for me on linux from the standard chromium

Karol Wójcik19:05:11

I'm trying to run dirac for almost an hour without success. I've cloned the dirac-sample and ran lein demo and

/chrome --remote-debugging-port=9222 \
>   --no-first-run \
>   --user-data-dir=.test-dirac-chrome-profil
i got this error Dirac Agent is not listening at <ws://localhost:8231> (need help?).

darwin19:05:12

@karol it sounds, like you did not start your nrepl server with dirac agent listening?

Karol Wójcik19:05:22

How can I do this?

darwin19:05:27

do you have lein repl successfully running? as described here? https://github.com/binaryage/dirac-sample

Karol Wójcik19:05:54

I received following error

Error loading dirac.nrepl: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter, compiling:(dirac/nrepl/eval.clj:1:1)
Exception in thread "main" java.lang.RuntimeException: Unable to resolve var: dirac.nrepl/middleware in this context, compiling:(/tmp/form-init2557861734346733083.clj:1:1490)

darwin19:05:37

this sound to me like you don’t have dirac nrepl middleware in the project, but dirac-sample is properly configured, I would guess your leiningen is misconfigured somehow

darwin19:05:02

did you really run it from dirac-sample?

darwin19:05:19

ok, let me try it here on a secondary machine

darwin19:05:10

works for me on a separate (macOS) machine > lein --version Leiningen 2.8.1 on Java 1.8.0_102 Java HotSpot(TM) 64-Bit Server VM

Karol Wójcik19:05:46

➜ lein --version Leiningen 2.8.1 on Java 10.0.1 OpenJDK 64-Bit Server VM

darwin19:05:23

trying this all with Java 10 might be a great adventure 🙂

4
darwin19:05:36

never tested it there

darwin19:05:25

actually I never tested it with Java greater than 8

Karol Wójcik19:05:29

You're brilliant thank you yes now it works perfectly. Thank you :3

darwin19:05:02

I would recommend you to first finetune your Dirac setup with Java 8 and then maybe experiment with other Java versions, it is hard enough 🙂 don’t make it worse for yourself 🙂

Karol Wójcik19:05:03

Yes I did change my java version to 8. After a while it stopped working. Have you ever had that bug?

Connected to nREPL server at .
Agent is accepting connections at .
Tried to use insecure HTTP repository without TLS.
This is almost certainly a mistake; however in rare cases where it's
intentional please see `lein help faq` for details.

Karol Wójcik21:05:55

Ok it seems that it's problem with the new version of clojurescript

Karol Wójcik21:05:29

getting back to 1.9.946 and works perfect

4