dirac

Dirac v1.7.2 is out: https://github.com/binaryage/dirac/releases/tag/v1.7.2
Karol Wójcik 2018-05-16T19:09:07.000077Z

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

2018-05-16T19:09:43.000597Z

there is, but maybe it is hard to find

2018-05-16T19:10:20.000672Z

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

2018-05-16T19:10:58.000552Z

maybe look here: https://www.chromium.org/getting-involved/download-chromium

2018-05-16T19:11:20.000125Z

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

Karol Wójcik 2018-05-16T19:15:18.000593Z

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

2018-05-16T19:18:53.000169Z

Dirac has worked for me on linux from the standard chromium

Karol Wójcik 2018-05-16T19:19:11.000395Z

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?).

2018-05-16T19:20:12.000120Z

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

Karol Wójcik 2018-05-16T19:21:22.000225Z

How can I do this?

2018-05-16T19:21:27.000171Z

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

Karol Wójcik 2018-05-16T19:23:54.000492Z

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)

2018-05-16T19:25:37.000392Z

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

2018-05-16T19:26:02.000592Z

did you really run it from dirac-sample?

Karol Wójcik 2018-05-16T19:26:43.000545Z

@kwcharllie379 uploaded a file: https://clojurians.slack.com/files/U9ARBCP5K/FAS4QSKAB/image.png

2018-05-16T19:27:19.000765Z

ok, let me try it here on a secondary machine

2018-05-16T19:29:10.000028Z

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ójcik 2018-05-16T19:29:46.000653Z

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

2018-05-16T19:30:23.000070Z

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

1
2018-05-16T19:30:36.000239Z

never tested it there

2018-05-16T19:35:10.000096Z

this could be a workaround: https://github.com/bhauman/lein-figwheel/issues/612#issuecomment-341022160

2018-05-16T19:35:25.000504Z

actually I never tested it with Java greater than 8

Karol Wójcik 2018-05-16T19:36:29.000348Z

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

2018-05-16T19:38:02.000091Z

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ójcik 2018-05-16T19:44:03.000220Z

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 <nrepl://localhost:8230>.
Agent is accepting connections at <ws://localhost:8231>.
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ójcik 2018-05-16T21:08:55.000380Z

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

Karol Wójcik 2018-05-16T21:09:29.000002Z

getting back to 1.9.946 and works perfect

✅ 1