Friday, 14 February 2014

Shoes for the Shoemaker

We shoemakers are typically so busy making shoes for others that we and our children are often out and about in shoddy shoes if not barefoot. There is also a strong tendency in the wider Eclipse community to find fault without taking action, looking instead to others to magically fix problems while feeling entitled to "motivate" those actions with poisonous complaints. We should consider carefully what's wrong with this picture.

Consider for example the all-important Eclipse Platform project and the perennial concern about the limited contributions it receives.  Of course this same concern extends to all projectswe'd all love high-quality contributions associated with each and every Bugzilla reportbut let's just take the platform as a case in point.  Suppose you would like to provision an IDE for working with the platform SDK source so you can commit your bug fixes to Gerrit.  All you need to do to get started is follow a few simple steps.

That's right, in the modern age of integrated development environments, you're expected to act as an interpreter for converting human language scripts into machine operations.  Does that not strike you as completely anachronistic?  Of course you're likely already doing this each time you provision an IDE to work on your own project, and you likely don't keep up with the release train milestones because it's a royal pain to do all this work each time there's a new version.

This whole problem irritates me to the extreme, not so much the platform's specific problem, but the fact that I have the same problem for EMF and for every project I use and to which I wish to contribute.  Just so you don't think I'm throwing bricks at the platform, have a look into my glass house, in particular at the extremely lovely analog of the platform's wiki page for setting up EMF's source. Good luck getting that to work!  What that heck is CVS? 

Not only is it anachronistic to follow scripts manually, it's always the case that these scripts become dated and are in need of constant maintenance, which, as busy developers, we don't have time to do.   Compound that with the fact that the scripts are buggy, you should not be surprised that when you treat the community like monkeys, you end up mostly with a lot of hooting.

Oh well, so much for the whining, sniveling, and complaining part, this problem calls for action.  Eike and I, being inherently lazy, don't even want to follow these kinds of scripts ourselves so we've worked on an  alternative approach. Yes, there's still a script for bootstrap purposesyou can help improve itbut here's the synopsis:
  • just as you would any Eclipse package, download the appropriate version of the Eclipse Oomph installerwe need to do some brand marketing instead of just calling it the "Setup tool",
  • unzip it,
  • run it, 
  • select the project you wish to set up, 
  • go for coffee, 
  • and come back to enjoy your fully provisioned IDE along with that fresh cup of Java.
Here's how you'd provision an IDE for working with the platform's SDK:




Here's the end result:


Of course a workspace with the entire Eclipse SDK as source is a bit aggressive, but it's a great proof of concept that it can be done for the entire platform. Be patient though, Rome wasn't built in a day: the platform's code base is very large, so cloning it all takes time, for me more than an hour!  Try a simpler project, like the EMF Core SDK, if you want more immediate gratification, and keep in mind that this would not be any faster if you did it manually.  Note that Oomph was built with EMF.  Did I mention that we're inherently lazy?

It's quite easy to author an executable setup script for your own project.  Here's how the platform's setup script looks:


The platform's script is quite complex because the platform itself is complex. Not only that, there are gotchas to get the platform to build without errors, e.g., an inherent need to install several JREs, which I avoided by changing project-specific preferences to not treat an imperfect JRE match as an error. You can see there are tasks to set global preferences, a task to install additional tools, e.g., the EE profiles feature, tasks to clone the dozens of repos, a task to materialize the target platform, a task to populate reasonable dynamic working sets, and so on.  Unfortunately it's apparently very hard to build all the platform's Ant jars and there appears to be a platform bug that requires an IDE "Restart" followed by a "Build All" before everything builds without errors and with less than 17,000 warnings. Note that the provisioned target platform contains only bundles from Orbit and from Jetty; I have no idea how the Jetty folks provision an IDE to work with source.

Eike and I intend to maintain an index of all Eclipse project setup scripts so that our community of contributors can enjoy one-stop shopping.  In addition, there are already folks looking to maintain indices for other open source forges.

The script-authoring documentation is a work in progress, but of course you can look at all the working examples as a basis for creating your own; remember to turn on "Live Validation" in the editor to catch problems early.  Note that if you provision the CDO Release Engineering environment using Oomph, you'll have all of Oomph's source code and some example scripts at your fingertips.  Contributions to the project are welcome; your changes can be easily committed to Gerrit. If you have questions, please use the EMF newsgroup and prefix the subject line with "[Oomph]". If you find problems, please report a Bugzilla. And finally, if you're so inclined, come see our EclipseCon presentation!

As you might expect, we're not the only ones who recognize the need to solve this vexing problem nor the only ones with a solution for it.  If you need this same type of thing in an enterprise context, you'll want to have a look at the cool features of p3, e.g., carefully managed inside-the-firewall p2 repositories.

As a footnote, it's committer representative election time again.  How will you decide how best to cast your vote given the 4 available choices this year?  Of course you'll want people who actively represent your committer interests at Eclipse, so you might glance at commit stats to see who's actively committing to notice these lines-of-code-committed stats over the past 1, 3, 6, and 9 months:


As a caveat, keep in mind that modeling is a great productivity amplifier!  Not only that, code commits are not the only significant committer activity and are mostly certainly not a good measure of who will best represent your interests.  On that note, I can only promise that, if elected, I'll continue to do my best to make sure Eclipse is a great place to be.  You can definitely count on me to take action where action is needed.

12 comments:

Marco Descher said...

Thats terrific!

Just downloaded and wanted to try it on OS X ... complains for missing JAVA 6 however - that seems anachronistic :)

Thanks for the great work guys!!

Marco Descher said...

I found a solution for this Java 6 problem on stackoverflow!

Unknown said...

This rocks! Thanks!

Sebastian Sampaoli said...

Awesome! Thanks Ed. I also went to your Eclipse Con presentation and it was amazing!

Anonymous said...

Thanks for creating this tool, I'm giving it a run as I'm writing this. Been looking this type of tool ever since I started using Eclipse 8 years ago.
:-)

CARDENAS NAIDA said...

hello everyone, i had a poor erection from birth, i noticed myself when i was 7years old. my penis is very small that its only use is to pass out urine. when i was 23, i tried to come close to women, my penis will not stand erect to make love. this has been my greatest problem until i met a man called Dr. EDIONWE. he assured to cast a spell on me for long penis and erection and high sperm count. it seems like a dream to me, i decided to give it a trial because this has been my greatest problem and medical attention have not been of help. it seems shock to me. i made love with the girl i have always dreamnt to be with and i intend to get her pregnant. i know its not easy to live in this condition so i cannot keep this miracle to myself. i urge everyone in similar condition to contact Dr. EDIONWE today via email edionwesolutiontemple@gmail.com. Any problem you are, he has a way of bringing solution to it. if mine is possible, then i can say nothing is impossible. contact him today via email edionwesolutiontemple@gmail.com. there will be a miracle, and you will share testimony as i am doing now. feeling happy!!! grateful heart!!!

Anonymous said...

My name is Camille bruno Valdez my partner and I have been trying for a baby for over two years now, We were going to a fertility clinic for about 5 months before somebody told us to contact this spell caster who is so powerful, We contacted him at this email; arewaspecialistttemple@gmail.com , for him to help us, then we told him our problem, he told us that we will either conceive in February 2014 or March 2014,but after two years of trying we were at a point where we were willing to try anything. And I'm glad we came to Dr Dahiru, Because his pregnancy spell cast put us at ease, and I honestly believe him, and his gods really helped us as well, I am thankful for all he has done. contact him via email: arewaspecialistttemple@gmail.com if you are trying to get a baby or want your lover back. he has powers to do it, he has done mine,

Rosa said...




I want to thank Dr EBOSA for the herbal HIV medicine he gave to me and my daughter, i was suffering from HIV when i gave birth to my daughter and that was how my daughter got the sickness indirect from me, but to God be the glory that i am heal today with the help of the herbal medicine that DR EBOSA gave to me when i contacted him. i want to use this medium to tell everyone that the solution to our sickness has come, so i will like you to contact this great healer on his email address:ebosaherbalremedy@hotmail.com.... with him all your pains will be gone, i am really happy today that i and my daughter are cured of HIV, we are now negative after the use of his medicine,my doctor confirm it. once more i say a big thank to you Dr EBOSA for healing hands upon my life and my daughter, i say may God continue to bless you abundantly and give you more power to keep helping those that want your help in their lives. email him now he is waiting to receive you. :ebosaherbalremedy@hotmail.com

Anonymous said...



My name is Monica, am from Florida. i want to use this opportunity to thank my great doctor who really made my life a pleasurable one today. This great man DR.Oriri brought my husband back to me, i had 2 lovely kids for my husband, about 3 years ago i and my husband has been into one quarrel or the other until he finally left me for one lady. i felt my life was over and my kids thought they would never see their father again. i tried to be strong just for the kids but i could not control the pains that torments my heart, my heart was filled with sorrows and pains because i was really in love with my husband. Every day and night i think of him and always wish he would come back to me, until one day i met a good friend of mine that was also in a situation like me but her problem was her ex-boyfriend who she had an unwanted pregnancy for and he refused to take responsibility and dumped her. she told me that mine was a small case and that i shouldn't worry about it at all so i asked her what was the solution to my problems and she gave me this great man phone number and his email address. i was doubting if this man was the solution, so contacted this great man and he told me what to do and i deed them all, he told me to wait for just two day and that my husband will come crawling on his kneels just for forgiveness so i faithfully deed what this great man asked me to do and for sure after two days i heard a knock on the door, in a great surprise i saw him on his kneels and i was speechless, when he saw me, all he did was crying and asking me for forgiveness, from that day, all the pains and sorrows in my heart flew away,since then i and my husband and our lovely kids are happy.that why i want to say a big thank you to DR.ORIRI GRATE TEMPLE. This great man made me to understand that theirs no problem on earth that has no solution so please if you know that you have this same problem or any problem that is similar, i will advise you to come straight to this great man. you can email him at:inheritancespellcaster@gmail.com

June Monzon said...

I want to share a great testimony on this website on how great Priest Babaka help me in falling pregnant,me and my husband have been trying to have a baby for over 4years,but they where no luck so we decided to contact the family doctor and after all the test have been done,he said to us that my fallopian tube is not functioning.then one day i was in the office when a friend of mine who have the same problem with me, fall pregnant after she contacted Priest Babaka .she directed me to him and when i contacted him through his email and he did the purification on the pregnancy spell and in 2weeks time i was feeling some how and i went to meet the family doctor who told me that i am pregnant.if you know that you have a similar problem like this, or any fertility issue and you want to be pregnant you can contact Priest Babaka via Email:babaka.wolf@gmail.com

Frank Silver said...

My name is Frank Silver from uk, I am here to give my testimony about a doctor who helped me in my life. I was infected with HERPES SIMPLEX VIRUS in 2010, i went to many hospitals for cure but there was no solution, so I was thinking how can I get a solution out so that my body can be okay. One day I was in the river side thinking where I can go to get solution. so a lady walked to me telling me why am I so sad and i open up all to her telling her my problem, she told me that she can help me out, she introduce me to a doctor who uses herbal medication to cure HERPES SIMPLEX VIRUS and gave me his email, so i mail him. He told me all the things I need to do and also give me instructions to take, which I followed properly. Before I knew what is happening after two weeks the HERPES SIMPLEX VIRUS that was in my body got vanished . so if you are also heart broken and also need a help, you can also email him at ekpikuspellhomeofgrace@hotmail.com or ekpikuspellhomeofgrace@gmail.com THESE ARE THE THINGS Dr. Ekpiku. . HERPES . HIV/AIDS . CANCER

SARAH KINGSLEY said...

I want to share my testimony on how i get cure of my HERPES GENITAL with the help of Doctor Bolala,i have being suffering for this disease for a very long time now.i have try several means to get rid of of the (HERPES) disease for the last four years and had constant pain, especially in my knees. During the first year,I had faith in God that i would be healed someday.This disease started circulate all over my body and i have been taking treatment from my doctor, few weeks ago i came on search on the internet if i could get any information concerning the prevention of this disease, on my search i saw a testimony of someone who has been healed from (Hepatitis B and Cancer) by this Man DR Bolala,and she also gave the email address of this man and advise we should contact him for any sickness that he would be of help, so i wrote to DR Bolala telling him about my (HERPES Virus) he told me not to worry that i was going to be cured!! hmm i never believed it,, well after all the procedures and remedy given to me by this man few weeks later i started experiencing changes all over me as the Doctor assured me that i am cured,after some time i went to my doctor to confirmed if i have be finally healed behold it was TRUE, So friends my advise is if you have such sickness or any other at all you can email DR Bolala on this mail,doctorbolala@gmail.com sir i am indeed grateful for the help i will forever recommend you to my friends and to share this to every one that have any of this sickness you can call him on via +2348082281460