简体   繁体   English

为什么我的编辑器不能在带有 TMC 的 NetBeans 中工作?

[英]Why is my editor not working in NetBeans with TMC?

I am using NetBeans with TMC 1.5.0.我正在使用带有 TMC 1.5.0 的 NetBeans。 Normally when I type code with incorrect syntax, there is a red squiggly line underneath the error.通常,当我键入语法不正确的代码时,错误下方会出现一条红色波浪线。 However, now when I type invalid code such errors do not appear.但是,现在当我输入无效代码时,不会出现此类错误。 I have checked Tools > Options > Editor and everything seems to be correct there.我已经检查了工具 > 选项 > 编辑器,那里的一切似乎都是正确的。

在此处输入图像描述

I feel like this has something to do with the editor not recognizing my main class correctly because when I browse main classes I get an initializing view, please wait... message indefinitely.我觉得这与编辑器无法正确识别我的主要 class 有关,因为当我浏览主要类时,我得到一个初始化视图,请等待...消息无限期。

在此处输入图像描述

I added the class directory as the main class but this still did not work.我添加了 class 目录作为主 class 但这仍然不起作用。

edit: I am working through the mooc.fi java course.编辑:我正在学习 mooc.fi java 课程。 TMC beans is what they say to install on this https://www.mooc.fi/en/installation/netbeans/ page. TMC bean 就是他们所说的要安装在这个https://www.mooc.fi/en/installation/netbeans/页面上。 I am on Netbeans with TMC 1.5.0 and I am using JAVA 8. .我在 Netbeans 和 TMC 1.5.0 上,我正在使用 JAVA 8。 Attempted Solutions: I can manually enter the project name into the project explorer to compile the code but this still does not fix the issue of NetBeans not recognizing the main class for syntax errors.尝试的解决方案:我可以在项目资源管理器中手动输入项目名称来编译代码,但这仍然不能解决 NetBeans 无法识别主要 class 语法错误的问题。 I also tried clearing the cache but this did not work either.我也尝试清除缓存,但这也不起作用。

Versions: NetBeans with TMC 1.5.0 Java: 8 In order to solve this issue, I deleted all instances of Java 8 and downloaded Java 11. I also deleted the Appdata folder of tmcbeans. Versions: NetBeans with TMC 1.5.0 Java: 8 In order to solve this issue, I deleted all instances of Java 8 and downloaded Java 11. I also deleted the Appdata folder of tmcbeans.

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

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