Open kitgrose opened 9 months ago
I've also noticed this bug rarely but haven't been able to track it down. Do you have a way to reproduce this consistently or is it just intermittent?
Also what version of VS and Docker are you using?
I haven't figured out reproduction instructions, no, but I do notice the behaviour seems to persist for me. It's happening for me again (still?), though, with the same duration (16:12:44
) shown in the error dialog.
I've had a bit of a scan of the output of docker inspect
for some of my key containers and volumes, but I don't see anything with a timestamp like that.
I do perform fairly regular updates of both VS and Docker, but here's the versions I have currently:
Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.8.5
Docker Desktop version: 4.26.1 (131620) Docker engine version: 24.0.7 Docker Compose version: 2.23.3-desktop.2
any update on Visual Studio, experts?
@HydTechie Do you have the exact same error mesage with 16:12:44
or is the same error message just with a different timestamp?
@kitgrose sorry this issue slipped through the cracks. I have a suspicion on what is causing this, but I would like to confirm.
docker compose --ansi never -p <compose project name> logs -t
and look for the timestamp that is in the error message and supply a few log lines including before and after the offending timestamp.The first part of the error is from docker as --since requires a datetime and not just the time. I think the issue could be we are splitting/parsing the log line incorrectly and only storing the time and not the whole datetime.
I recently opened Visual Studio and rebuilt a Docker Compose project without making any changes since it was last run.
Visual Studio's Containers window shows a banner saying "An error occurred during the stream operation":
When I click the View Details link, I get a dialog box saying:
The broken formatting (CRLF literals, lowercase starting letter on the error message, weird pluralisation and formatting of the header, etc.) are all exactly as per the dialog, which makes it feel like an error generated by a less trustworthy third party:
I've seen this dialog before and I'm fairly sure it went away once I restarted Docker, but surely
16:12:44
is a valid duration, and should be supported.