This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Code completion is slow with a big gem repository. But I freezed my gems so, the code completion should not use the whole repository but only the gems I've freezed. So BootClassPathImpletation.java can improve the speed of completion by removing all the gems from the "classpath" if vendor/gems is present. Here is a small patch : @@ -180,6 +180,10 @@ Exceptions.printStackTrace(pse); } + if ((new File(projectDirectory, "vendor" + File.separator + "gems")).exists()) { + gemUrls = new HashMap<String, URL>(); + gemVersions = new HashMap<String, String>(); + } gemUrls = adjustGemsForExplicitVersion(gemUrls); // Add in all the vendor/ paths, if any
That's a good idea - thanks a lot for the patch.
Fixed in 67e6243a6f69 - I made it an option though, it is in Tools -> Misc -> Ruby -> Rails Projects. It is now off by default, but probably will make it be turned on by default before FCS, just need to think a bit how to handle all the possible cases (e.g. gems in vendor/gems, but no rails in vendor/rails, even if it might not be a common case). Let me know how this works for you.
Integrated into 'main-golden', will be available in build *200909190201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/67e6243a6f69 User: Erno Mononen <emononen@netbeans.org> Log: #172508: Code completion is slow when having multiple gems in different versions
That's ok for me thanks for the quick integration !