Closed strawgate closed 2 months ago
Hey @strawgate, thanks for the report. I'm having a hard time reproducing this.
Part of the Dev Container setup is to execute scripts/setup
, which installs everything listed in the project's requirements.txt
, including both ES and Home Assistant:
Did you notice any errors during container creation that can help me pinpoint the issue?
The version of setup on main just has
python3 -m poetry install
Could that be the issue?
Will try to get a log shortly
Ah. My local main
is behind upstream. Yeah I might have messed something up during my migration to poetry for dependency management.
I think I found the issue, and raised https://github.com/legrego/homeassistant-elasticsearch/pull/209 to address it. Let me know if you have any more issues with the dev container after I merge this fix
Home assistant is actually still missing when I build the dev container
and ruff is too actually
Within the dev container, are you executing commands within the Python virtual environment managed by poetry
?
I'm opening the workspace in the Dev container and running the develop and lint scripts in the scripts folder.
Is there another step required?
For VSCode, you'll want to ensure that the correct Python interpreter is used. Once you select the interpreter that corresponds to the poetry environment, then you should be able to open a new terminal in VSCode. This new terminal should automatically be scoped to the poetry managed environment:
There's probably a way to streamline this, but I haven't spent the time to dig into it yet.
I have a handful of improvements to the dev container in https://github.com/legrego/homeassistant-elasticsearch/pull/213 which just merged. I'll leave this issue open until we can verify it's working for you.
Looks good
Describe the bug I am attempting to follow the contributors guide but hass is not present in the dev container and the related tasks mentioned in the contributors guide are not present
To Reproduce Steps to reproduce the behavior:
Expected behavior Starts home assistant with homeassistant-elasticsearch loaded.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.