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

Auto Switch Input Method stops working on WSL #8324

Closed
parker-chung opened this issue Mar 20, 2023 · 6 comments
Closed

Auto Switch Input Method stops working on WSL #8324

parker-chung opened this issue Mar 20, 2023 · 6 comments

Comments

@parker-chung
Copy link

Describe the bug

I'm working on Windows Subsystem for Linux (WSL).
The feature Auto Switch Input Method worked fine before but now it's broken.
It keeps throwing the error about being unable to find im-select.exe even when the path to it is correct.

  1. The path to im-select.exe
    image
  2. Settings related to Auto Switch Input Method
    image
  3. Error messages I'm getting from the extension in Output panel
    image

To Reproduce
Steps to reproduce the behavior:

  1. Open a new WSL window
  2. Make sure to set up the settings related to Auto Switch Input Method
  3. Toggle Output panel and look for logs from the extension Vim

Expected behavior
Successfully find the im-select.exe file and be able to switch the input method according to the related setting

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.25.2
  • VSCode version: 1.76.2
  • OS: WSL: Ubuntu-20.04

Additional context

@Yi-Qing
Copy link

Yi-Qing commented Apr 25, 2023

I'm try to use the old version 1.25.1, also have this problem.

but when i use 1.24.3, it work's fine

@NikolaiKotikov
Copy link

Have the same issue too. I think that im-select.exe is not found because it's impossible to apply vim.autoSwitchInputMethod options when project is opened in WSL
image

@listenerri
Copy link
Contributor

May be due to the commit: #8051

@listenerri
Copy link
Contributor

I found a solution to this problem.
When using WSL remote development, switch the settings tab to "Remote" in the settings page and set several settings related to the vim.autoSwitchInputMethod.* to the same settings as under User (Windows) settings. That is to say, the im-select command line should use a Windows-style path for WSL remote configuration, because the vim ext is set to run locally only, so it does not recognize linux paths under WSL.

图片

@parker-chung
Copy link
Author

parker-chung commented Aug 11, 2023

I found a solution to this problem. When using WSL remote development, switch the settings tab to "Remote" in the settings page and set several settings related to the vim.autoSwitchInputMethod.* to the same settings as under User (Windows) settings. That is to say, the im-select command line should use a Windows-style path for WSL remote configuration, because the vim ext is set to run locally only, so it does not recognize linux paths under WSL.

图片

This solution solved the problem!
It finally works as it used to.
Thank you for the help.

@transtone
Copy link

transtone commented Jan 5, 2024

#8675

fix version of autoSwitchInputMethod
https://github.com/transtone/Vim/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants