V
V
vplebedev2016-03-01 15:59:37
Ruby on Rails
vplebedev, 2016-03-01 15:59:37

Windows 7x64 + ruby ​​2.2.1: RubyMine doesn't see Rails?

on new Windows7 x64 system installed ruby ​​2.1.8-p440 (x64), latest rubygems (++ update --system), Rails 4.2.5.1 (gem install rails '4.2.5.1')
then installed RubyMine
6.0.3 The new Rails App doesn't show up in the list of available Rails gems. When installing from the same window "install gem" - installed does not appear.
When opening any application (previously created), RM swears that there are uninstalled gems.
In File:Settings \ Ruby SDK and Gems - the interpreter is installed, and when it is selected, it shows installed gems
. When calling the generator from RubyMine, when trying to create a model, it says "Rails script not found in your SDK"
from the command line rails new app runs without errors
Actually put the trial RM8 and RM-EAP, the result is the same.
-----

h:\Ruby21-x64\rubygems>rails -v
Rails 4.2.5.1
h:\Ruby21-x64\rubygems>gem -v
2.6.1

-----
Tools\Show Gem Environment
RUBYGEMS VERSION: 2.6.1
RUBY VERSION: 2.1.8 (2015-12-16 patchlevel 440) [x64-mingw32]
INSTALLATION DIRECTORY: H:/Ruby21-x64/lib/ruby/gems/2.1.0
USER INSTALLATION DIRECTORY: H :/.gem/ruby/2.1.0
RUBY EXECUTABLE: H:/Ruby21-x64/bin/ruby.exe
EXECUTABLE DIRECTORY: H:/Ruby21-x64/bin
SPEC CACHE DIRECTORY: H:/.gem/specs
SYSTEM CONFIGURATION DIRECTORY : C:/ProgramData
RUBYGEMS PLATFORMS:
ruby
​​x64-mingw32
GEM PATHS:
H:/Ruby21-x64/lib/ruby/gems/2.1.0
H:/.gem/ruby/2.1.0
GEM CONFIGURATION:
:update_sources => true
:verbose => true
:backtrace => false
:bulk_threshold => 1000
REMOTE SOURCES:
https://rubygems.org/
SHELL PATH:
H:\Ruby21-x64\bin
H:\Ruby21-x64\bin
C:\ProgramData\Oracle\Java\javapath
C:\PROGRAM FILES\BROADCOM\BROADCOM 802.11
C:\ PROGRAM FILES (X86)\INTEL\ICLS CLIENT\
C:\PROGRAM FILES\INTEL\ICLS CLIENT\
C:\ORACLE\PRODUCT\11.2.0\CLIENT_1\BIN
C:\Windows\SYSTEM32
C:\Windows
C:\Windows \SYSTEM32\WBEM
C:\Windows\SYSTEM32\WINDOWSPOWERSHELL\V1.0\
C:\PROGRAM FILES (X86)\INTEL\OPENCL SDK\3.0\BIN\X86
C:\PROGRAM FILES (X86)\INTEL\OPENCL SDK\ 3.0\BIN\X64
C:\PROGRAM FILES\INTEL\INTEL(R) MANAGEMENT ENGINE COMPONENTS\DAL
C:\PROGRAM FILES\INTEL\INTEL(R) MANAGEMENT ENGINE COMPONENTS\IPT
C:\PROGRAM FILES (X86)\INTEL\INTEL(R) MANAGEMENT ENGINE COMPONENTS\DAL
C:\PROGRAM FILES (X86)\INTEL\INTEL(R
) R) Management Engine Components\DAL
C:\Program Files\Intel\Intel(R) Management Engine Components\IPT
C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
C:\Program Files ( x86)\Intel\Intel(R) Management Engine Components\IPT
----------------------
IDE: RubyMine 6.0.3, build #RM-133.632
OS: Windows 7 6.1[x86]
Java: 1.7.0_40-b43
RubyMine SDK Environment:
Sdk: ruby-2.1.8-p440
Sdk Version: ver.2.1.8p440 ( revision 53160) p440
Ruby Interpreter: H:/Ruby21-x64/bin /ruby.exe
RVM Sdk: no
Sdk Language Level: 2.1
Sdk Load Path:
H:/Ruby21-x64/lib/ruby/site_ruby/2.1.0
H:/Ruby21-x64/lib/ruby/site_ruby/2.1.0/x64-msvcrt
H :/Ruby21-x64/lib/ruby/site_ruby
H:/Ruby21-x64/lib/ruby/vendor_ruby/2.1.0
H:/Ruby21-x64/lib/ruby/vendor_ruby/2.1.0/x64-msvcrt
H:/ Ruby21-x64/lib/ruby/vendor_ruby
H:/Ruby21-x64/lib/ruby/2.1.0
H:/Ruby21-x64/lib/ruby/2.1.0/x64-mingw32
C:/Program Files (x86)/ JetBrains/RubyMine 6.0.3/rubystubs21
Sdk Gem paths:
H:/.gem/ruby/2.1.0/gems
H:/Ruby21-x64/lib/ruby/gems/2.1.0/gems
H:/.gem/ruby /2.1.0/bundler/gems
H:/Ruby21-x64/lib/ruby/gems/2.1.0/bundler/gems

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Maltsev, 2016-03-01
@hellpirat

Use https://www.vagrantup.com/ for Ruby on Rails development on Windows

C
CapeRatel, 2016-03-01
@CapeRatel

No need to use windows for ruby ​​development.
Ruby is designed for *unix systems (osx, ubuntu, mint).
When developing on "criwindows" you always have a chance that some kind of gem will be incompatible.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question