Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git extension: stale and ignored resources appear under Staged Changes #133425

Closed
mattseddon opened this issue Sep 20, 2021 · 0 comments
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug git GIT issues

Comments

@mattseddon
Copy link

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.60.1
  • OS Version: Darwin x64 20.6.0

Steps to Reproduce:

  1. Run a machine learning experiment with the workspace open.
  2. 5k ignored files will appear under "staged changes" (files to do not appear under git status -z -u).
  3. Stage any file through the UI.
  4. Stale files disappear from the "Staged Changes" resource list.

Demo

Screen.Recording.2021-09-20.at.3.15.00.pm.mov

I think that potentially the @throttle decorator here is the cause of the stale data.

The way that the experiment run works is:

  1. a temporary branch is created
  2. the experiment is run against that branch
  3. the results are returned to the workspace
  4. the temporary branch is removed

This is what the terminal looks like during the experiment 👇🏻

~/example-dvc-experiments main +2 ❯                                                                3.0.0 16:12:0
~/example-dvc-experiments #baseline-experiment !6 ❯                                                3.0.0 16:15:08
~/example-dvc-experiments #baseline-experiment +70004 !2 ❯                                         3.0.0 16:15:21
~/example-dvc-experiments main !6 ❯                                                                3.0.0 16:15:26

Is there anything that can be done to work around this issue?
Please let me know if you need any more context or information.

Thanks,

@mattseddon mattseddon changed the title Git extension: stale and ignored resources appear under Staged Changes git extension: stale and ignored resources appear under Staged Changes Sep 20, 2021
@lszomoru lszomoru assigned lszomoru and unassigned eamodio Oct 4, 2021
@lszomoru lszomoru added the git GIT issues label Oct 4, 2021
@lszomoru lszomoru added the bug Issue identified by VS Code Team member as probable bug label Oct 25, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Feb 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug git GIT issues
Projects
None yet
Development

No branches or pull requests

3 participants