This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-05
Channels
- # announcements (3)
- # babashka (135)
- # beginners (82)
- # calva (55)
- # chlorine-clover (23)
- # cider (13)
- # clara (1)
- # clj-kondo (39)
- # cljs-dev (1)
- # cljsrn (2)
- # clojure (96)
- # clojure-france (3)
- # clojure-uk (24)
- # clojuredesign-podcast (1)
- # clojurescript (56)
- # conjure (73)
- # core-typed (1)
- # cursive (1)
- # datomic (10)
- # fulcro (57)
- # joker (4)
- # juxt (1)
- # malli (20)
- # meander (2)
- # off-topic (54)
- # re-frame (4)
- # reagent (3)
- # shadow-cljs (11)
- # spacemacs (6)
- # sql (26)
- # tools-deps (7)
What I was looking for is support for starting a backend and frontend REPL at the same time. Is that possible?
It might be what that provides... I don't recall atm. If it doesn't do what you want and you are fine using Leiningen, then you can use the lein-shadow
plugin.
nm, lol, you were the one he was talking to 🙂 https://clojurians-log.clojureverse.org/shadow-cljs/2020-03-15
It might be that it is not really working.... Generally what I recommend is to use two separate windows. https://calva.readthedocs.io/en/dev/workspace-layouts.html#one-folder-two-windows
There is a mention about fullstack w/ shadow here as well: https://calva.readthedocs.io/en/dev/jack-in-guide.html#about-full-stack-applications
Yeah, Lein has many cool things. Current project I started using clj-new, so that's deps.edn. Will try lein some other time.
Seems something is wrong with my VSCode terminal setup. Will fix it and try Clojure CLI + Shadow again to see what it does.
It probably won't work as you'd want it (with the cli + shadow Jack-in). I think that option is ill thought trough.
I'm trying to set up Calva on Gitpod/Eclipse Theia and I get this message Aborting Jack-in, since no project type was selected.
What does this mean?
@markaddleman give us some more details and steps on what you do to reach that message.
(sorry, my post was a bit of a useless !)
I get the message when trying to jack in
I should clarify a couple of things:
First, this is Eclipse Theia environment and not VSCode so I only barely expect Calva to work (would love it if it did)
Also Gitpod is a hosted IDE and I'm not entirely sure I'm setting up the hosted Docker image correctly
So, mainly I'm trying to understand the conditions which would cause Calva to generate that message so I can debug
ok. thanks
Yeah, it would be awesome if Calva would work.
I don't even understand if this is running in my browser, on my machine somehow, or in the cloud. 😃 Java will need to be there and also lein or clojure or shadow. And I need to figure out how to run Calva in dev mode there.
This page was helpful setting up a proper dockerfile: https://www.gitpod.io/docs/config-docker/
If it's helpful, my .gitpod.Dockerfile
is
FROM gitpod/workspace-full
USER root
USER gitpod
RUN echo "`date`" >> /tmp/test.log
# Install custom tools, runtime, etc. using apt-get
# For example, the command below would install "bastet" - a command line tetris clone:
#
# RUN sudo apt-get -q update && # sudo apt-get install -yq bastet && # sudo rm -rf /var/lib/apt/lists/*
#
# More information:
RUN brew install clojure/tools/clojure
RUN brew install leiningen
RUN yarn add --dev shadow-cljs
RUN yarn global add shadow-cljs
RUN echo "`date`" >> /tmp/test.log
The only issue I have is shadow-cljs musts be executed by npx shadow-cljs
. Not sure why that is
Not sure it's a problem. I don't know how calva invokes shadow
Nope 🙂
No, I have not. I'll give it a try and let you know
It doesn't work either. Lol. https://gitpod.io/#https://github.com/PEZ/pirate-lang
I'll try see how this can be debugged. Very similar errors from jack-in and connect. Hopefully something minor.
You can start the repl from a terminal with
clojure -Sdeps '{:deps {nrepl {:mvn/version "0.6.0"} cider/cider-nrepl {:mvn/version "0.23.0"}}}' -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
But not connect... yet... we'll figure it out! I am super grateful for you bringing this to my attention!
(I've added the start-repl command to the gitpud now. But it doesn't matter much since connect doesn't work. lol)
Thanks for looking at this.
Like I said, Theia / Gitpod looks super interesting and I'd love to have a first-class Clojure IDE on the web
fyi - I thought it might be some kind of networking issue but it's not. I can start an nrepl server and telnet to the port
Yeah, it seems to be in the Calva code things go wrong. (Or some incompatibility in Theia). I've tried to summarize where we're at here: https://github.com/PEZ/pirate-lang