Go to Post In the now immortal words of will.i.am, "This stuff is really good!" - neshera [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 11-02-2015, 00:29
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
Java code getting g++/gcc errors in Eclipse from c++ scanner?

I had an error-free code base earlier today.
I finally got around to GIT-ifying the repo (Thanks, GitHub!), and after re-importing the git clone into Eclipse, the auto-scanning "Problems" tab suddenly started reporting a C++ related *error* condition:

Program "arm-frc-linux-gnueabi-g++" not found in PATH

with reported location being:
Project Properties, C++ Preprocessor Include.../Providers, [CDT Cross GCC Built-in Compiler Settings] options

I dug around in the Project Properties, and there are plenty of Java references but nothing even remotely related to c++, and certainly nothing with the hierarchy specified in the Location string.

I'm not sure what I could have done to cause this, and it doesn't seem to prevent the java code from compiling to the point of deployment (I have no robot access today).... but it worries me, especially since it is an error condition that might prevent something from being deployed tomorrow!

Anyway... how did this c++ scanning end up in my java-only project? I did accidentally click on 'c++' in RobotBuilder sometime in the last couple of days and had to go into the project and delete out the c++ files; it's possible something is left hanging behind I suppose. I looked in the build.xml and don't see anything.

Before I go reverting back to earlier pre-git versions and trying to diff/reconstruct a large number of changes... any suggestions?

Thanks...
-Scott
  #2   Spotlight this post!  
Unread 11-02-2015, 01:30
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?

No solution yet, but more data:
One of the git commits added .cproject, .settings\language.settings.xml, and .settings\org.eclipse.cdt.managedbuilder.core.pref s files in addition to the project files I was editing.

These all have c++ and CDT related references in them, so something happened at that time unrelated to the intended edits. I'm just not sure what I need to 'undo'!

I tried renaming the above files and restarting eclipse to see if that solved the problem, but... it didn't.
  #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
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:19.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi