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

clion在格式化代码之后几秒钟内会卡住 #38

Open
mlkt opened this issue Dec 9, 2018 · 4 comments
Open

clion在格式化代码之后几秒钟内会卡住 #38

mlkt opened this issue Dec 9, 2018 · 4 comments

Comments

@mlkt
Copy link

mlkt commented Dec 9, 2018

使用clion2018.3的汉化包之后,选中一段代码,然后使用格式化,格式化完成后的几秒钟内无法再进行任何编辑操作。界面上的其他按钮没有卡住,编辑器内也还可以滚动浏览,但是就是不能修改,删除汉化包后正常。

操作系统为Windows 10 1803

查看log有异常输出:

2018-12-10 00:27:03,565 [3846786] ERROR - ij.ide.IdeEventQueue.typeahead - CLion 2018.3.1 Build #CL-183.4588.63
2018-12-10 00:27:03,565 [3846786] ERROR - ij.ide.IdeEventQueue.typeahead - JDK: 1.8.0_152-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2018-12-10 00:27:03,565 [3846786] ERROR - ij.ide.IdeEventQueue.typeahead - OS: Windows 10
2018-12-10 00:27:03,576 [3846797] ERROR - ij.ide.IdeEventQueue.typeahead - Last Action: ReformatCode
2018-12-10 00:27:18,701 [3861922] ERROR - ij.ide.IdeEventQueue.typeahead - Typeahead timeout is exceeded: 10008
java.lang.RuntimeException: Typeahead timeout is exceeded: 10008
at com.intellij.ide.IdeEventQueue.lambda$isTypeaheadTimeoutExceeded$16(IdeEventQueue.java:1069)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:719)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:668)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:363)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

@pingfangx
Copy link
Owner

你好,测试了一下无法重现您的问题,能否补充可复现过程。
比如,新建一个项目,进行格式化是否能重现,什么样的代码能重现。
如果无法确定,可以删除汉化包中文件来定位,比如,当删除 jar 包中哪个文件时,问题不再复现,进一步可确定当删除哪一行时不再复现,谢谢。

@mlkt
Copy link
Author

mlkt commented Dec 10, 2018

呃,今晚我自己又试了一下,发现我也不能复现了,昨天我是在改了很多配置之后使用的汉化包,然后才发生这个问题的,不知道到底是怎么引起的。。。

@pingfangx
Copy link
Owner

嗯,应该确实是因为汉化包引起的,但 log 不足以排查,可能需要设置某些东西才会触发,如果您下次遇到了,可以再反馈,感谢支持。

@hebing0305
Copy link

我也遇到过 不过出现几率很低 我不确定是不是汉化包引起的

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

No branches or pull requests

3 participants