当前位置:网站首页>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' }
边栏推荐
- JSON parsing, esp32 easy access to time, temperature and weather
- Meituan: data management and pit avoidance strategy summarized after stepping on Thunder for several years
- About Random Numbers
- Ml: a detailed introduction to the division of the top ten roles, backgrounds, responsibilities and outputs of the machine learning engineering team
- 清华&智源 | CogView2:更快更好的文本图像生成模型
- The world is very big. Some people tattoo QR codes on their necks
- Hid device descriptor and keyboard key value corresponding coding table in USB protocol
- Analysis of ideal L9 product power: the price is 459800 yuan, the four cylinder engine is adopted, and the endurance is 1315km
- Memcached Foundation
- 如何把老式键盘转换成USB键盘并且自己编程?
猜你喜欢
XSS attack notes (Part 1)
One click acceleration of Sony camera SD card file copy operation, file operation batch processing tutorial
CLIP:从自然语言监督中学习可迁移的视觉模型
福元医药上市在即:募资净额将达到16亿元,胡柏藩为实际控制人
LeetCode 142. Circular linked list II
持续交付-Blue Ocean 应用
一键加速索尼相机SD卡文件的复制操作,文件操作批处理教程
BS-GX-016基于SSM实现教材管理系统
LeetCode 142. 环形链表 II
3 - wire SPI Screen Drive
随机推荐
Kept to implement redis autofailover (redisha) 15
About Random Numbers
通过Rust语言计算加速技术突破图片识别性能瓶颈
Bs-gx-016 implementation of textbook management system based on SSM
乔治·华盛顿大学 : Hanhan Zhou | PAC:多智能体强化学习中具有反事实预测的辅助价值因子分解
memcached基础7
Clip: learning transferable visual models from natural language monitoring
memcached基础2
30 MySQL tutorial MySQL storage engine overview
Encapsulation of unified result set
做了两天的唯美蝴蝶动画
Keepalived 实现 Redis AutoFailover (RedisHA)17
Statistical Hypothesis Testing
George Washington University: Hanhan Zhou | PAC: auxiliary value factor decomposition with counterfactual prediction in Multi-Agent Reinforcement Learning
memcached基础6
markdown表格(合并)
一键加速索尼相机SD卡文件的复制操作,文件操作批处理教程
Buuctf PWN write UPS (6)
memcached基础5
Bootstrapblazor + FreeSQL actual combat chart usage (2)