![]() |
Eclipse Development
I'm starting work on an all-out development environment in Eclipse. Anything you can do in mplab, Eclipse will do, but better. ;)
I've already written an error parser and toolchain handler, and I've started on the binary parser, a loader, and syntax highlighting extras. I've done enhanced wrapper scripts for mcc18 (no more "c:\mcc18\..."). My question is: How many people (adults and students) would be willing to help maintain it? The highlighting code especially will need to be kept real close to the CDT code, until they figure out how to extend it. The FDT (FIRST Development Toolkit) will take the form of a feature patch of the CDT. Most of the functionality is implemented as plugins. The exception is the actual highlighter, which is a fragment against org.eclipse.cdt.core. So I'm gaging interest to see if it would be worth my while or if it will fizzle out and die. Frankly, I'd love to be able to get this to the point where we can stick it in the kit and send it to the 1500 teams that will be around by then. |
Re: Eclipse Development
Sounds like a good project, I'd definitely use it! And if you need help developing it, I'd be more than happy to lend a hand. I don't know very much about the internals of Eclipse, but I'll pick it up quick.
|
Re: Eclipse Development
Hey, well, I like what you're talking about, and it shouldn't be too difficult. I was just curious on how you would write the binary parsers, since as far as I know, Microchip does not provide any information on the .lib format created by MPLINK. I'd certainly be willing to help though.
A few other questions too. By loader, do you mean code loader (i.e, loading a hex file onto the robot). And just out of curiosity, (since I've been working on error parsers as well), did you actually give the CDT a string to highlight for variable specific errors, or did you just leave it at the line. If anyone's interested in an example of what this might look like, you can install a bare-bones version of what Astronouth is suggesting from the update site at http://team254.bcp.org/update_site/. |
Re: Eclipse Development
Quote:
Quote:
Quote:
Quote:
|
Re: Eclipse Development
Quote:
Quote:
Quote:
|
Re: Eclipse Development
I've got it online!
See the Subversion repository (svn). There is also an Update site for Eclipse 3.2. I just don't recomend any installing it as-is, since there is little real functionality. (I've been working on setting up basic infrastructure!) |
Re: Eclipse Development
sounds awsome
i would probably defiently use it if it works perfectly now, we just need to all hope that ifi doesnt radically change the RC lol |
Re: Eclipse Development
One thing I forgot to mention. My enhanced MCC18 wrappers are in subversion. I just have to figure out how to package them.
Quote:
Even if it doesn't, it'd still work a lot better than MPLAB and IFI Loader. (I can't do much about MCC18.) |
Re: Eclipse Development
this post has intrigued me, but 2 questions. what is eclipse and why should I use it?(I can guess its a IDE/compiler of some sort but to me all compilers kinda look the same. what makes this "better" is the real question Im asking)
|
Re: Eclipse Development
Quote:
The goal is to have a complete code development system all installable from 1 CD. MPLab has no Linux version so you can instead use a modified version of Eclipse. Now that I think of it. Including instructions on how to set up a Subversion server in the final release might be helpful to some teams. |
Re: Eclipse Development
Quote:
The reasons, you can't just use Eclipse CDT right away are as follows:
Problems 2 & 4 are already fixed thanks to a plug-in I initially wrote. 2 has been fixed for a while. 4 was partially working for a while, then broke, and should be working now. The other 2 are not working yet, but are not a very big deal. By innappropriate syntax highlighting, the only thing I can think of, is that certain keywords, such as "rom" & "ram" that are specific to the C18 version of C, aren't highlighted. Most people don't use 5 anyway (I never have). Now why should you use Eclipse:
And it's usable, as chris31 said on Windows and Linux. However, don't be scared off by this fact. If anything, it's more usable on Windows than Linux because there is no hassle with WINE (a sort of windows emulator to get the compiler working) If you want more info see www.eclipse.org Hope I answered your question, Ben |
Re: Eclipse Development
Eclipse is unnecessarily resource hungry, a common drawback to software written in Java. Although Eclipse itself is available for multiple platforms, getting mcc18 to work on Linux is problematic as it relies on Wine, though that is a problem that can be overcome.
http://forum.microchip.com/tm.aspx?m...2&key=𳴥 There is an issue running mcc18 on 64 bit processors. Assuming that these problems are overcome, most of the Linux community already relies heavily on Makefiles because a good majority of Open Source Linux Software is distributed as Source which requires compilation after downloading. Eclipse is indeed resource hungry, and unnecessarily large as a general purpose IDE. You're taking a general purpose IDE and using it for a specific purpose. Most of the Linux community already uses a combination of Makefiles and Emacs for nearly all of their programming needs. Perhaps I should look into creating a pre-customized Emacs for the purpose of working with mcc18. I've created an unfinished but functional Portable IDE-like program written in Perl, as a Test of Concept. If there's a large enough Linux community within the Chief Delphi Programming community, I can adapt this program to run under Linux, so long as they have mcc18 set up. http://www.chiefdelphi.com/forums/sh...threadid=50708 I'm sorry I do not mean to bash anyone's project, I hope it did not seem that way. It's still a great idea, and I would more than love to contribute to its development. Eclipse is also a very versatile IDE, and does have several advantages over using using a few customizations in combination with makefiles. Or some poorly written perhaps unreliable custom IDE. (I suppose I should be allowed to bash my own project) My apologies again. |
Re: Eclipse Development
Quote:
Quote:
There are multiple makefiles around. I use one that updates itself (uses make's variables instead of hard-coded file names). There is a script that will generate one for you. You can also use Eclipse's Managed Make to do it. (Make sure you have the mcc18 toolchain plugin installed.) Quote:
|
Re: Eclipse Development
I'd definitely be interested in helping with the development.
|
Re: Eclipse Development
I just realized that I'm a bit late on that last post, but anyway, if you need any help developing the thing, let me know.
|
Re: Eclipse Development
Quote:
But I agree with your point, Makefiles + text editors are definately the most flexible and robust way to go. While Eclipse is certainly better than MPlab, it has its own set of limitations which should not be overlooked. Quote:
But with Linux, 64-bit is a perfectly valid option. I'm running 64-bit Gentoo over here, and it is 100% functional and stable. Maybe some distros like Ubuntu or Fedora aren't quite as flexible when it comes to 64-bit, but 64-bit Linux should not be discounted. |
Re: Eclipse Development
Well, I hit "no interest", then thought about it.
I would like a replacement for MPLAB, so yes, I could help beta test. I won't realistically help code on this, even though I would like to offer that. This is a really cool project and I hope it doesn't "fizzle out". JBot |
Re: Eclipse Development
Is this project primarily going to be for development on Linux, or is this to make a drop-in replacement for MPLAB? I would be interested in using Eclipse as an IDE for code completion and possible more robust syntax highlighting, but have never really had any problems with IFI Loader or MCC18. Can I just use the IDE portion?
When is the first release coming? Thanks, Robinson P.S. Did CD remove spell check from the reply form? Why do I recall being able to spell check? Or am I blind? |
Re: Eclipse Development
Quote:
@Astro: You think you could get a page up where you (or whoever) can post compressed final copies of all the software as one package to make it easy for those who dont want to mess with svn. Ill start trying to get Eclipse and the plugins working under Windows (my HD with Fedora died last week :( RIP old HD from an Pentium 2 Dell). @gnirts: Yes spell check was removed. FF2 has spell check if you use that. It might come back to the forum but it also might not. |
Re: Eclipse Development
Quote:
|
Re: Eclipse Development
Quote:
PHP Code:
|
Re: Eclipse Development
I got a basic distro of Eclipse, CDT, and the toolchain up.
Win32 - Eclipse 3.2.1, CDT 3.1.1, MCC18 toolchain (com.astro73.fdt version) (130.6 MB) This package is for Windows. This should allow teams to get started using Eclipse quickly. All settings are at defaults. NOTE: This package does not include Cygwin Make. You must have either Cygwin make or a native Win32 Make. MinGW Make will not work. If you get errors about being unable to find "W:\" or similar, you are using MinGW Make. To make your own version:
[edit]This project got approved on sourceforge: https://sourceforge.net/projects/firstclipse/. No code up yet, but the project's there. I'll save the joining process for another post.[/edit] |
Re: Eclipse Development
First, I forgot to say that mirroring the download is ok.
I've moved the subversion to SourceForge, and the jar file for what I posted earlier is in the downloads section on the project page. If you want commit access, you will need a SourceForge ID. Please send that to me and I will add you to the project. In order to develop the plugins, you will need:
Note that if you just installed PyDev, you need to go to the preferences and configure your interpreters. Instructions on loading the projects:
When all is said and done, you should have 6 plugins, 1 site, 1 feature patch, and maybe 1 other project (mcc-wrapper). Almost all of it is just framework. Hardly any real code. Notes:
|
Re: Eclipse Development
Here is some information for those of you who are not familiar with Eclipse.
Eclipse is an extensible, cross-platform IDE. With the C/C++ Development Tooling (CDT), it will work with and compile C code. Subclipse allows for the easy usage of Subversion. (I've also found Eclipse to be flexible. I run it off my flash drive.) This stock configuration works fine for FIRST. I've used it for 2 years so far, and will use it for a 3rd. There are, however, some rough edges and other tools that are not cross-platform. Things like slightly incomplete syntax highlighting, IFI_Loader, error reporting, and Win32 GNU Make. The goal of FIRSTclipse is to polish an already usable program. We aren't writing something from scratch. We're adding on to a very excellent application. The current target list:
Things that will be provided:
My hope is that there will be some mentors involved with this, helping or coding alongside the students. Any questions may be posted here or PM'd, emailed, IM'd, etc. to me. |
Re: Eclipse Development
I can whip out a quick NSIS installer for the Win32 version if you need it.
|
Re: Eclipse Development
Quote:
|
Re: Eclipse Development
Quote:
|
Re: Eclipse Development
There are two big features of Eclipse I failed to mention:
Autocompletion means if you start typing a function, eclipse will show a list of possible functions, and then show you its arguments when you select one. Content indexing means that if you select a function or a variable and hit F3, Eclipse will show you where it is declared. Ctrl+F3 shows you where it is defined (the actual code). What is in the SourceForge downloads area is just the additions I made to Eclipse and the CDT in my own distribution on my website. I did not put the full Eclipse package in SF because of its size. The update site of the whole project is http://firstclipse.sourceforge.net/update/. Note that this includes everything, so you'll get some odd additions to Eclipse with no real functionality. The error parser I believe is fine, but I have had problems compiling it. It seems that if you compile the plugins in the Java 5.0 mode, it won't find some classes. I can make a release of it, and (if people verify that it's ok) add it to the extract-and-go package. The addition of the loader will mean that we can add functionality to it. Storing and retrieving EEPROM settings. Reading hex files. Whatever. We can also add virtual serial ports; in addition to using hardware, you could use, eg, a "serial server" instead. (esp useful if your development system has no serial ports. This is not for USB-Serial adapters.) Note that this is still under development, and I would not recommend using it until we work out the details. Here's my list of priorities (feel free to critique as fit):
Also, I'm considering adding these additions:
The serial called something I'm/we're developing called JSerial. I looked at the "standard" Java library (JavaComm), and I found that it was a pain to gather and install, there was no source available, and the latest version had no Win32 support. (Not even getting into licensing problems.) The current version is in SVN. (Or will be in a few minutes.) Thank you for the offer to handle NSIS, but Eclipse requires no installation. You extract it and run it. And I know NSIS already. (If people would like an installation program, we can add that.) |
Re: Eclipse Development
Check out http://sourceforge.net/project/showf...group_id=62859 from some Java code using CMUCam2. For serial communication I have use http://users.frii.com/jarvi/rxtx/ and liked it.
|
Re: Eclipse Development
Good news! FIRST didn't introduce a radically different controller! No dramatic changes need to be made!
Quote:
As for the camera stuff, I'll look into it. I won't be able to use the GUI code, since it's written with AWT. We'll see how it is. |
Re: Eclipse Development
I go to http://firstclipse.sourceforge.net/update/ then I click on the link to com.astro73.fdt_0.0.001.jar
I get this: Quote:
Thanks in advance, Robinson |
Re: Eclipse Development
Very weird. That should work. I'll look at it when I can access it.
In the mean time, I put a new version of the extract-and-run at http://astro73.com/download/eclipse/. It's the "full" file. It includes the toolchain, the error parser, and Subclipse. It is not, however, tested, so I can't say if it will work. This is the version I'll use to setup my team if it works. I'll post the jars for those two plugins on SourceForge later. As for the update site, I'll make sure to upload the new version later. (The major change is in the branding.) Changes in the toolchain plugin:
EDIT: Ah. It's a bug. The actual file is "..._0.0.1.jar". |
Re: Eclipse Development
i would definitely like to use it
|
Re: Eclipse Development
Wow...I know I'm kinda late in the proccess here but I think this is a great devolpment. I started using Eclipse in my programming classes in college and am in love with it. I helped out with the programming back in the day and I know how big of a headache MPLAB could be. I don't have any real experience writing extensions but I'm going to install the beta version on my box and try it out.
Great job guys |
Re: Eclipse Development
I'm wondering what happened to this project. I've decided to switch from Visual Studio to Eclipse for most of my general coding primarily because I remember hearing a while a go that it's possible for me to code for FRC in Eclipse. By the way, will this project be able to load code onto an RC directly from Eclipse on a Win64 or Win32 system? I'm running Windows Vista 64-bit here at home and our team uses a Win2k laptop, a WinXP 32-bit desktop, and two Win2k desktops. As one of the programmers I end up coding at home and on the laptop mostly. I'm just wondering just how much needs to be done for us to get a working beta before the start of the next season.
|
Re: Eclipse Development
I've gotten the Eclipse IDE, but it won't work on my computer. It says I need the Java Virtual Machine 1.5 or higher, but I can't seem to find it. Does anyone get me a link to where I can get it from?
BTW, it says I have JVM 1.4.2_14. |
Re: Eclipse Development
Quote:
|
Re: Eclipse Development
1 Attachment(s)
It says that I am up to date on the latest download.
I got curious and looked in my hard drive. What I found was that right in the C Drive was the file Eclipse keeps referring to what I have. Moving into my program files, I found the Java folder. Here's what I found. Now what? Any ideas? |
Re: Eclipse Development
Quote:
|
Re: Eclipse Development
My team is all linux right now, and we currently use emacs with the configure python script. I have limited knowledge in eclipse, but would like to help out with this project. I hope its still alive!
However, I keep hearing that FIRST will switch RCs in 2009. Nobody seems to know what this means exactly, but I hope it will still work with this plugin. |
| All times are GMT -5. The time now is 12:51. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi