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.

Bug 134657 - java.lang.AssertionError: 'lib/ruby' cannot be resolved for '/usr/bin/ruby' interpreter
Summary: java.lang.AssertionError: 'lib/ruby' cannot be resolved for '/usr/bin/ruby' i...
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Platform (show other bugs)
Version: 6.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-07 12:41 UTC by alone
Modified: 2008-05-15 09:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alone 2008-05-07 12:41:35 UTC
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)
Comment 1 Peter Pis 2008-05-07 12:59:01 UTC
Reassigning to "ruby" for evaluation.
Comment 2 alone 2008-05-07 13:25:38 UTC
Hm... on 6.0 version this error not evident
Comment 3 Martin Krauskopf 2008-05-07 13:45:42 UTC
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.
Comment 4 alone 2008-05-07 13:54:48 UTC
# /usr/bin/ruby -e "require 'rbconfig'; puts Config::CONFIG['rubylibdir']"
/usr/share/ruby/1.8
Comment 5 Martin Krauskopf 2008-05-07 14:02:39 UTC
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?
Comment 6 alone 2008-05-07 14:10:14 UTC
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
Comment 7 Martin Krauskopf 2008-05-07 16:55:38 UTC
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/
Comment 8 Quality Engineering 2008-05-08 04:48:33 UTC
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
Comment 9 alone 2008-05-15 08:49:30 UTC
when will be available in release?
Comment 10 Martin Krauskopf 2008-05-15 09:07:37 UTC
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.