Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error detected while processing function iced#nrepl#auto#winenter #117

Closed
devth opened this issue Mar 29, 2019 · 8 comments
Closed

Error detected while processing function iced#nrepl#auto#winenter #117

devth opened this issue Mar 29, 2019 · 8 comments
Labels
bug Something isn't working neovim Neovim's behaviors

Comments

@devth
Copy link

devth commented Mar 29, 2019

Sometimes I need to restart my repl. If I move my cursor to clojure files while I'm restarting my repl I sometimes get this obscure error:

image

Timed out.                                                                                                                                                                                                                                                                       
Error detected while processing function iced#nrepl#auto#winenter[7]..iced#nrepl#ns#in[1]..iced#nrepl#ns#name[6]..<SNR>224_ns_name_by_var:

Not sure if it's related but I almost always see an error when :IcedReconnecting after restarting my iced repl:

Timed out.                                                                                                                                                                                                                                                                       
Disconnected.                                                                                                                                                                                                                                                                    
Error detected while processing function iced#nrepl#reconnect[8]..iced#nrepl#connect[25]..339:                                                                                                                                                                                   
line    7: 
connection failed: connection refused  

If I run it again it usually succeeds almost immediately.

@liquidz
Copy link
Owner

liquidz commented Mar 30, 2019

@devth Thank you for your reporting!

The cause is same here.
#86 (comment)

If you restart your repl, neovim's channel is disconnected, but vim-iced does not have a chance to detect it.
So vim-iced tries to evaluate code, and timed out.

I'll research if there is a way to detect channel disconnection on neovim...

@liquidz liquidz added bug Something isn't working neovim Neovim's behaviors labels Mar 30, 2019
@liquidz
Copy link
Owner

liquidz commented Mar 30, 2019

@devth Maybe I found it!
I oversighted EOF description in neovim document.
https://neovim.io/doc/user/channel.html

I tried to fix it, so could you try bugfix/neovim-detect-disconnection branch?

@devth
Copy link
Author

devth commented Apr 1, 2019

@liquidz I tried out the branch and everything looks good! No more delays or error messages when switching focus after killing the iced repl. 👍

@liquidz
Copy link
Owner

liquidz commented Apr 1, 2019

@devth Thanks!
I'll merge the branch, but it may be late because I can not take time.. 👶

@devth
Copy link
Author

devth commented May 2, 2019

Is neovim-detect-disconnection ready to merge?

@liquidz
Copy link
Owner

liquidz commented May 3, 2019

@devth Yes, I'm ready. But because I'm on parental leave, I may not provide rapid support even if I release next version.
#120

So I wonder if I should release it...

@devth
Copy link
Author

devth commented May 3, 2019

Enjoy your leave and little one! For what it’s worth I’ve been using this branch since you created it without any problems.

@liquidz
Copy link
Owner

liquidz commented May 13, 2019

Closed by #120

@liquidz liquidz closed this as completed May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working neovim Neovim's behaviors
Projects
None yet
Development

No branches or pull requests

2 participants