flutter_enhancement_suite icon indicating copy to clipboard operation
flutter_enhancement_suite copied to clipboard

Performance degradation of Dart searching and analysis

Open ekuleshov opened this issue 1 month ago • 0 comments

Describe the bug

When flutter_enhancement_suite plugin is enabled in IntelliJ it affects "Declaration or Usages" action (Cmd + B on MacOS) and "Implementation(s) (Cmd + Opt + B on MacOS) works.

With plugin enabled, these actions not return any results, e.g. about 3 times out of 4 it does (background task hangs). And if you get results and then use the "Open in Tool Window" action on the results - it starts another background search task, which often does not finish either.

If I disable the flutter_enhancement_suite plugin - all these issues go away. The issue is so bad, that I have to keep flutter_enhancement_suite plugin disabled most of the time.

Steps to Reproduce

  1. Take somewhat large project with multiple modules. You probably could use the https://github.com/flutter/packages/ project to reproduce.
  2. Navigate around and invoke "Declaration or Usages" and/or "Implementation" actions.
  3. Then use "Open in Tool Window" action on the results

Expected behavior

The plugin should not affect navigation and search performance in the IDE.

Not sure if there is something up with how plugin is using the Dart Analysis Server or it is an analysys server issue. Please let me know if there is any additional information that I can provide.

Screenshots

n/a

Software used

IntelliJ IDEA 2024.1.2 (Ultimate Edition)
Build #IU-241.17011.79, built on May 22, 2024
Runtime version: 17.0.11+1-b1207.24 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 13.6.6
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 10
Metal Rendering is ON
Registry:
  debugger.valueTooltipAutoShow=false
  ide.experimental.ui=true
  ide.images.show.chessboard=true
Non-Bundled Plugins:
  com.andrey4623.rainbowcsv (2.0.2)
  Dart (241.17502)
  org.jetbrains.android (241.17011.79)
  io.flutter (79.2.3)
  de.mariushoefler.flutter_enhancement_suite (1.7.0)
Kotlin: 241.17011.79-IJ

Additional context

ekuleshov avatar Jun 03 '24 12:06 ekuleshov