Fork me on GitHub
#calva
<
2020-06-16
>
fadrian16:06:50

I've installed Calva to VSCode. I've connected to my project using jack-in. However, when I try to evaluate a form inline, the keyboard shortcuts don't seem to do anything. For example, when I type Ctrl-Alt-C e, the system absorbs the e, but seems to do nothing.

fadrian16:06:37

Any ideas on how to debug this?

pez17:06:16

Does the command work if you do it from the command palette?

fadrian19:06:37

It doesn't appear to.

fadrian19:06:50

Although the commands themselves are showing up in the command palette.

fadrian19:06:11

The s-exp appears to be highlighted in a very dim background shading.

fadrian20:06:33

I did notice that the terminal output had the following warnings:

fadrian20:06:37

Warning: cider-nrepl requires Leiningen 2.8.3 or greater. Warning: cider-nrepl will not be included in your project.

fadrian20:06:11

I've upgraded lein to V2.9.3, but I still get these errors when I jack in.

fadrian20:06:58

The cider repl seems to start, and seems to take commands through the command line, but will not recognize key bindings.

pez20:06:20

Can you describe, step by step, how you jack in and what messages you get in the jack in terminal and in Calva says?

fadrian20:06:36

I start VS code. I open the Clojurescript project and open the main source file - core.cljs. I hit Ctrl-Alt-c Ctrl-Alt-j to start the jack-in process. I get the following in the terminal pane:

fadrian20:06:38

Warning: cider-nrepl requires Leiningen 2.8.3 or greater. Warning: cider-nrepl will not be included in your project. Warning: cider-nrepl requires Leiningen 2.8.3 or greater. Warning: cider-nrepl will not be included in your project. Warning: cider-nrepl requires Leiningen 2.8.3 or greater. Warning: cider-nrepl will not be included in your project. Warning: cider-nrepl requires Leiningen 2.8.3 or greater. Warning: cider-nrepl will not be included in your project. Warning: cider-nrepl requires Leiningen 2.8.3 or greater. Warning: cider-nrepl will not be included in your project. nREPL server started on port 56587 on host 127.0.0.1 - <nrepl://127.0.0.1:56587>

fadrian20:06:07

In the output pane I get:

fadrian20:06:23

Calva activated. Happy Clojure(Script) coding! ❤️ If you like Calva, please consider how you can contribute: https://github.com/BetterThanTomorrow/calva/wiki/How-to-Contribute Please check these resources out: * Calva Documentation: https://calva.io/#calva at the Clojurians Slack: https://clojurians.slack.com/messages/calva/ * Bug reports: https://github.com/BetterThanTomorrow/calva/issues -- Start the REPL with the command Start Project REPL and connect (aka Jack-in). Default keybinding for Jack-in: ctrl+alt+c ctrl+alt+j Jacking in... Hooking up nREPL sessions... Connected session: clj Debugger initialized Creating cljs repl session... Connecting cljs repl: Leiningen + Figwheel Main... The Calva Connection Log might have more connection progress information. There are no figwheel build files (.cljs.edn) in the project directory. Connection to Figwheel Main aborted. Error while connecting cljs REPL: Aborted Jack-in done.

fadrian20:06:23

I can type into the REPL prompt and code appears to run.

fadrian20:06:22

But none of the command keys seem to work.

fadrian20:06:41

Of course when I run lein --version, it tells me 2.9.3.