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 should return nil #5099

dgolombek opened this issue Mar 21, 2018 · 1 comment
Closed should return nil #5099

dgolombek opened this issue Mar 21, 2018 · 1 comment


Copy link

@dgolombek dgolombek commented Mar 21, 2018

no such file to load -- /opt/local/lib/ruby/gems/1.8/gems/awesome_print-0.2.1/lib/ap
jruby- :001 > JRUBY_VERSION
 => ""
jruby- :002 >
	from org.jruby.RubyException.backtrace_locations(
	from org.jruby.RubyException$INVOKER$i$0$0$$INVOKER$i$0$0$backtrace_locations_DBG.gen)
	from org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(
	from org.jruby.RubyKernel.evalCommon(
	from org.jruby.RubyKernel.eval19(
	from org.jruby.RubyKernel$INVOKER$s$0$3$$INVOKER$s$0$3$eval19_DBG.gen)
... 95 levels...
	from org.jruby.Ruby.runInterpreter(
	from org.jruby.Ruby.runInterpreter(
	from org.jruby.Ruby.runNormally(
	from org.jruby.Ruby.runNormally(
	from org.jruby.Ruby.runFromMain(
	from org.jruby.Main.doRunFromMain(
	from org.jruby.Main.internalRun(
	from org.jruby.Main.main(

Running on "Darwin thq-m-dgolo02 16.7.0 Darwin Kernel Version 16.7.0: Thu Jan 11 22:59:40 PST 2018; root:xnu-3789.73.8~1/RELEASE_X86_64 x86_64"

From MRI (2.4.2):

2.4.2 :001 > RUBY_VERSION
 => "2.4.2"
2.4.2 :002 >
 => nil

Came up in a testing scenario, where exception is inserted via a stub, and exception handler tries to capture information.

@kares kares added this to the JRuby milestone Mar 21, 2018
dgolombek pushed a commit to dgolombek/aws-xray-sdk-ruby that referenced this issue Mar 22, 2018
This is part of aws#4. Until JRuby is released, the
required_ruby_version in the gemspec will keep this from working there,
as well as jruby/jruby#5099.

* Replaced Oj with MultiJson + Oj OR JrJackson
* Removed Oj.dump parameters, since those are defaults when using MultiJson
* Remove rdiscount for Markdown generation, use default Yard generator.
* Made two minor code syntax changes to make the Yard generator happy

I've roughly compared the generated RDoc and they look very similar.
headius added a commit that referenced this issue Mar 26, 2018
headius added a commit that referenced this issue Mar 26, 2018
See #5099.
@headius headius closed this Mar 26, 2018
Copy link

@headius headius commented Mar 26, 2018

Thanks for the report!

kares added a commit to kares/jruby that referenced this issue Mar 27, 2018
* jruby-9.1:
  [fix] cast nsec nanos to long to avoid "overflow" with double value
  Handle this deprecation differently.
  Default to Java 9 bytecode for any java.specification.version>1.8.
  WrapperMethod is still needed for visibility.
  Revert "Finally eliminate use of WrapperMethod."
  Eliminate deprecation warnings in test suite.
  Finally eliminate use of WrapperMethod.
  Fix most deprecated calls.
  Handle error when attempting to connect to IP6 with default INET4.
  Add test_coverage to jruby.index.
  Add test for null filename in coverage. jruby#5111
  Do not attempt to add coverage for null filename. Fixes jruby#5111.
  Add basic specs for Exception#backtrace_locations.
  Exception.backtrace_locations should persist and be mutable.
  Return nil if no backtrace has been captured. Fixes jruby#5099.
  fix for jruby#5086, RegexpError invalid pattern in look-behind for certain Regexps since
eregon added a commit to ruby/spec that referenced this issue Apr 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants