jasmine-rails icon indicating copy to clipboard operation
jasmine-rails copied to clipboard

Error executing command

Open taleschaves opened this issue 8 years ago • 2 comments

Hi,

I recently updated jasmine-rails to 0.14.1 and phantomjs to 2.1.1. Although, when I run rake spec:javascript I get this error:

± tc |master ✗| → rake spec:javascript --trace ** Invoke spec:javascript (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute spec:javascript Running "/home/gandalf/.phantomjs/2.1.1/x86_64-linux/bin/phantomjs" "" "/home/gandalf/.rvm/gems/ruby-2.3.1@gemini/gems/jasmine-rails-0.14.1/lib/jasmine_rails/../assets/javascripts/jasmine-runner.js" "file:///home/gandalf/workspace/gemini/tmp/jasmine/runner.html?spec=" Running: file:///home/gandalf/workspace/gemini/tmp/jasmine/runner.html?spec= rake aborted! Error executing command: "/home/gandalf/.phantomjs/2.1.1/x86_64-linux/bin/phantomjs" "" "/home/gandalf/.rvm/gems/ruby-2.3.1@gemini/gems/jasmine-rails-0.14.1/lib/jasmine_rails/../assets/javascripts/jasmine-runner.js" "file:///home/gandalf/workspace/gemini/tmp/jasmine/runner.html?spec=" /home/gandalf/.rvm/gems/ruby-2.3.1@gemini/gems/jasmine-rails-0.14.1/lib/jasmine_rails/runner.rb:77:in run_cmd' /home/gandalf/.rvm/gems/ruby-2.3.1@gemini/gems/jasmine-rails-0.14.1/lib/jasmine_rails/runner.rb:23:in block in run' /home/gandalf/.rvm/gems/ruby-2.3.1@gemini/gems/jasmine-rails-0.14.1/lib/jasmine_rails/runner.rb:48:in override_rails_config' /home/gandalf/.rvm/gems/ruby-2.3.1@gemini/gems/jasmine-rails-0.14.1/lib/jasmine_rails/runner.rb:9:in run' /home/gandalf/.rvm/gems/ruby-2.3.1@gemini/gems/jasmine-rails-0.14.1/lib/tasks/jasmine-rails_tasks.rake:9:in block (2 levels) in <top (required)>' /home/gandalf/.rvm/gems/ruby-2.3.1@gemini/bin/ruby_executable_hooks:15:in eval' /home/gandalf/.rvm/gems/ruby-2.3.1@gemini/bin/ruby_executable_hooks:15:in `

' Tasks: TOP => spec:javascript (See full trace by running task with --trace)

Is there any way to get more debug information through jasmine-rails?

taleschaves avatar May 16 '17 21:05 taleschaves

Personally, I would open up the gem and drop pry or a debugger to figure out what might be going on. My familiarity with the code is about as good at yours at this point, since it's been so long since I've worked on/with it

searls avatar May 17 '17 11:05 searls

@taleschaves Did you end up making any headway on this? I have the same issue, though not after an upgade; I can run specs fine in the browser but not from the command line and have essentially the same error.

UPDATE: Assuming this is the same issue I saw, it is a bug in phantomjs that is preventing browser console output from being printed to stdout on certain platforms - downgrading to phantomjs 1.9.8 (in my case, by specifying phatomjs explicitly in the gemfile) solved this issue for me.

jamescgibson avatar Jun 28 '17 07:06 jamescgibson