Description
Why it's important?
I spent some time helping a few teams with plot debugging. I helped multiple teams debug their plots. When users manually configure plots in dvc.yaml
, two types of errors are likely to appear:
- Provided data and configuration are not compatible with the plot template (e.g pass
str
tonumerical
data type) - Typos in file names
In every case, both DVC/DVCLive are "silent". We discussed here iterative/dvclive#750 and plan to improve.
Eventually, users open VSCode extension and don't see plots at all! This issue aims to find a better way to notify users about problems with plots and metrics visualization in VSCode.
AS IS
(I don't consider VSCode extension logs, because they are not appropriate for end users)
1. Error messages on hovering top-level tiles
At this moment we provide little means for understanding the error and debugging. As an example, out internal discussion in Slack
It seems that the best means we have now is error messages in tiles with branch/exp name:
However
- It's difficult to find (found this feature accidentally when trying to find smth)
- it was not expected that tiles would show additional information for
!
sign - for a customer who used VSCode via Dev Container to run/debug code in the remote machine, there was no message on hover
!
- but onlycopy
icon. Is it expected?
2. Error messages on hovering side menu
- I was not aware of them
- Takes too long to show the message on hover

DISCUSSION
- Can we show an "empty" plot for every buggy plot specified in
dvc.yaml
and show an error message on it?

- Is there another way to help with plot debugging?
- Can we improve documentation to mention existing features for error messages?
- When people open Show Plots for the first time, there is nothing inside because no experiments are selected
- can we select "workspace" by default? I guess it's needed most of the time.