liquidz / vim-iced

Clojure Interactive Development Environment for Vim8/Neovim
https://liquidz.github.io/vim-iced/
MIT License
527 stars 35 forks source link

Vital error with multiple shadow-cljs builds #472

Closed kevolson closed 9 months ago

kevolson commented 9 months ago

I'm getting this error when I have more than 1 "watched" build in shadow-cljs:

vital: Async.Promise: Timeout

On line 46 of autoload/iced/nrepl/cljs/shadow_cljs.vim.

I'm using vim 9.0.2136 and the latest vim-iced. The watched shadow-cljs builds show up fine in the selector but I don't seem to be able to choose one (i.e. even the up/down keys won't work) until after the timeout (and by then it is too late?).

I've tried both CtrlP and fzf as selectors.

I've also tried just doing something like:

:IcedStartCljsRepl shadow-cljs web

But either way I end up in a state where I'll see "Session error. You should be in cljs session" when I go to eval stuff.

Any thoughts? Thanks!

liquidz commented 9 months ago

@kevolson Sorry for late reply. I'll have a look.

liquidz commented 9 months ago

@kevolson I could reproduce the problem with vim 9.1.140. Thank you for your reporting!

liquidz commented 9 months ago

@kevolson I fixed this problem. Could you try dev branch?

kevolson commented 9 months ago

Seems to work great, thanks @liquidz!

liquidz commented 9 months ago

@kevolson Thanks for your confirmation! Just released :)