Guard: LoadError: ν•΄λ‹Ή νŒŒμΌμ„ λ‘œλ“œν•  수 μ—†μŠ΅λ‹ˆλ‹€.

에 λ§Œλ“  2015λ…„ 01μ›” 28일  Β·  16μ½”λ©˜νŠΈ  Β·  좜처: guard/guard

μ•ˆλ…•ν•˜μ„Έμš” μ—¬λŸ¬λΆ„,

이것이 μ μ ˆν•œ λ¬Έμ œμΈμ§€ ν™•μ‹€ν•˜μ§€ μ•Šμ§€λ§Œ λ‚΄ 레일슀 ν”„λ‘œμ νŠΈμ˜ 루비λ₯Ό 2.1.4둜 μ—…κ·Έλ ˆμ΄λ“œν•œ ν›„ 더 이상 rails s , rails c λ₯Ό 톡해 ν”„λ‘œμ νŠΈλ₯Ό μ‹€ν–‰ν•  수 μ—†μŠ΅λ‹ˆλ‹€. λ˜λŠ” λͺ¨λ“  κ°ˆν€΄ μž‘μ—…. λͺ¨λ“  것이 2.1.2μ—μ„œ 잘 μž‘λ™ν–ˆμŠ΅λ‹ˆλ‹€.

λ‹€μŒμ€ 계속 λ°œμƒν•˜λŠ” 였λ₯˜μž…λ‹ˆλ‹€.

$ rake db:drop db:create db:migrate
rake aborted!
LoadError: cannot load such file -- guard/guard
/Users/jonathan/code/sirius/config/application.rb:14:in `<top (required)>'
/Users/jonathan/code/sirius/Rakefile:4:in `<top (required)>'
LoadError: cannot load such file -- guard-spring
/Users/jonathan/code/sirius/config/application.rb:14:in `<top (required)>'
/Users/jonathan/code/sirius/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)

μ €λŠ” OSXλ₯Ό μ‚¬μš© 쀑이며 rbenvλ₯Ό 톡해 루비λ₯Ό μ„€μΉ˜ν–ˆμŠ΅λ‹ˆλ‹€. Gemfile.lock을 μ‹€ν–‰ μ€‘μž…λ‹ˆλ‹€. κ°€λ“œκ°€ 2.11.1에 μžˆλ‹€κ³  λ§ν•©λ‹ˆλ‹€. 이 λ¬Έμ œμ— λŒ€ν•œ 도움을 μ£Όμ‹œλ©΄ κ°μ‚¬ν•˜κ² μŠ΅λ‹ˆλ‹€.

κ°€μž₯ μœ μš©ν•œ λŒ“κΈ€

방금 κ°€λ“œ μ ¬ 버전을 μ—…λ°μ΄νŠΈν–ˆλŠ”λ° λ§ˆλ²•μ²˜λŸΌ μž‘λ™ν–ˆμŠ΅λ‹ˆλ‹€.

λͺ¨λ“  16 λŒ“κΈ€

1) Gemfileκ³Ό Guardfileμ—μ„œ κ°€λ“œ μŠ€ν”„λ§μ„ μ œκ±°ν•˜κΈ°λ§Œ ν•˜λ©΄ λ©λ‹ˆλ‹€.
2) 그런 λ‹€μŒ κ°€λ“œ-rspec을 μ—…κ·Έλ ˆμ΄λ“œν•©λ‹ˆλ‹€( bundle update guard-rspec μ‹€ν–‰).
3) spring을 μ‚¬μš©ν•˜λ„λ‘ κ°€λ“œ-rspec μ„€μ •(https://github.com/guard/guard-rspec#options μ°Έμ‘°)

μ„€λͺ…:
κ°€λ“œ μŠ€ν”„λ§μ€ μ΅œμ‹  λ²„μ „μ˜ κ°€λ“œμ™€ μž‘λ™ν•˜λ„λ‘ μ—…λ°μ΄νŠΈλ˜μ§€ μ•Šμ•˜μ§€λ§Œ, κ°€λ“œ-rspec이 μŠ€ν”„λ§μ„ μ§€μ›ν•˜κΈ° λ•Œλ¬Έμ— 더 이상 ν•„μš”ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

감사 ν•΄μš”! κ·Έ 후에 λͺ¨λ“  것이 λ‹€μ‹œ μž‘λ™ν•©λ‹ˆλ‹€.

κ³ λ§ˆμ›Œ, νš¨κ³Όκ°€ μžˆμ—ˆλ‹€

μž‘λ™ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. Gemfile 및 Guardfile에 κ°€λ“œ μŠ€ν”„λ§μ΄ μ—†μŠ΅λ‹ˆλ‹€. 2, 3λ‹¨κ³„λŠ” 도움이 λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€

@ElminDmitry - λ¬Έμ œκ°€ λ‹€λ₯Ό 수 μžˆμŠ΅λ‹ˆλ‹€. λ©”μ‹œμ§€μ— "guard/guard"κ°€ 있으면 였래된 Guard ν”ŒλŸ¬κ·ΈμΈμ„ μ‚¬μš© 쀑일 수 μžˆμŠ΅λ‹ˆλ‹€.

λŒ€μ‹  "bundle exec rake (...)"λ₯Ό μ‹œλ„ν•˜μ‹­μ‹œμ˜€. 원인을 μ°ΎλŠ” 데 도움이 될 수 μžˆμŠ΅λ‹ˆλ‹€.

κ°€λŠ₯ν•œ 경우 μƒˆ 문제λ₯Ό μ—΄κ³  Gemfile 및 Gemfile.lock(λ˜λŠ” μ΅œμ†Œν•œ bundle show 좜λ ₯)을 λΆ™μ—¬λ„£μŠ΅λ‹ˆλ‹€.

λ˜λŠ” guard -d λ₯Ό μ‹€ν–‰ν•΄ λ³Ό 수 μžˆμŠ΅λ‹ˆλ‹€. 였λ₯˜κ°€ μžˆλŠ” κ²½μš°μ—λ„ 도움이 될 수 μžˆμŠ΅λ‹ˆλ‹€.

gem 'guard-spork' gem 'childprocess'λ₯Ό μΆ”κ°€ν•˜κ³  μ„€μΉ˜ν•œ ν›„ λ¬Έμ œκ°€ λ‚˜νƒ€λ‚©λ‹ˆλ‹€.

λ‚΄κ°€ κΈ°μ–΅ν•˜λŠ” ν•œ Guard-sporkλŠ” κ΅¬μ‹μ΄λ―€λ‘œ μ œκ±°ν•˜κ±°λ‚˜ guard-zeus λ˜λŠ” spring을 μ‚¬μš©ν•˜μ‹­μ‹œμ˜€.

도와 μ£Όμ…”μ„œ κ°μ‚¬ν•©λ‹ˆλ‹€

λ‚˜μ—κ²Œ κ΅¬μ‹μ΄μ—ˆλ˜ 것은 κ°€λ“œ μš”μ²­μ΄μ—ˆμŠ΅λ‹ˆλ‹€.

λ ˆκ±°μ‹œ μ½”λ“œλ² μ΄μŠ€μ™€ λΉ„μŠ·ν•œ λ¬Έμ œκ°€ μžˆμ—ˆμŠ΅λ‹ˆλ‹€. λ‹€μŒμ€ λˆ„λ½λœ κ°€λ“œ/κ°€λ“œ μš”κ΅¬ 사항을 κ·Ήλ³΅ν•˜λŠ” 데 도움이 된 λ²„μ „μž…λ‹ˆλ‹€.

group :development do
  gem 'guard-rails', '0.7.2', require: false
  gem 'guard-rspec', '3.1.0', require: false
  gem 'guard-rubocop', '1.2.0', require: false
  gem 'guard-spork', '2.1.0', require: false
end

였늘 여기도 λ§ˆμ°¬κ°€μ§€μž…λ‹ˆλ‹€. bundle update rspec 3.5 beta3λ₯Ό μ œκ³΅ν•œ ν›„ 문제λ₯Ό ν•΄κ²°ν•˜κΈ° μœ„ν•΄ rspec을 ' ~> 3.4.0' 에 κ³ μ •ν•΄μ•Ό ν–ˆμŠ΅λ‹ˆλ‹€.

방금 κ°€λ“œ μ ¬ 버전을 μ—…λ°μ΄νŠΈν–ˆλŠ”λ° λ§ˆλ²•μ²˜λŸΌ μž‘λ™ν–ˆμŠ΅λ‹ˆλ‹€.

guard-konacha λ₯Ό μ‚¬μš©ν•˜λŠ” μ‚¬λžŒμ€ λˆ„κ΅¬μ—κ²Œλ„ 더 이상 μž‘λ™ν•˜μ§€ μ•ŠλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€.

LoadError: cannot load such file -- guard/guard

@tastycakeman guard-konacha gem은 Guard 버전 1에 μ˜μ‘΄ν•©λ‹ˆλ‹€. gemfile을 gem 'guard-konacha', github: 'lbeder/guard-konacha' 둜 λ³€κ²½ν•˜μ„Έμš”. 이 νŒŒμΌμ—λŠ” μ΅œμ‹  λ²„μ „μ˜ Guardλ₯Ό μ§€μ›ν•˜λ„λ‘ gemspec이 μ—…λ°μ΄νŠΈλ˜μ—ˆμŠ΅λ‹ˆλ‹€.

rake db:createλ₯Ό μ‹€ν–‰ν•  λ•Œ λ‹€μŒ 였λ₯˜κ°€ λ°œμƒν•©λ‹ˆλ‹€.

'λ ˆμ΄ν¬κ°€ μ€‘λ‹¨λ˜μ—ˆμŠ΅λ‹ˆλ‹€!

LoadError: ν•΄λ‹Ή νŒŒμΌμ„ λ‘œλ“œν•  수 μ—†μŠ΅λ‹ˆλ‹€ -- κ°€λ“œ/κ°€λ“œ
/Users/macbookpro06/.rvm/gems/ruby-2.0. 0-p247@oohmp-v2/gems/activesupport-3.2.12/lib/active_support/dependencies.rb :251:in require' /Users/macbookpro06/.rvm/gems/ruby-2.0.0-p247@oohmp-v2/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in 블둝 ν•„μš”'
/Users/macbookpro06/.rvm/gems/ruby-2.0. 0-p247@oohmp-v2/gems/activesupport-3.2.12/lib/active_support/dependencies.rb :236:in load_dependency' /Users/macbookpro06/.rvm/gems/ruby-2.0.0-p247@oohmp-v2/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in ν•„μš”'
/Users/macbookpro06/.rvm/gems/ruby-2.0. 0-p247@oohmp-v2/gems/guard-migrate-1.0.4/lib/guard/migrate.rb :2:in <top (required)>' /Users/macbookpro06/.rvm/gems/ruby-2.0.0-p247@oohmp-v2/gems/bundler-1.16.0/lib/bundler/runtime.rb:95:in ν•„μš”'
/Users/macbookpro06/.rvm/gems/ruby-2.0. 0-p247@oohmp-v2/gems/bundler-1.16.0/lib/bundler/runtime.rb :95:in rescue in block in require' /Users/macbookpro06/.rvm/gems/ruby-2.0.0-p247@oohmp-v2/gems/bundler-1.16.0/lib/bundler/runtime.rb:72:in 블둝 ν•„μš”'
/Users/macbookpro06/.rvm/gems/ruby-2.0. 0-p247@oohmp-v2/gems/bundler-1.16.0/lib/bundler/runtime.rb :65:in each' /Users/macbookpro06/.rvm/gems/ruby-2.0.0-p247@oohmp-v2/gems/bundler-1.16.0/lib/bundler/runtime.rb:65:in ν•„μš”'
/Users/macbookpro06/.rvm/gems/ruby-2.0. 0-p247@oohmp-v2/gems/bundler-1.16.0/lib/bundler.rb :114:in require' /Users/macbookpro06/Desktop/projects/pradeep/ashley/oohmpv2/config/application.rb:7:in /Users/macbookpro06/Desktop/projects/pradeep/ashley/oohmpv2/ Rakefile:5 :in require' /Users/macbookpro06/Desktop/projects/pradeep/ashley/oohmpv2/Rakefile:5:in /Users/macbookpro06/.rvm/gems/ruby-2.0. 0-p247@oohmp-v2/gems/rake-12.3.0/exe/rake :27:in <top (required)>' /Users/macbookpro06/.rvm/gems/ruby-2.0.0-p247@oohmp-v2/bin/ruby_executable_hooks:15:in 평가'
/Users/macbookpro06/.rvm/gems/ruby-2.0. 0-p247@oohmp-v2/bin/ruby_executable_hooks :15:in <main>' (See full trace by running task with --trace)

λ‚˜λŠ” 루비λ₯Ό 처음 μ‚¬μš©ν•˜μ§€λ§Œ μ§€κΈˆμ€ 3일이 μ§€λ‚˜μ„œ Windowsμ—μ„œ μž‘λ™ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. λ‚΄ 였λ₯˜:
레이크 db:생성
λ ˆμ΄ν¬κ°€ μ€‘λ‹¨λ˜μ—ˆμŠ΅λ‹ˆλ‹€!
LoadError: ν•΄λ‹Ή νŒŒμΌμ„ λ‘œλ“œν•  수 μ—†μŠ΅λ‹ˆλ‹€ -- /mnt/c/code/myapp/config/application
/mnt/c/code/myapp/ rakefile:4 : require_relative' /mnt/c/code/myapp/rakefile:4:in μ—μ„œ (--trace둜 μž‘μ—…μ„ μ‹€ν–‰ν•˜μ—¬ 전체 좔적 보기)

이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰