Tuesday, July 23, 2024
HomeRuby On RailsRubyMine 2024.2 Early Entry Program Replace

RubyMine 2024.2 Early Entry Program Replace


Early Entry Program
RubyMine

Hello everybody!

We’re again with an replace on the state of the RubyMine 2024.2 Early Entry Program. In preparation for the discharge, we’ve been engaged on bettering AI Assistant, in addition to offering assist for Rails 8 options, Stimulus, and extra.
You’ll be able to obtain the most recent EAP construct from our web site, by way of the free Toolbox App, or through the use of snaps for Ubuntu.

AI options

For model 2024.2, our focus is on bettering AI Assistant completion. With this in thoughts, we enhanced AI Assistant to make it work higher with Ruby- and Rails-specific contexts.

For multiline code completion, we’ve upgraded the present prompts to request particular technological particulars, together with the Ruby model in use, if it’s a Rails or Gem mission, the take a look at framework in use, the identify of the present file, and the 5 hottest gems within the mission.

Furthermore, the AI Assistant completion function can now be activated on the finish of traces which have content material, that means it really works after statements following a . (as in str.<caret>) and ::, or after binary expressions.

We additionally improved how AI Assistant works with the context of Rails purposes. For instance, when requesting code clarification on a controller, AI Assistant now takes under consideration the corresponding mannequin and routes.

Rails

Completion in Kamal configuration recordsdata

RubyMine now gives code completion for Kamal configuration recordsdata. When enhancing deploy.yaml and .env recordsdata, you’ll see completion solutions for the Kamal-specific properties.

Code perception for fee limiting

Rails 8 introduces the rate_limit perform to be used with controllers. To reap the benefits of this new function, we applied code perception for fee limiting, together with code highlighting and completion.

Code perception for browser guards

One other function coming in RubyMine 2024.2 is code perception for the browser guard methodology. We added highlighting for the allow_browser perform, in addition to completion for browser names and solely arguments.

Stimulus

RubyMine 2024.2 now consists of built-in assist for Stimulus, a JavaScript framework that integrates with static HTML and present DOM parts. The Stimulus plugin is bundled with RubyMine and works in .erb recordsdata. The stimulus-rails gem is shipped by default with Rails ranging from model 7.

RubyMine affords a variety of options to facilitate working with Stimulus, together with code completion, navigation, and rename refactorings.

Preserve an eye fixed out for upcoming weblog posts that may information you tips on how to successfully use Stimulus in RubyMine.

Different options

Completion for Ruby-related instructions within the new terminal

The brand new terminal gives computerized completion for instructions, choices, subcommands, arguments, and extra. In RubyMine 2024.2, we added completion for the next instructions: ruby, rails, rake, bundle, rbenv, irb, pry, rbs, and rspec.

As we proceed enhancing completion for CLI instructions, sure completion choices will not be accessible or might differ from shell-based completion.

Markdown rendering in Reader mode and fast documentation

As Rails 8 makes use of Markdown documentation as an alternative of RDoc, we applied Markdown rendering, making it obtainable in Reader mode and fast documentation popups. The performance will work if a file has the :markup: markdown directive at the start or if there’s an .rdoc_options file within the mission root with the road markup: markdown in it.

Customized RuboCop configurations

On this launch, we launched a brand new choice to pick out a customized configuration file for RuboCop, obtainable in Settings | Instruments | RuboCop. RubyMine passes the trail to your configuration file as a RuboCop command argument with the --config choice, which ensures it really works even when a distant SDK is used.

If you happen to don’t specify any file, RubyMine will use both .rubocop.yaml or the default settings if the previous shouldn’t be present in your mission.

Formatter settings

We applied a brand new formatter setting in RubyMine to manage areas inside array literals. The setting aligns with the habits of RuboCop and might be accessed from Settings | Editor | Code Model | Ruby | Areas | Inside array literals.

Be part of the Early Entry Program

You’ll be able to obtain the most recent EAP construct from our web site or by way of the Toolbox App. The total listing of closed tickets for this EAP construct is on the market within the launch notes

We encourage you to share your ideas within the feedback beneath and to create and vote for brand new function requests within the situation tracker.

Joyful growing!

The RubyMine staff

image description

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments