You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在使用 PIME 輸入倉頡時,發生組字失敗不出字,並且在後端錯誤日誌中出現:
[PIMELauncher] [error] [Backend error] Traceback (most recent call last):
File "server.py", line 87, in run
ret = client.handleRequest(msg)
File "server.py", line 50, in handleRequest
reply = service.handleRequest(msg)
File "C:\Program Files (x86)\PIME\python\textService.py", line 98, in handleRequest
ret = self.onKeyDown(keyEvent)
File "C:\Program Files (x86)\PIME\python\input_methods\checj\checj_ime.py", line 95, in onKeyDown
KeyState = self.cinbase.onKeyDown(self, keyEvent, CinTable, RCinTable, HCinTable)
File "C:\Program Files (x86)\PIME\python\cinbase_init_.py", line 1802, in onKeyDown
currentCandPageCount = math.ceil(len(candidates) / int(cbTS.candPerPage)) # 目前的選字清單總頁數
ValueError: invalid literal for int() with base 10:
Uh oh!
There was an error while loading. Please reload this page.
問題描述
似乎在不知道什麼時候開始發生倉頡系列組字後按空白不出字,
不論是移除 PIME 重開機後, 再重新安裝, 仍然是倉頡組字後按空白不出字,
但是, 蝦米系列輸入卻是可以的。
實際情形
在使用 PIME 輸入倉頡時,發生組字失敗不出字,並且在後端錯誤日誌中出現:
[PIMELauncher] [error] [Backend error] Traceback (most recent call last):
File "server.py", line 87, in run
ret = client.handleRequest(msg)
File "server.py", line 50, in handleRequest
reply = service.handleRequest(msg)
File "C:\Program Files (x86)\PIME\python\textService.py", line 98, in handleRequest
ret = self.onKeyDown(keyEvent)
File "C:\Program Files (x86)\PIME\python\input_methods\checj\checj_ime.py", line 95, in onKeyDown
KeyState = self.cinbase.onKeyDown(self, keyEvent, CinTable, RCinTable, HCinTable)
File "C:\Program Files (x86)\PIME\python\cinbase_init_.py", line 1802, in onKeyDown
currentCandPageCount = math.ceil(len(candidates) / int(cbTS.candPerPage)) # 目前的選字清單總頁數
ValueError: invalid literal for int() with base 10:
透過手動修改
C:\Program Files (x86)\PIME\python\cinbase\__init__.py
檔案 1802行前,增加了對 cbTS.candPerPage 值後,先前組字後無法出字的問題已不再出現。
cbTS.candPerPage = 9
currentCandPageCount = math.ceil(len(candidates) / cbTS.candPerPage) # 目前的選字清單總頁數
在我的設定介面[一般設定][介面外觀]上,全部沒有值, 或許[每頁顯示候選字個數]全部給上值也可以解決。
執行環境
PIME: 1.3.0-stable, 1.3.0-beta2
OS: Windows 10 專業版x64 19045.5737
The text was updated successfully, but these errors were encountered: