Steps to fix the "spawn udevadm ENOENT" error inside the ESP-IDF dev container.
- Launch the dev container in vscode and open a terminal.
- Open a terminal. Confirm that you're in the remote devcontainer terminal, and not on your host system.
apt-get updateapt-get install udev- Now in your devcontainer.json file, add this to the end of the dict:
"runArgs": [
"--device=/dev/ttyACM0",
"--privileged"
]
Now ttyACM0 should be accessible within any esp-idf projects.