OCCRA
Go to Post We do a disservice as mentors if we simply complain. We must inspire our students by showing them how we rise to the challenge and solve the problems we face. - Jon236 [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Events   CD-Media   CD-Spy   FRC-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 01-28-2011, 11:12 AM
Eric Wieser Eric Wieser is offline
Registered User
FRC #0759
 
Join Date: Jan 2011
Location: UK
Posts: 1
Eric Wieser is an unknown quantity at this point
Exclamation Non-static edu.wpi.first.wpilibj.SolenoidBase.getAll() in Eclipse FRC plugin

Hi,

There seems to be a problem with the java class library that comes packaged with the FRC Java Eclipse plugin. Logically, and according to the online documentation, the
Code:
edu.wpi.first.wpilibj.SolenoidBase.getAll()
method should be static. However, in the copy I have, it's clearly not.

Obvioulsy, I can get around this by creating a new Solenoid object solely for the purpose of reading this field. But this would prevent another Solenoid from being instantiated later on the same pin, wouldn't it?

Is anyone else experiencing this problem?

Thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 01-28-2011, 11:23 AM
wdell wdell is offline
Registered User
AKA: William Dell
FRC #3999 (Shadetree Mechanics)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Killeen, Texas
Posts: 55
wdell has a spectacular aura aboutwdell has a spectacular aura about
Re: Non-static edu.wpi.first.wpilibj.SolenoidBase.getAll() in Eclipse FRC plugin

Someone found it a couple days ago while we were working on communications with the dashboard. A bug report was filed, and we've been informed that the fix will be in the next update.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-30-2011, 02:36 PM
Ryan O's Avatar
Ryan O Ryan O is offline
FRC Eclipse Plug-in Developer
no team (FRC Eclipse)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Plaistow
Posts: 111
Ryan O is an unknown quantity at this point
Send a message via AIM to Ryan O
Re: Non-static edu.wpi.first.wpilibj.SolenoidBase.getAll() in Eclipse FRC plugin

Last night I got an e-mail about a updated sunspotfrcsdk file (which contains the library and such) - Eclipse plug-ins have been updated to use it. Not 100% sure if that was release that was mentioned to you (I wasn't the one who updated it) but try updating the plug-ins in Eclipse, this may solve the issue.
__________________
CRUD Name: Windows
Rookie Year: 2005
Alumni to Team: 350
Reply With Quote
  #4   Spotlight this post!  
Unread 01-30-2011, 03:47 PM
DCRich DCRich is offline
Mentor
FRC #2180 (Zero Gravity)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2006
Location: Steinert H.S., Hamilton NJ
Posts: 15
DCRich is an unknown quantity at this point
Re: Non-static edu.wpi.first.wpilibj.SolenoidBase.getAll() in Eclipse FRC plugin

For what it is worth --- the same error exists in the NetBeans plugins as well. The Javadocs seems to indicate that Solenoid.GetA() is static so it is rather confusing trying to dermine why the method returns this error when it should not.
Sounds as if you tracked the error back into the wpilib plugin for Eclipse.

Not clear why this fix should take so long to update. I hope that the rumor about a new update being released this weekend is correct.
Reply With Quote
  #5   Spotlight this post!  
Unread 02-02-2011, 01:52 PM
Ryan O's Avatar
Ryan O Ryan O is offline
FRC Eclipse Plug-in Developer
no team (FRC Eclipse)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Plaistow
Posts: 111
Ryan O is an unknown quantity at this point
Send a message via AIM to Ryan O
Re: Non-static edu.wpi.first.wpilibj.SolenoidBase.getAll() in Eclipse FRC plugin

As of writing this, Eclipse has been updated to the newest sdk - which specifically says in release notes that the getAll() function is fixed. NetBeans should be updated shortly as well.
__________________
CRUD Name: Windows
Rookie Year: 2005
Alumni to Team: 350
Reply With Quote
  #6   Spotlight this post!  
Unread 02-05-2011, 08:26 AM
java4first java4first is offline
(Java) Programming Mentor
AKA: Stu
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2011
Location: Goffstown, NH
Posts: 43
java4first is an unknown quantity at this point
Re: Non-static edu.wpi.first.wpilibj.SolenoidBase.getAll() in Eclipse FRC plugin

I have a further question on this - we pulled down the latest Eclipse update, and it has broken everything (and still not fixed the missing static). So I'm wondering what the approved procedure (and how you test this before uploading the update to the site).

We point to the WPI Eclipse site (last night - foolishly I had everyone update their laptops at the same time, rather than trying it on one to make sure it worked), and say update, and accept the one update, etc. But then we have all kinds of problems with getting it "installed" again. We usually end up with some combination going to the preferences, changing our team number, which forces some re-compile, and then putting it back.

This latest update now runs an FRC build, but when trying to deploy, it complains about missing some version of a zip file, and saying to go to the WPI site and update. Which we do, and it comes back and says you have the latest. I'm not sitting at the lab right now, so I don't have the exact file and message, but I think it was saying it found v25 and wanted v27.

Are you supposed to re-create your workspace / project each time? Or is there some other magic set of steps to make this work?

And, just to be clear - the latest set of plugin updates is supposed to fix the static get all method?

Could you please tell me what version numbers I should see in the Eclipse about installation details listing, so I can make sure we have the right version.

Thanks!
Stu
Reply With Quote
  #7   Spotlight this post!  
Unread 02-05-2011, 09:09 AM
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 7,857
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Non-static edu.wpi.first.wpilibj.SolenoidBase.getAll() in Eclipse FRC plugin

Quote:
Originally Posted by java4first View Post
This latest update now runs an FRC build, but when trying to deploy, it complains about missing some version of a zip file, and saying to go to the WPI site and update. Which we do, and it comes back and says you have the latest. I'm not sitting at the lab right now, so I don't have the exact file and message, but I think it was saying it found v25 and wanted v27.
It sounds like you did not reimage the cRIO after installing the update.

Quote:
Originally Posted by java4first View Post
Are you supposed to re-create your workspace / project each time? Or is there some other magic set of steps to make this work?

And, just to be clear - the latest set of plugin updates is supposed to fix the static get all method?
There were two possible ways to fix the dashboard example, change the library or change the example. For whatever reason, they decided to do the latter. If you create a new dashboard example, you'll see different solenoid code that does compile. Unfortunately, any existing code is still broken, unless you change it to the same method the dashboard example is using.

This is based on my review of netbeans, there may be differences in eclipse.

Last edited by Joe Ross : 02-05-2011 at 09:12 AM.
Reply With Quote
  #8   Spotlight this post!  
Unread 02-06-2011, 07:51 PM
derekwhite's Avatar
derekwhite derekwhite is offline
Java Virtual Machine Hacker
no team (FIRST@Oracle)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2009
Location: Burlington, MA
Posts: 127
derekwhite is on a distinguished road
Re: Non-static edu.wpi.first.wpilibj.SolenoidBase.getAll() in Eclipse FRC plugin

Yes, you need to replace any failing calls to Solenoid.getAll() with Solenoid.getAllFromDefaultModule().

That should have gone into the release notes...
Reply With Quote
  #9   Spotlight this post!  
Unread 02-08-2011, 09:11 AM
java4first java4first is offline
(Java) Programming Mentor
AKA: Stu
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2011
Location: Goffstown, NH
Posts: 43
java4first is an unknown quantity at this point
Re: Non-static edu.wpi.first.wpilibj.SolenoidBase.getAll() in Eclipse FRC plugin

I did get this going:

(1) The re-image of the CRIO was required. After updating NetBeans to get the new image for the NI tool, it worked fine.

(2) The associated Eclipse updated didn't update the sample code for the dashboard, but if you create it in NetBeans, and then copy it to Eclipse, it has the new call correctly done.
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 11:17 PM.

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


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