uni-app 语法插件导致编辑器无法正常使用

uni-app 语法插件导致编辑器无法正常使用

产品分类 PC开发环境操作系统 PC开发环境操作系统版本号 HBuilderX版本号
HbuilderX Windows Windows 10 企业版 20H2 3.1.13

产品分类:HbuilderX
PC开发环境操作系统:Windows
PC开发环境操作系统版本号:Windows 10 企业版 20H2
HBuilderX版本号:3.1.13

操作步骤:

2021-05-31 20:58:22 [LanguageServerProcess] java.lang.IllegalArgumentException: Illegal initial capacity: -1  
    at java.util.HashMap.<init>(Unknown Source)  
    at java.util.HashMap.<init>(Unknown Source)  
    at io.dcloud.internal.index.core.DiskIndex.readHeaderInfo(DiskIndex.java:1411)  
    at io.dcloud.internal.index.core.DiskIndex.initialize(DiskIndex.java:698)  
    at io.dcloud.index.core.Index.<init>(Index.java:336)  
    at io.dcloud.index.core.IndexManager.getIndex(IndexManager.java:97)  
    at io.dcloud.editor.html.contentassist.HTMLIndexQueryHelper.getIndex(HTMLIndexQueryHelper.java:77)  
    at io.dcloud.editor.html.contentassist.HTMLIndexQueryHelper$2.getIndex(HTMLIndexQueryHelper.java:141)  
    at io.dcloud.editor.html.contentassist.HTMLIndexQueryHelper.getAttribute(HTMLIndexQueryHelper.java:198)  
    at io.dcloud.editor.html.contentassist.HTMLIndexQueryHelper.getAttribute(HTMLIndexQueryHelper.java:186)  
    at io.dcloud.editor.html.contentassist.HTMLIndexQueryHelper.getValueStringList(HTMLIndexQueryHelper.java:717)  
    at io.dcloud.editor.html.contentassist.HTMLIndexQueryHelper.getMultiMediaExtendValueList(HTMLIndexQueryHelper.java:686)  
    at io.dcloud.editor.html.ext.MultimediaSpecialListHandler.<init>(MultimediaSpecialListHandler.java:16)  
    at com.pandora.language.CommonContentProcessor.initSpecialListHandler(CommonContentProcessor.java:108)  
    at com.pandora.language.CommonContentProcessor.<clinit>(CommonContentProcessor.java:57)  
    at com.pandora.language.html.HTMLLanguage.getContentProcessor(HTMLLanguage.java:66)  
    at com.pandora.language.LanguageServer.openHelp(LanguageServer.java:1254)  
    at com.pandora.language.RPCHandler.execute(RPCHandler.java:353)  
    at com.pandora.language.PipeTransportProtocol$2.run(PipeTransportProtocol.java:116)  
    at java.lang.Thread.run(Unknown Source)

预期结果:

希望能给予答复

实际结果:

希望能给予答复

bug描述:

HBuilderX 的语法插件调用Java™ Platform SE binary跑很高内存和CPU,编辑器内无法正常输入文本,每输入两个字,界面就卡住,无法正常使用。日志中提示:

2021-05-31 20:58:22 [LanguageServerProcess] java.lang.IllegalArgumentException: Illegal initial capacity: -1  
    at java.util.HashMap.<init>(Unknown Source)  
    at java.util.HashMap.<init>(Unknown Source)  
    at io.dcloud.internal.index.core.DiskIndex.readHeaderInfo(DiskIndex.java:1411)  
    at io.dcloud.internal.index.core.DiskIndex.initialize(DiskIndex.java:698)  
    at io.dcloud.index.core.Index.<init>(Index.java:336)  
    at io.dcloud.index.core.IndexManager.getIndex(IndexManager.java:97)  
    at io.dcloud.editor.html.contentassist.HTMLIndexQueryHelper.getIndex(HTMLIndexQueryHelper.java:77)  
    at io.dcloud.editor.html.contentassist.HTMLIndexQueryHelper$2.getIndex(HTMLIndexQueryHelper.java:141)  
    at io.dcloud.editor.html.contentassist.HTMLIndexQueryHelper.getAttribute(HTMLIndexQueryHelper.java:198)  
    at io.dcloud.editor.html.contentassist.HTMLIndexQueryHelper.getAttribute(HTMLIndexQueryHelper.java:186)  
    at io.dcloud.editor.html.contentassist.HTMLIndexQueryHelper.getValueStringList(HTMLIndexQueryHelper.java:717)  
    at io.dcloud.editor.html.contentassist.HTMLIndexQueryHelper.getMultiMediaExtendValueList(HTMLIndexQueryHelper.java:686)  
    at io.dcloud.editor.html.ext.MultimediaSpecialListHandler.<init>(MultimediaSpecialListHandler.java:16)  
    at com.pandora.language.CommonContentProcessor.initSpecialListHandler(CommonContentProcessor.java:108)  
    at com.pandora.language.CommonContentProcessor.<clinit>(CommonContentProcessor.java:57)  
    at com.pandora.language.html.HTMLLanguage.getContentProcessor(HTMLLanguage.java:66)  
    at com.pandora.language.LanguageServer.openHelp(LanguageServer.java:1254)  
    at com.pandora.language.RPCHandler.execute(RPCHandler.java:353)  
    at com.pandora.language.PipeTransportProtocol$2.run(PipeTransportProtocol.java:116)  
    at java.lang.Thread.run(Unknown Source)

更多关于uni-app 语法插件导致编辑器无法正常使用的实战教程也可以访问 https://www.itying.com/category-93-b0.html

2 回复

感谢反馈,麻烦 提供下完整的日志文件.

更多关于uni-app 语法插件导致编辑器无法正常使用的实战教程也可以访问 https://www.itying.com/category-93-b0.html


已上传

回到顶部