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

【Bug】Kotlin补全排序/性能问题 #71

Open
liuyike98 opened this issue Jan 6, 2023 · 8 comments
Open

【Bug】Kotlin补全排序/性能问题 #71

liuyike98 opened this issue Jan 6, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@liuyike98
Copy link

1673023084219

只能首字母补全,比如你好 只能用 nh 补全,但是短字母很容易匹配到英文的字段,我记得之前打 nihao 也是可以补全的

使用环境

  • 插件版本: 1.0.0
  • IDE版本: 内部版本号 #IU-223.8214.52,2022年12月20日 构建
  • 操作系统版本(如 Mac OS 10.15.6): win11
@liuyike98 liuyike98 added the bug Something isn't working label Jan 6, 2023
@liuyike98
Copy link
Author

image
很容易匹配到后面,不太好用了,语言是kotlin,不知道kotlin是否一直有问题,好久没写安卓了,之前用java是很好用,希望可以修复一下,或者告诉我姿势不对

@nobodxbodon
Copy link
Collaborator

你好。刚试了Java,ceshi的补全项有“测试函数”:

Screen Shot 2023-01-06 at 11 26 20 AM

kotlin也有:
Screen Shot 2023-01-06 at 11 29 54 AM

版本:

IntelliJ IDEA 2022.2.4 (Community Edition)
Build #IC-222.4459.24, built on November 22, 2022

@liuyike98
Copy link
Author

你好。刚试了Java,ceshi的补全项有“测试函数”:

Screen Shot 2023-01-06 at 11 26 20 AM

kotlin也有: Screen Shot 2023-01-06 at 11 29 54 AM

版本:

IntelliJ IDEA 2022.2.4 (Community Edition) Build #IC-222.4459.24, built on November 22, 2022

IntelliJ IDEA 2022.3.1 (Ultimate Edition)
内部版本号 #IU-223.8214.52,2022年12月20日 构建
时而好用时而不好,在 对象.方法 的时候,方法是一直可以补全的,直接调函数就会出现我发的情况,两台电脑均是如此,一个社区版一个专业版

@liuyike98
Copy link
Author

package cn.app.components



fun 按钮(): 按钮事件 {
    val hooks = object : 按钮事件 {
        // 在下面键入 
//        override var 被点击: (被点击回调) -> Unit = {
//            
//        }
        override var bei
           
    }
    return hooks
}


typealias 被点击回调 = () -> Unit


interface 按钮事件 {
    var 被点击: (fn: 被点击回调) -> Unit
}


示例代码如上,照着上面一行,补全注释下面的一行,
经过测试,慢速输入是好的,快速输入就不行,电脑是48g内存 12代i7 处理器,
1673071520953

@liuyike98
Copy link
Author

@nobodxbodon 破案了,第一个字母输完要等一秒,这样快速输入就是好的,第一个字母和后面衔接的快就啥也不显示,英文函数没这个问题

@liuyike98
Copy link
Author

经过一番测试 ,java 没有此问题,kotlin不行

@nobodxbodon
Copy link
Collaborator

谢谢测试。kotlin又测了几次,输入bei快了之后,除了不出现补全弹窗,有时会这样不包含中文项:
Screen Shot 2023-01-09 at 10 16 15 AM
而且,有时即便很慢输入,也会不出现补全弹窗。
回头确认一下是否新版本导致的。

@liuyike98
Copy link
Author

而且,有时即便很慢输入,也会不出现补全弹窗。 回头确认一下是否新版本导致的。

kotlin用这个插件没有体验了,一人血书求修复哈哈

@tuchg tuchg changed the title 【Bug】全拼不能补全了,之前可以 【Bug】Kotlin补全性能问题 Jan 10, 2023
@tuchg tuchg changed the title 【Bug】Kotlin补全性能问题 【Bug】Kotlin补全排序/性能问题 Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants