vim

sheluchin 2023-07-23T19:07:05.268049Z

I'm suddenly unable to connect to my repl, getting this message:

Error executing vim.schedule lua callback: .../nvim/site/pack/packer/start/conjure/lua/conjure/net.lua:54: Failed to resolve host for Conjure connection                                       
stack traceback:                                                                                                                                                                               
        [C]: in function 'error'                                                                                                                                                               
        .../nvim/site/pack/packer/start/conjure/lua/conjure/net.lua:54: in function 'connect'                                                                                                  
        ...e/pack/packer/start/conjure/lua/conjure/remote/nrepl.lua:131: in function 'connect'                                                                                                 
        ...tart/conjure/lua/conjure/client/clojure/nrepl/server.lua:352: in function <...tart/conjure/lua/conjure/client/clojure/nrepl/server.lua:298>      
Anyone know what the problem might be?

Olical 2023-07-23T19:09:34.906489Z

What happens if you run ping http://www.google.com? Is your lookup working system wide?

sheluchin 2023-07-23T19:11:50.089519Z

@olical yep:

---  ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms

sheluchin 2023-07-23T19:43:32.189629Z

vim-jack-in is using nrepl 0.9.0 (not sure why), could that cause this problem:

nREPL server started on port 35701 on host 127.0.0.1 - 
nREPL 0.9.0
Clojure 1.11.1
OpenJDK 64-Bit Server VM 11.0.19+7-post-Ubuntu-0ubuntu122.04.1
Interrupt: Control+C
Exit:      Control+D or (exit) or (quit)
user=> 

sheluchin 2023-07-23T20:06:51.960339Z

That's weird. If I :ConjureConnect it just works.

Olical 2023-07-23T20:42:46.161969Z

And what does ping localhost do?

sheluchin 2023-07-23T20:43:18.860699Z

hmm

$ ping localhost
ping: localhost: Name or service not known

sheluchin 2023-07-23T20:45:49.470879Z

No idea how that could have happened 🤨 just added localhost back to /etc/hosts and now all works fine.