Menu
  • HOME
  • TAGS

Rubymine debugger slow

rubymine

There's a slightly experimental release for OSX Yosemite that is quite a bit faster. They say, "This alternative RubyMine 7.1 distribution bundles JDK 1.8 customized by the JetBrains team for better performance. Please note this non-default option may contain some issues." https://www.jetbrains.com/ruby/download/...

Deploying to Heroku with environment variables in Gemfile

ruby-on-rails,git,heroku,rubymine

Alright so after juggling with RubyMine I realised the problem occurs when requireing pry and any other related debugging gems. I managed to fix this by updating my Gemfile to the following: if ENV["USE_DEBUGGER"] gem "pry-byebug" gem "byebug" else gem "pry-byebug", require: false gem "byebug", require: false end I hope...

Local Npm module “..\..\node_modules\cssmin” not found. Is it installed?

gruntjs,typescript,durandal,rubymine

cssmin is probably used at deploy time and therefore you aren't getting runtime errors yet. Fix : npm install cssmin --saveDev from the same directory as gruntfile.js

Rubymine PostgreSQL database

postgresql,sockets,jdbc,vagrant,rubymine

For those who might be in the same position, check your ports in postgres. Open 5432 and configure that in ruby mine and you should be ready to go.

RubyMine searching with find usages

ruby-on-rails,rubymine

The command you need is Find in Path which will search your entire project, set of projects if they are open together, a specific director, etc. It has a bunch of options, including a regex search. For Mac, it is Command+Shift+f, for windows Ctrl+Shift+f Checkout this site for keyboard reference....

Intellij IDEA probably don't detect methods of described_class in specs

ruby,rspec,intellij-idea,static-methods,rubymine

This is a bug (or, rather, a missing feature) in the Ruby plugin; its code insight does not have any special recognition for the described_class method. I wasn't able to find an existing YouTrack issue for this problem, so you're welcome to file your own....

Testing AngularJS controller with Jasmine causes error in RubyMine

angularjs,karma-runner,rubymine,karma-jasmine

In addition to using the karma runner. You need to add something like the following to your config: files: [ 'bower_components/angular/angular.js', 'bower_components/angular-mocks/angular-mocks.js', 'js/**/*.js', '../../specs/*.js' ], with appropriate list of files. You need to include all specs as well as any files you need loaded for your app, such as angular...

RubyMine doesn't recognize my Ruby installation path

ruby,scripting,installer,rubymine,jetbrains

In my experience it is more preferable to set your PATH environment variables appropriately instead of trying to locate executables on a per-app basis. You can set your path so that the desired Ruby takes precedence over any other rubies and I am sure that RubyMine will pick it up...

rubymine colors used in editor are different than selected in settings

intellij-idea,rubymine

By default, RubyMine on Mac OS X renders everything through Quartz, which applies a level of gamma correction to the displayed picture. You can change this by editing Contents/Info.plist in the RubyMine.app package and changing the value of the apple.awt.graphics.UseQuartz VM option to false. Note that it will also affect...

RSpec, Mocha and Rubymine - Undefined method `mocha_setup'

ruby-on-rails,ruby,rspec,mocha,rubymine

I eventually solved this issue: It was nothing to do with Rubymine, it was a load-order issue. Rubymine was running files in strict alphabetical order, the CLI was running them in an arbitrary order When the full rails environment was loading first, it was working fine. When my lean environment...

Rubymine rake task debugging

ruby-on-rails,ruby,debugging,rake,rubymine

Click Run => Debug => Edit Configurations, select Bundler tab and check the Run the script in context of the bundle

Rubymine: Ctrl + Click not working

ruby-on-rails,rubymine

This is kinda the Jetbrains "nuclear option", but it's worked for me every time this type of thing happens (usually after ruby version updates). Completely close all running instances of RubyMine In the root directory of the project in question, delete the hidden .idea directory Reopen your project in RubyMine...

How to reveal available keyboard shortcuts in dialogs in RubyMine?

osx,keyboard-shortcuts,rubymine

Use control-option instead of just option to reveal the shortcuts. The change is due to a difference between Apple's Java 6 and Oracle's Java 7. (I must have allowed it to upgrade recently.) There is a bug report at JetBrains: https://youtrack.jetbrains.com/issue/IDEA-111466

Enabling auto-updates in RubyMine

ruby,auto-update,rubymine,rubymine-7

TL;DR version: RubyMine can and will check for updates very regularly, if you select the type of update you'd like. As far as I know, it will not install it, without asking, but it will automatically check for an update upon starting the app. Longer version: First of all 7.1.2...

Turn off keyboard shortcuts in JetBrains Rubymine

ruby,windows,keyboard-shortcuts,rubymine

From the docs: To configure keyboard shortcuts and mouse shortcuts Open Settings dialog and click Keymap. Select one of the pre-configured Keymaps, which you want to use as the base for the new one, and click Copy. Accept the default name, or change it as required. In the content pane...

Rubymine doens't understand that index.html.erb is html file

html,ruby-on-rails,rubymine

Open Preferences... -> Editor -> File Types. One from these file types has index.html.erb pattern. You should find it and remove. Seems like you have added it by mistake....

Does Rubymine have the feature code snippet and all auto-complete

rubymine,rubymine-7

Once you type begin then press TAB It's called "Live Templates". https://confluence.jetbrains.com/display/PhpStorm/Live+Templates+%28Snippets%29+in+PhpStorm -- it's for PhpStorm but exactly the same is available in RubyMine....

Issue with PyCharm and RubyMine, JRE folder?

java,python,ruby,pycharm,rubymine

IDE comes with it's own version of JRE on Windows. You can easily configure your environment to use your system wide or any custom JRE (and then delete bundled one if so desired). Just check .bat file in INSTALL_FOLDER\bin folder and see what environment variables and in what order it...

Useful customizations in .ideavimrc

vim,intellij-idea,rubymine,jetbrains,ideavim

Basically you can safely source your ~/.vimrc, but be aware that some tricky :map commands may break IntelliJ shortcuts (that was the reason why IdeaVim switched to its own configuration file instead of ~/.vimrc). The only non-Vim command supported by now (v 0.39) is :action. You can define multi-key bindings...

RubyMine debugger error

ruby,rubymine

I fixed my issue by installing debase manually from the terminal, not from the one bundled with rubymine, try it gem install debase PS: I was using ruby 1.9.3...

Rubymine throws a **[BUG] Segmentation fault** when trying to run rspec test

ruby-on-rails-4,rubymine

I finally got it right. I have to go into Rubymine's preferences => Languages and Frameworks => Ruby SDK and Gems to update the version of ruby for the project from 2.1.2 to what is specified in the .ruby-version file for the project, which is 2.1.6. After doing this, everything...

Ruby Mine complains that “Cannot switch SDK.” even if the SDK is there and available

ruby,rvm,rubymine

I found for a similar problem (Rubymine 6.3.1 and Ruby 2.1.1) that I had to format .ruby-version in the following way: ruby-2.1.1 Note the prefix 'ruby-" to the version number. I'm not sure whether this is an RVM, Ruby, Rubymine, or some other issue that caused this problem, but the...

Connect to DB through Vagrant using RubyMine

database,vagrant,pycharm,rubymine,rubymine-7

Well...I figured it out thanks to this guy. Here's how the final dialogs look like: I did the exact same thing for the test database except I changed the database name from markus_development to markus_test...

RubyMine error: Unable to find associated Rails Model for ':users' associations failed

ruby-on-rails,ruby,ubuntu,rubymine,rubymine-7

Looks like the problem is in RubyMine editor (bug)! If you run your application let's say on ruby-2.1.5 and you change you RubyMine setting (Ruby SDK and gems) to some other version and then change back to ruby-2.1.5 version, you will get this error. Quick fix is that you create...

Extra indentation for private methods

ruby-on-rails,indentation,rubymine

It's in their feature request list ( not implemented yet) You can vote on it here. https://youtrack.jetbrains.com/issue/RUBY-8497...

Issue with running tests in Rails after using Ruby Mine

ruby-on-rails,ruby,ruby-on-rails-4,rubymine

Delete the hidden .idea directory in your project's root path. The project files will regenerate correctly the next time the project is opened.

Does RubyMine git integration need further configuration to work through a proxy?

git,proxy,rubymine

Git under RubyMine does not use the RubyMine proxy configuration. The proxy configuration for Git should be done directly on git through the command line: git config --global http.proxy server:port git config --global https.proxy server:port I think the same should apply to other JetBrains tools (like IntelliJ which I also...

How to disable RubyMine code completion after comment line ending in period?

rubymine,code-completion

It is a bug: http://youtrack.jetbrains.com/issue/RUBY-15127 It was fixed in 6.3.3, which was released yesterday: http://blog.jetbrains.com/ruby/2014/06/rubymine-6-3-3-rspec-3-code-insight-other-fixes/ This duplicate bug report http://youtrack.jetbrains.com/issue/RUBY-15195 gives a workaround, which is to go to RubyMine's registry (Control-Shift-A and type "registry") and uncheck "show.live.templates.in.completion". That works, and it revealed to me the existence of RubyMine's registry, so...

Jetbrains RubyMine - Font Configuration: How can I specify the *weight* of editor font?

fonts,configuration,rubymine,jetbrains

it's not possible. Please vote for IDEA-109338

RubyMine RoR I18n config/locals/en.yml syntax error “file should have single root”

ruby,ruby-on-rails-4,yaml,rubymine,i18n-gem

So - I'm not sure this will ever help anybody ... but in the case that it may, this is how I re-engineered the script to avoid the errors. I simply removed the usual delimiters that were causing the parsing confusion. And @mu is too short, you were correct. This...

Ruby encoding issue

ruby-on-rails,ruby,character-encoding,rubymine

The default encoding for HTTP is ISO-8859-1. The saved CSV file used that encoding, so when reading it in Ruby, you must set the encoding correctly: File.open('filename.csv', 'r:ISO-8859-1') do |f| # do something with the contents end ...

Is there anyway to let RubyMine choose first completion choice like Intellij Idea?

ruby-on-rails,ruby,intellij-idea,rubymine

Autocompletion's behaviour in RubyMine has been changed since there were a lot of complains against it in previous versions (because it was choosing not always the desirable one option). If you want to restore the old behaviour, type "Registry" in Search everywhere and look for ide.completion.lookup.element.preselect.depends.on.context and unselect it....

Create a new keymap in RubyMine

ruby-on-rails,rubymine,keymapping

I use the default keymap Ctrl+Shift+Period You are using wrong terms. What you called a "keymap" is actually a "shortcut" (keyboard or mouse one). Keymap in terms of IDE is a collection of shortcuts that associated with specific actions. You cannot create brand new and empty keymap -- there...

How to configure keymap of Rubymine for rails console

ruby,rubymine

If you go to keymap and browse history (under other) its set to option command E (on mac) you can change it there.

RubyMine Cannot switch SDK. RVM SDK '[email protected]' wasn't found

ruby,sdk,rubymine

It's a known bug if your .ruby-version file contains only the version number. They're working on it here https://youtrack.jetbrains.com/issue/RUBY-15058

How to start sidekiq in RubyMine?

rubymine,sidekiq

Go to Run/Debug Configurations Add a new Gem Command Enter 'sidekiq' as the Gem name and Executable name Check 'Run the script in the contexst of bundle (bundle exec) under the 'Bundler' tab Click 'Apply' and then run it. ...

Rubymine 7 Search Application Doesnot return all the result set

rubymine

in Found occurrence : Check Usage in String Constants, you will find the string o/p results in unclassified occurrence doesn't find result for that....