Skip to content

Instantly share code, notes, and snippets.

@bjfish
bjfish / erros_on_vagrant.txt
Created May 9, 2015 14:14
Errors on Vagrant Box
vagrant@precise64:/vagrant$ jt test specs
jruby 9.0.0.0-SNAPSHOT (2.2.2) 2015-05-09 eeddbc1 OpenJDK 64-Bit Server VM 24.79-b02 on 1.7.0_79-b14 +jit [linux-amd64]
[- | ==================100%================== | 00:00:00] 15F 22E
1)
Dir.delete raises an Errno::EACCES if lacking adequate permissions to remove the directory FAILED
Expected Errno::EACCES but no exception was raised (0 was returned)
/vagrant/spec/mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with': Expected Errno::EACCES but no exception was raised (0 was returned) (SpecExpectationNotMetError)
from /vagrant/spec/mspec/lib/mspec/expectations/should.rb:8:in `should'
from /vagrant/spec/ruby/core/dir/shared/delete.rb:55:in `block in <main>'
1) Failure:
TestFileUtilsDryRun#test_visibility_! [ from /Users/brandonfish/Documents/jruby/test/mri/fileutils/visibility_tests.rb:24]:
FileUtils::Verbose#! is not private
2) Failure:
TestFileUtilsDryRun#test_visibility_!= [ from /Users/brandonfish/Documents/jruby/test/mri/fileutils/visibility_tests.rb:24]:
FileUtils::Verbose#!= is not private
3) Failure:
TestFileUtilsDryRun#test_visibility_!~ [ from /Users/brandonfish/Documents/jruby/test/mri/fileutils/visibility_tests.rb:24]:
Truffle internal error: java.lang.RuntimeException: Error while calling the constructor of Truffle's RubyContext
java.lang.RuntimeException: Error while calling the constructor of Truffle's RubyContext
at org.jruby.Ruby.loadTruffleContext(Ruby.java:939)
at org.jruby.Ruby.getTruffleContext(Ruby.java:918)
at org.jruby.Ruby.runInterpreter(Ruby.java:871)
at org.jruby.Ruby.runInterpreter(Ruby.java:885)
at org.jruby.Ruby.runNormally(Ruby.java:757)
at org.jruby.Ruby.runFromMain(Ruby.java:574)
at org.jruby.Main.doRunFromMain(Main.java:401)
at org.jruby.Main.internalRun(Main.java:296)
@bjfish
bjfish / gist:23201b2c04d77f9d5483
Created May 21, 2015 18:04
Dependencies for core in central
mvn -f ~/Downloads/jruby-core-9.0.0.0.pre2.pom.xml dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JRuby Core 9.0.0.0.pre2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ jruby-core ---
[INFO] org.jruby:jruby-core:jar:9.0.0.0.pre2
[INFO] +- com.github.jnr:jnr-netdb:jar:1.1.4:compile
require 'rack'
# ~/Documents/jruby/bin/jruby -X+T -I/Users/brandonfish/Documents/rack/lib simpleapp.rb
class Example
def call(env)
return [200, {}, ["Hello Rack!"]]
end
end
require 'sinatra'
# ~/Documents/jruby/bin/jruby -X+T -I/Users/brandonfish/Documents/rack/lib -I/Users/brandonfish/Documents/sinatra/lib -I/Users/brandonfish/Documents/tilt/lib -I/Users/brandonfish/Documents/rack-protection/lib sinatra.rb
# http://localhost:4567/hello
get '/hello' do
"Hello Sinatra!"
end
$ jt test mri
/vagrant/test/mri/lib/test/unit.rb:257:in `require': internal implementation error - ArrayIndexOutOfBoundsException -1 org.jcodings.specific.UTF8Encoding.length(UTF8Encoding.java:35) (RubyTruffleError)
from /vagrant/test/mri/lib/test/unit.rb:257:in `block in non_options'
from /vagrant/test/mri/lib/test/unit.rb:251:in `non_options'
from /vagrant/test/mri/lib/test/unit.rb:62:in `process_args'
from /vagrant/test/mri/lib/test/unit.rb:851:in `process_args'
from /vagrant/test/mri/lib/test/unit.rb:856:in `run'
from /vagrant/test/mri/lib/test/unit.rb:863:in `run'
from test/mri/runner.rb:41:in `<main>'
$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
$ jt test mri
java.lang.ArrayIndexOutOfBoundsException: -1
at org.jcodings.specific.UTF8Encoding.length(UTF8Encoding.java:35)
at org.jcodings.MultiByteEncoding.strLength(MultiByteEncoding.java:209)
at org.jruby.util.ByteList.lengthEnc(ByteList.java:594)
at org.jruby.ast.SymbolNode.<init>(SymbolNode.java:63)
at org.jruby.parser.RubyParser$376.execute(RubyParser.java:4231)
at org.jruby.parser.RubyParser.yyparse(RubyParser.java:1648)
at org.jruby.parser.RubyParser.yyparse(RubyParser.java:1539)
at org.jruby.parser.RubyParser.parse(RubyParser.java:5257)
@bjfish
bjfish / mri_not.index
Created June 2, 2015 16:04
Tests not in mri.index
-ext-/array/test_resize.rb
-ext-/bignum/test_big2str.rb
-ext-/bignum/test_bigzero.rb
-ext-/bignum/test_div.rb
-ext-/bignum/test_mul.rb
-ext-/bignum/test_pack.rb
-ext-/bignum/test_str2big.rb
-ext-/bug_reporter/test_bug_reporter.rb
-ext-/class/test_class2name.rb
-ext-/debug/test_debug.rb