cloud-code-intellij icon indicating copy to clipboard operation
cloud-code-intellij copied to clipboard

Cloud Code breaks multibyte? yaml editing

Open topia opened this issue 2 years ago • 2 comments

  • Cloud Code for IntelliJ version: 23.6.3-IB.1-api-version-222
  • Google Cloud SDK version: 438.0.0
  • OS: Windows 11 10.0

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 avatar Jul 13 '23 17:07 topia

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
  1. 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.

topia avatar Jul 13 '23 17:07 topia

The team will investigate this issue and get back to you

emmanuelbaah avatar Jul 17 '23 14:07 emmanuelbaah