GoogleCloudPlatform / cloud-code-intellij

Plugin to support the Google Cloud Platform in IntelliJ IDEA - Docs and Issues Repository
Apache License 2.0
319 stars 59 forks source link

Cloud Code breaks multibyte? yaml editing #3151

Open topia opened 1 year ago

topia commented 1 year ago

What did you do? Editing UTF-8 YAML containing Japanese text.

What did you expect to see? No code problems are shown.

What did you see instead? Many unexpected code problems are shown: image

YAML is basic and should be valid:

test:
  key: value
  foo:
    key: value

  キー: 値

  bar:
    key2: value2

I tried this with IDEA 2023.2 Beta (Ultimate) #IU-232.8660.48 only for now, and I don't know if it's related to Beta/EAP or not. (I'd like to note that this problem can't reproduce if I disable the Cloud Code plugin)

topia commented 1 year ago

I can't reproduce second time, so I slightly changed the steps to reproduce always (with IDEA 2023.1):

  1. create test.yaml and input below text:

    test:
    key: value
    foo:
    key: value
    
    キー: 値
    
    bar:
    key2: value2
  2. moved to the beginning of line 2 and typed &key

test:
  &key key: value
...
  1. Cloud Code shows many errors for this valid input.

Maybe my issue subject was not correct, but it was caused by an already-broken internal state.

emmanuelbaah commented 1 year ago

The team will investigate this issue and get back to you