Open fortenforge opened 6 months ago
I think here someone of the codeium guys must giva a helping hand. @pqn when entering single chinese/japanese characters
var arr = [말, ];
I get a completion (EditorManager.kt -> applyCompletionFeedback)
completion_id: "e34be170-0bc0-4722-a25c-f557020959d4"
text: " var arr = [\353\247\220, \353\260\224];"
stop: "\n"
score: -2.779088921855237
tokens: 39277
tokens: 242
tokens: 947
decoded_tokens: "<INVALID_UTF8>"
decoded_tokens: "<INVALID_UTF8>"
decoded_tokens: "];\n"
probabilities: 0.08463465422391891
probabilities: 0.23204736411571503
probabilities: 0.09497058391571045
adjusted_probabilities: 0.13103549182415009
adjusted_probabilities: 0.5395587086677551
adjusted_probabilities: 0.07481787353754044
generated_length: 3
12: 2
14: "\353\260\224];\n"
but when I have something like that
var arr = [말씀, 말씀, 말씀, 말씀, ]
It doesn't generate any completions but throws a grpc error
java.lang.Throwable: Process creation:
at com.intellij.execution.process.BaseOSProcessHandler.<init>(BaseOSProcessHandler.java:32)
at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:44)
at com.intellij.execution.process.KillableProcessHandler.<init>(KillableProcessHandler.java:41)
at com.codeium.intellij.language_server.LanguageServerProcessHandler.<init>(LanguageServerProcessHandler.kt:17)
at com.codeium.intellij.language_server.LanguageServerLauncherActivity$runActivity$1.invokeSuspend(LanguageServerLauncherActivity.kt:306)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33)
at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
that's not a GRPC error, and that error is benign. it's just complaining that the process hasn't written out data in a while.
Some fonts, like the built-in DialogInput or the downloaded 'Microsoft YaHei Mono,' display correctly, but they all look unattractive.
This is a simple fix by add a fallback font
maybe the FontMetrics part also need to be changed, but this is just good enough for me
compiled class file CompletionInlayRenderer.zip
ref: HintRenderer example
This problem only seems to happen on some versions of JetBrains on Windows.