keesschollaart81 / vscode-home-assistant

Visual Studio Code Extension for Home Assistant. ⭐ if you think this is cool!
542 stars 113 forks source link

Schema's not being loaded #3017

Open sammyke007 opened 7 months ago

sammyke007 commented 7 months ago

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:

I'm running VS Code on:

I'm accessing my files:

frenck commented 7 months ago

Confirmed, see the issue too.

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

../Frenck

frenck commented 7 months ago

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 🤔

sammyke007 commented 7 months ago

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

hellcry37 commented 7 months ago

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.

alexbNz2021 commented 7 months ago

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

pganansia commented 6 months ago

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

Bartsz commented 2 months ago

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?