Giter Site home page Giter Site logo

Comments (14)

reymondzzzz avatar reymondzzzz commented on September 26, 2024 1

Hmmm... You opened Ide and there wasn't error, but after opening new project you got AccessDeniedException. Am I right?

from refact-intellij.

pixkk avatar pixkk commented on September 26, 2024

+. Have same problem.

  • Plugin version: 1.2.4
  • IDE: IntelliJ IDEA 2023.2.2 Build #IU-232.9921.47
  • JDK: 17.0.8; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
  • OS: Windows 10.0
  • ARCH: amd64
  • MODE: Cloud

from refact-intellij.

reymondzzzz avatar reymondzzzz commented on September 26, 2024

Hi! try new 1.2.5 version. Hope it helps you.

from refact-intellij.

pixkk avatar pixkk commented on September 26, 2024

Unfortunately the problem was not solved🥲. The code editor itself is run as administrator.
К сожалению проблема не решилась🥲. Редактор кода открыт от имени администратора.

And apparently because of this error, all the functionality associated with the code does not work for me (suggestion, auto-writing, etc.)

Unhandled exception in [CoroutineName(com.smallcloud.refactai.Initializer), StandaloneCoroutine{Cancelling}@5fd46318, Dispatchers.Default]
  
  java.nio.file.AccessDeniedException: C:\Users\User\AppData\Local\Temp\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:102)
at com.smallcloud.refactai.Initializer.initialize(Initializer.kt:52)
at com.smallcloud.refactai.Initializer.execute(Initializer.kt:25)
at com.intellij.ide.startup.impl.StartupManagerImplKt$launchActivity$1$1.invokeSuspend(StartupManagerImpl.kt:534)
at com.intellij.ide.startup.impl.StartupManagerImplKt$launchActivity$1$1.invoke(StartupManagerImpl.kt)
at com.intellij.ide.startup.impl.StartupManagerImplKt$launchActivity$1$1.invoke(StartupManagerImpl.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at com.intellij.ide.startup.impl.StartupManagerImplKt$launchActivity$1.invokeSuspend(StartupManagerImpl.kt:532)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
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(com.smallcloud.refactai.Initializer), StandaloneCoroutine{Cancelled}@5fd46318, Dispatchers.Default]

from refact-intellij.

reymondzzzz avatar reymondzzzz commented on September 26, 2024

@pixkk Could you check permissions to C:\Users\User\AppData\Local\Temp? Looks like plugin can not copy binary backend in this directory.

from refact-intellij.

pixkk avatar pixkk commented on September 26, 2024

@pixkk Could you check permissions to C:\Users\User\AppData\Local\Temp? Looks like plugin can not copy binary backend in this directory.

Windows user "User" can edit, manage, delete files in this folder.
image

And refact-lsp.exe is here ()

from refact-intellij.

reymondzzzz avatar reymondzzzz commented on September 26, 2024

Wow...it's very strange :D and if you start ide with plugin right now you will get this error?

from refact-intellij.

reymondzzzz avatar reymondzzzz commented on September 26, 2024

Could you try eap version?

insert https://plugins.jetbrains.com/plugins/eap/list in marketplace and reopen plugin settings. You will find eap version of Refact. Thank you
image
image

from refact-intellij.

pixkk avatar pixkk commented on September 26, 2024

When i start IDE without admin rights - error:
image
image

When i start IDE with admin rights - error does not exist, but if i switch to another project - it appears again.
image

On this screen refact-lsp is working, but autocompletion don`t work.
2023-12-06 15-37-18

from refact-intellij.

pixkk avatar pixkk commented on September 26, 2024

image
In logs everything is ok (about code completion), but autocompletion is not work :(

from refact-intellij.

reymondzzzz avatar reymondzzzz commented on September 26, 2024

autocompletion doesn't work because your settings is mixed. Old setting prohibits completion. It's our fail. I will delete rudiment code ASAP. Try new version 1.2.7 in eap. It will be in marketplace in few minutes.

from refact-intellij.

reymondzzzz avatar reymondzzzz commented on September 26, 2024

Try without admin privacy pls

from refact-intellij.

pixkk avatar pixkk commented on September 26, 2024

image
Yeah, it`s work now! But exist bug (but it does not affect the operation of the plugin - it works successfully).

  1. Open IDE.
  2. Try open another project
  3. You receive error Unhandled exception in [CoroutineName(com.smallcloud.refactai.Initializer), StandaloneCoroutine{Cancelling}@5fbb50fe, Dispatchers.Default] java.nio.file.AccessDeniedException: C:\Users\Asimut.refact\bin\refact-lsp.exe
  4. Change project - the error no longer occurs until the IDE is restarted

from refact-intellij.

reymondzzzz avatar reymondzzzz commented on September 26, 2024

Anyway, we are very appreciated your help!!! good job! I think AccessDeniedException with new project connected to setup activity with project. It repeated every time when you opened project. It's bug and I know how to fix it.

from refact-intellij.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.