smallcloudai / refact-intellij

Refact AI: Open-source AI Code assistant with autocompletion, chat, refactoring and more for IntelliJ JetBrains IDEs
https://refact.ai
BSD 3-Clause "New" or "Revised" License
31 stars 12 forks source link

[JB plugin] Internal error: AccessDeniedException #92

Open sycomix opened 7 months ago

sycomix commented 7 months ago

An internal error happened in the IDE plugin.

Message: Unhandled exception in [CoroutineName(run activity), run activity, StandaloneCoroutine{Cancelling}@3060c025, Dispatchers.Default]

Stack trace

java.nio.file.AccessDeniedException: C:\Users\sycom\AppData\Local\Temp\IC_233_13135_103_refact_lsp.exe
    at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
    at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
    at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
    at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:275)
    at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
    at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191)
    at java.base/java.nio.file.Files.copy(Files.java:3148)
    at com.smallcloud.refactai.lsp.LSPProcessHolder.startup(LSPProcessHolder.kt:103)
    at com.smallcloud.refactai.Initializer.execute(Initializer.kt:53)
    at com.intellij.ide.startup.impl.StartupManagerImplKt$launchActivity$1.invokeSuspend(StartupManagerImpl.kt:482)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
    Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [CoroutineName(run activity), run activity, StandaloneCoroutine{Cancelled}@3060c025, Dispatchers.Default]

Environment

Additional information

FWLamb commented 2 months ago

+1