Skip to content

Python test generation UI action is unavailable in IC #1554

Closed as not planned
@tamarinvs19

Description

@tamarinvs19

Description

After PR #1545 I cannot run UtBot Python plugin in IntelliJ Community.

In file UTBotJava/utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/ui/actions/GenerateTestAction.kt:

if (languageAssistant == null || !accessByProjectSettings(e)) {
    e.presentation.isEnabled = false
} else {
    languageAssistant.update(e)
}

in IC and in python project the second condition is true, but we need to call PythonLanguageAssistant.update(e).

To Reproduce

Steps to reproduce the behavior:

  1. Run the python project in IntelliJ Idea Community
  2. Try to use plugin to generate tests for python file

Expected behavior

UI action with python settings

Actual behavior

I cannot generate tests for python file

Visual proofs (screenshots, logs, images)

image

Environment

Additional context

Metadata

Metadata

Labels

lang-javascriptIssue is related to JavaScript supportlang-pythonIssue is related to python supportstatus-wont-fixThis will not be worked on

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions