Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Having trouble deploying code (http://www.chiefdelphi.com/forums/showthread.php?t=150418)

tkdberger 23-08-2016 18:22

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

ahartnet 23-08-2016 18:44

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.

tkdberger 23-08-2016 18:54

Re: Having trouble deploying code
 
Quote:

Originally Posted by ahartnet (Post 1602465)
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.

ahartnet 23-08-2016 19:06

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

tkdberger 23-08-2016 19:12

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.

tkdberger 23-08-2016 19:44

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.

ahartnet 23-08-2016 20:00

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.

tkdberger 23-08-2016 20:07

Re: Having trouble deploying code
 
Quote:

Originally Posted by ahartnet (Post 1602482)
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.

euhlmann 24-08-2016 13:06

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

tkdberger 24-08-2016 13:22

Re: Having trouble deploying code
 
Quote:

Originally Posted by euhlmann (Post 1602637)
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

tkdberger 30-08-2016 10:20

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).

euhlmann 30-08-2016 13:45

Re: Having trouble deploying code
 
Quote:

Originally Posted by tkdberger (Post 1603779)
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.

tkdberger 30-08-2016 19:09

Re: Having trouble deploying code
 
Quote:

Originally Posted by euhlmann (Post 1603803)
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.

tkdberger 01-09-2016 20:11

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.


All times are GMT -5. The time now is 09:54.

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