Jump to content

The ultimate community for Ruby on Rails developers.


Photo

New windows installation - guard give errors

guard windows

  • Please log in to reply
39 replies to this topic

#1 etech0

etech0

    Signalman

  • Members
  • 18 posts

Posted 25 August 2013 - 06:06 PM

Hi! I'm fairy new to Ruby, and am trying to set up Rails on my Windows computer. I followed the instructions here: http://igotrailed.wo...s-the-best-way/, and now when I run 'bundle exec guard', it gives me a whole bunch of errors. I have no clue what they mean. Here's the errors - can anyone help me?

 

Thanks!

c:\Sites\tasks>bundle exec guard
14:05:56 - INFO - DEPRECATION WARNING: The :version option is deprecated. Only RSpec 2 is now supported.
14:05:56 - INFO - Guard is using Notifu to send notifications.
14:05:56 - INFO - Guard is using TerminalTitle to send notifications.
14:05:56 - INFO - Starting Spork for RSpec, Test::Unit
Couldn't find a supported test framework that begins with 'testunit'

Supported test frameworks:
( ) Cucumber
(*) RSpec

Legend: ( ) - not detected in project   (*) - detected
Using RSpec
  -- Rinda Ring Server listening for connections...

  -- Starting to fill pool...
     Wait until at least one slave is provided before running tests...
  ** CTRL+BREAK to stop Spork and kill all ruby slave processes **
Spork is ready and listening on 8989!
   -- build slave 1...   -- build slave 2...

Preloading Rails environment
Preloading Rails environment
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/app_framework/rails.rb:56:in `preload_rails': uninitialized constant ActiveModel::Observing (NameError)
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/app_framework/rails.rb:7:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/test_framework.rb:134:in `block in preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork.rb:62:in `exec_prefork'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/test_framework.rb:120:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/run_strategy/magazine/magazine_slave.rb:27:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/run_strategy/magazine/magazine_slave.rb:15:in `initialize'
        from magazine_slave_provider.rb:21:in `new'
        from magazine_slave_provider.rb:21:in `<main>'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/app_framework/rails.rb:56:in `preload_rails': uninitialized constant ActiveModel::Observing (NameError)
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/app_framework/rails.rb:7:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/test_framework.rb:134:in `block in preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork.rb:62:in `exec_prefork'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/test_framework.rb:120:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/run_strategy/magazine/magazine_slave.rb:27:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/run_strategy/magazine/magazine_slave.rb:15:in `initialize'
        from magazine_slave_provider.rb:21:in `new'
        from magazine_slave_provider.rb:21:in `<main>'

and then it gave this:

14:09:00 - ERROR - Could not start Spork server for RSpec, Test::Unit after 30 seconds. I will
continue waiting for a further 60 seconds.
←]2;[Spork] RSpec, Test::Unit NOT started. Continuing to wait for 60 seconds.


#2 james

james

    Guard

  • Moderators
  • 221 posts
  • LocationLeeds, U.K.

Posted 25 August 2013 - 07:17 PM

If you Google your error message

 

Couldn't find a supported test framework that begins with 'testunit'

 

 

you will find, top of the list my answer on stackoverflow that answers this exact issue

 

http://stackoverflow...k-rspec-rails-3

 

Hope that helps :)


  • Ohm likes this

Programming is just about problem solving!


#3 Ohm

Ohm

    Guard

  • Members
  • 184 posts
  • LocationCopenhagen

Posted 25 August 2013 - 07:24 PM

If you Google your error message

 

 

you will find, top of the list my answer on stackoverflow that answers this exact issue

 

http://stackoverflow...k-rspec-rails-3

 

Hope that helps :)

 

... or do like the guy in the second answer tells: Tell guard to ignore test_unit

guard 'spork', test_unit: false do
  # ...
end

Blog: http://ohm.sh | Twitter: madsohm


#4 etech0

etech0

    Signalman

  • Members
  • 18 posts

Posted 25 August 2013 - 07:38 PM

Thanks for your reply!

I deleted the test folder, and ran bundle exec guard again, and got this:

c:\Sites\tasks>bundle exec guard
15:32:41 - INFO - DEPRECATION WARNING: The :version option is deprecated. Only RSpec 2 is now supported.
15:32:41 - INFO - Guard is using Notifu to send notifications.
15:32:41 - INFO - Guard is using TerminalTitle to send notifications.
15:32:41 - INFO - Starting Spork for RSpec
Using RSpec
  -- Rinda Ring Server listening for connections...

  -- Starting to fill pool...
     Wait until at least one slave is provided before running tests...
  ** CTRL+BREAK to stop Spork and kill all ruby slave processes **
Spork is ready and listening on 8989!
   -- build slave 1...   -- build slave 2...

Preloading Rails environmentPreloading Rails environment

C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/app_framework/rails.rb:56:in `preload_rails'C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/app_framework/rails.rb:56:in `preload_rails': : uninitialized constant ActiveModel::Observinguninitialized constant ActiveModel::Observing ( (NameErrorNameError)
)
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/app_framework/rails.rb:7:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/app_framework/rails.rb:7:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/test_framework.rb:134:in `block in preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/test_framework.rb:134:in `block in preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork.rb:62:in `exec_prefork'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork.rb:62:in `exec_prefork'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/test_framework.rb:120:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/test_framework.rb:120:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/run_strategy/magazine/magazine_slave.rb:27:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/run_strategy/magazine/magazine_slave.rb:27:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/run_strategy/magazine/magazine_slave.rb:15:in `initialize'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/run_strategy/magazine/magazine_slave.rb:15:in `initialize'
        from magazine_slave_provider.rb:21:in `new'
        from magazine_slave_provider.rb:21:in `new'
        from magazine_slave_provider.rb:21:in `<main>'
        from magazine_slave_provider.rb:21:in `<main>'
15:35:45 - ERROR - Could not start Spork server for RSpec after 30 seconds. I will continue waiting for a further 60 seconds.
←]2;[Spork] RSpec NOT started. Continuing to wait for 60 seconds.



#5 james

james

    Guard

  • Moderators
  • 221 posts
  • LocationLeeds, U.K.

Posted 25 August 2013 - 08:09 PM

What does your gemfile look like?


Programming is just about problem solving!


#6 etech0

etech0

    Signalman

  • Members
  • 18 posts

Posted 25 August 2013 - 08:13 PM

Here you go:

source 'https://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails'

# Use sqlite3 as the database for Active Record -> NOT IN HEROKU
#gem 'sqlite3'

# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'

# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'

# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'

# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'

# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'

group :doc do
  # bundle exec rake doc:rails generates the API under doc/api.
  gem 'sdoc', require: false
end

#these are the gems the rails tutorial book uses (but some are above)
gem 'bcrypt-ruby', '3.0.1'
gem 'faker', '1.0.1'
gem 'will_paginate', '3.0.3'
gem 'bootstrap-will_paginate', '0.0.6'


# Use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# Use unicorn as the app server
# gem 'unicorn'

# Use Capistrano for deployment
# gem 'capistrano', group: :development

# Use debugger
# gem 'debugger', group: [:development, :test]


group :development, :test do
  gem 'rspec-rails'
  gem 'guard-rspec'
  gem 'guard-spork'
  gem 'childprocess'
  gem 'spork'
  gem 'turn'
  gem 'rb-fchange', '0.0.5'
  gem 'rb-notifu', '0.0.4'
  #gem 'win32console'
end


group :test do
  gem 'capybara', '1.1.2'
  gem 'factory_girl_rails'
  gem 'cucumber-rails', '1.2.1', :require => false
  gem 'database_cleaner', '0.7.0'
  # gem 'launchy', '2.1.0'
  # gem 'rb-fsevent', '0.9.1', :require => false
  # gem 'growl', '1.0.3'
end

group :production do
  gem 'pg', '0.12.2'
end




#7 james

james

    Guard

  • Moderators
  • 221 posts
  • LocationLeeds, U.K.

Posted 25 August 2013 - 08:13 PM

Also make sure you have set up rspec

In the root of your rails application run

rails generate rspec:install

Programming is just about problem solving!


#8 james

james

    Guard

  • Moderators
  • 221 posts
  • LocationLeeds, U.K.

Posted 25 August 2013 - 08:16 PM

Your gemfile looks fine.


Programming is just about problem solving!


#9 james

james

    Guard

  • Moderators
  • 221 posts
  • LocationLeeds, U.K.

Posted 25 August 2013 - 08:23 PM

You need to get rid of that deprecation warning as well.

Can you post your Guardfile. It might be something in there that is causing the deprecation warning


Programming is just about problem solving!


#10 etech0

etech0

    Signalman

  • Members
  • 18 posts

Posted 25 August 2013 - 09:11 PM

I'm running rails generate rspec:install now.

 

Here's my guardfile. Thanks!!!!

# A sample Guardfile
# More info at https://github.com/guard/guard#readme

require 'active_support/core_ext'

guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do
  watch('config/application.rb')
  watch('config/environment.rb')
  watch(%r{^config/environments/.+\.rb$})
  watch(%r{^config/initializers/.+\.rb$})
  watch('Gemfile')
  watch('Gemfile.lock')
  watch('spec/spec_helper.rb')
  watch('test/test_helper.rb')
  watch('spec/support/')
end

guard 'rspec', :version => 2, :all_after_pass => false, :cli => '--drb' do
  watch(%r{^spec/.+_spec\.rb$})
  watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
  watch('spec/spec_helper.rb') { "spec" }

  # Rails example
  watch(%r{^spec/.+_spec\.rb$})
  watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
  watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
  watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
  watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
  watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
  watch('spec/spec_helper.rb') { "spec" }
  watch('config/routes.rb') { "spec/routing" }
  watch('app/controllers/application_controller.rb') { "spec/controllers" }
  # Capybara request specs
  watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
  watch(%r{^app/controllers/(.+)_(controller)\.rb$}) do |m|
    ["spec/routing/#{m[1]}_routing_spec.rb",
     "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb",
     "spec/acceptance/#{m[1]}_spec.rb",
     "spec/requests/#{m[1].singularize}_pages_spec.rb",
     (m[1][/_pages/] ? "spec/requests/#{m[1]}_spec.rb" :
                       "spec/requests/#{m[1].singularize}_pages_spec.rb")]
  end
  watch(%r{^app/views/(.+)/}) do |m|
    "spec/requests/#{m[1].singularize}_pages_spec.rb"
  end
end

guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do
  watch('config/application.rb')
  watch('config/environment.rb')
  watch('config/environments/test.rb')
  watch(%r{^config/initializers/.+\.rb$})
  watch('Gemfile.lock')
  watch('spec/spec_helper.rb') { :rspec }
  watch('test/test_helper.rb') { :test_unit }
  watch(%r{features/support/}) { :cucumber }
end



#11 james

james

    Guard

  • Moderators
  • 221 posts
  • LocationLeeds, U.K.

Posted 25 August 2013 - 10:55 PM

Ok Change

guard 'rspec', :version => 2, :all_after_pass => false, :cli => '--drb' do

to

guard 'rspec', :all_after_pass => false, :cli => '--drb' do

That should clear the deprecation warning


Programming is just about problem solving!


#12 etech0

etech0

    Signalman

  • Members
  • 18 posts

Posted 25 August 2013 - 11:05 PM

With that change, I get this:

c:\Sites\tasks>bundle exec guard
18:57:31 - INFO - Guard is using Notifu to send notifications.
18:57:31 - INFO - Guard is using TerminalTitle to send notifications.
18:57:31 - INFO - Starting Spork for RSpec
Using RSpec
  -- Rinda Ring Server listening for connections...

  -- Starting to fill pool...
     Wait until at least one slave is provided before running tests...
  ** CTRL+BREAK to stop Spork and kill all ruby slave processes **
Spork is ready and listening on 8989!
   -- build slave 1...   -- build slave 2...

c:/Sites/tasks/spec/spec_helper.rb has not been bootstrapped.  Run spork --bootstrap to do so.c:/Sites/tasks/spec/spec_helper.rb has not been bootstrapped.  Run spork --bootstrap to do so.

Preloading Rails environment
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/app_framework/rails.rb:56:in `preload_rails': uninitialized constant ActiveModel::Observing (NameError)
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/app_framework/rails.rb:7:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/test_framework.rb:134:in `block in preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork.rb:62:in `exec_prefork'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/test_framework.rb:120:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/run_strategy/magazine/magazine_slave.rb:27:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/run_strategy/magazine/magazine_slave.rb:15:in `initialize'
        from magazine_slave_provider.rb:21:in `new'
        from magazine_slave_provider.rb:21:in `<main>'
Preloading Rails environment
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/app_framework/rails.rb:56:in `preload_rails': uninitialized constant ActiveModel::Observing (NameError)
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/app_framework/rails.rb:7:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/test_framework.rb:134:in `block in preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork.rb:62:in `exec_prefork'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/test_framework.rb:120:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/run_strategy/magazine/magazine_slave.rb:27:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/run_strategy/magazine/magazine_slave.rb:15:in `initialize'
        from magazine_slave_provider.rb:21:in `new'
        from magazine_slave_provider.rb:21:in `<main>'
19:00:34 - ERROR - Could not start Spork server for RSpec after 30 seconds. I will continue waiting for a further 60 seconds.
←]2;[Spork] RSpec NOT started. Continuing to wait for 60 seconds.

so then I ran spork --bootstrap, and now I get this:

c:\Sites\tasks>bundle exec guard
19:01:32 - INFO - Guard is using Notifu to send notifications.
19:01:32 - INFO - Guard is using TerminalTitle to send notifications.
19:01:32 - INFO - Starting Spork for RSpec
Using RSpec
  -- Rinda Ring Server listening for connections...

  -- Starting to fill pool...
     Wait until at least one slave is provided before running tests...
  ** CTRL+BREAK to stop Spork and kill all ruby slave processes **
Spork is ready and listening on 8989!
   -- build slave 2...   -- build slave 1...

Preloading Rails environment
Preloading Rails environment
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/app_framework/rails.rb:56:in `preload_rails'C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/app_framework/rails.rb:56:in `preload_rails': : uninitialized constant ActiveModel::Observinguninitialized constant ActiveModel::Observing ( (NameErrorNameError)
)
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/app_framework/rails.rb:7:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/app_framework/rails.rb:7:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/test_framework.rb:134:in `block in preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/test_framework.rb:134:in `block in preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork.rb:62:in `exec_prefork'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork.rb:62:in `exec_prefork'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/test_framework.rb:120:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/test_framework.rb:120:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/run_strategy/magazine/magazine_slave.rb:27:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/run_strategy/magazine/magazine_slave.rb:27:in `preload'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/run_strategy/magazine/magazine_slave.rb:15:in `initialize'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/spork-0.9.2/lib/spork/run_strategy/magazine/magazine_slave.rb:15:in `initialize'
        from magazine_slave_provider.rb:21:in `new'
        from magazine_slave_provider.rb:21:in `new'
        from magazine_slave_provider.rb:21:in `<main>'
        from magazine_slave_provider.rb:21:in `<main>'
19:04:35 - ERROR - Could not start Spork server for RSpec after 30 seconds. I will continue waiting for a further 60 seconds.
←]2;[Spork] RSpec NOT started. Continuing to wait for 60 seconds.


Any ideas?



#13 james

james

    Guard

  • Moderators
  • 221 posts
  • LocationLeeds, U.K.

Posted 26 August 2013 - 12:26 AM

Well, at least that's some progress but rails generate rspec:install did not solve the

`preload_rails': : uninitialized constant ActiveModel::Observinguninitialized constant ActiveModel::Observing ( (NameErrorNameError)

 

error.

 

I'm not sure what else could be causing that. Maybe a problem in your spec helper, but I just don't know. It could even be a genuine error with your app

 

Do you get any errors in the console? I mean does your rails app actually start up properly? ("rails c" in the command line)


Programming is just about problem solving!


#14 etech0

etech0

    Signalman

  • Members
  • 18 posts

Posted 26 August 2013 - 12:33 AM

Hi!

 

When I run rails c, it gives me description/usage/options. Am I missing something?

 

This isn't actually a real app yet - I'm just following instructions to set up an app but it doesn't have anything in it yet.



#15 james

james

    Guard

  • Moderators
  • 221 posts
  • LocationLeeds, U.K.

Posted 26 August 2013 - 12:37 AM

You need to run that in the root of your rails app


Programming is just about problem solving!


#16 etech0

etech0

    Signalman

  • Members
  • 18 posts

Posted 26 August 2013 - 12:49 AM

But I am within the root!



#17 james

james

    Guard

  • Moderators
  • 221 posts
  • LocationLeeds, U.K.

Posted 26 August 2013 - 01:20 AM

That doesn't make sense!

 

If you run rails c or rails console if you prefer in the root of your rails app you will get something like this

rails c
Loading development environment (Rails 4.0.0)
2.0.0p247 :001 >

Or you will get an error.

 

If you run rails c outside of your rails app you will get something like this

rails c
Usage:
  rails new APP_PATH [options]

Options:
  -r, [--ruby=PATH]              # Path to the Ruby binary of your choice
                                 # Default: /some_path
  -m, [--template=TEMPLATE]      # Path to some application template (can be a filesystem path or URL)

Can you clarify what you are seeing?


Programming is just about problem solving!


#18 etech0

etech0

    Signalman

  • Members
  • 18 posts

Posted 26 August 2013 - 03:02 AM

I'm seeing the second. Maybe I haven't made it into a real app yet? How would I know?



#19 james

james

    Guard

  • Moderators
  • 221 posts
  • LocationLeeds, U.K.

Posted 26 August 2013 - 03:13 AM

You must have generated a rails app in order to have a Gemfile, a Guard file and for you to be able to run

bundle exec guard

 

 

It looks like the root of your Rails app is at

 c:/Sites/tasks/

So at some point you must have run

rails new tasks

from within the c:/Sites folder?


Programming is just about problem solving!


#20 etech0

etech0

    Signalman

  • Members
  • 18 posts

Posted 26 August 2013 - 03:30 AM

yes, I ran

rails new tasks

.

and when I run

rails c

from within c:\sites\tasks, it gives me Usage, Options...

 

Please forgive my ignorance - I'm Brand New at this and have no clue what I'm doing :)







Also tagged with one or more of these keywords: guard, windows

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users