Skip to content

Commit

Permalink
fix AccessDeniedException v2
Browse files Browse the repository at this point in the history
  • Loading branch information
reymondzzzz committed Dec 6, 2023
1 parent 3379da9 commit b442182
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies {


group = "com.smallcloud"
version = getVersionString("1.2.5")
version = getVersionString("1.2.6")

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import java.nio.file.StandardCopyOption
import java.util.concurrent.Future
import java.util.concurrent.TimeUnit
import kotlin.io.path.Path
import kotlin.io.path.deleteIfExists
import com.smallcloud.refactai.account.AccountManager.Companion.instance as AccountManager
import com.smallcloud.refactai.io.InferenceGlobalContext.Companion.instance as InferenceGlobalContext

Expand Down Expand Up @@ -99,6 +100,7 @@ class LSPProcessHolder: Disposable {
} else {
val path = Paths.get(BIN_PATH)
path.parent.toFile().mkdirs()
path.deleteIfExists()
Files.copy(input, path, StandardCopyOption.REPLACE_EXISTING)
setExecutable(path.toFile())
}
Expand Down

0 comments on commit b442182

Please sign in to comment.