IDEA启动失败报错解决思路

IDEA启动失败报错解决思路

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

启动报错信息

Internal error. Please refer to https://jb.gg/ide/critical-startup-errorscom.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-apiat 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

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

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

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

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

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

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

在这里插入图片描述

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

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

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目录就是

 %APPDATA%\JetBrains\IntelliJIdea2022.2\plugins

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

在这里插入图片描述

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

在这里插入图片描述

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

在这里插入图片描述

在这里插入图片描述

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

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

在这里插入图片描述

再启动idea,成功!

在这里插入图片描述

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

安装成功

在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/257806.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

时间复杂度为 O(n^2) 的排序算法 | 京东物流技术团队

对于小规模数据,我们可以选用时间复杂度为 O(n2) 的排序算法。因为时间复杂度并不代表实际代码的执行时间,它省去了低阶、系数和常数,仅代表的增长趋势,所以在小规模数据情况下, O(n2) 的排序算法可能会比 O(nlogn) 的…

元宇宙:重塑游戏行业体验下一个前沿

游戏行业在其整个历史中经历了显著的转变,从超级马里奥的像素化冒险发展到Red Dead Redemption等游戏中迷人的开放世界体验。随着时间的推移,游戏不断突破数字领域所能达到的极限。然而,被称为元宇宙的突破性演变将彻底改变游戏行业&#xff…

学习pytorch17 pytorch模型保存及加载

pytorch模型保存及加载 代码 import torch import torchvisionvgg16 torchvision.models.vgg16(pretrainedFalse)# 1. save model 1 保存模型结构及模型参数 torch.save(vgg16, ./vgg16_save1.model)# 2. save model 2 只保存模型参数 比第一种保存方法保存的文件要小 t…

一文带你了解架构设计

关注微信公众号掌握更多技术动态 --------------------------------------------------------------- 一、架构简介 想做好架构设计,第一步是将一个 IT 系统从应用层级至底层基础设施,全部拆解为一个个应用模块,可以称之为“元素”或“组件”…

合合信息旗下启信宝与鹏城实验室达成数据托管合作,“AI靶场”让数据管理更精准

数字经济时代,数据已成为新型生产要素。通过“数据托管”等形式对数据进行集中管理,有助于保护数据主体权益,促进数据共享和运用效率,对数字经济的发展具有重要意义。近期,在深圳数据交易所(简称“深数所”…

查看虚拟机的版本

1、查看虚拟机的版本 cat /etc/centos-release 2、开启防火墙 systemctl start firewalld 3、查看防火墙状态 firewall-cmd --state

微信收款商业版手续费多少,怎么降低?

今天,我将分享如何有效地降低日常中的收款手续费率。我们都知道,不管是微信支付还是支付宝,平台都会从中扣除一定的手续费。但你是否知道,其实手续费率是可以降低的呢?今天介绍如何申请最低手续费率为0.2%的方法&#…

YOLOv8独家原创改进:SPPF自研创新 | SPPF与感知大内核卷积UniRepLK结合,大kernel+非膨胀卷积提升感受野

💡💡💡本文自研创新改进:SPPF与感知大内核卷积UniRepLK结合,大kernel+非膨胀卷积,使SPPF增加大kernel,提升感受野,最终提升检测精度 收录 YOLOv8原创自研 https://blog.csdn.net/m0_63774211/category_12511737.html?spm=1001.2014.3001.5482 💡💡💡全网独…

uniapp 数组添加不重复元素

一、效果图 二、代码 //点击事件rightBtn(sub, index) {console.log(sub, index)//uniapp 数组添加不重复元素if (this.selectList.includes(sub.type)) {this.selectList this.selectList.filter((item) > {return item ! sub.type;});} else {this.selectList.push(sub.t…

Gitlab+GitlabRunner搭建CICD自动化流水线将应用部署上Kubernetes

文章目录 安装Gitlab服务器准备安装版本安装依赖和暴露端口安装Gitlab修改Gitlab配置文件访问Gitlab 安装Gitlab Runner服务器准备安装版本安装依赖安装Gitlab Runner安装打包工具安装docker安装java17安装maven 注册Gitlab Runner 搭建自动化部署准备SpringBoot项目添加一个Co…

【C/PTA —— 15.结构体2(课内实践)】

C/PTA —— 15.结构体2&#xff08;课内实践&#xff09; 7-1 计算职工工资7-2 计算平均成绩7-3 找出总分最高的学生7-4 通讯录的录入与显示 7-1 计算职工工资 #include<stdio.h> #include<stdlib.h> typedef struct GZ {char name[6];double j;double f;double z;…

netty源码:(1)NioEventLoopGroup

EventLoopGroup bossGroup new NioEventLoopGroup(); 不加参数创建NioEventLoopGroup的话&#xff0c;会使用cpu核数*2作为bossGroup的线程数。