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.
SEVERE [global] java.lang.AssertionError: 'lib/ruby' cannot be resolved for '/usr/bin/ruby' interpreter at org.netbeans.api.ruby.platform.RubyPlatform.getLib(RubyPlatform.java:257) at org.netbeans.api.ruby.platform.RubyPlatform.getLibFO(RubyPlatform.java:262) at org.netbeans.api.ruby.platform.RubyPlatform.getSystemRoot(RubyPlatform.java:638) at org.netbeans.modules.ruby.rubyproject.BootClassPathProvider.findClassPath(BootClassPathProvider.java:79) at org.netbeans.modules.gsfpath.api.classpath.ClassPath.getClassPath(ClassPath.java:540) at org.netbeans.modules.gsfret.source.usages.RepositoryUpdater$CompileWorker.updateFolder(RepositoryUpdater.java:1121) [catch] at org.netbeans.modules.gsfret.source.usages.RepositoryUpdater$CompileWorker.scanRoots(RepositoryUpdater.java:1076) at org.netbeans.modules.gsfret.source.usages.RepositoryUpdater$CompileWorker.access$1700(RepositoryUpdater.java:635) at org.netbeans.modules.gsfret.source.usages.RepositoryUpdater$CompileWorker$1.run(RepositoryUpdater.java:789) at org.netbeans.modules.gsfret.source.usages.RepositoryUpdater$CompileWorker$1.run(RepositoryUpdater.java:663) at org.netbeans.modules.gsfret.source.usages.ClassIndexManager.writeLock(ClassIndexManager.java:123) at org.netbeans.modules.gsfret.source.usages.RepositoryUpdater$CompileWorker.run(RepositoryUpdater.java:660) at org.netbeans.modules.gsfret.source.usages.RepositoryUpdater$CompileWorker.run(RepositoryUpdater.java:635) at org.netbeans.napi.gsfret.source.Source$CompilationJob.run(Source.java:1180) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595)
Reassigning to "ruby" for evaluation.
Hm... on 6.0 version this error not evident
Hi there. Do you have some steps to reproduce? What is the output of the following command: /usr/bin/ruby -e "require 'rbconfig'; puts Config::CONFIG['rubylibdir']" Need more info. Thanks.
# /usr/bin/ruby -e "require 'rbconfig'; puts Config::CONFIG['rubylibdir']" /usr/share/ruby/1.8
Ok, I see. Thanks. The code in NetBeans depends on particular directory structure which is wrong. It should really read the 'rubylibdir' instead. Likely you are using specially tweaked installation of Ruby interpreter? Or does some OS preinstall it in such manner?
OS ALT Linux 4.0 branch (20071206) Ruby Interpreter (and its libs) installed as system package (through "apt-get install"). Rails & other installed through gem
Fixed in trunk: af057d023032 - using RbConfig::CONFIG['rubylibdir'] - related refactoring and cleanup Should be available in one of the next continuous build, 1855-1857 I guess. http://deadlock.netbeans.org/hudson/job/trunk/
Integrated into 'main-golden', available in NB_Trunk_Production #182 build Changeset: http://hg.netbeans.org/main/rev/af057d023032 User: Martin Krauskopf <mkrauskopf@netbeans.org> Log: #134657: AE: 'lib/ruby' cannot be resolved for '/usr/bin/ruby' interpreter - using RbConfig::CONFIG['rubylibdir'] - related refactoring and cleanup
when will be available in release?
Either you can grab the build immediately: http://wiki.netbeans.org/RubyInstallation#section-RubyInstallation-HowDoIGetTheContinuousBuilds or wait for the first 6.5 Milestone: http://wiki.netbeans.org/NB65EngineeringPlan#section-NB65EngineeringPlan-ScheduleTentative I would grab continuous build. Let me know if anything does not work.