Open ar1a opened 1 month ago
Well that's odd, you can override the host with this config
So maybe setting that to a specific IP for now might help? Need to have a think about how to solve this and reproduce it without Windows though 🤔
I think there are other Windows users that I assume haven't run into this, so it could also be a specific version or configuration of Windows too I guess.
Thanks for the useful context and output of getaddrinfo
! That sort of information massively helps me understand things without being able to re-produce it myself.
Changing that to use 127.0.0.1
gets it to connect at least! Evaluating things seem to work fine:
but the auto-completion provided by cmp-conjure is not present - maybe I need to set the variable before opening the buffer and not just changing it and running :ConjureConnect
. I'll look at that later
will update you if I make any progress in the mean time
Hmm, hitting K
on something like prn
also produces something along the lines of
Error 12:02:42 AM msg_show.lua_error Error executing Lua callback: ...gram Files/Neovim/share/nvim/runtime/lua/vim/_system.lua:244: ENOENT: no such file or directory
stack traceback:
[C]: in function 'error'
...gram Files/Neovim/share/nvim/runtime/lua/vim/_system.lua:244: in function 'spawn'
...gram Files/Neovim/share/nvim/runtime/lua/vim/_system.lua:335: in function 'system'
C:/Program Files/Neovim/share/nvim/runtime/lua/man.lua:22: in function 'system'
C:/Program Files/Neovim/share/nvim/runtime/lua/man.lua:263: in function 'get_path'
C:/Program Files/Neovim/share/nvim/runtime/lua/man.lua:812: in function 'init'
C:/Program Files/Neovim/share/nvim/runtime/lua/man.lua:824: in main chunk
[C]: in function 'require'
C:/Program Files/Neovim/share/nvim/runtime/plugin/man.lua:7: in function <C:/Program Files/Neovim/share/nvim/runtime/plugin/man.lua:6>
Error 12:02:52 AM msg_show.lua_error Error executing Lua callback: C:/Program Files/Neovim/share/nvim/runtime/plugin/man.lua:7: loop or previous error loading module 'man'
stack traceback:
[C]: in function 'require'
C:/Program Files/Neovim/share/nvim/runtime/plugin/man.lua:7: in function <C:/Program Files/Neovim/share/nvim/runtime/plugin/man.lua:6>
more windows being weird?
Hm that error to me looks like the built in Neovim man page lookup which is the default for K
in most filetypes I think? It appears to be to be trying to spawn a sub-process but the program it's trying to execute doesn't exist. Conjure doesn't do this other than when we're trying to start stdio REPLs.
So I suspect it's trying to run man
and your system doesn't have it? The stack trace sadly doesn't give us all the details though so I can't really tell what it's trying to execute. I'm guessing man
from the context clues of man.lua
being further up the stack.
On windows, opening a .clj file errors out with this:
I believe this is caused by this check: https://github.com/Olical/conjure/blob/6d2bc7f7b24c2c43d54f263bee7b9b08aef5d1a1/lua/conjure/net.lua#L24
because when I run
lua vim.print(vim.loop.getaddrinfo("localhost"))
it returns
where the only family returned is
inet6