Fork me on GitHub
#cursive
<
2017-02-13
>
grav08:02:09

I get this one Cannot init ReplState component state: encoded string too long: 97607 bytes

grav08:02:51

when starting a repl. Only hit in Google points to an old conversation from this channel, which doesn’t seem to have a solution: https://clojurians-log.clojureverse.org/cursive/2016-12-09.html

cfleming08:02:34

@grav Yes, the solution is in there: If you delete <project>/.idea/replstate.xml, you’ll lose your REPL history but it should fix the problem.

cfleming08:02:42

Seems like it fixed it for him.

grav08:02:28

Thanks! I’ll report if it doesn’t work 😉

grav08:02:35

Seems it got fixed by itself, somehow (I restarted IDEA at some point). This is my current replstate.xml:

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ReplState" timestamp="1486975892603">{:repl-history {:ide [], :local [], :remote []}}</component>
</project>
and the error is gone.

maksimrv16:02:28

@cfleming Thanks, But my question is sort of a newbie. I don't understand how to create a run configuration for Clojure script repl(brepl). I use mies[1] as template. I select Clojure REPL -> 'Local repl' -> 'Run nRepl with leiningen' -> Run. It starts repl with badge clj, so when I try to send code from Clojure script file to the repl it shows the error message, I'm smart and I switch clj to cljs (I understand that this switch does not start clojurescript repl but it allows me send code to the repl). But when I try to eval (.log js/console ) I see error ‘no such namespace js'. I have red about integration Cursive with brepl and there steps like: 1. Run brepl from terminal 2. Open browser on specific url 3. Connect to repl using 'Remote repl' 4. Eval (run) and (browser-repl) So is it possible run brepl without terminal and browser steps? Like it did for Clojure repl, no extra steps 🙂 Thanks [1] - https://github.com/swannodette/mies

Paco19:02:58

I had to re-image my computer. I reinstalled Intellij after the computer was re-imaged and installed cursive. After restoring settings.jar I cant do anything because I get this error from cursive all the time. Error running Unnamed: '1.8' is bad configured

Paco19:02:10

anyone else have a problem like this?

favila19:02:50

missing jdk setting?

favila19:02:17

project structure -> SDKs

favila19:02:32

make sure you have a '1.8' jdk entry

favila19:02:47

and that its paths look reasonable

Paco19:02:53

hmm I thought I configured it the first time let me check

Paco19:02:41

ugh you are right

Paco19:02:57

the project had outdated jdk stuff

Paco19:02:06

I thought that did not persist

favila19:02:05

AFAIK the sdk config is global, but specific to an install

favila19:02:34

but the project files contain a reference to an sdk name, so they know which jdk to use to run stuff

cfleming20:02:53

Yeah, that’s right - if you check a project out from source control or whatever, you’ll need to create an SDK with the same name as you used previously.

cfleming20:02:49

@maksimrv So right now, there’s no built in one-step CLJS REPL, but that’s one of the next things I’m going to work on.