Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: no local gem found for mocha #830

Closed
phs opened this Issue Jun 28, 2013 · 5 comments

Comments

Projects
None yet
2 participants
@phs
Copy link
Contributor

phs commented Jun 28, 2013

I'm having trouble getting my dev environment bootstrapped.

Following the README, I've been trying out the test suite. ant test seems fine (only 2 failures out of a few hundred tests) but ant spec and ant spec-short both fail in a similar way:

$ ant spec-short
Buildfile: /Users/phil/code/jruby/build.xml

init:

prepare-bin-jruby:

jar:

init:

create-dirs:

copy-resources:

copy-bc-resources:

copy-jline-resources:

update-constants:
     [echo] Updating Constants.java
     [echo] ...using git revision = 678a355, tzdata = 2012j
     [copy] Copying 1 file to /Users/phil/code/jruby/build/src_gen/org/jruby/runtime

_uc_internal_:

prepare:

compile-annotation-binder:

compile-jruby:

emma:

instrument:

generate-method-classes:

_gmc_internal_:

generate-unsafe:

_gu_internal_:

compile:

unzip-native-libs:

jar-jruby:

add-emma-jars:

jar-jopenssl:

jar-readline:

install-dev-gems:

install-jruby-launcher-gem:

install-gems:

spec:ci_interpreted_18_19:
     [echo] Running rake spec:ci_interpreted_18_19
     [echo] compile=OFF, threshold=20, objectspace=true threadpool=false reflection=false
     [java] JAVA options: {:fork=>"true", :failonerror=>"true", :classname=>"org.jruby.Main", :maxmemory=>"1024M"}
     [java] JAVA options: {:fork=>"true", :failonerror=>"true", :classname=>"org.jruby.Main", :maxmemory=>"1024M"}
     [java] RuntimeError: no local gem found for mocha
     [java]   maybe_install_gems at /Users/phil/code/jruby/build/classes/jruby/jruby/commands.rb:37
     [java]              reject! at org/jruby/RubyArray.java:2648
     [java]            delete_if at org/jruby/RubyArray.java:2661
     [java]   maybe_install_gems at /Users/phil/code/jruby/build/classes/jruby/jruby/commands.rb:20
     [java]               (root) at maybe_install_gems:1
     [java] /Users/phil/code/jruby/lib/ruby/gems/shared/gems/rake-10.0.3/lib/rake/task.rb:176 warning: singleton on non-persistent Java type Java::OrgApacheToolsAnt::ExitStatusException (http://wiki.jruby.org/Persistence)
     [java] rake aborted!
     [java] Java returned: 1
     [java] org.apache.tools.ant.taskdefs.Java.execute(Java.java:111)
     [java] org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
@BanzaiMan

This comment has been minimized.

Copy link
Member

BanzaiMan commented Jul 1, 2013

Actually, I verified this on the known good master commit. The underlying dependencies might have changed while we weren't looking.

I'm investigating now.

@ghost ghost assigned BanzaiMan Jul 1, 2013

@BanzaiMan

This comment has been minimized.

Copy link
Member

BanzaiMan commented Jul 3, 2013

This seems to be working at 5893ad5. Could you confirm?

@phs

This comment has been minimized.

Copy link
Contributor Author

phs commented Jul 3, 2013

Confirmed! At that SHA it proceeds further. It's about 5 minutes in and doing its best to peg some cores without showing much output. Is that normal? Here's the console:

$ ant spec
Buildfile: /Users/phil/code/jruby/build.xml

init:

prepare-bin-jruby:

jar:

init:

unzip-native-libs:

jar-jruby:
     [exec] [debug] execute contextualize
     [exec] /Users/phil/code/jruby/build/src_gen/annotated_classes.txt - not found. skip generator.
     [exec] [debug] execute contextualize
     [exec] [debug] execute contextualize
     [exec] [debug] execute contextualize
     [exec] [debug] execute contextualize
     [exec] [debug] execute contextualize
     [exec] Successfully installed rake-10.1.0
     [exec] Successfully installed diff-lcs-1.1.3
     [exec] Successfully installed rspec-core-2.12.2
     [exec] Successfully installed rspec-expectations-2.12.1
     [exec] Successfully installed rspec-mocks-2.12.2
     [exec] Successfully installed rspec-2.12.0
     [exec] 6 gems installed

install-dev-gems:

install-jruby-launcher-gem:
     [java] Successfully uninstalled jruby-launcher-1.0.17-java
     [java] Building native extensions.  This could take a while...
     [java] Successfully installed jruby-launcher-1.0.18.dev-java
     [java] 1 gem installed

install-gems:

spec:ci_18:
     [echo] Running rake spec:ci_18
     [echo] compile=OFF, threshold=20, objectspace=true threadpool=false reflection=false
     [java] JAVA options: {:fork=>"true", :failonerror=>"true", :classname=>"org.jruby.Main", :maxmemory=>"1024M"}
     [java] Generating htmldiff.bat
     [java] Generating ldiff.bat
     [java] JAVA options: {:fork=>"true", :failonerror=>"true", :classname=>"org.jruby.Main", :maxmemory=>"1024M"}
     [java] git submodule update --init spec/ruby
     [java] Rolling rubyspec to stable version
     [java] Rolling mspec to stable version
     [java] MSPEC: {:compile_mode=>"OFF", :spec_config=>"spec/jruby.1.8.mspec", :compat=>"1.8", :jit_threshold=>20, :jit_max=>-1, :objectspace_enabled=>true, :thread_pooling=>false, :reflection=>false, :format=>"m"}
     [java] JAVA options: {:dir=>"/Users/phil/code/jruby", :maxmemory=>"1024M", :resultproperty=>"spec.status.OFF", :fork=>"true", :failonerror=>"true", :classname=>"org.jruby.Main"}
     [java] git submodule update --init spec/mspec
     [java] jruby 1.7.5.dev (ruby-1.8.7p370) 2013-07-02 5893ad5 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_12-ea-b08 +indy [darwin-x86_64]
@phs

This comment has been minimized.

Copy link
Contributor Author

phs commented Jul 3, 2013

Ok. It's making progress, just slowly.

@BanzaiMan

This comment has been minimized.

Copy link
Member

BanzaiMan commented Jul 3, 2013

Each spec run takes about 18 minutes on my machine locally.

I'm closing this now.

@BanzaiMan BanzaiMan closed this Jul 3, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.