This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-25
Channels
- # announcements (5)
- # babashka (23)
- # beginners (70)
- # cider (24)
- # clj-kondo (14)
- # cljsrn (2)
- # clojars (6)
- # clojure (195)
- # clojure-australia (1)
- # clojure-dev (2)
- # clojure-europe (27)
- # clojure-france (1)
- # clojure-nl (4)
- # clojure-norway (2)
- # clojure-spec (2)
- # clojure-uk (12)
- # clojurescript (3)
- # clojurewerkz (1)
- # core-async (21)
- # cursive (9)
- # datomic (37)
- # duct (3)
- # emacs (16)
- # events (4)
- # fulcro (34)
- # graalvm (12)
- # javascript (3)
- # jobs (4)
- # malli (1)
- # meander (3)
- # nrepl (1)
- # off-topic (27)
- # pathom (16)
- # re-frame (17)
- # reagent (19)
- # rewrite-clj (18)
- # sci (47)
- # shadow-cljs (179)
- # spacemacs (18)
- # sql (52)
- # tools-deps (80)
- # vim (27)
- # vrac (1)
- # xtdb (9)
Hello! Has anyone here tried setting up shadow-cljs
with vim-iced
?
I followed the instructions here at https://liquidz.github.io/vim-iced/#clojurescript_shadow_cljs
the REPL started up in the terminal and vim seems to connect to it fine.
When I run the command IcedStartCljsRepl shadow-cljs {YOUR-BUILD-ID}
as mentioned in the doc, I get a message saying Exited CLJS session. You are now in CLJ again
Then when i try to eval something it says No available JS runtime.
Im a js ecosystem noob here and im kinda lost as to where to debug this 😞 any pointers appreciated!
@U7ERLH6JX What is your build target?
https://shadow-cljs.github.io/docs/UsersGuide.html#_build_target
If :browser
, you need to access HTTP server launched by shadow-cljs before executing :IcedStartCljsRepl
.
BTW, Exited CLJS session. You are now in CLJ again
should not be a vim-iced's message ...
Ah, I could reproduce Exited CLJS session. You are now in CLJ again
message, but I also confirm to work correctly.
$ lein new shadow-cljs your-project +reagent
$ cd your-project
## modify :dependencies and :nrepl setting
$ vim shadow-cljs.edn
$ npm install
$ npx shadow-cljs watch app
## you need to access the following URL
##
$ vim src/your_project/core.cljs
# execute :IcedConnect
# execute :IcedStartCljsRepl shadow-cljs app
I'll look into the Exited CLJS session. You are now in CLJ again
messages tomorrow.Thanks a lot @liquidz.uo I missed the connect broweser step and it does work indeed 😄 😄 The exited cljs thing comes but works!
> I'll look into the Exited CLJS session. You are now in CLJ again messages tomorrow.
@U7ERLH6JX I have a fix in the dev
branch
@chase-lambert @dominicm @noisesmith Re q
and <C-c>
doing nothing in pager mode: I happened upon a reproducible example: :lua print(vim.inspect(vim))
. <C-d>
displays menu (`-- More -- SPACE/d/j: screen/page/line down, b/u/k: up, q: quit`), but q
just scrolls down a page. Weird.
@clojurians-slack100 interesting. I guess this should be reported upstream
FWIW neovim handles that just fine (yet another reason to switch!)
in that case it may be version related?
:version
NVIM v0.4.3
Build type: Release
LuaJIT 2.0.5
i'm on ubuntu 16.04 and i use the neovim unstable PPA. i recommend it, i haven't noticed hardly any breakage. it's pretty darn stable as far as unstable branches of development go 🙂
i'm not sure what the equivalent is if you're on macOS or something else besides debian/ubuntu
there might be an unstable cask for homebrew (I use the normal homebrew neovim, and am up to date)
% brew upgrade neovim
Updating Homebrew...
Warning: neovim 0.4.3 already installed
for just "check out source and make install" the upgrade path is to pull from upstream and make install again
maybe if you are lucky there was an "uninstall" target in case the old version had resources the new one doesn't use...
Just pushed an update to vim-jack-in that allows for passing init-opts. I'm using it to monkeypatch functions in nrepl, and also to load @gfredericks' dot-slash-2 with some custom utilities. Curious to know if anyone else has an init.clj they use?