JPS增量注释处理已禁用.部分重新编译的编译结果可能不正确 [英] JPS incremental annotation processing is disabled. Compilation results on partial recompilation may be inaccurate

查看:8721
本文介绍了JPS增量注释处理已禁用.部分重新编译的编译结果可能不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于 IntelliJ IDEA 2020.3.2 (我使用社区版),我开始得到:

Since IntelliJ IDEA 2020.3.2 (I use Community Edition), I started getting:

Parsing java... [applicationname]
java: JPS incremental annotation processing is disabled. Compilation results on partial recompilation may be inaccurate.
Use build process "jps.track.ap.dependencies" VM flag to enable/disable incremental annotation processing environment.
Writing classes

在IntelliJ IDEA中运行应用程序时发出警告.

warning, upon running the application within the IntelliJ IDEA.

这实际上是在构建阶段发生的,这是当您为第一个"应用程序运行应用程序时所发生的.时间(更确切地说,是在构建 target (或您配置为构建结果目录的任何内容)时).

This actually happens during the build phase, when you run your application for the "first" time (to be more precise, when target (or whatever you have configured as a building result directory) is being built).

此消息是什么意思?

推荐答案

由于IDEA的构建是增量式的,因此它使用包装器接口来收集一些数据,这些数据将有助于增量式分析来正确地编译受更改影响的文件.

As IDEA's build is incremental, it uses wrapper interfaces in order to collect some data that will help incremental analysis to correctly compile files affected by changes.

-Djps.track.ap.dependencies = false 选项(如果添加到以下位置):

The -Djps.track.ap.dependencies=false option if added in:

文件|设置/首选项|构建,执行,部署|编译器构建流程VM选项字段将禁用在调用Filer方法时由注释处理器指定的依赖项的收集.

File | Settings/Preferences | Build, Execution, Deployment | Compiler | Build process VM options field disables collection of dependencies specified by an annotation processor when Filer methods are called.

在更高版本的IntelliJ中,该设置现在位于:

In later versions of IntelliJ, the settings is now under:

文件|设置|构建,执行,部署|编译器共享的构建过程虚拟机选项

File | Settings | Build, Execution, Deployment | Compiler | Shared build process VM options

查看此问题的更多详细信息: IDEA-252069 .

See some more details in this issue: IDEA-252069.

这篇关于JPS增量注释处理已禁用.部分重新编译的编译结果可能不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆