IDEA启动失败报错解决思路

news/2024/7/16 9:17:33 标签: intellij-idea, java, ide

IDEA启动失败报错解决思路

背景:在IDEA里安装插件失败,重启后直接进不去了,然后分析问题解决问题的过程记录下来。方便下次遇到快速解决。也是一种解决问题的思路,分享出去。

启动报错信息

Internal error. Please refer to https://jb.gg/ide/critical-startup-errors

com.intellij.diagnostic.PluginException: Key com.itangcent.idea.plugin.settings.xml.ApplicationSettingsComponent duplicated; existingAdapter: ServiceAdapter(descriptor=ServiceDescriptor(interface='null', serviceImplementation='com.itangcent.idea.plugin.settings.xml.ApplicationSettingsComponent', testServiceImplementation='null', headlessImplementation='null', overrides=false, configurationSchemaKey='null', preload=FALSE, client=null), pluginDescriptor=PluginDescriptor(name=EasyYapi, id=com.itangcent.idea.plugin.easy-yapi, descriptorPath=easy-yapi-java.xml, path=d:\user\wfq100426\Application Data\JetBrains\IdeaIC2023.2\plugins\easy-yapi, version=2.6.8.212.0, package=null, isBundled=false)); descriptor=com.itangcent.idea.plugin.settings.xml.ApplicationSettingsComponent,  app=Application (containerState PRE_INIT) , current plugin=com.itangcent.idea.plugin.easy-api
    at com.intellij.serviceContainer.ComponentManagerImpl.registerServices(ComponentManagerImpl.kt:566)
    at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:257)
    at com.intellij.openapi.client.ClientAwareComponentManager.registerComponents(ClientAwareComponentManager.kt:48)
    at com.intellij.ide.bootstrap.AppPreInitKt$initServiceContainer$2.invokeSuspend(appPreInit.kt:41)
    at com.intellij.ide.bootstrap.AppPreInitKt$initServiceContainer$2.invoke(appPreInit.kt)
    at com.intellij.ide.bootstrap.AppPreInitKt$initServiceContainer$2.invoke(appPreInit.kt)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
    at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
    at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
    at com.intellij.diagnostic.TracerKt.subtask(tracer.kt:45)
    at com.intellij.diagnostic.TracerKt.subtask$default(tracer.kt:34)
    at com.intellij.ide.bootstrap.AppPreInitKt.initServiceContainer(appPreInit.kt:40)
    at com.intellij.ide.bootstrap.AppPreInitKt$initServiceContainer$1.invokeSuspend(appPreInit.kt)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:270)
    at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

-----
Your JRE: 17.0.8+7-b1000.22 amd64 (JetBrains s.r.o.)
C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2023.2.2\jbr

阅读报错信息并解决问题

报错类型:Internal error 内部错误

日志中说请看这个地址:https://jb.gg/ide/critical-startup-errors

java">com.intellij.diagnostic.PluginException: Key com.itangcent.idea.plugin.settings.xml.ApplicationSettingsComponent duplicated; existingAdapter: 

插件异常,应用配置组件重复

那原因就是插件搞的报错导致启动失败

current plugin=com.itangcent.idea.plugin.easy-api

那就是easy-api这个插件搞的

再去看日志里提到的这个网址

在这里插入图片描述

这个网址讲述了这个启动错误可能的一些原因以及一些解决办法

我们这种插件异常符合第二种解决方案,直接去插件目录里删除这个问题插件

java">2. Delete the third-party plug-ins directory (idea.plugins.path in the user's home directory, depends on the OS and IDE version. Please be aware that default locations have changed in 2020.1 release). You can bisect the plug-ins to find the offending one and remove only that plug-in, keeping the working plug-ins.

这个第二点的 third-party plug-ins directory 这个文字是个超链接,点开地址 https://intellij-support.jetbrains.com/hc/en-us/articles/206544519

这里可以看到他们标明了各平台IDEA的一些文件存储的位置

在这里插入图片描述

我目前用的windows,plugins目录就是

java"> %APPDATA%\JetBrains\IntelliJIdea2022.2\plugins

%APPDATA%是个APP数据目录的系统变量,在windows打开cmd输出看下我电脑实际路径是多少

在这里插入图片描述

复制这个路径拼接好插件路径进入这个目录

在这里插入图片描述

好的很啊,事情变得有趣了,手动进去APPDATA目录看看去

在这里插入图片描述

在这里插入图片描述

可以看到我已经手动找到了他们的Plugins目录,原因很简单,新版本的目录变了,文档的是根据IntelliJIdea2022.2版本的情况写的,所以这个地方灵活应变一下就可以解决了

我把这个easy-api(报错的)和easy-yapi(安装这个插件过程后重启IDEA启动报错)两个涉事嫌疑犯目录剪切出来放到最外面去(不要删除,防止又要放回去~)

在这里插入图片描述

再启动idea,成功!

在这里插入图片描述

我再重新安装easy-yapi去就可以了

安装成功

在这里插入图片描述


http://www.niftyadmin.cn/n/5249502.html

相关文章

有一篇文章,共有3行文字,每行有80个字符。要求分别统计其中英文大写字母、小写字母、数字、空格以及其他字符的个数

目录 1解题思路: 2代码: 3运行代码: 4总结: 1解题思路: 有一篇文章,共有3行文字,每行有80个字符。要求分别统计其中英文大写字母、小写字母、数字、空格以及其他字符的个数 首先先设置一个字…

网页设计--第6次课后作业

试用Vue相关指令完成对以下json数据的显示。显示效果如下: 其中:gender1 显示为女,gender2显示为男。价格超过30元,显示“有点小贵”。价格少于等于30元,则显示“价格亲民”。 data: {books: [{"id": "…

nginx 的概念、高并发处理及详细参数配置

NGINX是一个开源的高性能Web服务器,负载均衡器和反向代理服务器。它特别适用于高并发的Web应用,能够有效地处理数千并发连接,同时具备低资源消耗和高性能的特点。在这里,我将重点介绍NGINX的高并发处理能力和参数配置。 高并发处…

glibc下的tpmalloc

文章目录 1、内存布局2、操作系统内存分配的相关函数2.1 Heap 操作相关函数2.2 Mmap 映射区域操作相关函数 3、ptmalloc的实现原理3.1 Main_arena 与 non_main_arena3.2 chunk 结构3.3 空闲 chunk 容器的组织形式3.3.1 small bin3.3.2 Large bins3.3.3 Unsorted bin3.3.4 Fast …

【语义分割数据集】——imagenet语义分割

地址:https://github.com/LUSSeg/ImageNet-S 1 例图 2. 类别和数量信息 疑问 根据原文的描述:Based on the ImageNet dataset, we propose the ImageNet-S dataset with 1.2 million training images and 50k high-quality semantic segmentation annot…

【银行测试】金融项目+测试方法范围分析,功能/接口/性能/安全...

目录:导读 前言一、Python编程入门到精通二、接口自动化项目实战三、Web自动化项目实战四、App自动化项目实战五、一线大厂简历六、测试开发DevOps体系七、常用自动化测试工具八、JMeter性能测试九、总结(尾部小惊喜) 前言 1、金融行业软件特…

【AIGC】大语言模型的采样策略--temperature、top-k、top-p等

总结如下: 图片链接 参考 LLM解码-采样策略串讲 LLM大模型解码生成方式总结 LLM探索:GPT类模型的几个常用参数 Top-k, Top-p, Temperature

Qt基础-Qt6.0安装教程

本文详细讲解Qt6安装过程 目录 概述 QT在线安装器 安装 打开Qt 打开项目或新建项目 概述