question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow apply multiple fixes from analyser window at once on Intellij Plugin

See original GitHub issue

Use case

Using Flutter Intellij plugin version 58.0.3 it shows the list of warnings and info results from the linter, and it lets you go to each file and gives you suggestions to fix it. The proposal is to allow multiple fixes at the same time from the list of results.

The list is this one: 2021-07-03 11 07 56

The specific issue comes from migrating from flutter 1 to 2 where we get a lot of new warnings and info results, and a lot of them are pretty simple, and without this I need to go to each file and fix it, it would be pretty fast if I could select multiple items at once and click fix, test if it worked and commit.

Proposal

I would love to have an option after I right-click a list of items (like on the gif) and get an option “Fix all of this automatically”:

2021-07-03 11 07 56

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jonahwilliamscommented, Jul 3, 2021

I’m removing [flutter_tools] from the title because the specific backend that would implement this functionality is probably the analyzer and not the flutter tool

1reaction
stevemessickcommented, Apr 25, 2022

Thanks for the details @bwilkerson. Regarding the two complications you mentioned, I would think we should ignore any selected problems that require making a choice, but also choose to apply the fix rather than ignore it, since the user gave us that instruction, but I could see a counter-argument, too. I can’t transfer issues to dart-lang/sdk anymore, so maybe I’ll add an issue there. That would benefit VS Code, too, at least potentially.

@danielgomezrico Are you aware of the dart fix command that was mentioned above?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get results and fix problems | IntelliJ IDEA Documentation
IntelliJ IDEA performs code analysis and applies quick-fixes from the selected inspection profile to the detected issues.
Read more >
File and project analysis | IntelliJ IDEA Documentation
IntelliJ IDEA analyses your code in the file that is currently opened in the editor and highlights detected problems as you type.
Read more >
Run inspections | IntelliJ IDEA Documentation - JetBrains
From the main menu, select Code | Inspect Code. · Select the scope of files that you want to analyze. Click the the...
Read more >
Problems tool window | IntelliJ IDEA Documentation - JetBrains
The Problems tool window displays problems that IntelliJ IDEA detects in your project using several tabs: Current File. Project Errors. Inspection Results.
Read more >
Dependencies analysis | IntelliJ IDEA Documentation - JetBrains
Dependencies analysis. Last modified: 07 December 2022. If you have a large Java project with several modules that uses multiple libraries, any operation ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found