Fork me on GitHub
#calva
<
2019-04-11
>
pez10:04:38

@lspector, I can't reproduce the problem with Calva 1.3.65. The error message you get indicates that you don't have a proper repl connection. Can you tell me the steps you take to start the repl and connect calva?

lspector21:04:56

@pez Here are the steps that produce the error: - Download https://github.com/PEZ/quil-cljs-calva-template - In a MacOS terminal, cd into the template directory and run lein repl - When that finishes, launch VSCode, open the template project, and open core.cljs - Execute Calva: Connect and hit return in the dialog that asks for the port, which was autofilled correctly to match the port from the message printed in the MacOS terminal (for example, localhost:65254). It appears to connect. - Execute Calva: Evaluate current file, and get a popup at the bottom of VSCode saying "Cannot read property 'loadFile' of null" - Add an expression to the file and try Calva: Evaluate current top level form and nothing appears in Calva says. Going through the same steps but in a project created with lein new foo works fine.

lspector22:04:51

It does look like I'm running Calva 1.3.65, in VSCode 1.33.1, in MacOS 10.14.3

lspector22:04:50

Also running the Calva Clojure Formatter and Clojure Warrior extensions.

adam23:04:47

How do I switch between Clojure and ClojureScript REPL?

lilactown23:04:34

I know in shadow-cljs, you can type :cljs/quit in the CLJS REPL and it will drop you back to the CLJ REPL

lilactown23:04:55

however, that might not be what you want. you might need two REPLs if you want to have them open at the same time