Releases RubyMine

RubyMine 2024.3: Rails 8 Support, Inline AI Prompts, Integration With RBS Collection, Ruby 3.4 Updates

RubyMine 2024.3 is now available!

The latest version of JetBrains’ IDE for Ruby and Ruby on Rails comes with Rails 8 support, including Kamal 2 code completion, nilability annotations from schema.rb for type support, and Solid Queue and Solid Cache code insights. 

Enhanced by JetBrains AI Assistant, RubyMine now offers faster and more contextually aware cloud-based code completion, inline AI prompts, and more context about Rails applications for unit test generation.

With built-in integration with the RBS Collection, you can benefit from the type signatures included in the RBS Collection even if you don’t use RBS in your project. RubyMine 2024.3 also includes Ruby 3.4 updates, bundled spelling and grammar checks from Grazie, and much more!

Below is a brief overview of the most notable features. For a detailed description of this update, please visit our What’s New page.

You can get the new build from our website or via the free Toolbox App.

Rails 8 support

Kamal 2 support

Rails 8 provides support for deploying your applications with Kamal 2, and in RubyMine 2024.3, we’ve implemented code completion for Kamal 2 configurations.

Nilability annotations from schema.rb for type support

RubyMine now recognizes the not-null type modifier for migration attributes and provides highlighting and warnings for incorrect nil assignments.

Code insight for Solid Queue and Solid Cache

In RubyMine 2024.3, queue_schema.rb and cache_schema.rb files now feature specific icons and syntax highlighting.

AI Assistant

Enhanced cloud-based code completion

RubyMine 2024.3 introduces faster and more contextually aware cloud-based code completion through the JetBrains AI Assistant plugin, featuring quality and speed improvements and adding support for multiline completion.

Powered by the Mellum large language model (LLM), completion latency has been nearly cut down to one-tenth of what it was in previous versions, which means suggestions are almost instant. The acceptance rate for completion suggestions has approximately doubled, while the cancel rate has dropped to between half and a third of what it was in the previous version.

Please note that cloud-based code completion in AI Assistant is available only with an AI Pro subscription or an active free trial.

Inline AI prompts

RubyMine 2024.3 introduces inline AI prompts, offering a seamless way to interact with AI Assistant directly in the editor. You can type requests in natural language, which AI Assistant instantly interprets and converts into code changes, marked with purple in the gutter for easy tracking. Inline AI prompts are context-aware, automatically including related files and symbols for more accurate code generation.

This feature is currently only available in *.rb files.

Improved Rails context for unit tests

RubyMine now provides AI Assistant with more context about Rails applications for better unit test generation.

Built-in integration with the RBS Collection

RubyMine now features built-in integration with the RBS Collection, a community-managed collection of RBS files for gems that do not include signatures.

Even if you don’t use RBS in your project, you can still benefit from the type signatures included in the RBS Collection, with no additional effort required. RubyMine will automatically download and manage the type signatures for the project dependencies.

Ability to use it as an alias for numbered parameters in blocks

RubyMine now recognizes it as an alias for _1 in blocks without parameters, providing type support and conversion intentions for such usages.

We added a new error annotation that prevents you from using it in a block with regular numbered parameters.

Support for Ruby 3.4 “chilled” strings

RubyMine now recognizes “chilled” strings, a new transitional state for string literals in Ruby 3.4. In projects without the frozen_string_literal pragma, strings are “chilled”. A “chilled” string will output a warning when modified; unlike a frozen string, it will not throw an error.

Error annotations for ambiguous anonymous arguments

RubyMine now displays an error when you try to use anonymous block, rest, and keyword rest arguments in an ambiguous nested context.

Bundled spelling and grammar checks

The Grazie plugin is now available in RubyMine out of the box. It provides intelligent checks beyond simple spelling mistakes and typos. It understands grammar rules and can warn you about inappropriate style. Grazie checks are available in strings, HereDocs, comments, block comments, and RDoc files.

You can manage Grazie checks in Settings | Editor | Natural Languages | Grammar and Style | Scope.

To learn about the newest features as they come out, please follow RubyMine on X

We invite you to share your thoughts in the comments below and to suggest and vote for new features in the issue tracker.

Happy developing!

The RubyMine team

image description