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 acfd25a
Showing 1 changed file with 2 additions and 0 deletions.
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 acfd25a

Please sign in to comment.