This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # aws (10)
- # babashka (4)
- # beginners (103)
- # calva (19)
- # chlorine-clover (2)
- # cider (10)
- # cljs-dev (23)
- # cljsrn (6)
- # clojure (145)
- # clojure-europe (17)
- # clojure-nl (1)
- # clojure-spec (11)
- # clojure-uk (4)
- # clojurescript (64)
- # conjure (11)
- # core-async (19)
- # crux (9)
- # cursive (38)
- # datomic (4)
- # duct (2)
- # fulcro (51)
- # helix (11)
- # joker (1)
- # kaocha (7)
- # leiningen (3)
- # malli (5)
- # meander (3)
- # off-topic (12)
- # pathom (17)
- # pedestal (2)
- # re-frame (27)
- # rum (11)
- # shadow-cljs (77)
- # yada (1)
Hello, I am trying to get started with Calva VS Code plugin + lein re-frame template, but having some trouble 😞
• I run
lein new re-frame reframe-app
• Then "Calva: Start a project REPL and connect (Jack-in)"
• Select "shadow-cljs" and ":app" build
• REPL prompts me whether to connect to :app, node-repl, browser,repl, I select ":app"
• I visit localhost:8080 and I get the default re-frame message. The websocket connection is good
• Run "Calva: Load Current Files and Dependencies"
Evaluating file: filename.cljs
No application has connected to the REPL server. Make sure your JS environment has loaded your compiled ClojureScript code.
No results from file evaluation.
• I get the same error when running "Calva: Evaluate Current Form"
It is not as straight-forward as it should be... But try this:
2. select Leiningen + lein-shadow as the project type
3. select to start build
4. select to launch with No alias
5. select to launch with the
6. wait while things start
7. open http://localhost:8280 in your browser
8. select to connect to the
I tried those steps in 2 environments (one in remote vm via SSH, one local/regular) and still getting the error
I'm using node v14.3.0, npm 6.14.5, openj dk 11.0.7 if that makes any difference
@U0ETXRFEW if there is any wording/explanation we can add to the template to make it easier, please just make a quick PR and we'll get it published straight away. i seems to me that Calva is getting more and more important
@adamhorwitzcorrespond I noticed you mentioned opening the browser app on port 8080. Was that a typo? Otherwise that could be the source off this error message.
Thanks a lot, I might have to take you up on that. I do have an interview in a couple hours (for Clojure lol) but anytime after 3.5 hrs works for me
I have the feeling im overlooking something obvious so after this is sorted out i'll make a write up to help others get up to speed as well
@adamhorwitzcorrespond if you're still awake, I can try help you get started with that project over zoom. I'll be awake for some 20 minutes more or so. 😃
I am new to CLJS in general so I'm not sure if I'm missing something obvious, or if there's more I need to set up on Calva's end
@adamhorwitzcorrespond, it should work, but the process assumes some knowledge about the project setup, which trips people up when they are new to it all and use a template. I try to provide some settings to templates, but this one I have missed. I hope the pointers I gave in the thread above will unblock you. Will go afk now for a while, hopefully someone else here can provide some help should you need it.