简体   繁体   English

如何禁用IntelliJ IDEA的编译错误检查

[英]How to disable inspections of compile error of IntelliJ IDEA

IntelliJ IDEA suggests there is compile error in source code of jetty. IntelliJ IDEA建议在码头的源代码中存在编译错误。

In Eclipse, it does suggest nothing. 在Eclipse中,它没有任何提示。 And i can run this code. 我可以运行此代码。 So i think this is the problem of IDEA. 所以我认为这是IDEA的问题。

My questions is how to disable this?? 我的问题是如何禁用此功能?

在此处输入图片说明

You can't just disable compile errors of source file in intellij. 您不能仅在intellij中禁用源文件的编译错误。 You can just disable inspection of some code patterns or compile warnings. 您可以仅禁用对某些代码模式的检查或编译警告。

You can flag the folder not to be a source folder in module configuration, and the file will not be compiled anymore... 您可以在模块配置中将该文件夹标记为不是源文件夹,并且该文件将不再被编译...

(But probably you need to investigate the underlined error to fix it really... maybe there is a conflict or a missing library in project configuration like the defined java Project Language Level) (但是可能您需要研究下划线的错误才能真正解决它……在项目配置(例如定义的java项目语言级别)中可能存在冲突或缺少库)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM