vscode-home-assistant icon indicating copy to clipboard operation
vscode-home-assistant copied to clipboard

Schema's not being loaded

Open sammyke007 opened this issue 1 year ago • 7 comments

Hi I'm running Home Assistant Config Helper as an extension in Code Server (running in an LXC). I can connect to Home Assistant and entity completion is working fine, but I can't get the other options to work. The schema's wont load.

Home Assistant Language Server outputs: [Home Assistant Language Server(12402)] Started and initialize received Cannot find the files in folder dev/fd

Do I need to mount something?

Extension runs in:

  • [ ] VS Code for Desktop
  • [ ] Hassio Add-on
  • [ ] Visual Studio Online
  • [X] Code Server:

I'm running VS Code on:

  • [ ] Windows
  • [ ] Mac
  • [X] Linux

I'm accessing my files:

  • [ ] From local disk
  • [X] Via remote SSH
  • [ ] Smb
  • [ ] Other:

sammyke007 avatar Jan 11 '24 22:01 sammyke007

Confirmed, see the issue too.

Not sure what caused it. Running a git bisect now to find the commit that caused it.

../Frenck

frenck avatar Jan 12 '24 12:01 frenck

CleanShot 2024-01-12 at 13 09 50@2x

Next up: Figuring out why this PR messes up the schemas

edit: Hmm that is not it. Not sure why that ended up with the introducing commit in the bisect. I must have messed up a long the way. Let's try again.

edit2: second run, same result 🤔

frenck avatar Jan 12 '24 12:01 frenck

I've switched to the "official" Vscode on Windows and using Remote SSH to HA OS it does work 100%. Schemas are working and so does entity completion. Strange...

sammyke007 avatar Jan 13 '24 01:01 sammyke007

I've switched to the "official" Vscode on Windows and using Remote SSH to HA OS it does work 100%. Schemas are working and so does entity completion. Strange...

Dunno on what you switched, but is not working for sure. I am using "official" Vscode on Windows and Remote SSH but on a docker container and is definitively a issue.

hellcry37 avatar Jan 19 '24 12:01 hellcry37

if you go back to 1.39 it works, on macos and linux looks like a werid update as the URLs are different between the versions for the Schema

alexbNz2021 avatar Jan 20 '24 09:01 alexbNz2021

I can confirm that the version 1.39.0 is working without those issues. Rgds

pganansia avatar Feb 12 '24 17:02 pganansia

I have similar issue, I get autocompletion on entities and services, but schema doesn't work. I'm using vs code server on HA running in VirtualBox.

Unlike sammykey007, I can open folder dev/fd using VS Code and list the files inside but i can't open the files inside using VS Code

Can I provide any more info to help finding root causa?

Bartsz avatar Jun 19 '24 10:06 Bartsz