|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: A work around for Linux users
Quote:
As far as the IDE, its all preference. For most Netbeans and Eclipse are great, and along many lines it is. However, for Linux, we have what's called VIM. This is a SUPERPOWERFUL text editor that gives the programmer tons and tons of options and so forth. Personally I prefer to work with VIM more than Netbeans because my hands never have to leave the keyboard, and what would take simply a click and a drag now takes two keystrokes. VIM does have scripts for autocomplete and so forth which can put it along with Netbeans. Now, I am sure that there are tons of valid points for both sides. However, that is not the point of this thread. Therefore, I must politely ask if we can stick to the question which is not why would we do it but can we?. Thanks. |
|
#2
|
|||
|
|||
|
Re: A work around for Linux users
I have to agree with frasnow - Netbeans isn't a bug we have to "work around"! That said, you asked a fair question, and it deserves an answer.
Yes, it's absolutely possible. Start by downloading the Netbeans modules for FRC and extracting them. Everything you need to know is in there, you just have to find it. To compile the code, you probably need to use Ant. This is what Netbeans uses under the hood, and all of the build processes are already written as Ant scripts. The goldmine is in FRCNetbeansUpdateV3077/edu-wpi-first-squawksdk/netbeans/modules/edu-wpi-first-squawksdk/ant. As you said, Netbeans just FTPs the code to the cRIO. Basic details are on FIRSTForge. There's an Ant script that does the deploy, too, so that might be even easier than using FTP by itself. But we weren't asking about easy, were we? We're in this to learn... so hack on! ![]() |
|
#3
|
||||
|
||||
|
Re: A work around for Linux users
Quote:
![]() 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. |
|
#4
|
||||
|
||||
|
Re: A work around for Linux users
Well, it seems this was 100 times easier than I thought it was!
For Java:
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! |
|
#5
|
||||
|
||||
|
Re: A work around for Linux users
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)?
|
|
#6
|
||||
|
||||
|
Re: A work around for Linux users
Yes.
|
|
#7
|
||||
|
||||
|
Re: A work around for Linux users
Quote:
![]() |
|
#8
|
||||
|
||||
|
Re: A work around for Linux users
Quote:
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. |
|
#9
|
|||
|
|||
|
Quote:
- Oliver |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|