RubyMine error of No Rails Found in the SDK - rubymine

I updated to Ruby 2.0 and Rails 4.0 and RubyMine stopped working.
If I do my Rails commands through command line tool, they work just fine but if I want to run my project through RubyMine (the latest version) I get error 134 and No Rails Founds in the SDK error.
So I am sure it is not a big deal and it is just some minor setting that needs to be updated in the IDE but can't figure it out yet. And not sure what kind of details do I need to provide so here is Tools -> Show Gem Environment info from the IDE:
RUBYGEMS VERSION: 2.0.3
RUBY VERSION: 2.0.0 (2013-07-05 patchlevel 251) [x86_64-darwin12.4.0]
INSTALLATION DIRECTORY: /Users/Jony/.rvm/gems/ruby-2.0.0-head
RUBY EXECUTABLE: /Users/Jony/.rvm/rubies/ruby-2.0.0-head/bin/ruby
EXECUTABLE DIRECTORY: /Users/Jony/.rvm/gems/ruby-2.0.0-head/bin
RUBYGEMS PLATFORMS:
ruby
x86_64-darwin-12
GEM PATHS:
/Users/Jony/.rvm/gems/ruby-2.0.0-head
/Users/Jony/.rvm/gems/ruby-2.0.0-head#global
GEM CONFIGURATION:
:update_sources => true
:verbose => true
:backtrace => false
:bulk_threshold => 1000
REMOTE SOURCES:
https://rubygems.org/
----------------------
IDE: JetBrains RubyMine 5.4.3.2.1, build #RM-129.861
OS: Mac OS X 10.8.4[x86_64]
Java: 1.6.0_51-b11-456-11M4508
RubyMine SDK Environment:
Sdk: RVM: ruby-2.0.0-head
Sdk Version: ver.2.0.0p251 p251
Ruby Interpreter: /Users/Jony/.rvm/rubies/ruby-2.0.0-head/bin/ruby
RVM Sdk: yes, gemset:[default]
RVM Home: /Users/Jony/.rvm
Sdk Language Level: 1.9
Sdk Load Path:
~/.rvm/rubies/ruby-2.0.0-head/lib/ruby/site_ruby/2.0.0
~/.rvm/rubies/ruby-2.0.0-head/lib/ruby/site_ruby/2.0.0/x86_64-darwin12.4.0
~/.rvm/rubies/ruby-2.0.0-head/lib/ruby/site_ruby
~/.rvm/rubies/ruby-2.0.0-head/lib/ruby/vendor_ruby/2.0.0
~/.rvm/rubies/ruby-2.0.0-head/lib/ruby/vendor_ruby/2.0.0/x86_64-darwin12.4.0
~/.rvm/rubies/ruby-2.0.0-head/lib/ruby/vendor_ruby
~/.rvm/rubies/ruby-2.0.0-head/lib/ruby/2.0.0
~/.rvm/rubies/ruby-2.0.0-head/lib/ruby/2.0.0/x86_64-darwin12.4.0
/Applications/RubyMine.app/rubystubs20
Sdk Gem paths:
~/.rvm/gems/ruby-2.0.0-head/bundler/gems
~/.rvm/gems/ruby-2.0.0-head/gems
~/.rvm/gems/ruby-2.0.0-head#global/gems
Gems used for 'untitled4':
sprockets-rails (2.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/sprockets-rails-2.0.0
activerecord (4.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/activerecord-4.0.0
rack-test (0.6.2)
~/.rvm/gems/ruby-2.0.0-head/gems/rack-test-0.6.2
activesupport (4.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/activesupport-4.0.0
coffee-script-source (1.6.3)
~/.rvm/gems/ruby-2.0.0-head/gems/coffee-script-source-1.6.3
turbolinks (1.2.0)
~/.rvm/gems/ruby-2.0.0-head/gems/turbolinks-1.2.0
bundler (1.3.5)
~/.rvm/gems/ruby-2.0.0-head#global/gems/bundler-1.3.5
activemodel (4.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/activemodel-4.0.0
mail (2.5.4)
~/.rvm/gems/ruby-2.0.0-head/gems/mail-2.5.4
rack (1.5.2)
~/.rvm/gems/ruby-2.0.0-head/gems/rack-1.5.2
json (1.8.0)
~/.rvm/gems/ruby-2.0.0-head/gems/json-1.8.0
minitest (4.7.5)
~/.rvm/gems/ruby-2.0.0-head/gems/minitest-4.7.5
tzinfo (0.3.37)
~/.rvm/gems/ruby-2.0.0-head/gems/tzinfo-0.3.37
sass-rails (4.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/sass-rails-4.0.0
actionmailer (4.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/actionmailer-4.0.0
hike (1.2.3)
~/.rvm/gems/ruby-2.0.0-head/gems/hike-1.2.3
coffee-script (2.2.0)
~/.rvm/gems/ruby-2.0.0-head/gems/coffee-script-2.2.0
activerecord-deprecated_finders (1.0.3)
~/.rvm/gems/ruby-2.0.0-head/gems/activerecord-deprecated_finders-1.0.3
thread_safe (0.1.0)
~/.rvm/gems/ruby-2.0.0-head/gems/thread_safe-0.1.0
sqlite3 (1.3.7)
~/.rvm/gems/ruby-2.0.0-head/gems/sqlite3-1.3.7
sdoc (0.3.20)
~/.rvm/gems/ruby-2.0.0-head/gems/sdoc-0.3.20
actionpack (4.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/actionpack-4.0.0
tilt (1.4.1)
~/.rvm/gems/ruby-2.0.0-head/gems/tilt-1.4.1
jquery-rails (3.0.2)
~/.rvm/gems/ruby-2.0.0-head/gems/jquery-rails-3.0.2
mime-types (1.23)
~/.rvm/gems/ruby-2.0.0-head/gems/mime-types-1.23
railties (4.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/railties-4.0.0
sprockets (2.10.0)
~/.rvm/gems/ruby-2.0.0-head/gems/sprockets-2.10.0
arel (4.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/arel-4.0.0
polyglot (0.3.3)
~/.rvm/gems/ruby-2.0.0-head/gems/polyglot-0.3.3
thor (0.18.1)
~/.rvm/gems/ruby-2.0.0-head/gems/thor-0.18.1
rdoc (3.12.2)
~/.rvm/gems/ruby-2.0.0-head/gems/rdoc-3.12.2
rake (10.1.0)
~/.rvm/gems/ruby-2.0.0-head#global/gems/rake-10.1.0
coffee-rails (4.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/coffee-rails-4.0.0
i18n (0.6.4)
~/.rvm/gems/ruby-2.0.0-head/gems/i18n-0.6.4
multi_json (1.7.7)
~/.rvm/gems/ruby-2.0.0-head/gems/multi_json-1.7.7
sass (3.2.9)
~/.rvm/gems/ruby-2.0.0-head/gems/sass-3.2.9
rails (4.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/rails-4.0.0
execjs (1.4.0)
~/.rvm/gems/ruby-2.0.0-head/gems/execjs-1.4.0
treetop (1.4.14)
~/.rvm/gems/ruby-2.0.0-head/gems/treetop-1.4.14
atomic (1.1.10)
~/.rvm/gems/ruby-2.0.0-head/gems/atomic-1.1.10
erubis (2.7.0)
~/.rvm/gems/ruby-2.0.0-head/gems/erubis-2.7.0
uglifier (2.1.1)
~/.rvm/gems/ruby-2.0.0-head/gems/uglifier-2.1.1
jbuilder (1.4.2)
~/.rvm/gems/ruby-2.0.0-head/gems/jbuilder-1.4.2
builder (3.1.4)
~/.rvm/gems/ruby-2.0.0-head/gems/builder-3.1.4
And also a screen shot of my SDK settings just in case:

I solved this issue of No Rails SDK found by following.
Step 1.
Figure out Ruby version and bundle version of your project.
Step 2.
Add correct Ruby SDK and GEMs from preferences in Rubymine.
Preferences > Languages & Framework > Ruby SDK and Gems > [Select your RVM version] > [Select correct gem version of bundle] > Apply

I solved this problem by deleting the project from RubyMine's history (close project and then hit the x for the project on the left side) and deleting the .idea directory of my project. After I opened the project in RubyMine again, it worked.

I solved this by installed another Ruby version ,and it installed in Global file
/user/share/rvm/rubies/ruby-2.5.1
The first time I installed the latest Ruby version in my local rvm file, all gem files didn't add in Rubymine which only contains some base ruby files.
~/.rvm/rubies/ruby-2.6.3
I don't know why is that,but I don't think I need to know the reason, at least now.

If the answer by #atul_vaibhai doesn't work.
Close any open terminals and your project and open your project

Uninstall any new versions of ruby than the one that your application requires.
rvm remove <other versions>
If this solves your problem, then you need to figure out how to parallely keep another version without affecting any other application. You must be doing something wrong in configuring the application.

Had the same error message without updating anything.
Invalidating the Cache / Restart worked for me.

Related

Flutter on a MacBook M1: Unable to get flutterfire_cli to work while setting up a Web App

I'm VERY new to the Mac OS (I'm running macOS Monterey v12.4) on an M1 Macbook Pro.
I have Flutter installed and have built a few sandbox apps with this framework.
I'm trying to build a web application with Flutter and Cloud Firestore and thought it best to use the flutterfire_cli to do some of the configurations but I'm stuck trying to run a specific setup command.
The command that I'm trying to run is "dart pub global activate flutterfire_cli" from a terminal. The output that I get is the following when I run this (the error is at the bottom):
ansi_styles 0.3.2+1s...
args 2.3.1
async 2.9.0
ci 0.1.0
cli_util 0.3.5
collection 1.16.0
dart_console 1.0.0
deep_pick 0.10.0
ffi 1.2.1 (2.0.0 available)
file 6.1.2
flutterfire_cli 0.2.2+2
http 0.13.4
http_parser 4.0.1
interact 2.1.1
json_annotation 4.5.0
matcher 0.12.11
meta 1.8.0
path 1.8.2
petitparser 5.0.0
platform 3.1.0
process 4.2.4
pub_semver 2.1.1
pub_updater 0.2.2
pubspec 2.2.0
quiver 3.1.0
source_span 1.9.0
stack_trace 1.10.0
string_scanner 1.1.1
term_glyph 1.2.0
tint 2.0.0
typed_data 1.3.1
uri 1.0.0
win32 2.6.1 (2.7.0 available)
xml 5.4.1 (6.1.0 available)
yaml 3.1.1
Could not find a file named "pubspec.yaml" in "/Users/myusername/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.2+2".
When I try to run the next command according to the documentation here: https://firebase.google.com/docs/flutter/setup?platform=web
That command is "flutterfire configure" from within Android studio
I get the following error: "zsh: command not found: flutterfire"
I'm running node version "v16.15.1" and nvm version "0.39.1" with npm version "8.12.1"
Has anyone run into this?
Thanks!
In your termianl run:
export PATH="$PATH":"$HOME/.pub-cache/bin"
Then try to use flutterfire command in your project directory.
Thanks for that response shuster.
I'm afraid that my environment needed abit more help as there were errors when running several commands. I'll outline the steps I used below to finally get this working.
Steps to resolve the issue
Delete Node and NPM (aka - fresh start)
This post here outlined a straightforward way to do this: https://www.positronx.io/how-to-uninstall-node-js-and-npm-from-macos/
Reinstall node WITHOUT using the 'sudo' command using NVM
Verify that all versions are in place and working for NVM, NODE and NPM - all good
Was still getting issues with the command from Dart to activate the flutterfire_cli "dart pub global activate flutterfire_cli"
I didn't capture the exact error, but there was a complaint about a PUBSPEC.YAML missing
I suspected that something was wrong with my Dart installation or cache, so I decided to try clearing the cache
Repairing the cache using this command "dart pub cache repair" produced a "permissions denied" error on the .pub-cache folder
Cleaning the DART cache using this command "dart pub cache clean" produced the same "permissions denied" error on the same folder
So, I went in and deleted everything in that .pub-cache folder manually
I then went back to the terminal and ran the command "dart pub global activate flutterfire_cli" to try and get Dart into a better place
This worked but I got an error message (basically) stating that the path was wrong for a global command and I needed to run "export PATH="$PATH":"$HOME/.pub-cache/bin"
If I ran that PATH command from the terminal, then the Flutterfire CLI would work for that session only but not work in my IDE (Android Studio) unless I ran that same command again inside the IDE
At this point I knew I was very close and needed to figure out how to get this Mac to keep that setting all the time
After some digging into what this "zsh" thing was, I found a post that explained it very well and was able to make the change permanent https://wpbeaches.com/how-to-add-to-the-shell-path-in-macos-using-terminal/
 
Hope this helps someone - happy coding!

Unity doesn't generate xcworkspace, Podfile using iOS Resolver - macOS Catalina

I'm trying to build an iOS project in Unity 2019.3.14f1 but when I tried to install CocoaPods using /Assets/External Dependency Manager/Install Cocoapods it returns a warning:
gem install cocoa pods --user-install
WARNING: You don't have /Users/danieoquelis/.gem/ruby/2.6.0/bin in your PATH,
gem executables will not run
.....
Done installing documentation for cocoapods after 2 seconds
1 gem installed
I went to my terminal which uses '.zsh' and I added the PATH in the file '.zshrc' and '.zshenv' then I did 'source' to the files and restarted Unity to try to build the project again but it only generates xcodeproject without xcworkspace or Podfile.
I tried to uninstall cocoapods from the terminal and I installed it again and from the terminal the warning doesn't appear and when I do 'echo $PATH' it returns:
/Users/danieloquelis/.gem/ruby/2.6.0/bin:/Users/danieloquelis/Library/Android/flutter/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
I don't know if Unity doesn't read the shell based on 'zsh' and it only works with 'bash' I update iOS Resolver, Cocoa Pods, Unity, I don't know what else I can do.
CocoaPods 1.9.3
Ruby 2.6.0
iOS Resolver 1.2.155
Unity 2019.3.14f1
macOS Catalina 10.15
Thanks for your help!!!
I fixed it, I forgot to add ARKit Unity Plugin.

Ionic add platform ios showing phonegap-plugin-push error on mac OS Sierra

Hi when i tried to platform add ios showing the following error,
Adding ios project...
Creating Cordova project for the iOS platform:
Path: platforms/ios
Package: com.leniko.fuel-buddy
Name: Fuel Buddy
iOS project created with cordova-ios#4.4.0
Installing "cordova-plugin-app-version" for ios
Installing "cordova-plugin-apprate" for ios
Plugin dependency "cordova-plugin-dialogs#1.3.0" already fetched, using that version.
Installing "cordova-plugin-dialogs" for ios
Plugin dependency "cordova-plugin-globalization#1.0.4" already fetched, using that version.
Installing "cordova-plugin-globalization" for ios
Cross-platform AppRate plugin for Cordova / PhoneGap
Installing "cordova-plugin-camera" for ios
Plugin dependency "cordova-plugin-compat#1.1.0" already fetched, using that version.
Installing "cordova-plugin-compat" for ios
Plugin "cordova-plugin-compat" already installed on ios. Making it top-level.
Installing "cordova-plugin-console" for ios
Installing "cordova-plugin-device" for ios
Plugin "cordova-plugin-dialogs" already installed on ios. Making it top-level.
Installing "cordova-plugin-file" for ios
Plugin dependency "cordova-plugin-compat#1.1.0" already fetched, using that version.
Dependent plugin "cordova-plugin-compat" already installed on ios.
The Android Persistent storage location now defaults to "Internal". Please check this plugins README to see if you application needs any changes in its config.xml.
If this is a new application no changes are required.
If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
"<preference name="AndroidPersistentFileLocation" value="Compatibility" />"
to config.xml in order for the application to find previously stored files.
Installing "cordova-plugin-file-transfer" for ios
Plugin dependency "cordova-plugin-file#4.3.0" already fetched, using that version.
Dependent plugin "cordova-plugin-file" already installed on ios.
Plugin "cordova-plugin-globalization" already installed on ios. Making it top-level.
Installing "cordova-plugin-splashscreen" for ios
Installing "cordova-plugin-statusbar" for ios
Installing "cordova-plugin-whitelist" for ios
Installing "cordova-plugin-x-socialsharing" for ios
Installing "cordova-plugin-x-toast" for ios
Installing "ionic-plugin-keyboard" for ios
Installing "phonegap-plugin-push" for ios
Failed to install 'phonegap-plugin-push': undefined
Error: /Library/Ruby/Gems/2.0.0/gems/claide-1.0.2/lib/claide/command.rb:439:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)
Usage:
$ pod COMMAND
CocoaPods, the Cocoa library package manager.
Commands:
+ cache Manipulate the CocoaPods cache
+ env Display pod environment
+ init Generate a Podfile for the current directory
+ install Install project dependencies according to versions from a
Podfile.lock
+ ipc Inter-process communication
+ lib Develop pods
+ list List pods
+ outdated Show outdated project dependencies
+ repo Manage spec-repositories
+ setup Setup the CocoaPods environment
+ spec Manage pod specs
+ update Update outdated project dependencies and create new Podfile.lock
Options:
--silent Show nothing
--version Show the version of the tool
--verbose Show more debugging information
--no-ansi Show output without ANSI codes
--help Show help banner of specified command
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/lib/cocoapods/command.rb:47:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/bin/pod:55:in `<top (required)>'
from /usr/local/bin/pod:23:in `load'
from /usr/local/bin/pod:23:in `<main>'
I had installed cocoapods and run the above command with sudo and without sudo.
I had solved the problem by changing the plugin phonegap-push with Firebase plugin and now its working fine in android as well as IOS. Please go with the cordova-firebase plugin version 1.22.

chromedriver crashing on Windows 7

Problem: When I run my tests, I get the following message in the command prompt
Started ChromeDriver
port=9515
version=21.0.1180.4
log=C:\Users\jhomer\Desktop\Workspace\WebAutomationTesting\Tests\chromedriver.log
Chrome then starts, after which I get a windows error message stating the chromedriver has stopped working.
Additional Information:
I just recently switched from a mac (osx) to windows 7. I'm using the same IDE (Aptana 3) and I have installed the same gems:
addressable (2.2.8)
bigdecimal (1.1.0)
builder (3.0.0)
childprocess (0.3.2)
commonwatir (3.0.0)
ffi (1.0.11)
hoe (3.0.6)
io-console (0.3)
json (1.7.3, 1.5.4)
json_pure (1.7.3)
libwebsocket (0.1.3)
minitest (3.2.0, 3.1.0, 2.5.1
multi_json (1.3.6)
nokogiri (1.5.5 x86-mingw32)
rake (0.9.2.2)
rautomation (0.7.2)
rdoc (3.12, 3.9.4)
rubygems-update (1.8.24)
rubyzip (0.9.9)
s4t-utils (1.0.4)
selenium-webdriver (2.24.0)
user-choices (1.1.6.1)
watir (3.0.0)
watir-classic (3.0.0)
watir-webdriver (0.6.1)
win32-api (1.4.8 x86-mingw32)
win32-process (0.6.5)
windows-api (0.4.1)
windows-pr (1.2.1)
xml-simple (1.1.1)
I have run gem update, gem pristine --all, none of which have helped.
** update **
The error I was getting on the prompt after the tests "completed" is as follows:
So before I used the version you suggested I was getting this error:
Error:
test_UserRoles(UserRolesTest):
Errno::ECONNREFUSED: No connection could be made because the target machine actively refused it. - connect(2)
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/remote/http/default.rb:76:in `response_for'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/remote/http/default.rb:38:in 'request'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/remote/http/common.rb:40:in `call'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/remote/bridge.rb:598:in 'raw_execute'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/remote/bridge.rb:576:in `execute'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/remote/bridge.rb:189:in 'quit'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/chrome/bridge.rb:48:in 'quit'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/common/driver.rb:166:in `quit'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.1/lib/watir-webdrive r/browser.rb:87:in 'close'
UserRolesTest.rb:48:in 'teardown'
Let me know if there is any additional information you may require.
Thanks.
I had the same problem and had to downgrade the chromedriver to version 20 (May 23). It works fine for me now on Windows 7 x64. Here's the download link.
It seems that the windows version of chromedriver crashes when the .close method is called on the browser. That was the problem. Is there another method for closing the browser upon finishing the tests?

new Capistrano version 2.6.0 deploy error: `sync' is not implemented by Capistrano::Deploy::SCM::None (rsync with remote cache)

I'm using Capistrano along with the capistrano_rsync_with_remote_cache gem when deploying applications.
The problem occourred after upgrading the deploy server with new software:
capistrano 2.5.10 -> 2.6.0
capistrano_rsync_with_remote_cache 2.3.6 -> 2.4.0
ruby 1.8.6 -> 1.8.7
ruby-gems 1.3.5 -> 1.3.7
the error message:
http://pastebin.com/bD3azxFZ
The top most error:
/var/lib/gems/1.8/gems/capistrano-2.6.0/lib/capistrano/recipes/deploy/scm/base.rb:94:in sync': sync' is not implemented by Capistrano::Deploy::SCM::None (NotImplementedError) from
/var/lib/gems/1.8/gems/capistrano_rsync_with_remote_cache-2.4.0/lib/capistrano/recipes/deploy/strategy/rsync_with_remote_cache.rb:110:in
The line from the file rsync_with_remote_cache.rb:110:
source.sync(revision, local_cache_path)
However this is the same line used in the previous version (2.3.6) of capistrano_rsync_with_remote_cache where the NotImplementedError isn't pressent.
The deploy.rb file used with both versions
http://pastebin.com/EbPkCxyN
what should I change in order to make it deploy again with the newer version?
Sync only works when an SCM is set. You have set :scm, :none in your deploy.rb. Change it accordingly to your SCM. set :scm, :git or the like…
Just had the same error here and got it fixed and thought more people might run into this - and apparently do.