rubymine

Rails 2.x app on RubyMine 3.1

帅比萌擦擦* 提交于 2019-12-12 12:20:02
问题 i've upgraded to rubymine 3.1 and now rubymine take all project as rails 3 project, but the mine are not. Does anybody of you face this problem. Ruby mine fires up this message, when i try to run application Run configuration error: Rails 2.x launcher found instead of Rails 3.x one. You need '/script/rails' script to launch Rails server. Please update server launcher according to Rails 3.x documentation My final state is i can run rails 2.x app server from rubymine Do you know how to achieve

Error “cannot load such file — 2.0/Console_ext” running unit tests in RubyMine

被刻印的时光 ゝ 提交于 2019-12-12 09:46:41
问题 I'm trying to get started running unit tests for a sample ruby on rails application however RubyMine is printing out the following error whenever I try and run unit tests I've also gotten the same error when running bundle install since I added gem "win32console", '1.3.0' to my Gemfile. Here is the error in text form Exception message: cannot load such file -- 2.0/Console_ext ["D:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/win32console-1.3.0-x86-mingw32/lib/Win32/Console.rb:12:in

Can't run RubyMine debugger with RVM, Ruby 1.9.2 and Rails 3

别来无恙 提交于 2019-12-12 08:54:49
问题 I've setup a fresh Ubuntu install and followed this guide to install RVM, Ruby 1.9.2 and Rails 3. Then I installed RubyMine 3.0, it automatically detected the Ruby 1.9.2 SDK from the RVM path, so that's ok. I can start the server perfectly (green play button). Now the problem is I can't debug it because it throws the following exception after startup. /home/eparizzi/.rvm/rubies/ruby-1.9.2-p180/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/eparizzi

Ruby debugger fails on STDIN.gets user input

有些话、适合烂在心里 提交于 2019-12-12 08:25:54
问题 I believe you can easily reproduce the issue. Just take a fresh RubyMine (7.1) — either Mac or Windows version, Ruby 2.2, create simple script: puts "Hi, i'm gonna break your debugger :)" user_input = gets puts "Here should be breakpoint" Put the breakpoint on the 3-rd line and run Debug session (RubyMine uses ruby-debug-ide gem). When you type something in RubyMine console window for the script to read in gets — program doesn't eat your input saying: Could not execute statement: current

Deploying to Heroku with environment variables in Gemfile

谁说我不能喝 提交于 2019-12-12 05:53:53
问题 I've recently updated our Gemfile as pry-byebug and bye-bug were causing Rubymine to crash for some of my colleagues. Since there are some of us that use other editors I've added an environment variable to our Gemfile: if ENV["USE_DEBUGGER"] gem "pry-byebug" gem "byebug" end This worked fine in our local machines but deploying to Heroku causes the following error: gist I've tried running bundle install and committing a new Gemfile.lock but that changes nothing. Getting rid of the control flow

IDEA必备插件系列-Ignore(版本管理文件过滤)

馋奶兔 提交于 2019-12-11 11:22:39
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 项目源码地址: https://github.com/JetBrains/idea-gitignore 插件介绍地址: https://plugins.jetbrains.com/plugin/7495--ignore/ 在线安装 通过 Settings -> Plugins -> Marketplace 进入插件市场选择并下载安装,完成后重启就生效了。 离线安装 如果 读者网络因不可抗力存在异常,可以通过 关注公众号 【 极客收藏夹 】回复消息【 34 】 获取安装包, 通过 Settings > Plugins > Install Plugin from 离线安装(如果安装时提示不兼容,请先更新 IDE 到最新版后再试) 使用 在项目除 右键新建,依次选择 New > .Ignore file > .gitignore file(Git) 进入语言选择页 在语言选择页选择想要的语言或框架过滤项后点击 Generate 生成,就会将过滤项添加到 .gitignore 文件底部了 兼容编辑器 IntelliJ IDEA, PhpStorm, WebStorm, PyCharm, RubyMine, AppCode, CLion, Goland, Datalore, DataGrip, Rider,

Using Ruby 1.9.2 with RubyMine and Matrix

不问归期 提交于 2019-12-11 11:06:38
问题 I am using ruby 1.9.2-p290 and RubyMine. And i try to use Matrix (require 'matrix'). So, i have few questions. How can i change any value of matrix? For example: require 'matrix' matrix = Matrix[[1, -2, 3], [3, 4, -5], [2, 4, 1]] matrix[0, 0] = 5 p matrix Gives next: in `<top (required)>': private method `[]=' called for Matrix[[1, -2, 3], [3, 4, -5], [2, 4, 1]]:Matrix (NoMethodError) from -e:1:in `load' from -e:1:in `<main>' Is it possible to show me methods for matrix by code completion in

Manual markers for code folding in RubyMine

北战南征 提交于 2019-12-11 10:19:29
问题 In RubyMine, is it possible to insert manual fold markers (like vim or emacs)? I want to automatically fold a very large hash whenever I open a file. It's available in IntelliJ. 回答1: Yes. Rubymine has the same function like IntelliJ. Select any code region you like, press option + command + T on a mac or some other similar keys binding on windows (I haven't a win install right now). Also you can do this from menu: Code -> Surround With... . To go to any custom folding, press option + command

RubyMine doesn't recognize my Ruby installation path

谁说我不能喝 提交于 2019-12-11 08:38:13
问题 I've made a custom sient installer of Ruby 2.0 with some gems and extras , my installer expands all the Ruby files to c:\Program Files (x86)\Ruby , the interpreter ( ruby.exe ) is in the Bin folder, all is as normally but just it's not an original installation, I expand the files and I add the registry keys to associate files by my own, I can run Ruby as normally ever I want. Now, is the first time that I try the JetBrains RubyMine IDE, and I can't found a simple guide which explains how to

Rubymine: Change Code Language

北城以北 提交于 2019-12-11 08:16:26
问题 I'm working with a file that is one type (php), but the code is predominantly another language (html). Is there a way that I can switch the syntax highlighting (if that's what it's called) from php to html? 回答1: associate *.php as PHP files, and DONE 来源: https://stackoverflow.com/questions/25315342/rubymine-change-code-language