简体   繁体   English

Netbeans 12.0 Java 提示和亮点不起作用

[英]Netbeans 12.0 Java hints and highlights not working

Suddenly the hints and highlights on Netbeans stopped working for me.突然,Netbeans 上的提示和亮点对我不起作用。 It won't show suggestions on imports and it won't highlights errors.它不会显示有关导入的建议,也不会突出显示错误。 I intentionally wrote int i = "hello": and the code wasn't highlighted and no warnings came up.我故意写了int i = "hello":并且代码没有突出显示,也没有出现警告。 I've checked >Preferences >Editor and form what I can tell Code Completion, Code Templates, Hints and Highligthing are all selected.我检查了 >Preferences >Editor 并形成了我可以告诉的代码完成、代码模板、提示和 Highligthing 都被选中了。 I checked some older posts here and also tried to delete the index in the caches folder.我在这里查看了一些较旧的帖子,还尝试删除缓存文件夹中的索引。 I've discarded my project and started over, uninstalled and installed Netbeans and restarted my laptop at few times now but the issue is still there.我放弃了我的项目并重新开始,卸载并安装了 Netbeans 并重新启动了我的笔记本电脑几次,但问题仍然存在。 It was working fine until yesterday afternoon.直到昨天下午它工作正常。 Any suggestions?有什么建议么? I run Netbeans on macOS Catalina if that matters.如果重要的话,我在 macOS Catalina 上运行 Netbeans。

EDIT** I now noticed this problem only occurs in projects where I have a JForm.编辑** 我现在注意到这个问题只发生在我有 JForm 的项目中。

I had the same problem and here how I solved it:我遇到了同样的问题,这里是我如何解决的:

  1. Exit Netbeans退出 Netbeans
  2. Go to: C:\Users\UserName\AppData\Local\NetBeans =====> DELETE Cache folder Go 到: C:\Users\UserName\AppData\Local\NetBeans =====> 删除缓存文件夹
  3. Open Netbeans and it's fixed打开Netbeans就修复了

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

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