rime / rime/squirrel

输入法切换导致鼠须管卡死

Open
#482 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
6.4k
Forks
553
PR merge metrics
No merged PRs in 30d

Description

自使用鼠须管以来,总会时不时出现无法输入中文的状态,如图所示
image

发现使用vscode的vim插件搭配im-select来实现vim不同状态的输入法切换时这个问题出现的尤其频繁,每切换几次后鼠须管就进入了无法输入中文的状态。

于是发现只要在terminal这样反复调用im-select几次,就能复现问题:

im-select com.apple.keylayout.ABC
im-select im.rime.inputmethod.Squirrel.Rime
im-select com.apple.keylayout.ABC
im-select im.rime.inputmethod.Squirrel.Rime

这样鼠须管就会100%进入那种挂掉的状态。(im-select搭配系统原生输入法时则没有这个问题)

系统设置开启“automatically switch to input source”的自动切换似乎也会导致类似的问题,但不方便复现。
用ctrl+space手动切换似乎不存在这样的问题。

Big sur 11.1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by reproducing the failure on Big Sur 11.1 with the repeated im-select commands, then compare it with Ctrl+Space switching; done means Squirrel continues accepting Chinese input after repeated external input-source changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, swift
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.