New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bin/rails:6: warning: already initialized constant APP_PATH #14115
Comments
+1, same here with thin
|
Uninstalling and Re-install RVM helped. Now i am not get this warning. |
I do not use RVM and I can see the same warning ; this is pretty strange. |
okay, Try to uninstall your ruby and gems . And then restart your computer ,if possible . Again install back ruby and gems and try. |
@sadiqmmm : Actually it's spring which cause this issue. Try to comment it in the Gemfile, then |
Let's continue the disccusion in rails/spring#259. Thank you for reporting! |
Thanks +1 |
|
I'm have this issue when change database adapter in |
An invalid |
Both @cisolarix and @zackkitzmiller suggestions worked to varying degrees, thanks guys! |
remove this fix it begin |
@cisolarix , I am run |
I tried by commenting I had Not sure how.. |
I got this error message after upgrading postgres using brew but not uninstalling and reinstalling the pg gem. This error went away once pg gem was reinstalled. |
This can be due to an invalid Gemfile.lock -- I've seen it multiple times because people put, say,
|
I got this error after removing the brew version of |
I got this error when I removed ominiauth gem that was application dependency. I added the gem back to the Gemfile and it worked fine! |
|
This was removed from the top of the bin: begin
load File.expand_path("../spring", __FILE__)
rescue LoadError
end |
This is how i fixed it: use |
This fixed it for me as well
|
@cmavromoustakos this way you just remove rails spring and slowdown rails loading a lot. |
|
rake In my case I had forgotten to install sinatra
it worked 100% with spring and everything as before. |
I got this problem after I updated to EI Capitan. With: rake rails:update:bin --trace I find the problem is caused by sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/local/lib/libmysqlclient.18.dylib Hope this can help anyone who is struggling to the problem. |
Fixed. Remove |
@kalashnikovisme those things are so unrelated. What was the underlying issue there? did you try keeping spring but adding rest-client and running Disabling spring seems to be the wrong approach to me, there is usually another issue at play |
@tyronewilson problem was in the gem, that uses gem rest-client but doesn't have it in dependency. And you're right. |
@kalashnikovisme Great! :) |
After running I get this error: Then, I run: |
|
+1 for |
Dunno why everyone is so ready to kill spring with this sledgehammer
|
I have the same issue after I update OSX and brew. Here are steps I solve the problem:
|
Hi, I removed |
Worked for me perfectly |
With rails 6, |
With Rails 6, |
I am using RVM. After installing Rails 4.1.0.RC1 and generating new app and running the rails server . Just after pressing the ctrl+ c to close it show the warning -> bin/rails:6: warning: already initialized constant APP_PATH
The text was updated successfully, but these errors were encountered: