Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.github.continuedev.continueintellijextension.autocomplete.AutocompleteService.clearCompletions writes to slow stream on the UI thread and slows typing #3631

Open
1 of 3 tasks
ViugiNick opened this issue Jan 7, 2025 · 0 comments
Assignees
Labels
area:autocomplete Relates to the auto complete feature ide:jetbrains Relates specifically to JetBrains extension kind:bug Indicates an unexpected problem or unintended behavior "needs-triage"

Comments

@ViugiNick
Copy link

Before submitting your bug report

Relevant environment info

- OS: Mac OS X
- Continue version:
- IDE version: Android Studio Meerkat | 2024.3.1 Canary 7
- Model:
- config.json:

Description

com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:379) [300ms]
com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:389) [300ms]
com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport$$Lambda/0x0000000801241150.compute(Unknown Source) [300ms]
com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction$lambda$5(AnyThreadWriteThreadingSupport.kt:379) [300ms]
com.intellij.openapi.editor.impl.DefaultRawTypedHandler$1.run(DefaultRawTypedHandler.java:55) [300ms]
com.intellij.execution.impl.MyTypedHandler.execute(ConsoleViewImpl.kt:1589) [300ms]
com.jetbrains.cidr.lang.formatting.OCAutoFormatTypedHandler.execute(OCAutoFormatTypedHandler.java:58) [300ms]
com.intellij.codeInsight.template.emmet.EmmetPreviewTypedHandler.execute(EmmetPreviewTypedHandler.java:43) [300ms]
com.intellij.codeInsight.lookup.impl.LookupTypedHandler.execute(LookupTypedHandler.java:70) [300ms]
com.intellij.codeInsight.lookup.impl.LookupTypedHandler.beforeCharTyped(LookupTypedHandler.java:102) [300ms]
com.intellij.codeInsight.lookup.impl.LookupImpl.performGuardedChange(LookupImpl.java:698) [300ms]
com.intellij.codeInsight.lookup.impl.LookupOffsets.performGuardedChange(LookupOffsets.java:151) [300ms]
com.intellij.codeInsight.lookup.impl.LookupTypedHandler$$Lambda/0x0000000803f3baa8.run(Unknown Source) [300ms]
com.intellij.codeInsight.lookup.impl.LookupTypedHandler.lambda$beforeCharTyped$0(LookupTypedHandler.java:104) [300ms]
com.intellij.openapi.editor.EditorModificationUtil.typeInStringAtCaretHonorMultipleCarets(EditorModificationUtil.java:71) [300ms]
com.intellij.openapi.editor.EditorModificationUtil.typeInStringAtCaretHonorMultipleCarets(EditorModificationUtil.java:79) [300ms]
com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:290) [300ms]
com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:313) [300ms]
com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:413) [300ms]
com.intellij.openapi.editor.impl.CaretModelImpl$$Lambda/0x0000000803ec91d8.run(Unknown Source) [300ms]
com.intellij.openapi.editor.impl.CaretModelImpl.lambda$runForEachCaret$3(CaretModelImpl.java:304) [300ms]
com.intellij.openapi.editor.EditorModificationUtil$$Lambda/0x0000000803f3bce8.perform(Unknown Source) [300ms]
com.intellij.openapi.editor.EditorModificationUtil.lambda$typeInStringAtCaretHonorMultipleCarets$1(EditorModificationUtil.java:79) [300ms]
com.intellij.openapi.editor.EditorModificationUtilEx.insertStringAtCaretNoScrolling(EditorModificationUtilEx.java:107) [300ms]
com.intellij.openapi.editor.CaretModel.moveToVisualPosition(CaretModel.java:68) [300ms]
com.intellij.openapi.editor.impl.CaretImpl.moveToVisualPosition(CaretImpl.java:527) [300ms]
com.intellij.openapi.editor.impl.CaretImpl.moveToVisualPosition(CaretImpl.java:531) [300ms]
com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:408) [300ms]
com.intellij.openapi.editor.impl.CaretImpl$$Lambda/0x00000008037f2c28.run(Unknown Source) [300ms]
com.intellij.openapi.editor.impl.CaretImpl.lambda$moveToVisualPosition$4(CaretImpl.java:531) [300ms]
com.intellij.openapi.editor.impl.CaretImpl.doMoveToVisualPosition(CaretImpl.java:593) [300ms]
com.intellij.openapi.editor.impl.CaretModelImpl.fireCaretPositionChanged(CaretModelImpl.java:539) [300ms]
jdk.proxy2/jdk.proxy2.$Proxy130.caretPositionChanged(Unknown Source) [300ms]
com.intellij.util.EventDispatcher$$Lambda/0x0000000800583758.invoke(Unknown Source) [300ms]
com.intellij.util.EventDispatcher.lambda$createMulticaster$1(EventDispatcher.java:85) [300ms]
com.intellij.util.EventDispatcher.dispatchVoidMethod(EventDispatcher.java:120) [300ms]
java.base@21.0.5/java.lang.reflect.Method.invoke(Unknown Source) [300ms]
java.base@21.0.5/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source) [300ms]
java.base@21.0.5/jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl(Unknown Source) [300ms]
java.base@21.0.5/java.lang.invoke.Invokers$Holder.invokeExact_MT(Unknown Source) [300ms]
java.base@21.0.5/java.lang.invoke.LambdaForm$MH/0x00000008025a0000.invoke(LambdaForm$MH) [300ms]
java.base@21.0.5/java.lang.invoke.LambdaForm$DMH/0x0000000800328000.invokeInterface(LambdaForm$DMH) [300ms]
com.github.continuedev.continueintellijextension.autocomplete.AutocompleteCaretListener.caretPositionChanged(AutocompleteEditorListener.kt:28) [300ms]
com.github.continuedev.continueintellijextension.autocomplete.AutocompleteService.clearCompletions(AutocompleteService.kt:274) [300ms]
com.github.continuedev.continueintellijextension.autocomplete.AutocompleteService.cancelCompletion(AutocompleteService.kt:267) [300ms]
com.github.continuedev.continueintellijextension.continue.CoreMessenger.request(CoreMessenger.kt:46) [300ms]
com.github.continuedev.continueintellijextension.continue.CoreMessenger.write(CoreMessenger.kt:34) [300ms]
java.base@21.0.5/java.io.Writer.write(Unknown Source) [300ms]
java.base@21.0.5/java.io.OutputStreamWriter.write(Unknown Source) [300ms]
java.base@21.0.5/sun.nio.cs.StreamEncoder.write(Unknown Source) [300ms]
java.base@21.0.5/sun.nio.cs.StreamEncoder.write(Unknown Source) [300ms]
java.base@21.0.5/jdk.internal.misc.InternalLock.lock(Unknown Source) [300ms]
java.base@21.0.5/java.util.concurrent.locks.ReentrantLock.lock(Unknown Source) [300ms]
java.base@21.0.5/java.util.concurrent.locks.ReentrantLock$Sync.lock(Unknown Source) [300ms]
java.base@21.0.5/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(Unknown Source) [300ms]
java.base@21.0.5/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(Unknown Source) [300ms]
java.base@21.0.5/java.util.concurrent.locks.LockSupport.park(Unknown Source) [300ms]
java.base@21.0.5/jdk.internal.misc.Unsafe.park(Native Method) [300ms]
{latencyMs: 258, typingId: 1, fileType: KOTLIN}

To reproduce

No response

Log output

No response

@dosubot dosubot bot added area:autocomplete Relates to the auto complete feature ide:jetbrains Relates specifically to JetBrains extension kind:bug Indicates an unexpected problem or unintended behavior labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:autocomplete Relates to the auto complete feature ide:jetbrains Relates specifically to JetBrains extension kind:bug Indicates an unexpected problem or unintended behavior "needs-triage"
Projects
None yet
Development

No branches or pull requests

2 participants