This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-28
Channels
- # announcements (1)
- # beginners (43)
- # calva (7)
- # clojure (48)
- # clojure-europe (19)
- # clojure-nl (1)
- # clojure-norway (24)
- # clojure-uk (4)
- # clojuredesign-podcast (4)
- # clojurescript (11)
- # conjure (15)
- # core-async (1)
- # cursive (1)
- # datomic (33)
- # events (1)
- # fulcro (2)
- # humbleui (21)
- # hyperfiddle (34)
- # introduce-yourself (1)
- # joyride (24)
- # lambdaisland (8)
- # lsp (3)
- # malli (30)
- # meander (2)
- # observability (5)
- # off-topic (2)
- # pathom (3)
- # polylith (26)
- # portal (5)
- # re-frame (28)
- # shadow-cljs (7)
- # spacemacs (2)
- # xtdb (6)
Apologies this is probably a silly error on my part, but I'm starting an nrepl with cider middleware and then using conjure. I can evaluate forms such (+ 1 1)
without problem, but I am getting "Unresolved namespace" errors when I try to evaluate the whole buffer. New to neovim and to conjure, but in IntelliJ/cursive I'd use some kind of change namespace command.
Yes. I can also evaluate the file without problem.
I’ve even manually evaluated the buffer top level form at a time but get the same issue.
It might be worth restarting the repl and the neovim session. It seems like something is out of sync.
Thank you. I have tried that - and also tried my own nrepl start as well as letting conjure start one up.
I haven’t tried disconnecting and reconnecting using :Conjure commands - I’ve quit and restarted so I’ll try that next.
No luck. Refreshing namespaces gives me odd errors
When I evaluate file, I get no error. When I evaluate buffer, I get results in the HUD for each top-level form. The def
for expected-manifest has an error unresolved namespace
.
Perhaps I will backup my ~/.config/nvim
and start again. I've used kickstart.nvim and then added conjure and some paredit stuff.
There should be no need to use a command to set the namespace when evaluating the buffer or an expression within that buffer. Conjure (like Emacs Cider) uses the current buffer namespace definition to set the context for the evaluation. Suggest confirming you can evaluate the namespace at the repl prompt to confirm the project is configured correctly. This should narrow down the cause to the Neovim setup. e.g. from the prompt in user namespace
(require '[com.eldrix.hermes.core])
If that returns without error (should return nil) then it's likely something in the Neovim setup.I have been using AstroNvim very successfully with Conjure for Clojure development and the Astronvim community has a Clojure pack that includes Conjure and parinfer (see the Practicalli Astronvim-config for an example) https://practical.li/neovim/configuration/astronvim/
Thanks @U05254DQM - yes I can require the namespace at a REPL prompt, and it has been working using Intellij/cursive so I think I've done something wrong with my neovim/conjure set-up, or the way I'm opening my project directory. I will try with astronvim as you suggest. It feels like a glitch that might disappear through a reboot - or that I've just configured something just wrong. Thanks again.
It worked! Actually following your steps really helped - the checkhealth step pointed out a tonne of old stuff in ~/.local which I didn't even knew existed - including packer from my previous testing of nvim - I suspect that had got into an inconsistent state in some way and so a rm -rf
seems to have worked. Buffer now loading and evaluating. Thank you for your help!