Monday, April 29, 2024
HomeRuby On RailsRubyMine 2023.3: Typically Accessible AI Assistant, Improved Mission Indexing, New Supported Libraries...

RubyMine 2023.3: Typically Accessible AI Assistant, Improved Mission Indexing, New Supported Libraries and Applied sciences


Releases
RubyMine

RubyMine 2023.3 is now out there!

As we introduced in our earlier weblog submit, the newest model of our fashionable Ruby and Rails IDE comes full with RubyMine’s improved mission indexing. 

We additionally recognized and resolved a number of issues that had been inflicting low reminiscence efficiency and freezes when working bigger take a look at suites with the profiler in RubyMine.

Ranging from this launch, RubyMine introduces help for fashionable libraries and applied sciences. This contains working RuboCop in server mode routinely, Brakeman code inspections, working with parameterized desk specs utilizing the rspec-parameterized gem, and rather more!

Under is a short overview of essentially the most notable options. For an in depth description of this replace, please go to our What’s New web page.

You will get the brand new construct from our web site or through the free Toolbox App.

AI Assistant is now usually out there

This summer time we introduced our new AI Assistant, which integrates the facility of LLM into the every day workflows of builders. Since then, AI Assistant has been within the technical preview stage and out there solely to a restricted variety of individuals. In RubyMine 2023.3 it’s out there to everybody with a JetBrains AI subscription as a supplemental characteristic. Please confer with our JetBrains AI web page in case you could have any questions.

Assist for AI-generated identify solutions

Now you can allow AI-generated identify solutions for native variables and parameters in your Ruby code. This motion is accessible whenever you use the Rename refactoring inline.

To allow identify solutions, choose the Present AI-generated identify solutions checkbox in Settings | Instruments | AI Assistant.

Improved Ruby contexts

We’re constantly enhancing Ruby contexts and refining the way wherein LLMs analyze your codebase. These modifications affect how the AI Assistant generates documentation, elucidates your Ruby code, identifies file contents, and extra.

Unit take a look at technology

With AI Assistant, you may effortlessly generate assessments for public strategies in your Ruby or Rails utility.

Choose the tactic you need to cowl with assessments, and press ⌥ + Enter on macOS or Alt + Enter on Home windows. From the context menu, choose AI Actions after which Generate Unit Assessments.

Customized paths for Rails functions and engines

RubyMine acknowledges whenever you use customized paths in your Rails functions and engines. Along with the default paths, reminiscent of app, app/controllers, and app/fashions, the IDE acknowledges every other places in your mission when the mission construction is configured. This lets you redefine the default construction and nonetheless profit from RubyMine’s code perception options. 

To arrange customized paths, navigate to Settings | Languages & Frameworks | Rails | Paths.

Auto-import of Rails paths

We carried out a brand new choice to routinely detect customized paths inside your Rails utility. Each time you open your mission, RubyMine makes an attempt to import the Rails paths configuration within the background.

Code perception for fashions, controllers, and mailers saved outdoors of their default places

All your favourite code perception options, reminiscent of navigation and sort help, will now work with fashions, controllers, and mailers, even when they’re outdoors of their default directories.

Сode perception for Rails 7.1 strict locals

RubyMine now helps decision, completion, Discover Usages, Rename, and navigation options for strict locals.

Sort provision for customized self-types inside blocks

RubyMine now has help for customizing the self-type of blocks from RBS to Ruby. This characteristic is useful for DSLs and can assist RubyMine acknowledge them, enhancing code perception.

Customized annotation to specify the self-type of blocks

Now, by using a YARD-like remark, you may explicitly state the self-type of blocks immediately inside them.

Assist for additional declarations from RBS

We’ve carried out primary help to acknowledge additional declarations from RBS when they’re absent in your Ruby recordsdata. That is notably helpful for tasks that extensively use reflection, because it permits for these declarations to nonetheless be current in completion and different RubyMine options. The characteristic is accessible for lessons, modules, constants, strategies, and variables.

RuboCop in server mode

RubyMine helps working RuboCop in server mode routinely. For this performance to work, make certain the next necessities are met:

  • Linux or MacOS
  • Native Ruby MRI 2.3 or later
  • RuboCop 1.31 or later

Brakeman code inspections

Now, you may conveniently see Brakeman’s insights inside RubyMine in a user-friendly format. Deal with safety points promptly, with easy accessibility to Brakeman’s documentation, confidence indicators, and extra.

Just remember to have the brakeman gem put in, after which go to Code | Analyze Code | Run inspection by identify and launch the evaluation.

Parameterized specs with rspec-parameterized

RubyMine offers complete help for theRSpec::Parameterized syntax, together with recognition, decision, and completion solutions.

We’ve additionally carried out run/debug configurations to boost your testing expertise.

Fixture declarations with let_it_be

We’ve added help for fixture declarations in RSpec assessments utilizing let_it_be blocks. This contains options reminiscent of variable decision, syntax highlighting, computerized dealing with of do block insertion for before_all, and extra.

To allow the performance, that you must set up the test-prof gem.

To be taught in regards to the latest options as they arrive out, please observe RubyMine on Twitter. We submit product information and suggestions a number of occasions per week.

We invite you to share your ideas within the feedback under and to recommend and vote for brand spanking new options within the subject tracker.

Blissful growing!

The RubyMine crew

image description



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments