Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to stop ProgressIndicator that is already stopped #375

Open
Vladislav0Art opened this issue Oct 7, 2024 · 0 comments
Open

Attempt to stop ProgressIndicator that is already stopped #375

Vladislav0Art opened this issue Oct 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Vladislav0Art
Copy link
Collaborator

Describe the bug
Error occurred in ToolUtils.kt::isProcessCanceled when I tried to stop the test generation on compilation checking stage.

The problem may be in the line (**) (we should not can stop on a cancelled indicator):

 fun isProcessCanceled(indicator: CustomProgressIndicator): Boolean {
        if (indicator.isCanceled()) {
            indicator.stop() // (**)
            return true
        }
        return false
    }

To Reproduce
Steps to reproduce the behavior:

  1. Start generation for Kotlin;
  2. Click stop button on the indicator when "Compilation checking" occurs;
  3. See error

Expected behavior
Normal stop. No errors.

Additional context

2024-10-07 12:37:49,023 [ 212959] SEVERE - #c.i.o.p.u.AbstractProgressIndicatorBase - Attempt to stop ProgressIndicator which is already stopped: Generating tests 228899262: running=false; canceled=true; task=org.jetbrains.research.testspark.tools.Pipeline$runTestGeneration$1@7e83b9e0,class com.intellij.openapi.progress.impl.BackgroundableProcessIndicator
java.lang.IllegalStateException
	at com.intellij.openapi.progress.util.AbstractProgressIndicatorBase.throwInvalidState(AbstractProgressIndicatorBase.java:130)
	at com.intellij.openapi.progress.util.AbstractProgressIndicatorBase.stop(AbstractProgressIndicatorBase.java:118)
	at com.intellij.openapi.progress.util.AbstractProgressIndicatorExBase.stop(AbstractProgressIndicatorExBase.java:52)
	at com.intellij.openapi.progress.util.ProgressWindow.stop(ProgressWindow.java:285)
	at org.jetbrains.research.testspark.display.custom.IJProgressIndicator.stop(IJProgressIndicator.kt:32)
	at org.jetbrains.research.testspark.tools.ToolUtils.isProcessCanceled(ToolUtils.kt:117)
	at org.jetbrains.research.testspark.tools.ToolUtils.isProcessStopped(ToolUtils.kt:112)
	at org.jetbrains.research.testspark.tools.Pipeline$runTestGeneration$1.run(Pipeline.kt:107)
	at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:477)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:133)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$6(CoreProgressManager.java:528)
	at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:250)
	at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:100)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:221)
	at com.intellij.platform.diagnostic.telemetry.helpers.TraceKt.use(trace.kt:46)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:220)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:660)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:735)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:691)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:659)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:202)
	at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:100)
	at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$5(ProgressRunner.java:250)
	at com.intellij.openapi.progress.impl.ProgressRunner$ProgressRunnable.run(ProgressRunner.java:500)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
	at java.base/java.lang.Thread.run(Thread.java:840)
2024-10-07 12:37:49,026 [ 212962] SEVERE - #c.i.o.p.u.AbstractProgressIndicatorBase - IntelliJ IDEA 2024.1  Build #IC-241.14494.240
2024-10-07 12:37:49,026 [ 212962] SEVERE - #c.i.o.p.u.AbstractProgressIndicatorBase - JDK: 17.0.10; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2024-10-07 12:37:49,026 [ 212962] SEVERE - #c.i.o.p.u.AbstractProgressIndicatorBase - OS: Mac OS X
2024-10-07 12:37:49,026 [ 212962] SEVERE - #c.i.o.p.u.AbstractProgressIndicatorBase - Plugin to blame: TestSpark version: 0.2.1
2024-10-07 12:37:49,026 [ 212962] SEVERE - #c.i.o.p.u.AbstractProgressIndicatorBase - Last Action: SaveAll
2024-10-07 12:37:49,027 [ 212963] SEVERE - #c.i.o.p.u.AbstractProgressIndicatorBase - stop() should be called only if start() called before: Generating tests 228899262: running=false; canceled=true; task=org.jetbrains.research.testspark.tools.Pipeline$runTestGeneration$1@7e83b9e0,class com.intellij.openapi.progress.impl.BackgroundableProcessIndicator

Our code in the above trace is:

at org.jetbrains.research.testspark.display.custom.IJProgressIndicator.stop(IJProgressIndicator.kt:32)
	at org.jetbrains.research.testspark.tools.ToolUtils.isProcessCanceled(ToolUtils.kt:117)
	at org.jetbrains.research.testspark.tools.ToolUtils.isProcessStopped(ToolUtils.kt:112)
	at org.jetbrains.research.testspark.tools.Pipeline$runTestGeneration$1.run(Pipeline.kt:107)
@Vladislav0Art Vladislav0Art added bug Something isn't working UI/UX labels Oct 7, 2024
Vladislav0Art added a commit that referenced this issue Oct 7, 2024
The bug is reflected in the issue #375.
Vladislav0Art added a commit that referenced this issue Oct 10, 2024
The bug is reflected in the issue #375.
Vladislav0Art added a commit that referenced this issue Oct 10, 2024
…or a line (#344)

* fix update function

* create availableForGeneration

* ktlint

* feat: add javadoc for `JavaPsiHelper.availableForGeneration`

* feat: check for nullness of a PSI file in `TestSparkAction.update`

* feat: update javadocs in `PsiComponents.kt`

* feat: check for a class or method/func in `KotlinPsiHelper.availableForGeneration`

* feat: add TODO to `ToolUtils` about a potential bug

The bug is reflected in the issue #375.

* feat: make `PsiHelper.getSurroundingLineNumber` return 1-based line numbers

Before, the `KotlinPsiHelper` returned a 0-based line number which caused an issue with line-based test generation.
The generated prompt contained a line above the selected one.

* feat: implement line-based test generation with CUT as a context

When there is no surrounding method about the selected line,
we use the CUT as a context for this line. The CUT must always be present.
Otherwise, the generation action should have been disabled for this line.

* refactor: apply ktlint

* feat: add `See` in TODO

* feat: add TODO and surround $NAME in backticks in `linePrompt` template

* feat: collect class constructor signatures in `PsiClassWrapper`

* feat: remove backticks from `linePrompt`

* feat: fill line-based test generation with additional context

The line-based test generation that has a method as a context
of the line now also accepts constructors of the containing class.

* refactor: use `firstOrNull` for `cut` extraction

* refactor: apply ktlint

* fix: add required parameter to `ClassRepresentation` in tests

* publish: core module version `4.0.0`

The major version increased due to the change of the public API of `PromptGenerator.generatePromptForLine` method.

---------

Co-authored-by: Vladislav Artiukhov <[email protected]>
arksap2002 added a commit to edwin1729/TestSpark that referenced this issue Jan 10, 2025
…or a line (JetBrains-Research#344)

* fix update function

* create availableForGeneration

* ktlint

* feat: add javadoc for `JavaPsiHelper.availableForGeneration`

* feat: check for nullness of a PSI file in `TestSparkAction.update`

* feat: update javadocs in `PsiComponents.kt`

* feat: check for a class or method/func in `KotlinPsiHelper.availableForGeneration`

* feat: add TODO to `ToolUtils` about a potential bug

The bug is reflected in the issue JetBrains-Research#375.

* feat: make `PsiHelper.getSurroundingLineNumber` return 1-based line numbers

Before, the `KotlinPsiHelper` returned a 0-based line number which caused an issue with line-based test generation.
The generated prompt contained a line above the selected one.

* feat: implement line-based test generation with CUT as a context

When there is no surrounding method about the selected line,
we use the CUT as a context for this line. The CUT must always be present.
Otherwise, the generation action should have been disabled for this line.

* refactor: apply ktlint

* feat: add `See` in TODO

* feat: add TODO and surround $NAME in backticks in `linePrompt` template

* feat: collect class constructor signatures in `PsiClassWrapper`

* feat: remove backticks from `linePrompt`

* feat: fill line-based test generation with additional context

The line-based test generation that has a method as a context
of the line now also accepts constructors of the containing class.

* refactor: use `firstOrNull` for `cut` extraction

* refactor: apply ktlint

* fix: add required parameter to `ClassRepresentation` in tests

* publish: core module version `4.0.0`

The major version increased due to the change of the public API of `PromptGenerator.generatePromptForLine` method.

---------

Co-authored-by: Vladislav Artiukhov <[email protected]>
arksap2002 added a commit to edwin1729/TestSpark that referenced this issue Jan 14, 2025
…or a line (JetBrains-Research#344)

* fix update function

* create availableForGeneration

* ktlint

* feat: add javadoc for `JavaPsiHelper.availableForGeneration`

* feat: check for nullness of a PSI file in `TestSparkAction.update`

* feat: update javadocs in `PsiComponents.kt`

* feat: check for a class or method/func in `KotlinPsiHelper.availableForGeneration`

* feat: add TODO to `ToolUtils` about a potential bug

The bug is reflected in the issue JetBrains-Research#375.

* feat: make `PsiHelper.getSurroundingLineNumber` return 1-based line numbers

Before, the `KotlinPsiHelper` returned a 0-based line number which caused an issue with line-based test generation.
The generated prompt contained a line above the selected one.

* feat: implement line-based test generation with CUT as a context

When there is no surrounding method about the selected line,
we use the CUT as a context for this line. The CUT must always be present.
Otherwise, the generation action should have been disabled for this line.

* refactor: apply ktlint

* feat: add `See` in TODO

* feat: add TODO and surround $NAME in backticks in `linePrompt` template

* feat: collect class constructor signatures in `PsiClassWrapper`

* feat: remove backticks from `linePrompt`

* feat: fill line-based test generation with additional context

The line-based test generation that has a method as a context
of the line now also accepts constructors of the containing class.

* refactor: use `firstOrNull` for `cut` extraction

* refactor: apply ktlint

* fix: add required parameter to `ClassRepresentation` in tests

* publish: core module version `4.0.0`

The major version increased due to the change of the public API of `PromptGenerator.generatePromptForLine` method.

---------

Co-authored-by: Vladislav Artiukhov <[email protected]>
@Vladislav0Art Vladislav0Art changed the title Attempt to stop ProgressIndicator which is already stopped Attempt to stop ProgressIndicator that is already stopped Jan 15, 2025
@arksap2002 arksap2002 removed the UI/UX label Jan 17, 2025
arksap2002 added a commit to edwin1729/TestSpark that referenced this issue Jan 27, 2025
…or a line (JetBrains-Research#344)

* fix update function

* create availableForGeneration

* ktlint

* feat: add javadoc for `JavaPsiHelper.availableForGeneration`

* feat: check for nullness of a PSI file in `TestSparkAction.update`

* feat: update javadocs in `PsiComponents.kt`

* feat: check for a class or method/func in `KotlinPsiHelper.availableForGeneration`

* feat: add TODO to `ToolUtils` about a potential bug

The bug is reflected in the issue JetBrains-Research#375.

* feat: make `PsiHelper.getSurroundingLineNumber` return 1-based line numbers

Before, the `KotlinPsiHelper` returned a 0-based line number which caused an issue with line-based test generation.
The generated prompt contained a line above the selected one.

* feat: implement line-based test generation with CUT as a context

When there is no surrounding method about the selected line,
we use the CUT as a context for this line. The CUT must always be present.
Otherwise, the generation action should have been disabled for this line.

* refactor: apply ktlint

* feat: add `See` in TODO

* feat: add TODO and surround $NAME in backticks in `linePrompt` template

* feat: collect class constructor signatures in `PsiClassWrapper`

* feat: remove backticks from `linePrompt`

* feat: fill line-based test generation with additional context

The line-based test generation that has a method as a context
of the line now also accepts constructors of the containing class.

* refactor: use `firstOrNull` for `cut` extraction

* refactor: apply ktlint

* fix: add required parameter to `ClassRepresentation` in tests

* publish: core module version `4.0.0`

The major version increased due to the change of the public API of `PromptGenerator.generatePromptForLine` method.

---------

Co-authored-by: Vladislav Artiukhov <[email protected]>
arksap2002 added a commit that referenced this issue Jan 27, 2025
* minimal attempt to run kex from testspark with harcoded settings

Needs debugging and testing
* load kex-runner jar from github (build.gradle.kts toplevel)
* setup code for kex properties
* KexErrorManager based on LLMErrorManager
* KexProcessManager based on EvoSuiteProcessManager
* Basic UI element (button for running kex)
* kex works only for the class codeType (todo funciton and line if possible)
* read resource files kex.policy and modules.info

* generate Report and series of simplifications for MVP

use a provided kex path for now instead of downloading jar and adding dependency
use ProcessBuilder (jdk) instead of OSProcessHandler (IJ sdk)
use kex.py instead of building java command directly
generate Report objects by reading generated java classes

* download kex as github release if it doesn't exist

* delete commented code

Deleted stuff:
running Kex through through OSProcessHandler (IJ sdk)
running Kex with kex.py
downloading kex from github in build.gradle.kts

* use javaparser to merge @before and @after generated methods

* compiling tests successfully by adding helper method to TestGenData.otherInfo

* fold anything but @test annotated code, but unfortunately only on UI updates

* remove python dependency by running kex jar directly

* use  project's java and add version check

* empty implementation of settings classes for kex

* allow setting kex arguments from kex settings page

* kex test generation for 'method' code type

arguably overkill solution of modify PsiMethodWrapper class
added parameter names, types and return tyepes explicitly
updated implementation for java and kotlin

* fold all but @test methods regardless of declaration order

* remove settings for unsupported kex features

* folding works even if junit isn't in classpath

* use the the subprocess manager from IJ framework

* empty kex path download to .cache and LOCALAPPDATA in windows

* fix lint. remove wildcard imports

* from IJ api, provide correct build directory to kex

For multimodule projects using TestSpark the correct module's
build directory path is passed based on the location of code for which
tests are generated

* set maxTests displayed and minimizeTestSuite options

* fix code fold to only happen once at the start not every ui update

* error handling for errors in kex process manager

also fixed a bug with the way options were passed to kex subprocess
made them a list of strings instead of a single big space separated string

* fix lint

* provide signatures with FQNs to kex for java

This also includes a simple string based mapping to jvm types through type erasure

* refactor. extract functons, add comments, remove redundancies

* fix lint

* every option in kex cmd is preceeded by --option

* use kotlin.time.Duration instead of Int

* refactor error handling code, check for non-zero exit code

* make generated code manipulation more robust

It no longer depends on the order of the methods generated

* only check if the correct verison of kex exists

* make download url a property and version a user setting

* support jdk version 8. no --add-opens

* bump up kex version to 0.0.10

* allow kex test generation for classes not in a package

* null safety while folding helper code

* Merge branch 'development' into edwin1729/improvement/kex-integration

* disallow kex and line code type being chosen simultaneously

* update description tab and README.md with kex

* fix lint

* fix run coverage by making method name same as class name

This is expected by TestSpark. Relevant file TestProcess.kt:createXmlFromJacoco:109

* undo mistaken removal of addLanguageTextFieldListener before code folding

* Add empty LLM response handling (#342)

Show a warning if LLM returns a response that cannot be parsed into a test case (e.g., an explanation of this test case rather than a modification).

* Restrict TestSpark action to suitable code types and fix generation for a line (#344)

* fix update function

* create availableForGeneration

* ktlint

* feat: add javadoc for `JavaPsiHelper.availableForGeneration`

* feat: check for nullness of a PSI file in `TestSparkAction.update`

* feat: update javadocs in `PsiComponents.kt`

* feat: check for a class or method/func in `KotlinPsiHelper.availableForGeneration`

* feat: add TODO to `ToolUtils` about a potential bug

The bug is reflected in the issue #375.

* feat: make `PsiHelper.getSurroundingLineNumber` return 1-based line numbers

Before, the `KotlinPsiHelper` returned a 0-based line number which caused an issue with line-based test generation.
The generated prompt contained a line above the selected one.

* feat: implement line-based test generation with CUT as a context

When there is no surrounding method about the selected line,
we use the CUT as a context for this line. The CUT must always be present.
Otherwise, the generation action should have been disabled for this line.

* refactor: apply ktlint

* feat: add `See` in TODO

* feat: add TODO and surround $NAME in backticks in `linePrompt` template

* feat: collect class constructor signatures in `PsiClassWrapper`

* feat: remove backticks from `linePrompt`

* feat: fill line-based test generation with additional context

The line-based test generation that has a method as a context
of the line now also accepts constructors of the containing class.

* refactor: use `firstOrNull` for `cut` extraction

* refactor: apply ktlint

* fix: add required parameter to `ClassRepresentation` in tests

* publish: core module version `4.0.0`

The major version increased due to the change of the public API of `PromptGenerator.generatePromptForLine` method.

---------

Co-authored-by: Vladislav Artiukhov <[email protected]>

* Data class for execution results

* Minor refactoring

* apply ktlint

* fix getJavaVersion

* add KexSettingsService to plugin.xml

* fix DefaultKexSettingsState

* fix KexSettingsState

* fix Bundles

* Force junit4 for EvoSuite tests

* JUnit version forcing

* fix getExceptionData

* fix tools

* fix managers

* fix TestCasePanelBuilder.kt

* fix TestProcessor.kt

* remove unused import

* fix ktlint

* fix ktlint

* remove TestSparkStarter.kt

* Add support for language applicability checks in Tool

* Add support for language applicability checks in Llm

* Add support for language applicability checks in Kex

* Add support for language applicability checks in EvoSuite

* Filter test generation buttons by language compatibility

* Refactor imports for SupportedLanguage in EvoSuite and Llm

* Set progress indicator text during Kex test generation

---------

Co-authored-by: Edwin Fernando <[email protected]>
Co-authored-by: Edwin Fernando <[email protected]>
Co-authored-by: Edwin Fernando <[email protected]>
Co-authored-by: Vladislav Artiukhov <[email protected]>
Co-authored-by: Iurii Zaitsev <[email protected]>
Co-authored-by: Hello-zoka <[email protected]>
DanielRendox pushed a commit that referenced this issue Jan 31, 2025
* minimal attempt to run kex from testspark with harcoded settings

Needs debugging and testing
* load kex-runner jar from github (build.gradle.kts toplevel)
* setup code for kex properties
* KexErrorManager based on LLMErrorManager
* KexProcessManager based on EvoSuiteProcessManager
* Basic UI element (button for running kex)
* kex works only for the class codeType (todo funciton and line if possible)
* read resource files kex.policy and modules.info

* generate Report and series of simplifications for MVP

use a provided kex path for now instead of downloading jar and adding dependency
use ProcessBuilder (jdk) instead of OSProcessHandler (IJ sdk)
use kex.py instead of building java command directly
generate Report objects by reading generated java classes

* download kex as github release if it doesn't exist

* delete commented code

Deleted stuff:
running Kex through through OSProcessHandler (IJ sdk)
running Kex with kex.py
downloading kex from github in build.gradle.kts

* use javaparser to merge @before and @after generated methods

* compiling tests successfully by adding helper method to TestGenData.otherInfo

* fold anything but @test annotated code, but unfortunately only on UI updates

* remove python dependency by running kex jar directly

* use  project's java and add version check

* empty implementation of settings classes for kex

* allow setting kex arguments from kex settings page

* kex test generation for 'method' code type

arguably overkill solution of modify PsiMethodWrapper class
added parameter names, types and return tyepes explicitly
updated implementation for java and kotlin

* fold all but @test methods regardless of declaration order

* remove settings for unsupported kex features

* folding works even if junit isn't in classpath

* use the the subprocess manager from IJ framework

* empty kex path download to .cache and LOCALAPPDATA in windows

* fix lint. remove wildcard imports

* from IJ api, provide correct build directory to kex

For multimodule projects using TestSpark the correct module's
build directory path is passed based on the location of code for which
tests are generated

* set maxTests displayed and minimizeTestSuite options

* fix code fold to only happen once at the start not every ui update

* error handling for errors in kex process manager

also fixed a bug with the way options were passed to kex subprocess
made them a list of strings instead of a single big space separated string

* fix lint

* provide signatures with FQNs to kex for java

This also includes a simple string based mapping to jvm types through type erasure

* refactor. extract functons, add comments, remove redundancies

* fix lint

* every option in kex cmd is preceeded by --option

* use kotlin.time.Duration instead of Int

* refactor error handling code, check for non-zero exit code

* make generated code manipulation more robust

It no longer depends on the order of the methods generated

* only check if the correct verison of kex exists

* make download url a property and version a user setting

* support jdk version 8. no --add-opens

* bump up kex version to 0.0.10

* allow kex test generation for classes not in a package

* null safety while folding helper code

* Merge branch 'development' into edwin1729/improvement/kex-integration

* disallow kex and line code type being chosen simultaneously

* update description tab and README.md with kex

* fix lint

* fix run coverage by making method name same as class name

This is expected by TestSpark. Relevant file TestProcess.kt:createXmlFromJacoco:109

* undo mistaken removal of addLanguageTextFieldListener before code folding

* Add empty LLM response handling (#342)

Show a warning if LLM returns a response that cannot be parsed into a test case (e.g., an explanation of this test case rather than a modification).

* Restrict TestSpark action to suitable code types and fix generation for a line (#344)

* fix update function

* create availableForGeneration

* ktlint

* feat: add javadoc for `JavaPsiHelper.availableForGeneration`

* feat: check for nullness of a PSI file in `TestSparkAction.update`

* feat: update javadocs in `PsiComponents.kt`

* feat: check for a class or method/func in `KotlinPsiHelper.availableForGeneration`

* feat: add TODO to `ToolUtils` about a potential bug

The bug is reflected in the issue #375.

* feat: make `PsiHelper.getSurroundingLineNumber` return 1-based line numbers

Before, the `KotlinPsiHelper` returned a 0-based line number which caused an issue with line-based test generation.
The generated prompt contained a line above the selected one.

* feat: implement line-based test generation with CUT as a context

When there is no surrounding method about the selected line,
we use the CUT as a context for this line. The CUT must always be present.
Otherwise, the generation action should have been disabled for this line.

* refactor: apply ktlint

* feat: add `See` in TODO

* feat: add TODO and surround $NAME in backticks in `linePrompt` template

* feat: collect class constructor signatures in `PsiClassWrapper`

* feat: remove backticks from `linePrompt`

* feat: fill line-based test generation with additional context

The line-based test generation that has a method as a context
of the line now also accepts constructors of the containing class.

* refactor: use `firstOrNull` for `cut` extraction

* refactor: apply ktlint

* fix: add required parameter to `ClassRepresentation` in tests

* publish: core module version `4.0.0`

The major version increased due to the change of the public API of `PromptGenerator.generatePromptForLine` method.

---------

Co-authored-by: Vladislav Artiukhov <[email protected]>

* Data class for execution results

* Minor refactoring

* apply ktlint

* fix getJavaVersion

* add KexSettingsService to plugin.xml

* fix DefaultKexSettingsState

* fix KexSettingsState

* fix Bundles

* Force junit4 for EvoSuite tests

* JUnit version forcing

* fix getExceptionData

* fix tools

* fix managers

* fix TestCasePanelBuilder.kt

* fix TestProcessor.kt

* remove unused import

* fix ktlint

* fix ktlint

* remove TestSparkStarter.kt

* Add support for language applicability checks in Tool

* Add support for language applicability checks in Llm

* Add support for language applicability checks in Kex

* Add support for language applicability checks in EvoSuite

* Filter test generation buttons by language compatibility

* Refactor imports for SupportedLanguage in EvoSuite and Llm

* Set progress indicator text during Kex test generation

---------

Co-authored-by: Edwin Fernando <[email protected]>
Co-authored-by: Edwin Fernando <[email protected]>
Co-authored-by: Edwin Fernando <[email protected]>
Co-authored-by: Vladislav Artiukhov <[email protected]>
Co-authored-by: Iurii Zaitsev <[email protected]>
Co-authored-by: Hello-zoka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants