From 5eb53ecd760f63c31e69893cb985654f30c53dd9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 12 Aug 2021 18:16:56 +0000 Subject: [PATCH 1/3] (maint): Bump io.gitlab.arturbosch.detekt in /src/rider Bumps io.gitlab.arturbosch.detekt from 1.17.1 to 1.18.0. --- updated-dependencies: - dependency-name: io.gitlab.arturbosch.detekt dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- src/rider/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rider/build.gradle.kts b/src/rider/build.gradle.kts index 32a4c1d9..6713656e 100644 --- a/src/rider/build.gradle.kts +++ b/src/rider/build.gradle.kts @@ -30,7 +30,7 @@ plugins { // gradle-changelog-plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin id("org.jetbrains.changelog") version "1.2.1" // detekt linter - read more: https://detekt.github.io/detekt/gradle.html - id("io.gitlab.arturbosch.detekt") version "1.17.1" + id("io.gitlab.arturbosch.detekt") version "1.18.0" // ktlint linter - read more: https://github.com/JLLeitschuh/ktlint-gradle id("org.jlleitschuh.gradle.ktlint") version "10.0.0" // grammarkit to generate parser & lexer (i.e. the bnf and the flex file...) From d475181ae7714ed0ef6e3652375b7a33f19821ee Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 12 Aug 2021 19:23:32 +0000 Subject: [PATCH 2/3] (maint): Bump detekt-formatting from 1.17.1 to 1.18.0 in /src/rider Bumps [detekt-formatting](https://github.com/detekt/detekt) from 1.17.1 to 1.18.0. - [Release notes](https://github.com/detekt/detekt/releases) - [Commits](https://github.com/detekt/detekt/compare/v1.17.1...v1.18.0) --- updated-dependencies: - dependency-name: io.gitlab.arturbosch.detekt:detekt-formatting dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- src/rider/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rider/build.gradle.kts b/src/rider/build.gradle.kts index 6713656e..ce92c1b5 100644 --- a/src/rider/build.gradle.kts +++ b/src/rider/build.gradle.kts @@ -53,7 +53,7 @@ repositories { jcenter() } dependencies { - detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.17.1") + detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.18.0") testImplementation("org.junit.jupiter:junit-jupiter:5.7.2") testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.7.2") From 3147e78487facb36b5abc419e88eff83e8d923be Mon Sep 17 00:00:00 2001 From: Nils Andresen Date: Thu, 19 Aug 2021 22:11:01 +0200 Subject: [PATCH 3/3] (#181) Write access is allowed inside write-action only was fixed by wrapping the deletion in runWriteAction --- .../net/cakebuild/actions/InstallFileToProjectAction.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/rider/src/main/kotlin/net/cakebuild/actions/InstallFileToProjectAction.kt b/src/rider/src/main/kotlin/net/cakebuild/actions/InstallFileToProjectAction.kt index 09986475..b1cbb224 100644 --- a/src/rider/src/main/kotlin/net/cakebuild/actions/InstallFileToProjectAction.kt +++ b/src/rider/src/main/kotlin/net/cakebuild/actions/InstallFileToProjectAction.kt @@ -2,6 +2,7 @@ package net.cakebuild.actions import com.intellij.openapi.actionSystem.AnAction import com.intellij.openapi.actionSystem.AnActionEvent +import com.intellij.openapi.application.ApplicationManager import com.intellij.openapi.diagnostic.Logger import com.intellij.openapi.fileTypes.FileType import com.intellij.openapi.fileTypes.FileTypes @@ -36,8 +37,11 @@ abstract class InstallFileToProjectAction : AnAction(), DumbAware { return } - log.trace("deleting $fileName, before downloading it new.") - existing.delete(this) + val app = ApplicationManager.getApplication() + app.runWriteAction { + log.trace("deleting $fileName, before downloading it new.") + existing.delete(this) + } } val settings = CakeSettings.getInstance(e.project!!) val service = DownloadableFileService.getInstance()