Go to Post "Field orientation is like a homing pidgeon that can fly backwards." - LostWolf [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-03-2012, 22:38
carrillo694's Avatar
carrillo694 carrillo694 is offline
Alex Carrillo
FRC #0694 (Stuypulse)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: New York, NY
Posts: 66
carrillo694 is a jewel in the roughcarrillo694 is a jewel in the roughcarrillo694 is a jewel in the roughcarrillo694 is a jewel in the rough
Re: A work around for Linux users

Quote:
Originally Posted by frasnow View Post
Sure it's possible, but why give up powerful tools like autocomplete, visible javadoc, Go to Source, tabs of code, quick access to the FIRST libraries, etc.? Some old time programmers consider those a crutch, but they're actually just wasting time doing things the slow way. Yes, I know some people think the command line makes you look cool, and it's probably a good learning exercise to make this happen. I still ask, why?
theNerd did say he was using Vim -- plenty of plugins exist for autocompletion, going to source, etc., and tabbing comes built in

Vim can be configured to do all the NetBeans magic, and in a fraction of the time it takes to load NetBeans. But that doesn't mean it is easy, or that it makes development easier than NetBeans.

As StevenB notes, for Java we are already supplied with the build scripts (.xml files) -- we just have to use `ant` to properly. Incidentally, the build scripts are rather complicated. A mentor on my team created a visualization to describe the control flow (explained further here.) But you can also get a clue as to the fields from the .xml build scripts that are being invoked, and the order of their usage, by looking at NetBeans output when you Build your code. Brief statements, such as "flashapp:," "deploy:," etc. are printed to stdout as `ant` runs the .xml build scripts.

Also, to clarify, it's not the source code itself that you would FTP to the robot -- it's a .jar file generated from the `ant` build scripts that resides in the `suite` folder of your NetBeans project.
  #2   Spotlight this post!  
Unread 24-03-2012, 22:54
carrillo694's Avatar
carrillo694 carrillo694 is offline
Alex Carrillo
FRC #0694 (Stuypulse)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: New York, NY
Posts: 66
carrillo694 is a jewel in the roughcarrillo694 is a jewel in the roughcarrillo694 is a jewel in the roughcarrillo694 is a jewel in the rough
Re: A work around for Linux users

Well, it seems this was 100 times easier than I thought it was!

For Java:
  1. Go to the root folder of your NetBeans project, where you should see a "build.xml"
  2. in the console, simply type `ant deploy` without the quotes

It's that easy! At least I think so; I need to try it in the lab on Monday. But it appears to be giving me the EXACT same output that the stdout console of NetBeans does after I tell it to Build the project!
  #3   Spotlight this post!  
Unread 25-03-2012, 20:09
theNerd's Avatar
theNerd theNerd is offline
Registered User
FRC #3329 (Cam Bots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2110
Location: St. Marys
Posts: 51
theNerd is an unknown quantity at this point
Re: A work around for Linux users

Quote:
Originally Posted by carrillo694 View Post


in the console, simply type `ant deploy` without the quotes
Are you referring to "the console" as the terminal/command prompt (I'm assuming the task is being completed on a Linux/Unix based system)?
  #4   Spotlight this post!  
Unread 25-03-2012, 20:22
carrillo694's Avatar
carrillo694 carrillo694 is offline
Alex Carrillo
FRC #0694 (Stuypulse)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: New York, NY
Posts: 66
carrillo694 is a jewel in the roughcarrillo694 is a jewel in the roughcarrillo694 is a jewel in the roughcarrillo694 is a jewel in the rough
Re: A work around for Linux users

Quote:
Originally Posted by theNerd View Post
Are you referring to "the console" as the terminal/command prompt (I'm assuming the task is being completed on a Linux/Unix based system)?
Yes.
  #5   Spotlight this post!  
Unread 25-03-2012, 20:07
theNerd's Avatar
theNerd theNerd is offline
Registered User
FRC #3329 (Cam Bots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2110
Location: St. Marys
Posts: 51
theNerd is an unknown quantity at this point
Re: A work around for Linux users

Quote:
Originally Posted by carrillo694 View Post
theNerd did say he was using Vim -- plenty of plugins exist for autocompletion, going to source, etc., and tabbing comes built in
Could you send me the know how on how to do this? I've been trying to get my hands on how to do auto completion for any code (mainly c++ c and java), going to source, and possibly an equivalent to that error checking thing that Netbeans does.
  #6   Spotlight this post!  
Unread 25-03-2012, 20:19
carrillo694's Avatar
carrillo694 carrillo694 is offline
Alex Carrillo
FRC #0694 (Stuypulse)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: New York, NY
Posts: 66
carrillo694 is a jewel in the roughcarrillo694 is a jewel in the roughcarrillo694 is a jewel in the roughcarrillo694 is a jewel in the rough
Re: A work around for Linux users

Quote:
Originally Posted by theNerd View Post
Could you send me the know how on how to do this? I've been trying to get my hands on how to do auto completion for any code (mainly c++ c and java), going to source, and possibly an equivalent to that error checking thing that Netbeans does.
For good autocompletion:
http://www.vim.org/scripts/script.php?script_id=2540

For going to source:
http://www.vim.org/scripts/script.php?script_id=273

For more fancy IDE-style features for Vim (but I have not gotten this to work well for me):
http://eclim.org/

I have not yet found a good preprocessor to find errors before they happen in C++/Java, although I do have one for Python called python.vim.
Closed Thread


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 06:45.

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