Fork me on GitHub
#calva
<
2019-07-03
>
sasho.popov12:07:35

Hey all. Just dropping by to say a big thank you to Peter for working on Calva. I’m new to Clojure and Calva has helped me tremendously in that I didn’t have to learn to work with a new editor (the switch from Sublime Text to VS Code is pretty seamless, compared to Vim/Emacs) on top of a totally new language and programming paradigm. Peter, your work is really meaningful.

pez14:07:42

Oh, wonderful, @sasho.popov. You have just made my day!

pez14:07:25

A testimonial like that would be super great to have as a review on the marketplace. Just say'n 😄 ❤️ https://marketplace.visualstudio.com/items?itemName=betterthantomorrow.calva&amp;ssr=false#review-details

dennisa20:07:40

Do i need to specify special :build in shadow-cljs' shadow-cljs.edn?

dennisa20:07:13

After jack-in Calva gives me options to select :app, node-repl, and browser-repl. If I choose :app two calva repl windows appear, both of them not connected to the project, ie i cannot eval forms.

dennisa20:07:44

sample .edn

{:source-paths ["src"]
 :dependencies [[cider/cider-nrepl "0.21.1"]]
 :builds {:app {:target :node-library
                :exports {:handler server.main/handler}
                :output-dir "target"
                :output-to "target/main.js"}}}

pez21:07:45

Not even the clj repl can eval forms?

dennisa21:07:53

not from the code

dennisa21:07:02

only if i type them in

dennisa21:07:31

the cljs repl:

REPL connected.
undefined=> 
undefined=> 
*ns*
No application has connected to the REPL server. Make sure your JS environment has loaded your compiled ClojureScript code.

dennisa21:07:01

it cljs wont' allow typing

pez21:07:13

Is the app running?

pez21:07:09

What if you restart it?

dennisa21:07:35

same true though if i start app manually (shawdow watch app) and try to connect to the nrepl via Calva connect, like in the good old days:)

pez21:07:17

What version of shadow is it?

dennisa21:07:23

cli version: 2.8.39 node: v12.3.1 ?

dennisa21:07:35

=== Version jar: 2.8.39 cli: 2.8.39 deps: 1.3.1 config-version: 2.8.39

pez21:07:27

I sometimes find it a bit tricky to connect the shadow repl to the app. But i usually get it going... Can you pack a small project for me that I can test with? (Tomorrow, late here).

pez21:07:56

2.8.39 should be fine.

pez21:07:48

Does it work selecting node-repl?

dennisa21:07:48

REPL connected.
server.main=> 
(ns server.main
  (:require ["aws-sdk" :as AWS]
            [server.atomic-inc :as ai]
            [server.create-item :as ci]
            [server.create-table :as ct]
            [server.delete-item :as di]
            [server.delete-table :as dt]
            [server.read-item :as ri]
            [server.update-item :as ui]
            [server.update-item-conditionally :as uic]
            ))
server.main
server.main=> 
*ns*
nil

dennisa21:07:16

while expect ns to be serve.main. perhaps this is cljs behaviour

pez21:07:20

I'm not sure what we can expect from the node-repl. I wanted to know more because it might help pinpoint the problem.