hadix-lin / ideavim_extension

IdeaVIM插件的扩展插件
Apache License 2.0
291 stars 36 forks source link

作者 请问这是什么错误? #28

Closed ifnk closed 5 years ago

ifnk commented 5 years ago

<-1 of 1 -> Exception in plugin ideavimextension(1.3.5).Moments ago.Occurred once since the last clear. Disable Plugin This plugin is not a production of jetbrains. please report the problem to hadix.lin@gmail.com stacktrace.txt-> java.lang.IllegalStateException: hwnd must not be null at io.github.hadixlin.iss.win.WinInputSourceSwitcher.switchToEnglish(WinInputSourceSwitcher.kt:13) at io.github.hadixlin.iss.SystemInputSourceSwitcher.switchToEnglish(SystemInputSourceSwitcher.kt:18) at io.github.hadixlin.iss.KeepEnglishInNormalAndRestoreInInsertExtension$exitInsertModeListener$1$focusListener$1$focusGained$1.run(KeepEnglishInNormalAndRestoreInInsertExtension.kt:62) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

ifnk commented 5 years ago

我用rider 的时候 报出来 的……

hadix-lin commented 5 years ago

你是用windows吗?

ifnk notifications@github.com于2019年5月23日 周四18:45写道:

我用rider 的时候 报出来 的……

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hadix-lin/ideavim_extension/issues/28?email_source=notifications&email_token=AAH5ITP7WVLSWZFMTNZJVGDPWZYVVA5CNFSM4HO6H7RKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWB2TDI#issuecomment-495167885, or mute the thread https://github.com/notifications/unsubscribe-auth/AAH5ITJR47UH5BT4BQGZDGLPWZYVVANCNFSM4HO6H7RA .

hadix-lin commented 5 years ago

@ifnk 请描述一下出现该问题的场景。提供您使用的操作系统版本,IDEA版本,IdeaVim版本,系统设置的输入法信息。

holysky5 commented 5 years ago

同上,没有启动ideavim 插件就报这个错误. windows 版本, idea 2019.1.2 java.lang.IllegalStateException: hwnd must not be null at io.github.hadixlin.iss.win.WinInputSourceSwitcher.switchToEnglish(WinInputSourceSwitcher.kt:13) at io.github.hadixlin.iss.SystemInputSourceSwitcher.switchToEnglish(SystemInputSourceSwitcher.kt:18) at io.github.hadixlin.iss.KeepEnglishInNormalAndRestoreInInsertExtension$exitInsertModeListener$1$focusListener$1$focusGained$1.run(KeepEnglishInNormalAndRestoreInInsertExtension.kt:62) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

hadix-lin commented 5 years ago

反馈收到,我将尝试重现这个问题。

holysky5 notifications@github.com于2019年5月29日 周三16:38写道:

同上,没有启动ideavim 插件就报这个错误. windows 版本, idea 2019.1.2 java.lang.IllegalStateException: hwnd must not be null at io.github.hadixlin.iss.win.WinInputSourceSwitcher.switchToEnglish(WinInputSourceSwitcher.kt:13) at io.github.hadixlin.iss.SystemInputSourceSwitcher.switchToEnglish(SystemInputSourceSwitcher.kt:18) at io.github.hadixlin.iss.KeepEnglishInNormalAndRestoreInInsertExtension$exitInsertModeListener$1$focusListener$1$focusGained$1.run(KeepEnglishInNormalAndRestoreInInsertExtension.kt:62) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/hadix-lin/ideavim_extension/issues/28?email_source=notifications&email_token=AAH5ITNHHBS7LUJCLJSC4ULPXY6JVA5CNFSM4HO6H7RKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWOTKVY#issuecomment-496842071, or mute the thread https://github.com/notifications/unsubscribe-auth/AAH5ITKQYII7RH2UTUMAYIDPXY6JVANCNFSM4HO6H7RA .

hadix-lin commented 5 years ago

同上,没有启动ideavim 插件就报这个错误. windows 版本, idea 2019.1.2 java.lang.IllegalStateException: hwnd must not be null at io.github.hadixlin.iss.win.WinInputSourceSwitcher.switchToEnglish(WinInputSourceSwitcher.kt:13) at io.github.hadixlin.iss.SystemInputSourceSwitcher.switchToEnglish(SystemInputSourceSwitcher.kt:18) at io.github.hadixlin.iss.KeepEnglishInNormalAndRestoreInInsertExtension$exitInsertModeListener$1$focusListener$1$focusGained$1.run(KeepEnglishInNormalAndRestoreInInsertExtension.kt:62) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

@holysky5 已经在ideavimrc中配置了 set keep-english-in-normal了吧?IDEA启动就会报这个错误,之后在编辑器中使用的时候正常吗?

hadix-lin commented 5 years ago

我没能重现两位出现的问题,请提供一下具体重现场景,谢谢。 方便的话请给我留下可以微信或者钉钉,以便即时联系。

holysky5 commented 5 years ago

我是在不vim 模式的时候经常会报这个错误出来.

holysky5 commented 5 years ago

@hadix-lin 配置了ideavimrc. 频率很高.总会报这个错误. 不适用vim模式的情况下总出现.

hadix-lin commented 5 years ago

@hadix-lin 配置了ideavimrc. 频率很高.总会报这个错误. 不适用vim模式的情况下总出现.

更新到1.3.7版本试一下看看,根据你提供到信息我还是无法分析出问题。

hadix-lin commented 5 years ago
图片

请确认添加了启用图示的输入法键盘

TYZRPVX commented 5 years ago

image got the same crash

hadix-lin commented 5 years ago

Your crash is not the same as theirs. Yours looks like using an incompatible version of IdeaVim plugin . Please provide your IdeaVim plugin version and IdeaVimExtension version. I'll try to reproduce the problem.

On Wed, Jul 3, 2019 at 5:38 PM TYZRPVX notifications@github.com wrote:

[image: image] https://user-images.githubusercontent.com/7645818/60581420-61648900-9db9-11e9-90ec-30cc4632aa12.png got the same crash

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hadix-lin/ideavim_extension/issues/28?email_source=notifications&email_token=AAH5ITN4TREILCAI52EFWKLP5RXSVA5CNFSM4HO6H7RKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZD4PKY#issuecomment-508020651, or mute the thread https://github.com/notifications/unsubscribe-auth/AAH5ITPT6Q23PKJWIKSR77LP5RXSVANCNFSM4HO6H7RA .

TYZRPVX commented 5 years ago

Your crash is not the same as theirs. Yours looks like using an incompatible version of IdeaVim plugin . Please provide your IdeaVim plugin version and IdeaVimExtension version. I'll try to reproduce the problem. On Wed, Jul 3, 2019 at 5:38 PM TYZRPVX @.***> wrote: [image: image] https://user-images.githubusercontent.com/7645818/60581420-61648900-9db9-11e9-90ec-30cc4632aa12.png got the same crash — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#28?email_source=notifications&email_token=AAH5ITN4TREILCAI52EFWKLP5RXSVA5CNFSM4HO6H7RKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZD4PKY#issuecomment-508020651>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAH5ITPT6Q23PKJWIKSR77LP5RXSVANCNFSM4HO6H7RA .

I am using IdeaVim v0.51.4, maybe you need add https://plugins.jetbrains.com/plugins/eap/ideavim to plugin repo settings.

hadix-lin commented 5 years ago

I am using IdeaVim v0.51.4, maybe you need add https://plugins.jetbrains.com/plugins/eap/ideavim to plugin repo settings.

v0.51.4 is a EAP version . it's the newest .The "Options" api may be modified in this version. please install the stable version v0.51.

hadix-lin commented 5 years ago

v1.3.9 兼容了IdeaVim 0.52,请下载试用。

https://github.com/hadix-lin/ideavim_extension/releases/download/v1.3.9/ideavim_extension.zip