This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-20
Channels
- # aleph (11)
- # announcements (3)
- # babashka (35)
- # babashka-sci-dev (28)
- # beginners (29)
- # calva (51)
- # cider (33)
- # clj-kondo (26)
- # clj-on-windows (1)
- # clojure (40)
- # clojure-austin (1)
- # clojure-europe (47)
- # clojure-nl (9)
- # clojure-norway (7)
- # clojure-uk (5)
- # clojurescript (69)
- # conjure (30)
- # cursive (7)
- # data-science (9)
- # datomic (2)
- # etaoin (10)
- # events (2)
- # fulcro (1)
- # graalvm (1)
- # gratitude (6)
- # helix (16)
- # honeysql (20)
- # hyperfiddle (14)
- # inf-clojure (2)
- # jobs (1)
- # jobs-discuss (12)
- # kaocha (9)
- # leiningen (2)
- # lsp (4)
- # malli (8)
- # music (9)
- # off-topic (12)
- # pathom (10)
- # portal (14)
- # practicalli (15)
- # re-frame (27)
- # reitit (7)
- # remote-jobs (4)
- # sci (37)
- # shadow-cljs (16)
- # sql (8)
- # tools-deps (6)
- # vim (6)
- # xtdb (21)
Hi, since a while ago I experience a problem with the HUD. I get a Lua exception
E5108: Error executing lua ...e/fredrik/.cache/vim/plugged/conjure/lua/conjure/log.lua:174: Expected Lua number
stack traceback:
[C]: in function 'win_is_valid'
...e/fredrik/.cache/vim/plugged/conjure/lua/conjure/log.lua:174: in function 'display_hud'
...e/fredrik/.cache/vim/plugged/conjure/lua/conjure/log.lua:334: in function 'display_request'
.../fredrik/.cache/vim/plugged/conjure/lua/conjure/eval.lua:120: in function <.../fredrik/.cache/vim/plugged/conjure/lua/conjure/eval.lua:115>
.../fredrik/.cache/vim/plugged/conjure/lua/conjure/eval.lua:143: in function 'eval_str'
.../fredrik/.cache/vim/plugged/conjure/lua/conjure/eval.lua:176: in function 'current-form'
[string ":lua"]:1: in main chunk
I have tried to figure out what the problem is. But I really don't have any experience of Lua or Vim plugin programming.
Is there anyone who could tell me what I should do to get the HUD working again?Could you try deleting the conjure install and redownloading it. Just in case it's not updating properly?
NVIM v0.7.0 Build type: Release LuaJIT 2.1.0-beta3
ill try and delete Conjure installation
i dont use impatient
I tried to delete my plugins and reinstalled them
still the same error
Hmm. This was a bug I fixed a while back which was caused by a breaking change in Neovim, not caused by Conjure. So I added code to handle 0.6 and 0.7. I actually caught a colleague running into this yesterday and got them to update and it was fine after that.
They actually had a second copy of conjure (an old one) under their Neovim pack start directory. That was stepping in and loading before the up to date version.
ok, ill check what version of the repo i have
@db0de94c
why am i getting this with plugged then?
Yeah that definitely won't be compatible with Neovim 0.7+ because of the breaking changes.
I would guess because there's a rogue old copy of conjure somewhere in your path that's loading first, like my colleague
oh, now I see it
sorry i messed up
now it works 🙂
Yes that was it :man-facepalming:
Has anybody done any “emacs lisp” style scratch buffer setup? Was thinking of doing a keymapping to open a Lisp Scratch Buffer, or something like that… Maybe just straight Fennel as the language type to start with…
not exactly lisp scratch buffer, I have a command to create scratch buffer with specified suffix, it creates a temporary file with the suffix in neovim temporary folder. I can call :Scratch .fnl
or :Scratch .clj
to have a buffer with lisp https://github.com/nbardiuk/dotfiles/blob/fc61451baa1df5d03d2e59c1dd3b5151915b760d/nix/.config/nixpkgs/home/init.fnl#L694-L699