Go to Post FIRST gives everyone lots of practice in getting used to late nights. - waialua359 [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 17-12-2012, 21:00
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
WPIlibj Plugins not recognizing squawk libraries

We are setting up some new workstations for build season right now, and I've been installing debian, windows and the netbeans+wpilibj on all of them.

So far it has worked out great except for one thing. When I clone the repository from gitihub of our robot code project, this happens on every class.



As far as I can tell, it can't locate the squawk libraries (which have java.lang). I have made sure that /home/user/sunspotsdk has everything it needs (fresh install, so I'd assume no problems). I have also made sure the plugins are set to the correct location to find them.

I have tried version 3077 (2012 official release) and the update from http://first.wpi.edu/FRC/java/netbea...te/updates.xml (whatever version that is)

It's worth mentioning that creating a new project works fine. So is it something in the build file? (I have never touched it) My theory is that is has something to do with switching from a linux environment to windows. I have my git client on windows automatically reformat code to linux standards, but I was negligent a few times and did some commits on the gui git plugin on netbeans. I've tried to revert that, but it did not fix the error.

Is this a known bug? What could cause this type of issue? (I've been trying to deal with this for a while now. Sent Brad Miller an email a while back but haven't seen it dealt with)
__________________
All opinions are my own.

Last edited by joelg236 : 17-12-2012 at 21:01. Reason: fixed link to image
Reply With Quote
  #2   Spotlight this post!  
Unread 17-12-2012, 22:36
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 429
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: WPIlibj Plugins not recognizing squawk libraries

We get something similar in eclipse when the project committed to the repository defines the build path.
If the local machine (that pulled the repo) doesn't have classes.jar and squak_device.jar (for eclipse). This is configured
In eclipse these changes are made by right clicking the project and selecting Build Path > Configure Build Path.
Then from the Libraries tab, edit the two jar file locations.



I pulled up Netbeans, and it looks like you should have a similar type of configuration for each project.
Right click on the project, and go to Properties
My guess would be to check the paths for the "Java Sources Classpath" category.


You can set up your git ignore file to prevent these local configuration files from being included in the git repository. Unfortunately I don't know which file(s) need to be ignored for a netbeans project. If you don't ignore them though, each time someone pushes their changes, they will likely overwrite the version of the file in the repo with the setting changes they made locally (breaking compilation on other clients whose file locations differ).
__________________
http://team2168.org
Reply With Quote
  #3   Spotlight this post!  
Unread 17-12-2012, 22:42
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: WPIlibj Plugins not recognizing squawk libraries

Thanks very much. Seems obvious to me now. I don't have another computer to test this on, but if I just made the properties ignored (.gitignore), when I clone the repo to a new computer, would those be automatically generated by the plugins, or no? If not, how would I make sure that I don't have to do that whenever I switch from windows to linux?

Edit: I found a pretty easy solution. Instead of absolute path, I just use relative path. This makes /home/ equivalent to User/ is windows.
__________________
All opinions are my own.

Last edited by joelg236 : 17-12-2012 at 22:50.
Reply With Quote
  #4   Spotlight this post!  
Unread 17-12-2012, 22:53
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: 8,561
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: WPIlibj Plugins not recognizing squawk libraries

If you initialize the git repository from within Netbeans, it should use only the correct files. I haven't tried it with git, but I've done the same thing with cvs and successfully moved from windows to Linux and back.
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 09:58.

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