rubymine

Rails not finding rake-10.5.0

北城余情 提交于 2019-12-05 00:10:13
问题 I am trying to install the rake gem in rails 4.2. Th gem seems to be install fine, but then Rails fails when it tries to run, saying that it cannot see rake-10.5.0 . I am developing in Rubymine and the error I am getting is below, as is my Gemfile. I have tried deleting Gemfile.lock as suggested by other posts, but to no avail. Console: ~/Development/RubymineProjects/Revenant.tech  ls Gemfile Rakefile config lib test Gemfile.lock app config.ru log tmp README.rdoc bin db public vendor ~

rubyMine 'Unable to attach test reporter to test framework'

*爱你&永不变心* 提交于 2019-12-05 00:00:28
rubyMine 'MiniTest framework was detected' error when running all model tests. I can run all model tests at the regular command line. e.g. rake spec:models When I use rubyMine: I can run one model test ok. However when I try to run all tests in model I get MiniTest framework was detected. It is a limited version of original Test::Unit framework. RubyMine/IDEA Ruby plugin test runner requires full-featured version of the framework, otherwise default console tests reporter will be used instead. Please install 'test-unit' gem and activate it on runtime. I tried adding the 'test-unit' to my

RubyMine debugger with Rake?

两盒软妹~` 提交于 2019-12-04 23:12:04
Using RubyMine 3.0, I set up a Rake configuration to run a Unit Test. Then I set some breakpoints, then ran the Rake task. No breakpoints were hit, the test just executed like normal and then exited. Does the RubyMine debugger not work through Rake? Try this: Go to Run -> Edit Configurations Expand the Rake node and add new rake configuration for your rake task (if not already done) Go to Run -> Debug... Select your configured rake task. The above answer is correct. I just want to elaborate on it a little bit, when using a mountable engine. In that case, I had to do the following: Run > Edit

How do I access Linux binaries from Windows when using WSL?

人盡茶涼 提交于 2019-12-04 19:38:42
I'm experimenting with the new Windows Subsystem for Linux as a way to develop Rails applications in Windows. I have WSL installed and I have Ruby in it but how do I use that Ruby from a Windows GUI application, specifically, RubyMine: This is so I can easily start rails, run tests, etc. A few things: Open a bash console and leave it open when you're running RubyMine: As soon as you close your last bash session, WSL tears down all running Linux processes. I believe RubyMine is a 32-bit app. WSL's tools are 64-bit. Therefore you need to call c:\\Windows\\Sysnative\\Bash.exe to invoke the 64-bit

RubyMine fails to start on Yosemite

大兔子大兔子 提交于 2019-12-04 18:56:50
问题 RubyMine won't start under Yosemite, no loading screen, no error message. This seems to be caused by the default JVM that comes with Yosemite EDIT This also seems to affect WebStorm 回答1: This solution is controversial - please read all of it before applying changes! Open this file Check the version of Java, most likely 1.8, by using java -version , you should see something like: java version "1.8.0_20" Java(TM) SE Runtime Environment (build 1.8.0_20-b26) Java HotSpot(TM) 64-Bit Server VM

Which HTTP web server can I use to debug ruby code using Rubymine 3.0.1?

喜夏-厌秋 提交于 2019-12-04 14:39:38
问题 I've being using Mongrel with Rails 2.3.X and Ruby 1.8.7 without problems, but when I switch to Ruby 1.9.2 and Rails 3, I'm having problems with mongrel to debug. Webrick is just slow, so, do you know any alternatives? Do you know how to fix mongrel to successfully debug rails app using rubymine 3.0.1? 回答1: I couldn't get Defaults->Rails changes to affect my different configs that were set to 'Default', but I did have success changing the discrete config ('development') directly. Note: For

Connect to DB through Vagrant using RubyMine

孤街浪徒 提交于 2019-12-04 10:03:40
I just started working on a ruby project which is set up through Vagrant. I've successfully gotten a remote interpreter working but I'm having trouble connecting to databases. Here's my Vagrantfile : # This Vagrantfile is for development use only. VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "markusproject/ubuntu" # Allow instance to see project folder. # Warning: This may cause problems with your Vagrant box! # Enable at your own risk. # config.vm.synced_folder ".", "/home/vagrant/Markus" # Access the server running on port 3000 on the

ERROR: cannot start RubyMine. No JDK found. JDK Version? + desktop link

一笑奈何 提交于 2019-12-04 09:08:40
问题 ERROR: cannot start RubyMine. No JDK found. Please validate either RUBYMINE_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation. I'm not sure what JDK version number to use to download it? Also how to create a desktop link in 11.10? 回答1: I think using apt-get is easier, see for example this article: sudo apt-get install openjdk-7-jdk 回答2: Turned out that in the end I had to do several things to get java running and thus resolve the issue: Get Java Download oracle7

Is it impossible to use Guard with RubyMine?

穿精又带淫゛_ 提交于 2019-12-04 07:25:46
问题 For some inexplicable reason, RubyMine autosaves every change you make and so every key stroke will trigger Guard to run your tests! And the most ridiculous thing is that there's apparently no way to disable this autosaving "feature". I'm just wondering, RubyMine seems to be a very popular editor among Rails developers and Guard seems to be an indispensable tool used to automate testing. Since Guard is impossible to use reasonably with RubyMine, how do people deal with automating their tests

rubymine - Could not find gem “jquery-rails”

醉酒当歌 提交于 2019-12-04 02:50:21
I have installed rubymine and Ruby193 (with rubyinstaller). I now create a rails aplication with "preconfigured for selected database" - "mySqL " checkbox selected When I click the execute it prints the following error : D:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/resolver.rb:287:in `resolve': Could not find gem 'jquery-rails (>= 0) x86-mingw32' in the gems available on this machine. (Bundler::GemNotFound) ideas? Install this gem separately: gem install jquery-rails or via Bundler bundle install (in the project directory where your Gemfile is located) Here is the