Go to Post By "resources" do you mean money (sponsor or school), school support or permission, build facilities, or mentors? All of these require different solutions. - Carol [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 16-10-2016, 01:21
Bradley Boxer's Avatar
Bradley Boxer Bradley Boxer is offline
Registered User
AKA: Bradley Boxer
FRC #0303 (TEST Team 303)
Team Role: Programmer
 
Join Date: May 2015
Rookie Year: 2015
Location: United States
Posts: 12
Bradley Boxer is an unknown quantity at this point
Creating Separate WPIlib Installs on one User

My team was recently accepted as a Beta Tester for the 2017 software. The eclipse plugins of the new software are different in ways that make previous year's code uncompilable when using them. In order to maintain backwards compatibility, we decided to manage two separate Eclipse installations. However, the WPIlib plugins always install to C:/Users/USER/wpilib. Is there any way to define this during installation? If not, what method would you recommend of maintaining backwards compatibility with the WPI plugins?

TL;DR
Is there any way to change the WPILib plugin installation directory?

Thanks so much,
Bradley Boxer
Team 303
__________________
The opinions expressed in this post are mine and do not necessarily reflect those of my team.
Reply With Quote
  #2   Spotlight this post!  
Unread 16-10-2016, 01:37
frcguy's Avatar
frcguy frcguy is offline
Unregistered Unuser
AKA: Nicholas Dal Porto
FRC #5940 (B.R.E.A.D.)
Team Role: Tactician
 
Join Date: Dec 2015
Rookie Year: 2012
Location: Burlingame, California
Posts: 854
frcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond repute
This is probably better suited to be answered through the discussion boards in TeamForge. To get there, click Discussion in the top navigation bar.
__________________


2016: Team 5940 (Silicon Valley Regional Rookie All-Star and Quarterfinalist, Curie Quarterfinalist)

Volunteer: 2016 (Chezy Champs Field Reset, Capital City Classic FTA, MadTown ThrowDown FTA)
Reply With Quote
  #3   Spotlight this post!  
Unread 16-10-2016, 01:42
Bradley Boxer's Avatar
Bradley Boxer Bradley Boxer is offline
Registered User
AKA: Bradley Boxer
FRC #0303 (TEST Team 303)
Team Role: Programmer
 
Join Date: May 2015
Rookie Year: 2015
Location: United States
Posts: 12
Bradley Boxer is an unknown quantity at this point
Re: Creating Separate WPIlib Installs on one User

Quote:
Originally Posted by frcguy View Post
This is probably better suited to be answered through the discussion boards in TeamForge. To get there, click Discussion in the top navigation bar.
Thanks, I will post there as well.
__________________
The opinions expressed in this post are mine and do not necessarily reflect those of my team.
Reply With Quote
  #4   Spotlight this post!  
Unread 16-10-2016, 11:52
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,071
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: Creating Separate WPIlib Installs on one User

Quote:
Originally Posted by Bradley Boxer View Post
My team was recently accepted as a Beta Tester for the 2017 software. The eclipse plugins of the new software are different in ways that make previous year's code uncompilable when using them. In order to maintain backwards compatibility, we decided to manage two separate Eclipse installations. However, the WPIlib plugins always install to C:/Users/USER/wpilib. Is there any way to define this during installation? If not, what method would you recommend of maintaining backwards compatibility with the WPI plugins?

TL;DR
Is there any way to change the WPILib plugin installation directory?

Thanks so much,
Bradley Boxer
Team 303
What differences are you seeing? The only change should be the location of the CANTalon package in Java. I'd be interested in hearing what else isn't working properly for you.

Regarding the multiple packages, I believe those locations are hardcoded into the plugins. I will take a look and see if there is anything we can do.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
Reply With Quote
  #5   Spotlight this post!  
Unread 16-10-2016, 13:47
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Short answer is no, there's no easy way. Longer answer is to take a look at this issue: https://github.com/wpilibsuite/EclipsePlugins/issues/15. If you change your HOME environment variable and then fix up things inside eclipse, you can do it. I'd suggest instead just keeping a backup of the ~/wpilib directory and swapping it as needed. If you also have two eclipse instances, each with a different version installed, you can just delete the ~/wpilib directory and then let them restore it.
Reply With Quote
  #6   Spotlight this post!  
Unread 16-10-2016, 16:30
Bradley Boxer's Avatar
Bradley Boxer Bradley Boxer is offline
Registered User
AKA: Bradley Boxer
FRC #0303 (TEST Team 303)
Team Role: Programmer
 
Join Date: May 2015
Rookie Year: 2015
Location: United States
Posts: 12
Bradley Boxer is an unknown quantity at this point
Re: Creating Separate WPIlib Installs on one User

Quote:
Originally Posted by Thad House View Post
What differences are you seeing? The only change should be the location of the CANTalon package in Java. I'd be interested in hearing what else isn't working properly for you.

Regarding the multiple packages, I believe those locations are hardcoded into the plugins. I will take a look and see if there is anything we can do.
In addition to the CANTalon problem we were seeing a weird eclipse error where the code would not compile if the plugins were not installed completely when eclipse started. The problem would be fixed by either generating a new blank robot project or going through each .java file and saving it again.

Quote:
Originally Posted by fsilberberg View Post
Short answer is no, there's no easy way. Longer answer is to take a look at this issue: https://github.com/wpilibsuite/EclipsePlugins/issues/15. If you change your HOME environment variable and then fix up things inside eclipse, you can do it. I'd suggest instead just keeping a backup of the ~/wpilib directory and swapping it as needed. If you also have two eclipse instances, each with a different version installed, you can just delete the ~/wpilib directory and then let them restore it.
Replacing the wpilib folder to match whichever installation we were running worked. Thanks!
__________________
The opinions expressed in this post are mine and do not necessarily reflect those of my team.
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:05.

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