Versions available

What's new in this version

This was almost entirely just updating current feature set to run using NB 8 APIs. The exception is several refactoring bugs involving renaming of class,instance,or global variables. Also bug 242251 involving variable renaming has been resolved. ZIP archive repackaged to comply with NetBeans Plugin Portal Update Center requirements.

Verifications for NetBeans versions

Plugin is not subject to any verification

Decisions of individual verifiers for Ruby and Rails plugin for NetBeans IDE 7.0

GO

NOGO

UNDECIDED

jpirekjkovalsky

Comments

Decisions of individual verifiers for Ruby and Rails plugin for NetBeans IDE 8.0

Comments

What's new in this version

This version has had extensive work to support Ruby 1.9 syntax support. It was a very surprising amount of work to add this support so please report any problems found to netbeans.org issue tracking system. The good news of this work is that updates for things like Ruby 2.0 syntax support should become much easier (2.0 support will be coming next after debugging new release issues).
Additionally, this plugin now has been updated to ship with JRuby 1.7.3 and all of the non-Rails gems have been updated to their latest releases. The Rails gems themselves will be updated in a future release since changing those specific ones ends up breaking lots of tests.
Some people running with earlier builds had issues with autocomplete locking up the IDE. I have never locally been able to reproduce this but I added a patch recently by Rocko Requin which hopefully resolves that problem.
There is also another issue http://netbeans.org/bugzilla/show_bug.cgi?id=187072 which I am unable to reproduce on my Windows machine. This may or may not still be an issue (several deprecations involving getURL() have been changed recently). Without a good reproduction I am not sure if this has been fixed or not.
For those having installation issues once you unpack the zip file you must select 'All Files' as a filter and select all files that came in the zip file. There is an issue where plugins in Netbeans do not see OSGi bundles (and we have one in this version of Ruby support).

Verifications for NetBeans versions

Plugin is not subject to any verification

Decisions of individual verifiers for Ruby and Rails plugin for NetBeans IDE 7.0

GO

NOGO

UNDECIDED

jpirekjkovalsky

Comments

Decisions of individual verifiers for Ruby and Rails plugin for NetBeans IDE 8.0

User Comments

Title

Comment

HTML markup NOT allowed

new version

This version which you told that is great for all, and after that, it is great to download. If you need it then you will do one thing you just visit https://babasupport.org/printer/epson-error-code-0xf1/

Syntax Highlighting, at least, works in incubator-netbeans-linux-243-on-20171128

Working in 8.2

Version 8.0 works just fine in NB 8.2. Just make sure to install the jar as a plugin (change the defaut extension filter in the file dialog in NB when it asks for the files) and then install the remainging extension files

A simple hack to add support for Puma

This modifies Netbeans to just run the "rails server" command instead of "rails server webrick" and to check for the puma startup string as well as the webrick startup strings, meaning you can run either webrick or puma.

Modify the ruby.railsprojects/src/org/netbeans/modules/ruby/railsprojects/server/WEBrick.java (ie in the Ruby on Rails Project Support sub-project):

a) Add a pattern for where Puma says 'Listening on tcp' to the STARTUP_PATTERNS array:

You then just need to build the plugin and install it in Netbeans (uninstall the existing Ruby and Rails plugin first if you have one, then restart Netbeans and go to Tools / Plugins / Downloaded and install the new build).

You can still force webrick to run by adding webrick as a server argument in the project properties (and presumably you could force Puma to run by making it a server argument).

new update, new problems... like all the time

I don't know what's happen with dev team, because new update netbeans-8.2.1 break plugin for ruby and rails. After install new update and start, it asked for re-install old plugins (stupid question because people don't want to stop working on each new release... no one will answer: "no"). But in fact it failed to install them (because ruby and rails plugin has a .jar file to use).
Ok... i do it my self what devs of netbeans doesn't do well... all is now installed, and plugins has now to be activate (all user downloaded plugins has only one checkbox for all the team...),
Also, need to re-create rails project, and sure, failed session recorded (again... new update, everything fall down and need to be re-indicate, re configurated... WHY ? what is impossible to just take care of the old config ? just do it easy, and update will nopt be a time lost each time).

Ok... i just loose my time with new release, best should be to forbid netbeans to be updated for not loose tiume and session on project.

And, plugin for ruby and rails is old also, and only webrick, no puma, no other way with nginx or passenger... maybe next step should be to uninstall netbeans.

Having trouble getting started with debugging

I'm a bit stuck trying to figure out the debugger with a Ruby project that consists of files I ported to NetBeans (and a main.rb wrapper). If I go to Run | Run project, it kicks off main.rb, but if I go to Debug | Debug Project, I can't tell what it's doing.

I also have the Fast Debugger 0.4 issue (my ruby-debug-ide is 0.6.0) so I try to start with the slow debugger, to no avail. It just sits there with the message "ruby 2.3.1 debugger listens on port 49386" but shows no sign of doing anything.

Clearly I'm not understanding how to debug Ruby using an IDE. Is there a tutorial or doc that could get me up to speed?

Any plans to update this plugin for NetBeans 8.1?

Recently updated to 8.1, and the Ruby plugin no longer functions. This is still the best IDE for ROR in my opinion, so it would be nice to get a new version if it's already in the works. For now, I'll just boot up 8.0.2 for Ruby projects.

Can we update the plugin to accept current versions of ruby-debug-ide?

Is there any reason this plugin still requires ruby-debug-ide 0.4.x to support fast debugging?

I changed the plugin to make the version check just look for 0.x, and it all works fine with the latest ruby-debug-ide, version 0.6.0.

NOTE: if you know how to build the plugin, the relevant code to change is in ruby.platform/src/org/netbeans/api/ruby/platform/RubyPlatform.java. Look for the method "private Pattern getRequiredRDebugIDEVersionPattern()". If you change its code to search for version 0\\.\\* instead of 0\\.4\\.\\* it should work with any version of ruby-debug-ide up to 1.

(I added this note here because I can't for the life of me figure out how to add a new comment!)

Code completion does not work for rails

Can't find Ruby plugin in Tools &gt; Plugins menu

I just installed Netbeans 8.0.2. I attempted to install this plugin through the Plugins interface, but cannot find it. I looked at the Update Centers and downloaded the catalog.xml.gz files for each, but this plugin is not listed in any of them. The Update Centers that came with the base installation are "Certified Plugins", "Netbeans Distribution", and "Plugin Portal"; the last one seems to be the correct one for this plugin.

The Plugin Portal URL is http://plugins.netbeans.org/nbpluginportal/updates/8.0/catalog.xml.gz , and it seems as though this, as a verified 8.0 plugin, should be visible there, but it's not listed. Why does the Plugin feed not include this plugin? Do I need to add a different Update Center?

LOAD_PATH incorrectly constructed

I'm using NetBeans 8.0.2 with the Ruby plugin. The standard line of options for ruby constructed by NB appears to be based on the source and test folders listed in the project options for a ruby project, and should consist of an entry of -I"" for each listed folder. However, the last *source* folder and the first *test* folder are not separated by a space. I have two diagnostics here.

First, when I execute a file from the editor with Shift-F6, the Run File options window pops up. In the entry for "Ruby Options", there is no space between the two -I"" entries, while there are spaces separating all of the others. If I add an additional source folder in the project options as the last source folder, then there is no space between the newly added source folder and the first test folder.

Second, when I list out the LOAD_PATH from inside a program, the two folders have their entries awkwardly concatenated into a single string. Instead of appearing in the LOAD_PATH as
"", "",
they appear as
"-I",
Predictably, neither path is accessible in the rest of the program.

Is there a simple fix for this, apart from the ugly workaround of having dummy folders listed as the last source folder and the first test folder?

Any rake task from contextual popup for ROR project

Re: Any rake task from contextual popup for ROR project

This is pretty odd. The only -K references in sources are -Ku for Ruby itself (which is long in the tooth but is not an error and not to bash) and -K for gem cert. I am guessing some exec utility in NB is perhaps parsing a command string wrongly? Did you get that from the logs of NB or paste it from console?

Problem with example project

Hey there, I have a problem with the example project (Depot Application). When I run the task to migrate the database, there is an error:

*******************************************************************
* config.breakpoint_server has been deprecated and has no effect. *
*******************************************************************

RVM support

Unfortunately RVM isn't supported yet.
There's a writeup by Alan Skorkin which is pointed to from the RVM homepage (under Integration/NetBeans)
Alans solution works as long as you don't have different gemsets for one and the same Ruby version.

Having this problem myself I found the following solution:

NetBeans 8.0 stores the RubyPlatforms (among other things) in
~/.netbeans/8.0/build.properties. RubyPlatforms are at the end of this file.
Each Ruby has 10 lines, JRubies have 11 lines each.
To create a new entry you can either copy a block of lines and edit it accordingly or you could even try Alans method.
Using Alans method reveals the problem: A newly created entry for the same Ruby and a different gemset will not be visible in the Platforms configuration.
Why not?

All platform entries MUST point to different interpreters!
Also, you want to see different names in the list of platforms.

To solve this,

* create an alias for your ruby with a different name using rvm (this will just create symbolic links)
* use the alias-name for your ruby in the interpreter path e.g. rubyplatform.Ruby_01.interpreter=/home/hans/.rvm/rubies/alias-name/bin/ruby
* set a nice unique name, e.g. rubyplatform.Ruby_01.ruby_kind=MyRuby-my-gemset

Take care to adapt the other paths accordingly! Use rvm info to see what you need.

Jruby and compatibility mode

First of all, let me say I'm very pleased how nice the the RoR plugin v0.111 still works in NB 8.0! This is awesome.

This one is a small problem but it's bugging me although I guess there must be a simple solution: To set jruby compatibility mode on a per project basis there should either be a possibility
. to set an environment variable defined in the project configuration or
. NetBeans could honour the Ruby version set in build.properties or
. NetBeans could read .jrubyrc from the projeect directory

Re: Re: Debbugging with Ruby 1.9.3/Rails 3.0.20

Hi di97msgd,
at last I had time to do some tests with your suggestion.
It seems that there are some problem with Ruby 1.9.3 and debugger,
because nothing happens when debugging Rails project (breakpoints won't halt the execution) and stopping the debug session gave shows an exception in rails console.
Thanks anyway!

Install for Marvin357

To install this plugin, you should unzip the plugin, go to Tools > Plugins > Settings tab > Add button > URL: "file:///updates/updates.xml" When you added the update center, go to the Available plugins tab, check for newest, and select Ruby and Rails.

Complete Noob

Someone please help..I am new to NetBeans 8 which I have installed on Linux Ubuntu 12.04. I have downloaded the Ruby on Rails Plugin and cannot figure out how to install it..any info will be useful..Thx in advance.

Install rails plugin

I have downloaded and installed the rails plugin but cannot see it in the list of installed plugins and rails does not show up as an option in the New Project in Netbeans. I originally thought it was because I used the X64 version of Netbeans but installing the X86 version has not made any difference. I must be doing something wrong but cannot see what it is.

UTF-8 encoding problem

Hi enebo,
It should be a Windows's poltergeist. I reinstalled NetBeans and now work find. '-J-Dfile.encoding=UTF-8' is still necesary to display correctly spanish characters like 'ñ' in the NetBeans Output.

Re: UTF-8 encoding problem

UTF-8 encoding problem

Hi, I can't create ruby files (in a ruby app) encoding with UTF-8. I have setting UTF-8 in the project properties and added '-J-Dfile.encoding=UTF-8' to the config file. I experimented this problem with version netbeans 7.4. With 6.9.1 no problems with encoding. Any idea?
Thanks in advance.

Re: 7.4 plugin is missing JRubyParser

I can see that the downloadable version does have the jrubyparser jar so I am wondering if perhaps you did not select all files and not just all .nbms? Many people have installed this (myself included) after fresh nb 7.4 installs so I am wondering what might have caused this.

jrubyparser.jar is not stored in the source it is downloaded as part of the build (see external/binaries-list). It is a netbeans thing.

7.4 plugin is missing JRubyParser?

I tried the 7.4 plugin, and it gives the error "java.lang.NoClassDefFoundError: org/jrubyparser/parser/Ruby20Parser", and navigation and syntax highlighting don't work.

I checked out the plugin source and it looks like the libs.jrubyparser/external/jrubyparser-0.5.3.jar file is missing.

So I checked out the jrubyparser source from https://github.com/jruby/jruby-parser, built it, and copied the output jar file into libs.jrubyparser/external/jrubyparser-0.5.3.jar, rebuilt and repackaged the plugin, reinstalled it, and now it is working.

...about breakpoints in development mode

Breakpoints in development mode

When I used breakpoint in development mode, everything became really slow, for instance opening self -> attributes came up with nothing after some minutes and it stopped stopping for breakpoints after that.
It seems to work better in production mode.

actual latest source code for plugin

Hi,
Am I right that source code for the plugin could be found at http://hg.netbeans.org/community-ruby?
I'm afraid do not see changes in that repository related 7.3 plugin version available for download.
Is it supposed 7.3, 7.4 changes will be|are there as well?

My netbeans plugin (support for custom ruby dsl) depends on ruby. I'd like to investigate some issues after upgrade to 7.3 and 7.4 nb versions.

7.4 version

Sorry I updated the code base to allow Ruby 2.0 syntax and to use a newer jruby-parser and I am bogged down with other work and about 5 regressions. I will try and find some time this week to at least knock those last regressions down. That is the main problem with putting out a release atm.

Plugin issue in nb 7.4

Hi,

I've tried to install the plugin into nb 7.4, the installation has been successfully done but after the restart of the IDE my JEE6 projects say that there are missing server problem, they can't see glassfish anymore and there are no ways to register glassfish server (glassfish is present into services tab but the projects don't see it), if I uninstall the plugin and restart the IDE my JEE6 projects return to work good !

Ruby on Rails in Netbeans 7.4

Support for Rails 4.0

Beware Gotcha

Yes so I managed to instal the plugins as below. The thing that caught me out is that most of the plugins are 'nbm' files but one is a 'jar'. You need to install all of the files to make this work not just the 'nbm's otherwise you get dependency issues

Now I'm happy to be running the 7.3 IDE on my ruby projects. I had been using 6.9.1 and have only just made the leap.

rdebug-ide

Re: Rake Tasks Failed To fetch

The resolution of Rake is based on the Ruby it thinks it is using. There is a RubyPlatform object which returns rake path based on Ruby used. Perhaps in properties of project try and switch Ruby to a different version and see if it corrects?

Re: Rails 4 Support

Yeah, I would like to add enough support for next release to at least run basic Rails commands. Rails support needs some love and I suspect the command-line invocation will be one of several things to update.

Rails 4 support

Hi, I wonder if Rails 4 will be supported in Netbeans by this plugin?
When I try to Run a Rails 4 project, I get:
C:\Ruby200_247\bin\ruby.exe: No such file or directory -- script/rails (LoadError)
and that is correct, in Rails 4 it looks like it should be bin/rails instead of script/rails.
The same thing happens if I try to debug a Rails 4 project.
Maybe there is a really simple solution?

I found a simple workaround, I'm using Windows 7 and created a symbolic link between directories like this:
mklink /D script bin
Now I can start and debug my Rails 4 project in Netbeans.

you must login to download the plugin

Re: Code completion does not work on modules ?

Ok this is strange. I can confirm that what you describe is broken, but if I require a file which has that structure that second file can complete on the module. So it is something about the current file not picking up this indexing info.

Thank you!

Hey, finally just got this working with 7.3 and I just wanted to thank you guys for your continued efforts maintaining the Ruby/Rails plugin. It works great for me so far, and I'm running a very old Ruby/Rails/rdebug stack, but it still works fine with the netbeans debugger!:

Re: Still can't install it

Still can't install it

Renamed the jar file to nbm but of course it's not that easy. I get a timeout when it tries to install the plugin. All others seemed to install successfully. (The file in question is org-jruby-jruby.jar)

Can't download plugin

Re: Glassfish error

Glassfish module may need to be replaced with Puma,Trinidad, or Torquebox for Netbeans support. I have not tried Glassfish in a while but it has been unsupported for over 3? years now so I suspect the problem you are seeing is from dependent modules no longer working well with Glassfish.

Re: Installation Issue

Jesse, Any chance you can bug the proper people on fixing this? I could rewrap that bundle as an nbm but it would literally be to workaround this issue since there is no source in the module. Perhaps I should rewrap it as a module again just to prevent this frustration but then I would need to figure out how to :)

Installation issue

Was not able to install this properly. First, the Plugin Manager » Downloaded tab does not accept the OSGi bundle (*.jar). OK, so I temporarily added the updates.xml as a file-protocol URL update center, then installed that way. That worked initially; but now I have deleted that NB installation and replaced it with a fresh dev build (which I do regularly), and after restarting the OSGi bundle is missing and so the plugin gets disabled. I think the issue was that the bundle got dropped into some cluster in the IDE installation rather than my user directory.

Seems like the work to allow OSGi interoperability with the plugin manager is still not done!

Re: Don't stop at breakpoints

@mgard: You shouldn't need to fix anything (ie in RailsActionProvider.java#runServer) if you use the latest plugin that now works with Netbeans 7.3.

If for some reason you do still want to play with the source code, you can obtain it with this command (the example is for a Linux system, assuming you already have Mercurial installed):

hg clone http://hg.netbeans.org/community-ruby

You can then open the folder that hg creates (ie community-ruby) in Netbeans 7.3 and double-click on the module that you are interested in to open it and see its source files, eg Ruby Debugger. The community-ruby project will build and run/debug using the standard Netbeans menu commands, and there are project commands under "Project / Package As" to create the package files (eg the NBMs) that you can install in Netbeans via Tools / Plugins / Downloaded.

Don't stop at breakpoints

rockorequin, you said:
And debugging doesn't work because RailsActionProvider.java#runServer(final String path, final boolean debug) sets both clientDebug and serverDebug to false, and the code that sets them to true is commented out (which begs the question, why?). Setting them to true allows debugging again.
How can I fix that fault myself, do I have to build something or is there a simpler solution?

You might need to uninstall the other debug gems in case they conflict.

2. You don't need anything in your Gemfile to get it to run, in fact I recommend you remove all those debug gems from it, because I had issues with bundler trying to install the --pre versions of the gems.

3. If you're using rvm, when you set up the ruby env in NetBeans' Project Properties, you need to get the paths exactly right. If you run NetBeans from the command line with the rvm env set up, it will auto-detect the env, but it auto-detects two envs, one of which isn't correct, so you need to figure out which one and delete it.

Re: Editor lockup during code completion

The first workaround I put in (check for Kind.EXACT and return without querying) prevents code navigation for classes from working, eg if I have a class called Test and CTRL-click on the word Test, netbeans doesn't open the test.rb file.

So a better workaround is to put this line in RubyIndex.java#search:

result.addAll(querySupport.query(key, name, kind, fieldsToLoad));

in a newly-started thread, and join to the newly-started thread with a timeout (eg 100 ms seems to be OK). If the new thread times out, the search query will still timeout waiting and still return, so the editor never locks up. And this seems to free up the newly-started thread within a second or two.

With this workaround, when you first type the dot after your class (eg "Test.") netbeans often doesn't show any code completion, but hitting CTRL-space usually makes the code completion appear.

The problem btw is set up during indexing but only appears when you try to do code completion. If I disable Kind.EXACT searches in indexing, the editor never hangs, and it never hangs during indexing if I don't disable them. If I disable them only during code completion, it usually hangs right after I type the dot after my class name.

Another btw: I fixed the issue where is does not not run the browser when you click on debug by setting only serverDebug to true in RailsActionProvider.java#runServer(final String path, final boolean debug).

Another btw: Would it be worth bundling JRuby 1.7 with the plugin instead of 1.6.6 ?

Re: Editor lockup during code completion

Additional to my last comment, I found when I did a clean-and-build that I also had to edit the properties for Ruby-Projects and add my repackaged o.jruby.complete project as a dependency, or it fails to compile.

And debugging doesn't work because RailsActionProvider.java#runServer(final String path, final boolean debug) sets both clientDebug and serverDebug to false, and the code that sets them to true is commented out (which begs the question, why?). Setting them to true allows debugging again.

Other issues I've noticed:

1. When the debugger runs, it doesn't open a browser; I have to manually navigate to localhost:3000.

2. When you first load a Rails3 project and set it to use a native ruby environment (I use the fast debugger ruby-debug-ide 0.4.17.beta14, ruby-debug-base 0.11.30.pre10), trying to run it complains that it can't find script/server. If you restart netbeans, it works, though, so it must be caching something. I think netbeans 7.1.2 also had this issue.

Re: Editor lockup during code completion

@enebo: Oh no, I was kind of hoping you would know how the nb indexing worked!

I fixed the build itself:

1. The first issue I hit was a 'dependent module junit4 is not installed' error, which is due to the bug http://netbeans.org/bugzilla/show_bug.cgi?id=198739. The workaround is to install netbeans as root, then run it once with "sudo -i /usr/local/netbeans-7.2/bin/netbeans" to make it install junit4 in /usr/local instead of your home folder.

2. After this, when I tried to build the project, it complained that the com-jcraft-jsch, org-apache-commons-httpclient, org-apache-commons-io modules were missing. The jar files for these are all in /usr/local/netbeans-7.2/platform/modules, and so I created library wrapper projects for them as described in http://deadlock.netbeans.org/hudson/job/faqsuck/lastSuccessfulBuild/artifact/other/faqsuck/build/faq.html#DevFaqWrapperModules. I also created wrapper libraries for com-jcraft-jzlib and org-apache-commons-logging. This was enough to get it to build, even though the Project Properties / Libraries complained about incompatible specification versions for the wrapper libraries.

3. The "package as NBMs" command created 22 plugins, but not the org-jruby-jruby.nbm module, which the "Ruby Projects" module required, so I couldn't install the plugins in Netbeans. I manually copied the jruby-complete-1.6.5.1.jar file from the o.jruby.complete project module to another folder, then deleted the o.jruby.complete project and made a new wrapper project for jruby-complete-1.6.5.1.jar with codebase org.jruby.jruby. After running "package as NBMs", all 23 NBM packages were created and I was finally able to install them.

Right now it seems to be all working (and not locking up), except that my breakpoints don't work, so I guess it's not connecting to the debugger properly. I'm using ruby-debug-ide 0.4.17.beta14 because the earlier version doesn't work with Rails3/ruby1.9 properly, but the nb-ruby plugin specified version 0.4.10, I think. Would that cause problems?

Re: Editor lockup during code completion

Did you copy jsch manually or have you fixed the build itself? I have continually gotten stuck with the current ant build and I am seriously considering converting this to a maven build since then dep management would be understood by most of us.

I don't know how nb indexing works at all but it is all built on top of core NB APIs so looking at what RubyIndex extends might help give a clue or two (I hope).

Editor lockup during code completion

The plugin was updated for 7.2 some time ago... it took me a long time to figure out how to build it (I got all sorts of errors like "junit4 is not installed", "com-jcraft-jsch, org-apache-commons-httpclient, org-apache-commons-io modules are missing", and it doesn't build the org-jruby-jruby.nbm plugin - I logged how I fixed all these in a comment at https://blogs.oracle.com/geertjan/entry/ruby_in_netbeans_ide_7).

When I finally got it working though, invoking code completion would invariably lock up the editor.

The problem is in the class RubyCodeCompleter where it calls RubyIndex: in the search method, the the line "result.addAll(querySupport.query(key, name, kind, fieldsToLoad));" at some point fails to return from the query method.

This appears to only happen if kind == Kind.EXACT, so adding the test "if (kind == Kind.EXACT) return true;" stops the lockup from happening.

But I guess this probably breaks something in the code completion. Does anyone know what is supposed to be happening and why it locks up, ie what would a proper fix be for this?

Yeah, this is known bug

@nichot20 yeah i know this plugin is still for 7.1. I talked with @enebo and he said he finding a solution for this problem. Stay tuned, and when new plugin is becomes available (and will not be imported to the NB plugin repo) I will update components on nbruby.

Thin server

Re: Abandoned

Actually, perhaps a better term is very slow vs abandoned. I'm sorry I did not see your earlier comment. The current progress is that it has been updated to use jruby 1.6.7 and it now also uses OSGi support so updating JRuby versions should become much much easier, but it is not fit for release.

This is an slightly older build, but this should allow you to install a working version on 7.1.1 as well as 7.1 (let me know if not):
http://blog.enebo.com/2012/01/workaround-for-ruby-support-on-netbeans.html

Support under NetBeans 7.1.1 ?

Ruby and Rails plugin does not load on netbeans 7.1.1

I have this plugin working on netbeans 7.1, MAC. I installed netbeans 7.1.1 and when it launched it asked me if I want to import the settings from 7.1, I agreed but it did not import the settings. Any suggestions?

One of the sexiest plugins

I had to admit that Ruby and Rails for netbeans is one of the sexiest plugins for Rails. If not for the discontinuation of official Rails support for Netbeans from version 7, RubyMine and other paid IDEs for rails would have become extinct by now.

Profiler when starting mongrel

Re: Nebeans memory

On my system I am seeing about 800Mb Real Memory being consumed and I have a lot open (things are snappy and quick for me). I will keep an eye out for any waste, but it might just be that netbeans allocates a large heap for better perf...if your machine does not have enough memory for that max heap then you start swapping and things slow way down. Possibly, reducing max heap could help if you are swapping a lot (memory getting saved to disk is much slower than more frequent GC'ing). I don't know how to reduce max heap off hand though...

Nebeans memory

Hi,
Netbeans 7.1+Ruby on Rails plugin uses 900MB RAM + Ruby takes around 230MB. That is a total of more than 1GB RAM and it renders netbeans very slow. Is there a way to reduce this usage and improve netbean's performance?

Re: Project right-click

Aha. I figured this out. I suspect this is because the Ruby platform you have associated with your Rails project does not exist. This is definitely a bug. Go to Tool menu and select Ruby Platforms and then click the Autodetect Platforms button. This should make it work again unless it does not autodetect the particular Ruby you were using with NB 7.0. There is an issue opened for this problem: http://netbeans.org/bugzilla/show_bug.cgi?id=198285

Project right-click

Thank you for the update, I have installed the plugin preview on netbeans 7.1 and imported my settings from 7.1 beta. Something I noticed, is that when I right-click on my project root, I do not get the context-menu.

Release update

I was hoping to have things resolved last week but a issue popped up which will prevent getting uploaded to 7.1 catalog. By tomorrow (my time) I will provide a url for test 'test' nbms's for community-ruby for people to try out (these will for sure load in 7.1 and at least basic Ruby editing appears to be fine). Here is an issue to watch for progress on official release:

Creation of new project - fails

The old problem for Windows XP OS detected by me still in Netbeans 7.0 exists. When creating a new Ruby or Rails project, the wizard stays frozen at 25% of progression. The only way to quit - is to kill the application via Task Manager pane. After restarting Netbeans, the project that failed before can be opened without problems.

Creation of new project - fails

The old problem for Windows XP OS detected by me still in Netbeans 7.0 exists. When creating a new Ruby or Rails project, the wizzard stays frozen at 25% of progression. The onky way to quit - is to kill the application via TAsk Manager pane. After restarting Netbeans, the project that failed before can be opened without problems.

Ruby and Rails with Git

In my case I need to use Git + Ruby and Rails plugin. Git does not work properly with 7.0.1 and that is why I had to go with 7.1 Beta. It is working fine, but tooooo slow and that is in part becuase of the GC in netbeans. This is why I am impatiently waiting for the updated version of this plugin so I can use it with 7.1.

Installation question

How to install the plugin after downloading the zip file, please? In the previous 7.0.1 version the plugin was in the plugins list, it is no more the case in Netbeans 7.1 version. Any idea how to try it?
I unzipped the archive and tried to install all the included *.nbm files separately, one by one. The problem is with RHTML plugin:

The plugin HTML Editor Library is requested in version >= 1.21 (release version 1) but only 2.0.1 (of release version different from 1) was found.
There are still 5 plugins (of 25 available in the zip) uninstalled because of that. More of that, even those which were installed without any errors are not displayed in the installed plugins tab.

RE: Recommended Netbeans Version

@theyaa i am using the 7.0.1 as a base version. And since i am having som php projects too i choose the php suite. But this does not really matter as you need to install the plugin anyway. So you can also take the java or c version.

Recommended Netbeans Version

When downloading Netbeans, several versions are presented. Before, there was a specific version for Ruby, but now we need to choose a different version to run the ruby and rails plugin with it. Which version of Netbeans is the recommended to download to work with Ruby on Rails plugin?

RE: Netbeans 7.1 Beta

Netbeans 7.1 Beta

I have ruby and rails plugin running on Netbeans 7.1 Beta but, it is very slow and takes several seconds to respond to user strokes. Is there any anyways to improve the performance of netbeans with this plugin, since the plugin does not work with 7.1 later versions yet?

Great keep us posted!

@patkoscsaba

There is some work underway to update nbruby to use 7.{01} APIs instead of relying on deprecated 6.9 APIs. It will also update Ruby parser for better 1.9 support. Ran into some issues during the upgrade which needs to get worked out.

Re: HTML 5

@charlesdeb

That is likely true. I am not yet familiar with how basic HTML support ties into Erb editing (it might just work with newer HTML module), but anything tangential to specific Ruby modules will just work. For NB 7, I mostly upgraded to keep up on top of the new Java features and basic IDE enhancements (I use both Ruby and Java daily).

HTML 5

Am I right in saying that the reason I would use this plug-in and NB 7 in lieu of the NB 6.9.1 with the old RoR module that used to be provided by the NB teams is so that I can take advantage of new features in NB that are relevant to RoR developers - e.g. HTML5 parsing?

Re: Ruby And Rails Installation info request

@dant

This will work on NB release 6.9 or 7.0 (there is a version field above that specifies this).

It ships with an older version of JRuby (next version of this plugin will update to current version of JRuby), but you will need to install Ruby outside of Netbeans if you don't want to use that JRuby version and then you can add additional ruby runtimes that nb knows about in preferences (this is similiar to how nb handles versions of Java if you have ever changed that).