Go to Post Mentor: How is that held in place? CAD Lead: Go to the hardware store and buy a bag of constraints and put the constraints on the robot. - Kenyow [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-08-2016, 18:22
tkdberger's Avatar
tkdberger tkdberger is offline
SPAAACE
AKA: Hugh Mungous
FRC #3494 (Quadrangles)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Bloomington, IN
Posts: 23
tkdberger is an unknown quantity at this point
Unhappy Having trouble deploying code

Hi!

Our team is doing a demonstration of our robot very soon and we need to deploy code onto it. I'm essentially working on a new computer, and just got the FRC plugins and NI software from the 2016 competition loaded onto it. I'm using Eclipse Mars, because Neon wouldn't install the FRC plugins. Our source code can be found at https://github.com/tkdberger/3494_2016_repo.

However, whenever I try to deploy code, over any method, it will build fine, but the actual deploy process does nothing. I'm left staring at a blank console window labeled with
Code:
<terminated> build.xml [Ant Build]
and then the path to the JRE, C:\Program Files\Java\jre1.8.0_101\bin\javaw.exe

Other notes: Eclipse consistently gives the following error on start:

Code:
An internal error occurred during: "Initializing Java Tooling".
    org.eclipse.core.runtime.SubMonitor.split(I)Lorg/eclipse/core/runtime/SubMonitor;
Please help, we really need a driving robot ASAP
Reply With Quote
  #2   Spotlight this post!  
Unread 23-08-2016, 18:44
ahartnet's Avatar
ahartnet ahartnet is offline
Registered User
AKA: Andrew Hartnett
FRC #5414 (Pearadox)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2005
Location: Houston, Texas
Posts: 194
ahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant future
Re: Having trouble deploying code

There's a number of settings to check in eclipse. I don't have our team laptop to check what all they are. Did you make sure to go through the WPI lib steps: https://wpilib.screenstepslive.com/s...ller-java-only

I seem to remember something like checking boxes for wpilib and networktables after right clicking on the project -> properties -> Java Build path.

There's also checking to make sure that you have the team number set up correctly in your project and when you set up your rio.

I'm assuming you have the same language on the rio now as you did last time you used it as well.

Really need more information from the output console to help.

Some notes from the last time I tried to help someone remotely trouble shoot why code wasn't loading. I also just noticed this is the C/C++ forum and not java, but I imagine there are similar things to look for in eclipse.

Quote:
Ensure that you roboRIO is imaged correctly. If you connect up a laptop to the rio and go to roboRIO-3494-FRC.local you should be able to connect to the rio. If you can't, try using a USB cable and going to 172.22.11.2. If that doesn't work - I'd make sure you completed these steps properly:
http://wpilib.screenstepslive.com/s/...borio-firmware
http://wpilib.screenstepslive.com/s/...g-your-roborio
http://wpilib.screenstepslive.com/s/...ller-java-only

Open up eclipse and go to Window -> Preferences then go to Java -> Installed JREs. Make sure that under the name/location it says JDK and NOT JRE. If it does not have JDK, delete the current one, add a new standard VM. Go to C:\Program Files\Java\JDK1.XXX (it may be Program Files or Program Files (x86)

If that's correct then in the preferences window still go to WPILib Preferences and make sure your team number is there

If that's correct then right click on your project, select Properties, then go to the Java BUild Path and make sure that the wpilib, networktables, and jdk system library are all checked

If that's correct then I would do File -> New -> Project. Then select WPILib Robot java Development -> Example Robot Java Project then select the getting started sample project and just try to load that. If that works then for some reason something in your code is preventing it from loading.
__________________
Team 451 The Cat Attack, Student Alumni (2005)
Team 1646 Precision Guessworks, Mentor (2006-2008)
Team 2936 Gatorzillas, Mentor (2011-2014)
Team 5414 Pearadox, Mentor (2015-Present)

Last edited by ahartnet : 23-08-2016 at 18:50. Reason: adding help
Reply With Quote
  #3   Spotlight this post!  
Unread 23-08-2016, 18:54
tkdberger's Avatar
tkdberger tkdberger is offline
SPAAACE
AKA: Hugh Mungous
FRC #3494 (Quadrangles)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Bloomington, IN
Posts: 23
tkdberger is an unknown quantity at this point
Re: Having trouble deploying code

Quote:
Originally Posted by ahartnet View Post
There's a number of settings to check in eclipse. I don't have our team laptop to check what all they are. Did you make sure to go through the WPI lib steps: https://wpilib.screenstepslive.com/s...ller-java-only

I seem to remember something like checking boxes for wpilib and networktables after right clicking on the project -> properties -> Java Build path.

There's also checking to make sure that you have the team number set up correctly in your project and when you set up your rio.

I'm assuming you have the same language on the rio now as you did last time you used it as well.

Really need more information from the output console to help.
I've been through all the documented steps. I thought the one you linked was irrelevant as our code is in c++, but I may as well do it anyway.

I just ensured the team number is correct, I'll get back to you with results.

The main issue is that the console isn't printing out anything, at all. I can film this if you want.
Reply With Quote
  #4   Spotlight this post!  
Unread 23-08-2016, 19:06
ahartnet's Avatar
ahartnet ahartnet is offline
Registered User
AKA: Andrew Hartnett
FRC #5414 (Pearadox)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2005
Location: Houston, Texas
Posts: 194
ahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant future
Re: Having trouble deploying code

Sorry, I noted that this was the C/C++ forum without me updating my link. The correct link to make sure you go through is here: https://wpilib.screenstepslive.com/s/4485/m/13810. In particular, look at the addendum if you're running windows 8
__________________
Team 451 The Cat Attack, Student Alumni (2005)
Team 1646 Precision Guessworks, Mentor (2006-2008)
Team 2936 Gatorzillas, Mentor (2011-2014)
Team 5414 Pearadox, Mentor (2015-Present)

Last edited by ahartnet : 23-08-2016 at 19:08.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-08-2016, 19:12
tkdberger's Avatar
tkdberger tkdberger is offline
SPAAACE
AKA: Hugh Mungous
FRC #3494 (Quadrangles)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Bloomington, IN
Posts: 23
tkdberger is an unknown quantity at this point
Re: Having trouble deploying code

Currently re-installing Eclipse. Will get back to you.

Note to self: do not allow laptops to be re-imaged unless steps are documented to restore them.
Reply With Quote
  #6   Spotlight this post!  
Unread 23-08-2016, 19:44
tkdberger's Avatar
tkdberger tkdberger is offline
SPAAACE
AKA: Hugh Mungous
FRC #3494 (Quadrangles)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Bloomington, IN
Posts: 23
tkdberger is an unknown quantity at this point
Re: Having trouble deploying code

I'm on the verge of madness here.

I've reinstalled Eclipse at least three times now. Every time it manages to remember the broken config from the last one. Each time, the 'Install new software' option appears on the help menu exactly once before vanishing.

The option for running as a deploy is gone. I can't get it to come back.

I fell like I'm living in a nightmare right now. I hope I am at this rate.
Reply With Quote
  #7   Spotlight this post!  
Unread 23-08-2016, 20:00
ahartnet's Avatar
ahartnet ahartnet is offline
Registered User
AKA: Andrew Hartnett
FRC #5414 (Pearadox)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2005
Location: Houston, Texas
Posts: 194
ahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant future
Re: Having trouble deploying code

After you've installed eclipse (and perhaps again after you've installed the frc plug-ins) try restarting the computer.

I've never seen the 'install new software' disappear before.
__________________
Team 451 The Cat Attack, Student Alumni (2005)
Team 1646 Precision Guessworks, Mentor (2006-2008)
Team 2936 Gatorzillas, Mentor (2011-2014)
Team 5414 Pearadox, Mentor (2015-Present)
Reply With Quote
  #8   Spotlight this post!  
Unread 23-08-2016, 20:07
tkdberger's Avatar
tkdberger tkdberger is offline
SPAAACE
AKA: Hugh Mungous
FRC #3494 (Quadrangles)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Bloomington, IN
Posts: 23
tkdberger is an unknown quantity at this point
Re: Having trouble deploying code

Quote:
Originally Posted by ahartnet View Post
I've never seen the 'install new software' disappear before.
It may have to do with the way the compute is connected to the internet. I'll experiment when/if I can

UPDATE: Found the reason for the configs being unchanging, I think. In the home folder there's a .eclipse folder that likely contains all configs.

Last edited by tkdberger : 23-08-2016 at 20:32. Reason: add why config was constant
Reply With Quote
  #9   Spotlight this post!  
Unread 24-08-2016, 13:06
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 322
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Having trouble deploying code

Try running build.xml manually. Install ant, then in your project directory open a terminal and run
Code:
ant deploy
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote
  #10   Spotlight this post!  
Unread 24-08-2016, 13:22
tkdberger's Avatar
tkdberger tkdberger is offline
SPAAACE
AKA: Hugh Mungous
FRC #3494 (Quadrangles)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Bloomington, IN
Posts: 23
tkdberger is an unknown quantity at this point
Question Re: Having trouble deploying code

Quote:
Originally Posted by euhlmann View Post
Try running build.xml manually. Install ant, then in your project directory open a terminal and run
Code:
ant deploy
I'll try that, thanks
Reply With Quote
  #11   Spotlight this post!  
Unread 30-08-2016, 10:20
tkdberger's Avatar
tkdberger tkdberger is offline
SPAAACE
AKA: Hugh Mungous
FRC #3494 (Quadrangles)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Bloomington, IN
Posts: 23
tkdberger is an unknown quantity at this point
Smile Re: Having trouble deploying code

Update:
.eclipse is indeed the culprit of the "Install New Software" button vanishing, that and the fact that the computers at school have a proxy on them (for "security" reasons).
Reply With Quote
  #12   Spotlight this post!  
Unread 30-08-2016, 13:45
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 322
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Having trouble deploying code

Quote:
Originally Posted by tkdberger View Post
Update:
.eclipse is indeed the culprit of the "Install New Software" button vanishing, that and the fact that the computers at school have a proxy on them (for "security" reasons).
Ahh, the classic school "security" that never seems to be done right, at any school.
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote
  #13   Spotlight this post!  
Unread 30-08-2016, 19:09
tkdberger's Avatar
tkdberger tkdberger is offline
SPAAACE
AKA: Hugh Mungous
FRC #3494 (Quadrangles)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Bloomington, IN
Posts: 23
tkdberger is an unknown quantity at this point
Re: Having trouble deploying code

Quote:
Originally Posted by euhlmann View Post
Ahh, the classic school "security" that never seems to be done right, at any school.
True that. At least our robot drives now, since we have a DS and a RoboRIO with code deployed from competition.
Reply With Quote
  #14   Spotlight this post!  
Unread 01-09-2016, 20:11
tkdberger's Avatar
tkdberger tkdberger is offline
SPAAACE
AKA: Hugh Mungous
FRC #3494 (Quadrangles)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Bloomington, IN
Posts: 23
tkdberger is an unknown quantity at this point
Re: Having trouble deploying code

Well, I'm not sure what i did, but working from a clean PC everything seems fine.

I am cautiously optimistic.
Reply With Quote
Reply


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 12:46.

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