質問編集履歴

2

「試したこと」の修正

2020/05/12 16:52

投稿

_chii
_chii

スコア50

test CHANGED
File without changes
test CHANGED
@@ -66,22 +66,174 @@
66
66
 
67
67
  ### 試したこと
68
68
 
69
- 下記のようにspringをkillするコマンドを試しましたが、```No such process```が出てしまい求めていた結果とは異なる結果になってまいまし...
70
-
71
- ```
72
-
73
- ChisakinoMacBook-Pro:taskleaf Chisaki$ ps aux | grep spring
74
-
75
- Chisaki 27871 0.0 0.0 4268040 784 s000 S+ 9:00PM 0:00.00 grep spring
76
-
77
- ChisakinoMacBook-Pro:taskleaf Chisaki$ kill -9 27871
78
-
79
- bash: kill: (27871) - No such process
69
+ 試した内容として下記のように指定のあった```bundle exec spring binstub --all```を実行しました
70
+
71
+ ```
72
+
73
+ ChisakinoMacBook-Pro:taskleaf Chisaki$ bundle exec spring binstub --all
74
+
75
+ NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
76
+
77
+ 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.
78
+
79
+ NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
80
+
81
+ 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.
82
+
83
+ NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
84
+
85
+ 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.
86
+
87
+ NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
88
+
89
+ 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.
90
+
91
+ NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
92
+
93
+ 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.
94
+
95
+ * bin/rake: Spring inserted
96
+
97
+ * bin/rails: Spring inserted
98
+
99
+ ```
100
+
101
+
102
+
103
+ そのあとに```bundle update```を実行してから```rails s```を試したところ、最初のエラーの表示はなくなりましたがもっと大きなエラーになってしまいました...下記がその内容となります。
104
+
105
+ ```
106
+
107
+ ChisakinoMacBook-Pro:taskleaf Chisaki$ bin/rails s
108
+
109
+ NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
110
+
111
+ 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.
112
+
113
+ NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
114
+
115
+ 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.
116
+
117
+ NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
118
+
119
+ 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.
120
+
121
+ NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
122
+
123
+ 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.
124
+
125
+ NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
126
+
127
+ 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.
128
+
129
+ Beginning in Rails 4, Rails ships with a `rails` binstub at ./bin/rails that
130
+
131
+ should be used instead of the Bundler-generated `rails` binstub.
132
+
133
+
134
+
135
+ If you are seeing this message, your binstub at ./bin/rails was generated by
136
+
137
+ Bundler instead of Rails.
138
+
139
+
140
+
141
+ You might need to regenerate your `rails` binstub locally and add it to source
142
+
143
+ control:
144
+
145
+
146
+
147
+ rails app:update:bin # Bear in mind this generates other binstubs
148
+
149
+ # too that you may or may not want (like yarn)
150
+
151
+
152
+
153
+ If you already have Rails binstubs in source control, you might be
154
+
155
+ inadverently overwriting them during deployment by using bundle install
156
+
157
+ with the --binstubs option.
158
+
159
+
160
+
161
+ If your application was created prior to Rails 4, here's how to upgrade:
162
+
163
+
164
+
165
+ bundle config --delete bin # Turn off Bundler's stub generator
166
+
167
+ rails app:update:bin # Use the new Rails executables
168
+
169
+ git add bin # Add bin/ to source control
170
+
171
+
172
+
173
+ You may need to remove bin/ from your .gitignore as well.
174
+
175
+
176
+
177
+ When you install a gem whose executable you want to use in your app,
178
+
179
+ generate it and add it to source control:
180
+
181
+
182
+
183
+ bundle binstubs some-gem-name
184
+
185
+ git add bin/new-executable
186
+
187
+
188
+
189
+ => Booting Puma
190
+
191
+ => Rails 5.2.4.2 application starting in development
192
+
193
+ => Run `rails server -h` for more startup options
194
+
195
+ Exiting
196
+
197
+ You've tried to invoke Spring when it's already loaded (i.e. the Spring constant is defined).
198
+
199
+
200
+
201
+ 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.
202
+
203
+
204
+
205
+ Here's the backtrace:
206
+
207
+
208
+
209
+ /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'
210
+
211
+ /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'
212
+
213
+ /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'
214
+
215
+ /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'
216
+
217
+ /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'
218
+
219
+ /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)>'
220
+
221
+ /Users/Chisaki/.rbenv/versions/2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:92:in `require'
222
+
223
+ /Users/Chisaki/.rbenv/versions/2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:92:in `require'
224
+
225
+ /Users/Chisaki/Desktop/Rails/taskleaf/bin/spring:15:in `<top (required)>'
226
+
227
+ bin/rails:4:in `load'
228
+
229
+ bin/rails:4:in `<main>'
80
230
 
81
231
  ChisakinoMacBook-Pro:taskleaf Chisaki$
82
232
 
83
233
  ```
84
234
 
235
+ エラー文の内容理解を試みましたが理解できませんでした...
236
+
85
237
 
86
238
 
87
239
  ### 補足情報(FW/ツールのバージョンなど)

1

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

2020/05/12 16:52

投稿

_chii
_chii

スコア50

test CHANGED
File without changes
test CHANGED
@@ -66,9 +66,21 @@
66
66
 
67
67
  ### 試したこと
68
68
 
69
+ 下記のようにspringをkillするコマンドを試しましたが、```No such process```が出てしまい求めていた結果とは異なる結果になってしまいました...
69
70
 
71
+ ```
70
72
 
71
- ```$ bin/rails s```を実行したところ上記のようなエラーがでてしまったため```$ bundle install --binstubs```や```$ bundle install```などを試しましたが余計にエラーが複雑なってしまい解決から遠のいてしまいました。エラー表記も長くなかなかリサーチした結果の情報も少なく手詰まりを起こしています...もしこれらのエラーの内容がわかるかたでご教授していただけないでしょうか?よろしくお願いします...
73
+ ChisakinoMacBook-Pro:taskleaf Chisaki$ ps aux | grep spring
74
+
75
+ Chisaki 27871 0.0 0.0 4268040 784 s000 S+ 9:00PM 0:00.00 grep spring
76
+
77
+ ChisakinoMacBook-Pro:taskleaf Chisaki$ kill -9 27871
78
+
79
+ bash: kill: (27871) - No such process
80
+
81
+ ChisakinoMacBook-Pro:taskleaf Chisaki$
82
+
83
+ ```
72
84
 
73
85
 
74
86