Monday, January 16, 2012

Workaround for Ruby support on Netbeans 7.1

Firstly, I messed up. I should have had community-ruby ready for NetBeans 7.1 general release. For all the problems I created for you all, I apologize.



Secondly, The main issues with getting a good release of community-ruby in the catalog for NB 7.1 are:



  1. https://netbeans.org/bugzilla/show_bug.cgi?id=207075 -- Some infrastructure broke which makes it impossible to release at the moment. This may seem like the big problem but in fact….
  2. Netbeans 7.1 updated some components (as software is known to do). One of those components was html.editor.lib. Ruby support was dependent on version 1, but NetBeans 7.1 only ships version 2 now. This is the main reason why the Ruby support from 7.0 is un-installable on 7.1.
I have addressed item 2 enough already to make it installable on NetBeans 7.1. In fact, so far I have:

  1. Updated internal JRuby shipped to 1.6.5.1 (from 1.1.4). It also means update JRuby internals for pieces of community-ruby which depends on JRuby internally. This is a good thing for the future of community-ruby. On top of that, it also gave me a really good idea of what we need to change in JRuby itself to help make JRuby more modular.
  2. Updated community-ruby to compile on Java 7
  3. Changed some no longer compilable unit test base classes to again compile. yay. Unfortunately, there are some regressions to be fixed. But we now have ci builds generating reasonable results again.
If you are interested in installing what I am calling preview1, then grab the preview zipfile. Once you have this file, unzip it (note location) and then within Netbeans 7.1 you can:

  1. Select Tools->Plugins from menu
  2. Select Downloaded tab
  3. Press Add Plugins...
  4. Navigate to where you unzipped the nbms files
  5. Select all files which end in .nbms (you can do this all in one selection but if you include any non-nbms file it greys out the open button)
  6. Accept and install…
Hopefully by the time 207075 is fixed, I will have things greener on the ci builds and also have the dreaded Rails hanging bug fixed. For tracking the official release of community-ruby you can watch bug 207025

101 comments:

  1. Thanks Thomas for all the efforts !!

    ReplyDelete
  2. Thank you for all the work you do on ruby support for netbeans, I use it every day!

    Remco

    ReplyDelete
  3. Looking forward to checking this out. Been stuck on 6.9 for a while now.

    ReplyDelete
  4. Thanks for the work on this important piece of software.

    ReplyDelete
  5. THanks a lot Thomas for such a great effort!

    ReplyDelete
  6. All the best! Keep up the good work.

    ReplyDelete
  7. ROCKS!!!! ... Works on Debian, reads Rvm rubies and Rails 3 basics works...

    ReplyDelete
  8. Please I need help for debugging. I have installed ruby-debug-ide but it's impossible to debug. I just get a "could not connect to web server - http://localhost:3000"
    Any advices?
    Thanks.

    ReplyDelete
    Replies
    1. Hi Alfredo,I am also trying to find solution for it.Looks like we need to modify the startup script for netbeans.I have tried but still no luck.Please let me know if you have resolved this.

      Thanks,
      Dev

      Delete
    2. maybe u havent turned on the WEBrick server. just guessing

      Delete
  9. Thank you very much. I am still using NB 6.9 for Rails development. Hope to move to NB 7.1 thanks to you.

    ReplyDelete
  10. Thanks a lot! Works like a charm now in 7.1 the only drawback is that you still cannot change the syntax checker to ruby 1.9 - for non raily ruby development.

    ReplyDelete
  11. Such a great IDE, Many Thanks for keeping this going.

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. I don't normally post on these. Thank you SO MUCH for the 7.1 fix. I now have 1 ide for almost all I do. THANK YOU SO MUCH!!!!!

    ReplyDelete
  14. Thanks so much for the great work you've done on the plugin. I'm finally working fulltime with Ruby and Rails on a project, and this really is the best IDE (for Linux) I've used.

    ReplyDelete
  15. Many thanks Tom, now I can work with nb 7.1 on rails applications (I,m currently on ruby 1.8.7 / rails 2.1.2 and it works great, debug works too...)

    ReplyDelete
  16. Thank you very much Tom, for this greatest ruby IDE.
    Using it with 1.8.7, and with rails 3.2 and 1.9.2 as well.

    ReplyDelete
  17. Thank you so much for all the effort on that area. Netbeans was the best Ruby/Rails IDE so far

    ReplyDelete
  18. Quick question do RSpec tests run in netbeans 7.1.1? I'm getting the error 'spec' executable not found.

    Thanks for all your great work!

    ReplyDelete
  19. I am trying to create Rails project on Windows for the first time. Using NetBeans 7.1.1 on Windows 7. Now when I created the first Rails project, it is downloading all the modules. Now it is stuck at 25% for more than 10 minutes or so and the console says "Installing json (1.6.5)". Any thought?

    ReplyDelete
  20. I've finally moved on from 6.9.1 as it didn't seem to work with the latest Ubuntu. I'm really pleased with how the new version (7.1.2) works with Ruby (once you've added your patches). Splendid stuff.

    With one exception. Test files are not appearing in the test folder in Project view. They are visible in Files view but not Project view.

    Also, a more minor irritant is that right clicking the project root in project view is very hit and miss. Occasionally I get a menu, but usually not.

    ReplyDelete
  21. Thomas,

    I can't tell you how much I appreciate your work to keep Netbeans supporting Rails. I've tried Aptana Studio 3, but after two months of trying, I gave up (mostly because I have never found an Eclipse tool that wasn't flaky).

    I love Netbeans for my PHP work and it's fantastic to have Rails support - particularly given that my job now depends on my being able to do Rails.

    Thanks again and, if we're ever together in a pub at the same time, the beers are on me!!

    Stephen Westman

    ReplyDelete
  22. Thanks.

    But, I can't apply this with NetBeans 7.2 Nightly Build.
    http://bits.netbeans.org/netbeans/trunk/nightly/latest/

    How can I it ?

    ReplyDelete
  23. Are there any updates on it, any release, even only source code?

    Even now Netbeans with Ruby plugin is the best Ruby/Rails IDE, so it would be great to see someone working on this.

    ReplyDelete
  24. Love the Ruby plugin, thanks for the work. I'm also wondering if there's any work being done for Netbeans 7.2

    ReplyDelete
  25. You can see the build status here: deadlock.netbeans.org/hudson/job/nbms-and-javadoc/

    ReplyDelete
  26. Thanks a lot.
    Iam trying to get the debugger working with your patch on Netbeans 7.1+Ruby 1.9.3p125 + Rail 3.2.x ( ON MAC OSX LION) but keep having issues.
    Everything else works fine (except the debugger).

    Would appreciate any tips/worksarounds .

    ReplyDelete
  27. Hello, a great work!
    But I have some question, will be autocomplete code works with this modules?
    Thanks.

    ReplyDelete
  28. Hello, a great work!
    But I have some question, will be autocomplete code works with this modules?
    Thanks.

    ReplyDelete
  29. Now that Netbeans 7.2 is out, I don't see Ruby on Rails in the list of plugins. Is there still a workaround out there? Anyone have any suggestions?

    ReplyDelete
  30. Y get two errors when I try to install the plugins in Netbeans 7.2:

    The plugin HTML Editor Library is requested in version >= 2.0.1 (release version 2) but only 3.6.1 (of release version different from 2) was found.

    The plugin HTML Editor is requested in version >= 1.6 (release version 1) but only 2.4.1 (of release version different from 1) was found.

    Someone knows a way to avoid the errors?

    ReplyDelete
  31. Unfortunately, this workaround doesn't work for Netbeans 7.1.2

    I'm getting an exception when I press left button on existing RoR project: NullPointerException at org.netbeans.modules.ruby.railsprojects.RailsProjectUtil.getRailsVersion

    ReplyDelete
  32. oh well, jEdit then... (eliminated the following: emacs w/ dired-tree, gave up on emacs for the 12th time, vim with various file explorer plugins in various degrees of brokeness, eclipse never liked eclipse, textwrangler it just is hard to read ugly was surprised how ugly it looked compared to jEdit 5 beta )...

    jEdit wins and is cross-platform--Main editor. netbeans still for java and PHP and other things perhaps.

    ReplyDelete
  33. Hi, thanks for great work. May I know, is there a way to use it with netbeans 7.2? Cheers.

    ReplyDelete
  34. Here's a link to load it in Netbeans 7.2:

    https://blogs.oracle.com/geertjan/entry/ruby_in_netbeans_ide_7

    I just added a new plugin source, included the plugin, and voila!

    I haven't tested it much but so far, so good.

    ReplyDelete
    Replies
    1. What is the name of the plugin, cose I cant see it on the list...

      Delete
  35. I love the plugin, I've used it extensively on Windows. Now I am running Rails 3 on a MacBook Pro and when I try to run my project I get:
    /usr/bin/ruby: No such file or directory -- script/server (LoadError)

    Apparently it is trying to run script/server instead of rails server

    Is there a workaround this?

    ReplyDelete
  36. Hi, I'm getting an error, 'invalid platform' when I'm trying to create a new project. Does anyone know why is that?

    ReplyDelete
  37. 1 year 4 months later and this still saves one's time. aweseme work!

    ReplyDelete
  38. Thanks for the post, I am techno savvy. I believe you hit the nail right on the head.
    I am highly impressed with your blog. It is very nicely explained.
    Your article adds best knowledge to our Java Online Training from India. or learn thru Java Online Training from India Students.

    ReplyDelete
  39. Thanks for the wonderful share. Your article has proved your hard work and experience you have got in this field. Brilliant .i love it reading. palm tree trimming jupiter

    ReplyDelete
  40. A superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.
    tree removal aventura

    ReplyDelete
  41. I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it..
    tree removal services north miami beach

    ReplyDelete
  42. This is a great article thanks for sharing this informative information. I will visit your blog regularly for some latest post.
    tree trimming companies coral gables

    ReplyDelete
  43. Great article and a nice way to promote online. I’m satisfied with the information that you provided tree trimming services miami beach

    ReplyDelete
  44. Hello, I have browsed most of your posts. This post is probably where I got the most useful information for my research. Thanks for posting, maybe we can see more on this. Are you aware of any other websites on this subject?
    residential tree services hialeah

    ReplyDelete
  45. I think this is one of the most significant information for me. And i’m glad reading your article. tree services near me in miami fl

    ReplyDelete
  46. This post is good enough to make somebody understand this amazing thing, and I’m sure everyone will appreciate this interesting things.tree care companies pembroke pines

    ReplyDelete
  47. You have a good point here!I totally agree with what you have said!! Thanks for sharing your views. hope more people will read this article!!! emergency tree services fort lauderdale

    ReplyDelete
  48. Thanks for the wonderful share. Your article has proved your hard work and experience you have got in this field. Brilliant .i love it reading. palm tree services miami fl

    ReplyDelete
  49. You have a good point here!I totally agree with what you have said!! Thanks for sharing your views. hope more people will read this article!!! commercial tree services west palm beach

    ReplyDelete
  50. I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it..stump removal north lauderdale

    ReplyDelete


  51. I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly.I want to share about tibco training .

    ReplyDelete
  52. I just loved your article on the beginners guide to starting a blog.If somebody take this blog article seriously
    in their life, he/she can earn his living by doing blogging.Thank you for this article.
    tibco sportfire online training

    ReplyDelete

  53. That is nice article from you, this is informative stuff. Hope more articles from you . I also want to share some information about bw Training

    ReplyDelete
  54. All is nice because I feeling very happy to read this news about dissertation writing services
    which is the best writing help provider for those students who have come here from other countries.

    ReplyDelete
  55. Thank a lot. You have done excellent job. I enjoyed your blog . Nice efforts
    Data Science Certification in Hyderabad

    ReplyDelete
  56. Wow, happy to see this awesome post. I hope this think help any newbie for their awesome work and by the way thanks for share this awesomeness, i thought this was a pretty interesting read when it comes to this topic. Thank you..
    Artificial Intelligence Course

    ReplyDelete
  57. Awesome article. I enjoyed reading your articles. this can be really a good scan for me. wanting forward to reading new articles. maintain the nice work!
    Data Science Courses in Bangalore

    ReplyDelete
  58. I am sure it will help many people. Keep up the good work. It's very compelling and I enjoyed browsing the entire blog.
    Business Analytics Course in Bangalore

    ReplyDelete
  59. I need to thank you for this very good read and i have bookmarked to check out new things from your post. Thank you very much for sharing such a useful article and will definitely saved and revisit your site.
    Data Science Course

    ReplyDelete
  60. Excellent Blog! I would like to thank you for the efforts you have made in writing this post. Gained lots of knowledge.
    Data Analytics Course

    ReplyDelete
  61. Your site is truly cool and this is an extraordinary moving article and If it's not too much trouble share more like that. Thank You..
    Digital Marketing Course in Hyderabad

    ReplyDelete
  62. I bookmarked your website because this site contains valuable information. I am very satisfied with the quality and the presentation of the articles. Thank you so much for saving great things. I am very grateful for this site.

    Data Science Training in Bangalore

    ReplyDelete
  63. I have voiced some of the posts on your website now, and I really like your blogging style. I added it to my list of favorite blogging sites and will be back soon ...

    Digital Marketing Training in Bangalore

    ReplyDelete
  64. I found Habit to be a transparent site, a social hub that is a conglomerate of buyers and sellers willing to offer digital advice online at a decent cost.

    Artificial Intelligence Training in Bangalore

    ReplyDelete
  65. The Extraordinary blog went amazed by the content that they have developed in a very descriptive manner. This type of content surely ensures the participants explore themselves. Hope you deliver the same near the future as well. Gratitude to the blogger for the efforts.

    Machine Learning Course in Bangalore

    ReplyDelete
  66. I have read it completely and got really impressed. Love to read more about similar types of articles. Thanks a lot!!
    dissertation service

    ReplyDelete
  67. Half Baked proposal dooms the project A high quality proposal is intended to satisfy others that you have a worthy thesis, and you have capability to complete it, dissertation proposal writing service, research proposal writing service, india, uk

    ReplyDelete
  68. This article really helped me a lot! If someone facing issues with writing networking assignments related to Ruby and Netbeans 7.1 they also can contact a computer network assignment help and get support online.

    ReplyDelete
  69. You have done excellent job Thanks a lot and I enjoyed your blog. Great Post.
    Data Science Certification in Hyderabad

    ReplyDelete
  70. Great post happy to see this. I thought this was a pretty interesting read when it comes to this topic Information. Thanks..
    Artificial Intelligence Course

    ReplyDelete
  71. Nice Post thank you very much for sharing such a useful information and will definitely saved and revisit your site and i have bookmarked to check out new things frm your post.
    Data Science Course

    ReplyDelete
  72. Thanks Your post is so cool and this is an extraordinary moving article and If it's not too much trouble share more like that.
    Digital Marketing Course in Hyderabad

    ReplyDelete
  73. Netbeans has dropped support for ruby, unfortunately. The netbeans and
    Dissertation Writing Services documentation has sections on that matter:.

    ReplyDelete
  74. You have completed certain reliable points there. I did some research on the subject and found that almost everyone will agree with your blog.

    Artificial Intelligence Training in Bangalore

    ReplyDelete
  75. It is late to find this act. At least one should be familiar with the fact that such events exist. I agree with your blog and will come back to inspect it further in the future, so keep your performance going.

    Digital Marketing Training in Bangalore

    ReplyDelete
  76. A good blog always contains new and exciting information and as I read it I felt that this blog really has all of these qualities that make a blog.

    Data Science Training in Bangalore

    ReplyDelete
  77. I am more curious to take an interest in some of them. I hope you will provide more information on these topics in your next articles.

    Machine Learning Course in Bangalore

    ReplyDelete

  78. I am really enjoying reading your well written articles. I am looking forward to reading new articles. Keep up the good work.
    Data Science Courses in Bangalore

    ReplyDelete

  79. It is a very helpful and very informative blog. I really learned a lot from it thanks for sharing.
    Data Analytics Course

    ReplyDelete
  80. This is an informative and knowledgeable article. therefore, I would like to thank you for your effort in writing this article.
    Best Digital Marketing Courses in Bangalore

    ReplyDelete