teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

「試したこと」の修正

2020/05/12 16:52

投稿

_chii
_chii

スコア50

title CHANGED
File without changes
body CHANGED
@@ -32,14 +32,90 @@
32
32
 
33
33
 
34
34
  ### 試したこと
35
- 下記のようにspringをkillするコマンドを試しましが、```No such process```が出てしまい求めていた結果とは異なる結果になってまいまし...
35
+ 試した内容として下記のように指定のあった```bundle exec spring binstub --all```を実行しました
36
36
  ```
37
- ChisakinoMacBook-Pro:taskleaf Chisaki$ ps aux | grep spring
38
- Chisaki 27871 0.0 0.0 4268040 784 s000 S+ 9:00PM 0:00.00 grep spring
39
- ChisakinoMacBook-Pro:taskleaf Chisaki$ kill -9 27871
40
- bash: kill: (27871) - No such process
37
+ ChisakinoMacBook-Pro:taskleaf Chisaki$ bundle exec spring binstub --all
38
+ NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
39
+ Gem::Specification#rubyforge_project= called from /Users/Chisaki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/specifications/archive-zip-0.12.0.gemspec:16.
40
+ NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
41
+ Gem::Specification#rubyforge_project= called from /Users/Chisaki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/specifications/coffee-script-source-1.12.2.gemspec:16.
42
+ NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
43
+ Gem::Specification#rubyforge_project= called from /Users/Chisaki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/specifications/coffee-rails-4.2.2.gemspec:16.
44
+ NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
45
+ Gem::Specification#rubyforge_project= called from /Users/Chisaki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/specifications/sprockets-3.7.2.gemspec:19.
46
+ NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
47
+ Gem::Specification#rubyforge_project= called from /Users/Chisaki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/specifications/sass-3.7.4.gemspec:21.
48
+ * bin/rake: Spring inserted
49
+ * bin/rails: Spring inserted
50
+ ```
51
+
52
+ そのあとに```bundle update```を実行してから```rails s```を試したところ、最初のエラーの表示はなくなりましたがもっと大きなエラーになってしまいました...下記がその内容となります。
53
+ ```
54
+ ChisakinoMacBook-Pro:taskleaf Chisaki$ bin/rails s
55
+ NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
56
+ Gem::Specification#rubyforge_project= called from /Users/Chisaki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/specifications/archive-zip-0.12.0.gemspec:16.
57
+ NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
58
+ Gem::Specification#rubyforge_project= called from /Users/Chisaki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/specifications/coffee-script-source-1.12.2.gemspec:16.
59
+ NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
60
+ Gem::Specification#rubyforge_project= called from /Users/Chisaki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/specifications/coffee-rails-4.2.2.gemspec:16.
61
+ NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
62
+ Gem::Specification#rubyforge_project= called from /Users/Chisaki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/specifications/sprockets-3.7.2.gemspec:19.
63
+ NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
64
+ Gem::Specification#rubyforge_project= called from /Users/Chisaki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/specifications/sass-3.7.4.gemspec:21.
65
+ Beginning in Rails 4, Rails ships with a `rails` binstub at ./bin/rails that
66
+ should be used instead of the Bundler-generated `rails` binstub.
67
+
68
+ If you are seeing this message, your binstub at ./bin/rails was generated by
69
+ Bundler instead of Rails.
70
+
71
+ You might need to regenerate your `rails` binstub locally and add it to source
72
+ control:
73
+
74
+ rails app:update:bin # Bear in mind this generates other binstubs
75
+ # too that you may or may not want (like yarn)
76
+
77
+ If you already have Rails binstubs in source control, you might be
78
+ inadverently overwriting them during deployment by using bundle install
79
+ with the --binstubs option.
80
+
81
+ If your application was created prior to Rails 4, here's how to upgrade:
82
+
83
+ bundle config --delete bin # Turn off Bundler's stub generator
84
+ rails app:update:bin # Use the new Rails executables
85
+ git add bin # Add bin/ to source control
86
+
87
+ You may need to remove bin/ from your .gitignore as well.
88
+
89
+ When you install a gem whose executable you want to use in your app,
90
+ generate it and add it to source control:
91
+
92
+ bundle binstubs some-gem-name
93
+ git add bin/new-executable
94
+
95
+ => Booting Puma
96
+ => Rails 5.2.4.2 application starting in development
97
+ => Run `rails server -h` for more startup options
98
+ Exiting
99
+ You've tried to invoke Spring when it's already loaded (i.e. the Spring constant is defined).
100
+
101
+ This is probably because you generated binstubs with Spring 1.0, and you now have a Spring version > 1.0 on your system. To solve this, upgrade your bundle to the latest Spring version and then run `bundle exec spring binstub --all` to regenerate your binstubs. This is a one-time step necessary to upgrade from 1.0 to 1.1.
102
+
103
+ Here's the backtrace:
104
+
105
+ /Users/Chisaki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:55:in `load'
106
+ /Users/Chisaki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:55:in `load'
107
+ /Users/Chisaki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:285:in `block in load'
108
+ /Users/Chisaki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:257:in `load_dependency'
109
+ /Users/Chisaki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:285:in `load'
110
+ /Users/Chisaki/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<top (required)>'
111
+ /Users/Chisaki/.rbenv/versions/2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:92:in `require'
112
+ /Users/Chisaki/.rbenv/versions/2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:92:in `require'
113
+ /Users/Chisaki/Desktop/Rails/taskleaf/bin/spring:15:in `<top (required)>'
114
+ bin/rails:4:in `load'
115
+ bin/rails:4:in `<main>'
41
116
  ChisakinoMacBook-Pro:taskleaf Chisaki$
42
117
  ```
118
+ エラー文の内容理解を試みましたが理解できませんでした...
43
119
 
44
120
  ### 補足情報(FW/ツールのバージョンなど)
45
121
 

1

試した内容について頂いたコメントの内容を元に再編集致しました。

2020/05/12 16:52

投稿

_chii
_chii

スコア50

title CHANGED
File without changes
body CHANGED
@@ -32,9 +32,15 @@
32
32
 
33
33
 
34
34
  ### 試したこと
35
+ 下記のようにspringをkillするコマンドを試しましたが、```No such process```が出てしまい求めていた結果とは異なる結果になってしまいました...
36
+ ```
37
+ ChisakinoMacBook-Pro:taskleaf Chisaki$ ps aux | grep spring
38
+ Chisaki 27871 0.0 0.0 4268040 784 s000 S+ 9:00PM 0:00.00 grep spring
39
+ ChisakinoMacBook-Pro:taskleaf Chisaki$ kill -9 27871
40
+ bash: kill: (27871) - No such process
41
+ ChisakinoMacBook-Pro:taskleaf Chisaki$
42
+ ```
35
43
 
36
- ```$ bin/rails s```を実行したところ上記のようなエラーがでてしまったため```$ bundle install --binstubs```や```$ bundle install```などを試しましたが余計にエラーが複雑なってしまい解決から遠のいてしまいました。エラー表記も長くなかなかリサーチした結果の情報も少なく手詰まりを起こしています...もしこれらのエラーの内容がわかるかたでご教授していただけないでしょうか?よろしくお願いします...
37
-
38
44
  ### 補足情報(FW/ツールのバージョンなど)
39
45
 
40
46
  MacOS