Skip to content

Vassiliy kudryashov/651 write access exception during new sarif file generation #674

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

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ import org.utbot.framework.codegen.model.constructor.tree.TestsGenerationReport
import org.utbot.framework.plugin.api.CodegenLanguage
import org.utbot.framework.plugin.api.ExecutableId
import org.utbot.framework.plugin.api.UtMethodTestSet
import org.utbot.framework.plugin.api.util.UtContext
import org.utbot.framework.plugin.api.util.executableId
import org.utbot.framework.plugin.api.util.id
import org.utbot.framework.plugin.api.util.withUtContext
import org.utbot.framework.util.Conflict
import org.utbot.intellij.plugin.models.GenerateTestsModel
import org.utbot.intellij.plugin.models.packageName
Expand Down Expand Up @@ -304,14 +302,14 @@ object CodeGenerationController {

// creating and saving reports
reports += testsCodeWithTestReportFormatted.testsGenerationReport

saveSarifReport(
testClassUpdated,
testSets,
model,
testsCodeWithTestReportFormatted,
)

run(WRITE_ACTION) {
saveSarifReport(
testClassUpdated,
testSets,
model,
testsCodeWithTestReportFormatted,
)
}
unblockDocument(testClassUpdated.project, editor.document)

reportsCountDown.countDown()
Expand Down