当前位置:网站首页>idea 插件开发一些异常处理
idea 插件开发一些异常处理
2022-06-27 01:21:00 【顾人间讥诘】
0.新建插件工程
官方推荐使用gradle方式创建

选择InteliJ Platform Plugin
1.ideaIC下载不成功
开发idea插件时依赖idea community版本,即ideaIC作为library。相当于你开发springboot程序需要各种spring的依赖一样。由于idea插件开发官方推荐gradle方式创建项目,但gradle拉去ideaIC依赖时常常拉取不成功,因此需要手动下载ideaIC依赖并添加到本地。
这个地址即表明ideaIC-2021.2.1版本依赖,根据你开发插件所依赖ideaIC版本不同这里的数字要变更。并且要和你的biuld.gradle中的版本相匹配
intellij {
version = '2021.2.1'
plugins = ['com.intellij.java']
updateSinceUntilBuild = false
sameSinceUntilBuild = false
}下载好zip包,放到本地gradle仓库,如果没有修改过通常在%USER%/.gradle/caches/modules-2/files-2.1
例如ideaIC的路径就是com/jetbrains/intellij/idea/ideaIC/2021.2.1。
将下载下来的zip包计算hash,用gitbash工具sha1sum.exe ideaIC-2021.2.1.zip计算出hash值,并创建以这个hash值命名的文件夹,然后gradle reload就不会再去下载而是直接用本地缓存。
2.gradle build失败
No value has been specified for property 'compilerClassPathFromMaven' in task ':instrumentCode'
这个错误是由于idea插件gradle-intellij-plugin版本问题导致,将build.gradle中版本减低到1.1.3一下可以解决。
plugins {
id 'org.jetbrains.intellij' version '1.1.2'
id 'java'
}边栏推荐
- 网上开通证券账户安全吗 手机炒股靠谱吗
- Account management, database building and four engines + cases of MySQL
- XSS笔记(下)
- Weibo comments on high performance and high availability architecture
- TopoLVM: 基于LVM的Kubernetes本地持久化方案,容量感知,动态创建PV,轻松使用本地磁盘
- Interface isolation principle
- Topolvm: kubernetes local persistence scheme based on LVM, capacity aware, dynamically create PV, and easily use local disk
- Hid device descriptor and keyboard key value corresponding coding table in USB protocol
- getReader() has already been called for this request
- Keepalived 实现 Redis AutoFailover (RedisHA)16
猜你喜欢

Topolvm: kubernetes local persistence scheme based on LVM, capacity aware, dynamically create PV, and easily use local disk

How to use ch423? Cheap domestic IO expansion chip

Analysis of ideal L9 product power: the price is 459800 yuan, the four cylinder engine is adopted, and the endurance is 1315km

Online text digit recognition list summation tool

Processing of slice loss in ArcGIS mosaic dataset

每日刷题记录 (五)

Meituan: data management and pit avoidance strategy summarized after stepping on Thunder for several years

做了两天的唯美蝴蝶动画

C#程序结构预览最基础入门

清华&智源 | CogView2:更快更好的文本图像生成模型
随机推荐
Statistical Hypothesis Testing
Kept to implement redis autofailover (redisha) 15
Interface test framework practice (I) | requests and interface request construction
ESP32实验-自建web服务器配网02
ML:机器学习工程化之团队十大角色背景、职责、产出物划分之详细攻略
getReader() has already been called for this request
How to measure the thickness of glass substrate by spectral confocal
ESP32-添加多目录的自定义组件
Great vernacular with high concurrency (I)
博日科技招股书失效,中金公司已停止对其辅导,放弃港交所上市?
微博评论高性能高可用架构
memcached基础5
IIS 部署静态网站和 FTP 服务
How to convert an old keyboard into a USB keyboard and program it yourself?
LeetCode 142. Circular linked list II
CEC-I 中华学习机使用说明与问答
leetcode 1143. Longest Commom Subsequence 最长公共子序列(中等)
Database interview questions +sql statement analysis
Summary of working at home during the epidemic | community essay solicitation
The listing of Fuyuan pharmaceutical is imminent: the net amount raised will reach 1.6 billion yuan, and hubaifan is the actual controller