This Question is Not Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
10 Replies Last post: Feb 16, 2010 1:21 PM by Florian Hassmann  
Florian Hassmann Newbie 7 posts since
Feb 2, 2010
Currently Being Moderated

Feb 2, 2010 11:29 PM

some simple questions about RubyMine

Hey guys,

 

I'm a Ruby on Rails Developer comming from vim/cli to RubyMine and having some questions about customisability and some problems.

First of all, it seems as if the IdeaVIM Plugin is either not up to date or incompatible with RubyMine, as there are many shortcuts that doesnt work even though they are mentioned in the description of the plugin. Tab completion in command mode moves to the next frame and simple sequences like CTRL-R do unexpected things.

 

Another thing is the indention on case statements which should all align like this:

 

case

when 1

     #whatever

when 2

     #whatever

else

     #whatever

end

 

But else is always on indent. This applies to several other statements.
Can i somehow change this behaviour?

 

Another issue i have is the missing feature to enable "smart indent" for haml (or all filetypes).

It's annoying to press backspace two times to go back one indent.

 

Im also still in search for a possibility to view changes between two versions in git (not just a single file).

 

I really like the Model-Dependency-Diagram, but it doesn't display all my models. Right know i have a project

with 30models, having between 3 and 40 fields. - Just 5Models are displayed.

 

Apart from these things, i really like RubyMine and its features.

 

Hope someone can help me out with some of these things.

 

Thanks in advance

Florian

Oleg Shpynov JetBrains 1,172 posts since
Nov 6, 2007
Currently Being Moderated
Feb 3, 2010 1:06 PM in response to: Florian Hassmann
Re: some simple questions about RubyMine

Hi Florian,

I'm a Ruby on Rails Developer comming from vim/cli to RubyMine and having some questions about customisability and some problems.

First of all, it seems as if the IdeaVIM Plugin is either not up to date or incompatible with RubyMine, as there are many shortcuts that doesnt work even though they are mentioned in the description of the plugin. Tab completion in command mode moves to the next frame and simple sequences like CTRL-R do unexpected things.

Please ensure that you have configured RubyMine's keymap to use Vim keymap.

Another thing is the indention on case statements which should all align like this:

 

case

when 1

     #whatever

when 2

     #whatever

else

     #whatever

end

 

But else is always on indent. This applies to several other statements.
Can i somehow change this behaviour?

What RubyMine version do you use? I've tryed to reproduce this on 2.0.1. And everything worked fine. Have you tried an option File | Settings | Code Style | Ruby | Indent when cases?

Another issue i have is the missing feature to enable "smart indent" for haml (or all filetypes).

It's annoying to press backspace two times to go back one indent.

RubyMine doesn't have such a functionality yet, feel free to create a feature request.

 

Im also still in search for a possibility to view changes between two versions in git (not just a single file).

What do you mean? As far as I understood you want to see the whole diff between 2 commits?

 

I really like the Model-Dependency-Diagram, but it doesn't display all my models. Right know i have a project

with 30models, having between 3 and 40 fields. - Just 5Models are displayed.

Are all of them are ActiveRecord models?

 

Regards,

Oleg

Oleg Shpynov JetBrains 1,172 posts since
Nov 6, 2007
Currently Being Moderated
Feb 8, 2010 1:01 PM in response to: Florian Hassmann
Re: some simple questions about RubyMine

Hello Florian,

Please ensure that you have configured RubyMine's keymap to use Vim keymap.

There is no option "vim" in the keymaps dialog within settings, i have only enabled vim key emulation.

 

You have to install it manually from ideavim plugin see README.txt inside plugin for more details.

However we have an issue on this: http://youtrack.jetbrains.net/issue/IDEA-51505

What RubyMine version do you use? I've tryed to reproduce this on 2.0.1. And everything worked fine. Have you tried an option File | Settings | Code Style | Ruby | Indent when cases?

Im using RubyMine 2.0.1 on Windows XP. I have tried the settings, but they dont do what i want.

Could  you please describe desired behavour: text before and expected result?

Are all of them are ActiveRecord models?

 

Of course they are. It is actually a structure like follows:


model1 < ActiveRecord

model2 < ActiveRecord

model21 < model2

model22 < model2

I'll ask responsible developer to handle this.

Thanks a lot for your feedback.

 

Regards,

Oleg

Oleg Shpynov JetBrains 1,172 posts since
Nov 6, 2007
Currently Being Moderated
Feb 9, 2010 4:55 PM in response to: Florian Hassmann
Re: some simple questions about RubyMine

Hello Florian,

 

I installed the plugin using the README.txt, but still shortcut CTRL-R for redoing an action, that i undo using u doest work, just to give an example.

The replace-window popping up, is fixed now, anyway.

 

Edit: i fixed it by removing the keybinding "reload sources" for the ruby console.

 

Some other things changed there meaning like :e, which is (in vim) used to reload the current file in the buffer. Is there somewhere a good ressource about

these differences? :help shows me an error of a missing txt file.

We are going to maintain ideaVim plugin on our own, but now the main document to read is README.txt file.

Also we have several issues on vim support in our tracker: http://youtrack.jetbrains.net/issues?q=tag:+vim

 

Indeed such formatting on Enter key doesn't work, I've created an issue on this: http://youtrack.jetbrains.net/issue/RUBY-5749

 

Is there somehow the possibility to move a file to another split using the keyboard? Not even drag&drop seems to

work for this. I always have to close the file, move to the other split and then open it again. I also can't find an easy

way to switch between two or more splits with a single keystroke. Strg-Tab shows a list of all opened files and the

panels, which seems odd, since all of them are already accessible by other keys like alt-1, etc. or alt-left/alt-right.

 

Maybe I missed something in the keymaps dialog for this.

As far as I know moving and navigation between tabs in different split windows requires mouse.

 

Regards,

Oleg

Oleg Shpynov JetBrains 1,172 posts since
Nov 6, 2007
Currently Being Moderated
Feb 15, 2010 8:18 PM in response to: Florian Hassmann
Re: some simple questions about RubyMine

Hi,

Column/Block select doesnt work with mouse (right click which was intended for this by vim is used differently

and left click clears the context; i even tried shift/strg+leftclick, but this doesnt work either).

This behavour is not supported by vim plugin yet, please check option Right click | Column mode and you'll be able to use mouse for column mode selection.

 

Folds in yml files arent created from indention, but from syntax, which is technically wrong and can be confusing,

if u use attributes without a value.

Actually the are, could you please provide an example where it is not?

There seems to be no autoindention within haml files, but it can always be determined pretty easy:

a.) if there is a do expression or a do |whatever| at the end of an "-", than there has to be an indent

b.) if there is a % or . or # expression that was not ended by a / or a text element, there has to be an indent

c.) if there was a : Expression, the next line has to be indented

Sounds good, I've created an issue on this: http://youtrack.jetbrains.net/issue/RUBY-5768

There is a feature located at settings>editor>smart keys within section "enter" that creates a matching }, there should also be an

entry for "def/end", too.

This functionality is supposed to work now, missing end should be inserted automatically. Please provide an example.

There should be a possibility to insert a color into SASS/CSS Files before putting in some other color. Like Code>Insert Color or something.

 

SASS needs autoindention and codecompletion.

We are going to improve SASS support in further versions, please check out development roadmap: http://confluence.jetbrains.net/display/RUBYDEV/Development+Roadmap

 

When can i expect the next release of RubyMine? Are there any Beta-Testings?

We are going to release 2.0.2 bug fix release soon. We'll launch Early Access Preview for RubyMine next version, but we don't have any specific date yet.

 

Regards,

Oleg

Oleg Shpynov JetBrains 1,172 posts since
Nov 6, 2007
Currently Being Moderated
Feb 16, 2010 12:40 PM in response to: Florian Hassmann
Re: some simple questions about RubyMine

Hi,

> Folds in yml files arent created from indention, but from syntax, which is technically wrong and can be confusing,
> if u use attributes without a value.
Actually the are, could you please provide an example where it is not?

 

I'm actually just taking the automatically generated database.yml with mysql-database selected, where password is empty. This opens up a one-liner fold.

I've created an issue: http://youtrack.jetbrains.net/issue/RUBY-5771

Where do i find more about "Script manager (to ensure RubyMine can be customized with Ruby scripts, no Java or XML)", that is mentioned in the roadmap? How deep

can such scripting go? Is it similar to mozilla framework or is it just some minor extending of autocompletion/keyhandling/etc.?

Please refer http://www.jetbrains.net/devnet/docs/DOC-1161 for more details.

 

Regards,

Oleg

More Like This

  • Retrieving data ...