Skip to content

JavaScript. Dependencies are verified for seconds each time action is called #1829

Closed
@alisevych

Description

@alisevych

Description

There are 3 dependencies required for JS test generation.
Each time action is called on a JS-file these dependencies presence is checked.
It takes for 3-5 seconds - and IDE is irresponsible during that time.
Need to consider a good solution:

  • either do that faster
  • or check dependencies during dialog opening
  • or check it when generation is started
  • or suggest something else..

To Reproduce

  1. Run the 'utbot' project in IntelliJ Idea 2022.2
  2. Install one of the latest plugin builds from main, used this one
  3. Open File -> Settings -> Tools -> UnitTestBot
  4. Check Experimental languages support
  5. Open utbot-js/samples/commonLoops.js, press Alt+Shit+U

Expected behavior

Dialog window is supposed to be opened in 0.5-1 sec maximum.

Actual behavior

Dialog window is opened in 3-5 seconds, and IDE is irresponsible during that time.

Visual proofs (screenshots, logs, images)

Environment

IntelliJ IDEA Ultimate / WebStorm 2022.2

Additional context

Metadata

Metadata

Labels

ctg-bugIssue is a buglang-javascriptIssue is related to JavaScript supportspec-performancePerformance-related issuespec-uxIssue is influencing user experience

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions