jejacks0n / guard-teaspoon

Guard-Teaspoon: Run Javascript tests with Guard and all the features of Teaspoon.
38 stars 16 forks source link

ERROR - Guard::Teaspoon failed to achieve its start #35

Open achrome opened 10 years ago

achrome commented 10 years ago

Info

Rails 4.1.1
Guard 2.6.1
Guard-teaspoon 0.0.4
Teaspoon 0.8.0

Stacktrace

07:52:29 - ERROR - Guard::Teaspoon failed to achieve its <start>, exception was:
> [#09630D42DEDB] SystemExit: exit
> [#09630D42DEDB] /home/achrome/.rvm/gems/ruby-2.1.1@salve/gems/teaspoon-0.8.0/lib/teaspoon/console.rb:112:in `exit'
> [#09630D42DEDB] /home/achrome/.rvm/gems/ruby-2.1.1@salve/gems/teaspoon-0.8.0/lib/teaspoon/console.rb:112:in `abort'
> [#09630D42DEDB] /home/achrome/.rvm/gems/ruby-2.1.1@salve/gems/teaspoon-0.8.0/lib/teaspoon/console.rb:25:in `rescue in execute'
> [#09630D42DEDB] /home/achrome/.rvm/gems/ruby-2.1.1@salve/gems/teaspoon-0.8.0/lib/teaspoon/console.rb:21:in `execute'
> [#09630D42DEDB] /home/achrome/.rvm/gems/ruby-2.1.1@salve/gems/guard-teaspoon-0.0.4/lib/guard/teaspoon/runner.rb:21:in `run_all'
> [#09630D42DEDB] /home/achrome/.rvm/gems/ruby-2.1.1@salve/gems/guard-teaspoon-0.0.4/lib/guard/teaspoon.rb:34:in `run_all'
> [#09630D42DEDB] /home/achrome/.rvm/gems/ruby-2.1.1@salve/gems/guard-teaspoon-0.0.4/lib/guard/teaspoon.rb:30:in `start'

Guardfile

guard :teaspoon, cmd: 'spring teaspoon', environment: 'spec/teaspoon_env.rb' do
  # Implementation files
  watch(%r{app/assets/javascripts/(.+).coffee}) { |m| "#{m[1]}_spec" }

  # Specs / Helpers
  watch(%r{spec/javascripts/(.*)})
end
achrome commented 10 years ago

Also, if I run teaspoon directly, it works without any error.

nathanhamilton commented 10 years ago

@Achrome I had exactly the same problem with almost the same environment setup as yourself. A series of comments on a teaspoon issue helped me fix this: https://github.com/modeset/teaspoon/issues/197. Specifically changing this line of code in development.rb fixed this issue for me.

config.assets.raise_runtime_errors = false

Hope this points you in the right direction.

antoniusostermann commented 10 years ago

Have the same error over here. Changing that line in development.rb didn't help. Ruby 2.1.2 teaspoon 0.8.0.0 guard-teaspoon 0.8.0.0 rails 4.1.4 guard 2.6.1