-
Notifications
You must be signed in to change notification settings - Fork 36.8k
Description
Sometimes I get the error Error while reading the extension cache file while loading a dev container. It says it's trying to read an extension cache file, so I then select to rebuilt without cache but... it still tries to read a cache file, so clearly the "without cache" bit is being ignored here. I also tried deleting the container in docker, and also all the associated images and volumes, so it should (unless I'm missing somewhere..) be a completely fresh build (note that I'd expect that "rebuild without cache" wouldn't be affected by deleting any of that stuff anyway but), and yet the issue still persists.
I can't find any obvious info about where this file should come from, or why vs code thinks it should exist when it doesn't (which makes sense since there's supposed to be no cache).
Eventually after a day or two of bashing my head against a wall trying everything possible it'll somehow go away, but I haven't been able to figure out why; and similarly I can't figure out what I'm doing to cause it- my actions prior don't seem out of the ordinary.
(note, in case it helps diagnosis: I was doing a lot of rebuilds because for some reason I can't get postCreateCommand, postStartCommand, etc to run (again, even after a rebuild and deleting the container + images), maybe there's some system/configuration issue that's causing both issues?)
Encountered while working in the supersonic repo, trying to set up a devcontainer for it:
"name": "Supersonic",
"image": "mcr.microsoft.com/devcontainers/go:2-1.24-bookworm",
"features": {
"desktop-lite": {
"password": "your_password",
"webPort": "6080",
"vncPort": "5901"
}
},
"containerEnv": {
"VNC_RESOLUTION": "1920x1080x24",
},
"postCreateCommand": {
"log": "echo 'DEBUG: Starting post-create script...'",
},
}