continue icon indicating copy to clipboard operation
continue copied to clipboard

Editing highlighted code does not support chinese.

Open facelezzzz opened this issue 1 year ago • 2 comments

Before submitting your bug report

Relevant environment info

- OS:
windows 11
- Continue:
0.0.55
- IDE:
IntelliJ IDEA 2024.1.2 (Community Edition)
Build #IC-241.17011.79, built on May 22, 2024


Runtime version: 17.0.11+1-b1207.24 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
- Model:
qwen2:7b
- config.json:
  
{
  "models": [
    {
      "title": "qwen2:7b",
      "provider": "ollama",
      "model": "qwen2:7b",
      "apiBase": "http://127.0.0.1:11434"
    }
  ],
  "contextProviders": [
    {
      "name": "docs"
    },
    {
      "name": "codebase"
    },
    {
      "name": "folder"
    },
    {
      "name": "tree"
    },
    {
      "name": "open"
    }
  ],
  "tabAutocompleteModel": {
    "title": "starcoder2",
    "provider": "ollama",
    "model": "starcoder2:3b",
    "apiBase": "http://127.0.0.1:11434"
  },
  "embeddingsProvider": {
    "provider": "ollama",
    "model": "nomic-embed-text:latest",
    "apiBase": "http://127.0.0.1:11434"
  },
  "allowAnonymousTelemetry": false
}

Description

see pic

image

To reproduce

1.open Editing highlighted code with ctrl+i 2.type some chinese

Log output

No response

facelezzzz avatar Jul 18 '24 07:07 facelezzzz

It seems the default font (Arial) used by Continue does't support Chinese display, build the plugin locally and change font to Microsoft YaHei solved my problem.

Yoenl avatar Jul 25 '24 07:07 Yoenl

So, simply changing the font to one that supports Chinese characters is sufficient.

facelezzzz avatar Jul 29 '24 03:07 facelezzzz

Why is Intellij IDEA in macOS free from this issue? Does the "Arial" font in macOS contain Chinese?

flexport-yshi2 avatar Aug 21 '24 06:08 flexport-yshi2

How to build the plugin locally and change the font ?

SuperKevinZhang avatar Aug 26 '24 04:08 SuperKevinZhang

I believe this is now resolved as of this PR from a contributor: https://github.com/continuedev/continue/pull/2066.

I'm closing the issue as it now appears to work for me, but if anyone is still experiencing the problem in 0.0.65+ please re-open!

sestinj avatar Sep 01 '24 05:09 sestinj