coder / code-server

VS Code in the browser
https://coder.com
MIT License
66.94k stars 5.48k forks source link

errors with home assistant #6883

Open manjump opened 4 weeks ago

manjump commented 4 weeks ago

Is there an existing issue for this?

OS/Web Information

Steps to Reproduce

  1. Open code-server in integration Home assistant
  2. Many errors on automation.yaml
  3. I copy this file on automation_sauvegarde.yaml
  4. no errors in this file

Expected

Home assistant create automatically the automation.yaml. So the files is automatically good. But in code server, I have errors. It s strange because if I copy automation.yaml, I have no errors

Actual

Capture d’écran 2024-07-07 à 16 41 26 Capture d’écran 2024-07-07 à 16 42 40 Capture d’écran 2024-07-07 à 16 43 04

Logs

No response

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

I did not test native VS Code

Does this bug reproduce in GitHub Codespaces?

I did not test GitHub Codespaces

Are you accessing code-server over a secure context?

Notes

No response

code-asher commented 3 weeks ago

Are you able to reproduce by accessing code-server directly, without the Home Assistant iframe?

manjump commented 3 weeks ago

Are you able to reproduce by accessing code-server directly, without the Home Assistant iframe?

It means here?

Capture d’écran 2024-07-12 à 13 04 38

If yes, unfortunelly I have the sames errors and I install the last version

code-asher commented 3 weeks ago

Yeah, exactly. Hmm I tried to reproduce by creating an automations.yaml file and opening it in code server but I see no errors. What are the steps to reproduce without Home Assistant?

manjump commented 3 weeks ago

You create an automations.yaml with Home assistant?

What are the steps to reproduce without Home Assistant?

I go to 192.168.4.66:8443 I have automatically this:

Capture d’écran 2024-07-12 à 22 12 09
code-asher commented 3 weeks ago

I just manually created a file called automations.yaml with these contents:

- id: "test"
  alias: Uhh
  description: ''

I assume the yaml linting is provided by an extension or something, but I am not sure.

manjump commented 3 weeks ago

Hi, Always problem:

Capture d’écran 2024-07-15 à 17 52 59
code-asher commented 2 weeks ago

Could you tell me which extensions you have installed? I will download them and try again.

manjump commented 1 day ago

Finally I install a fresh HA and now no problems. Thanks code asher