View Single Post
  #3   Spotlight this post!  
Unread 11-02-2015, 17:25
s-taylor s-taylor is offline
Scott Taylor
FRC #1735 (Green Reapers)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Auburn, MA
Posts: 22
s-taylor has a spectacular aura abouts-taylor has a spectacular aura about
Re: Java code getting g++/gcc errors in Eclipse from c++ scanner?

Case: Closed?

Debugging with an eclipse expert offline, it seems that:

1) I needed to delete the three dotfiles mentioned in my previous reply (this is ok because the project is entirely Java so the files were irrelevant, and

2) also needed to explicitly/manually delete the errors from the Problems tab (they were sticky, even across eclipse restarts)

The running theory is that hitting the RobotBuilder C++ button overlaid both Java and C++ code in the workspace, and re-importing the project into Eclipse happened before I had eliminated 100% of the C++ vestiges... so part of the system believed there was C++ code to parse, while the .project file for eclipse believed that it was purely a Java "Nature" once the remaining C++ files were removed.

Hopefully posting this solution will help anyone else who manages to accidentally paint themselves into a corner.
Now that I've gotten the paint washed off my shoes... back to getting the students ready for the season!

Cheers,
-Scott