Skip to content

[macOS] Code completion breaks when .pde file contains Chinese characters #1595

Open

Description

@mizerthilez

Most appropriate sub-area of Processing 4?

I'm not sure, PDE

Processing version

4.5.7

Operating system

Apple M4, macOs 15.6.1

Bug description

On macOS, code completion stops working as soon as a .pde file contains Chinese (non-ASCII / multi-byte UTF-8) characters. This happens both in VS Code (via Processing lsp) and in the built-in Processing IDE editor.

The exact same Processing version works without any issues on Windows.

Environment

  • Processing version: [4.5.7]
  • OS: macOS [Apple M4, macOs 15.6.1]
  • Comparison: Works normally on Windows with the exact same Processing version.

Steps to Reproduce

  1. Open a .pde file in VS Code (with the Processing extension) or in Processing.app (with code completion enabled).
  2. Add or paste any Chinese characters (e.g., // 中文测试), even without saving.
  3. Try triggering code completion anywhere in the file.

Expected Behavior

  • Code completion continues to work in the Processing editor.

Actual Behavior

  • In the Processing IDE editor on macOS, code completion fails to trigger when Chinese characters are present.
  • English-only behaves normal.
  • By the way, Processing extensions on VS Code that rely on the Processing LSP for code completion also have this issue.

Steps to reproduce this

snippet

// Paste your code below :)

void setup() {

}

void draw() {

}

Additional context

No response

Would you like to work on the issue?

No, I’m just reporting the issue

Activity

  1. added
    bug
    on Nov 22, 2026
  2. catilac commented on Nov 24, 2026

    @catilac
    Collaborator

    Oh wow. Could you provide an example code so we can re-create it? This would be a really great thing to fix

  3. SableRaf commented on Nov 26, 2026

    @SableRaf
    Collaborator

    Hi @mizerthilez, did you try switching on "Enable complex text input" in the settings (see screenshot below) and does the issue still happen with that setting on?

    image
  4. mizerthilez commented on Nov 27, 2026

    @mizerthilez
    Author

    @catilac
    Sure! Here is a minimal .pde example to reproduce it

    Minimal .pde Example

    Works (English only):

    // test
    void setup() {
      re
    }

    Breaks (with Chinese characters):

    // 中文测试
    void setup() {
      re
    }

    Triggering code completion right after re (line 2, character 4) works in the first snippet, but stops working completely as soon as Chinese characters are present (whether typed, pasted without saving, or opened from disk).

    And yes, the issue still happen when "Enable complex text input" is swithed on. @SableRaf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions