Skip to content

Instantly share code, notes, and snippets.

@dnagir
Created December 7, 2011 03:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnagir/1441257 to your computer and use it in GitHub Desktop.
Save dnagir/1441257 to your computer and use it in GitHub Desktop.
JRuby no stacktrace repro
> rvm info
jruby-1.6.5:
system:
uname: "Darwin dima-mac.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64"
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)"
zsh: "/bin/zsh => zsh 4.3.11 (i386-apple-darwin11.0)"
rvm:
version: "rvm 1.9.2 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]"
ruby:
interpreter: "jruby"
version: "1.6.5"
date: "2011-10-25"
platform: "darwin-x86_64-java"
patchlevel: "TM"
full_version: "jruby 1.6.5 (ruby-1.9.2-p136) (2011-10-25 9dcd388) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_29) [darwin-x86_64-java]"
homes:
gem: "/Users/dnagir/.rvm/gems/jruby-1.6.5"
ruby: "/Users/dnagir/.rvm/rubies/jruby-1.6.5"
binaries:
ruby: "/Users/dnagir/.rvm/rubies/jruby-1.6.5/bin/ruby"
irb: "/Users/dnagir/.rvm/rubies/jruby-1.6.5/bin/irb"
gem: "/Users/dnagir/.rvm/rubies/jruby-1.6.5/bin/gem"
rake: "/Users/dnagir/.rvm/gems/jruby-1.6.5/bin/rake"
environment:
PATH: "/Users/dnagir/.rvm/gems/jruby-1.6.5/bin:/Users/dnagir/.rvm/gems/jruby-1.6.5@global/bin:/Users/dnagir/.rvm/rubies/jruby-1.6.5/bin:/Users/dnagir/.rvm/bin:/Users/dnagir/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin"
GEM_HOME: "/Users/dnagir/.rvm/gems/jruby-1.6.5"
GEM_PATH: "/Users/dnagir/.rvm/gems/jruby-1.6.5:/Users/dnagir/.rvm/gems/jruby-1.6.5@global"
MY_RUBY_HOME: "/Users/dnagir/.rvm/rubies/jruby-1.6.5"
IRBRC: "/Users/dnagir/.rvm/rubies/jruby-1.6.5/.irbrc"
RUBYOPT: ""
gemset: ""
> rails new jruby-no-stack
create
create README
....etc...
create vendor/plugins/.gitkeep
run bundle install
Fetching source index for http://rubygems.org/
Using rake (0.9.2.2)
Using multi_json (1.0.4)
Using activesupport (3.1.3)
Using builder (3.0.0)
Using i18n (0.6.0)
Using activemodel (3.1.3)
Using erubis (2.7.0)
Using rack (1.3.5)
Using rack-cache (1.1)
Using rack-mount (0.8.3)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.0.3)
Using actionpack (3.1.3)
Using mime-types (1.17.2)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.3.0)
Using actionmailer (3.1.3)
Using arel (2.2.1)
Using tzinfo (0.3.31)
Using activerecord (3.1.3)
Using activerecord-jdbc-adapter (1.2.1)
Using jdbc-sqlite3 (3.7.2)
Using activerecord-jdbcsqlite3-adapter (1.2.1)
Using activeresource (3.1.3)
Using ansi (1.4.1)
Using bouncy-castle-java (1.5.0146.1)
Using bundler (1.0.21)
Using coffee-script-source (1.1.3)
Using execjs (1.2.11)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using json (1.6.3)
Using rdoc (3.11)
Using thor (0.14.6)
Using railties (3.1.3)
Using coffee-rails (3.1.1)
Using jquery-rails (1.0.19)
Using jruby-openssl (0.7.4)
Using rails (3.1.3)
Using sass (3.1.11)
Using sass-rails (3.1.5)
Using turn (0.8.2)
Using uglifier (1.1.0)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
dnagir@DIMA-MAC.LOCAL ~/proj/tmp
> cd jruby-no-stack/
dnagir@DIMA-MAC.LOCAL ~/proj/tmp/jruby-no-stack
> echo "use SomethingUndefined" > config/initializers/something.rb
dnagir@DIMA-MAC.LOCAL ~/proj/tmp/jruby-no-stack
> bundle exec rails s
=> Booting WEBrick
=> Rails 3.1.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
NameError: uninitialized constant SomethingUndefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment