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

PhantomsJS ReferenceError all the way #9

Closed
TomTom101 opened this issue Apr 23, 2015 · 2 comments
Closed

PhantomsJS ReferenceError all the way #9

TomTom101 opened this issue Apr 23, 2015 · 2 comments

Comments

@TomTom101
Copy link

I followed the instructions in issue #4 and have rvm installed w/ Ruby 2.2.2. I have a previous PhantomsJS 1.9.7 installed w/ brew. BooJS runs so far, but setting vars always ends in an ReferenceError.

var a = 1;
console.log(a);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PhantomJS Error
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ReferenceError: Can't find variable: a
: line 1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

My gem env says this

RubyGems Environment:
  - RUBYGEMS VERSION: 2.4.6
  - RUBY VERSION: 2.2.2 (2015-04-13 patchlevel 95) [x86_64-darwin13]
  - INSTALLATION DIRECTORY: /Users/thomasbrandl/.rvm/gems/ruby-2.2.2
  - RUBY EXECUTABLE: /Users/thomasbrandl/.rvm/rubies/ruby-2.2.2/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/thomasbrandl/.rvm/gems/ruby-2.2.2/bin
  - SPEC CACHE DIRECTORY: /Users/thomasbrandl/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /Users/thomasbrandl/.rvm/rubies/ruby-2.2.2/etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-13
  - GEM PATHS:
     - /Users/thomasbrandl/.rvm/gems/ruby-2.2.2
     - /Users/thomasbrandl/.rvm/gems/ruby-2.2.2@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /usr/local/sbin
     - /Users/thomasbrandl/.rvm/gems/ruby-2.2.2/bin
     - /Users/thomasbrandl/.rvm/gems/ruby-2.2.2@global/bin
     - /Users/thomasbrandl/.rvm/rubies/ruby-2.2.2/bin
     - /Users/thomasbrandl/.nvm/v0.10.32/bin
     - /usr/bin
     - /bin
     - /usr/sbin
     - /sbin
     - /usr/local/bin
     - /opt/X11/bin
     - /usr/local/git/bin
     - /usr/local/MacGPG2/bin
     - /Users/thomasbrandl/.rvm/bin
     - /Users/thomasbrandl/.rvm/bin

Any hints what could be the issue here?

Thanks!
t

@seosgithub
Copy link
Owner

This has been fixed in 3bf7c45.

Additionally, a unit test has been added in https://github.com/sotownsend/BooJS/blob/master/spec/sample_spec.rb

Please update your gem to test the fixes.

gem uninstall boojs
gem install boojs

@TomTom101
Copy link
Author

Wow, that was fast! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants