Today we reimaged the cRIO and updated the FIRST NetBeans plugins. Now our code is filled with random red error underlines on things that are certainly not errors, such as imports and declarations and even a few methods that were perfectly fine before the updating. The code still compiles fine with no real error messages, but it’s a little worrying, not to mention annoying if a real error occurs.
- No, there is not a semicolon missing.
- This is the only laptop that has NetBeans on it. I uninstalled/reinstalled NetBeans after all the updating today and the “errors” didn’t go away.
- The code does still compile fine, but the errors won’t go away…
Any help/ideas would be greatly appreciated.
Netbeans automatic error detection can get confused sometimes. Often closing a project and Netbeans, then reopening it will help. But it sounds as if you’ve already done it. You say it compiles fine? But it still shows errors? Another thing to check is to make sure the project library paths and Java version are set correctly. Sometimes updates will mess those up.
Also try “clean and build”. You said you reinstalled Netbeans, did you redo the update too?
Another thing to do that might work is to start a new FIRST project and move your old files to the new project and rebuild.
NetBeans and all the plugins are the newest versions, as far as I can tell. I tried a clean/build and the “errors” are still there, but it compiled fine. Tried making a new project, which had “errors” from the moment I opened it. I think you’re right about the library paths. However, there does not appear to be a way to change them through the “projects” tab. However, that does not mean there isn’t a way to change them…
?
1 have you imported the required/neccicery wpi files
2 have you declared them
3 are caps in places where they shouldnt be
if else recheck/reprogram a similar program and post the differance as they may be of help to others
- Yes - netbeans is saying all the imports are errors even though they aren’t
- Yes - netbeans thinks the declarations are errors too
- No
The program was perfectly fine before the updates. Then we updated. Then netbeans got angry.
As of right now, I have uninstalled and reinstalled netbeans and the FIRST plugins twice on our main laptop. I am installing netbeans on our older laptop (so old I needed to install the JDK because it didn’t even have one) to test whether our laptop is screwed up or whether our code is.
If/when I figure out what’s wrong, I’ll post that too. In the meantime any other suggestions are more than welcome.
Ok, netbeans now works on our really old laptop and the project is fine. No “errors”. Which is fine, but it doesn’t actually solve the problem on the main one… but of course it could always be that our main laptop is pretty messed up.