keaising / im-select.nvim

Switch Input Method automatically depends on Neovim's edit mode
MIT License
170 stars 25 forks source link

async_switch_im = true will cause Neovim to crash on Windows #17

Closed xarthurx closed 12 months ago

xarthurx commented 12 months ago

async_switch_im = false all fine.

But once turned on to true , Neovim will either crash or halt for a long time, while the cmd window keep popping up and shutdown.

keaising commented 12 months ago

This is the reason that I provide an option for you to turn off async.

Neovim on Windows has a lot of wired behaviors, I think I can only provide a it works solution.

If you can provide a better solution to fix this issue, PR is welcome.

xarthurx commented 12 months ago

See. I actually don't know much about the mechanism behind nvim...

Better to mention it in the README.md? Spent quite some time to debug the problem.

keaising commented 12 months ago

To be honest, there are at least three users complained about this issue, but I don't even know actually reason and what senarios you meet. For someone async is ok, for another one sync is ok, but I can't reproduce none of your issues, and I don't know how to descripe the issue can help you to fix this issue.

xarthurx commented 12 months ago

Probably just a comment pointing to async param is enough. Or leave this issue open. But anyway, it depends on you.

keaising commented 12 months ago

Could you please give me an example about a comment pointing to async param is enough. ?

xarthurx commented 12 months ago

Could you please give me an example about a comment pointing to async param is enough. ?

I submitted a PR for the Readme. Please feel free to modify it.

keaising commented 12 months ago

Looks good, merged.

Thank you!