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

How to see files under DVC TRACKED section in VS code after adding the folder using 'dvc add'? #5057

Closed
Debasis5 opened this issue Dec 1, 2023 · 2 comments

Comments

@Debasis5
Copy link

Debasis5 commented Dec 1, 2023

After setting up the DVC in my project, I am able to see modifications, commit and push through command line but VScode doesn't show anything in 'DVC TRACKED' section. It only shows "NO tacked data to display"

Any changes that I am doing to data folder is showing up as a change if I do 'dvc status'. I am able to do 'dvc commit' and 'dvc push' in command line.
issue

But when I installed the extension DVC in VScode. The section 'DVC tracked' doesn't show anything. Also the files in data folder doesn't show any highlight if I make changes to them

issue2

Below is my dvc version details:

`DVC version: 3.30.1 (pip)

Platform: Python 3.8.10 on Windows-10-10.0.19045-SP0
Subprojects:
dvc_data = 2.22.1
dvc_objects = 1.2.0
dvc_render = 0.6.0
dvc_task = 0.3.0
scmrepo = 1.5.0
Supports:
http (aiohttp = 3.9.1, aiohttp-retry = 2.8.3),
https (aiohttp = 3.9.1, aiohttp-retry = 2.8.3)
Config:
Global: C:\Users\DELL\AppData\Local\iterative\dvc
System: C:\ProgramData\iterative\dvc
Cache types: hardlink
Cache directory: NTFS on C:
Caches: local
Remotes: local
Workspace directory: NTFS on C:
Repo: dvc, git
Repo.site_cache_dir: C:\ProgramData\iterative\dvc\Cache\repo\95622101e43987110c926654e24e581a`

@Debasis5 Debasis5 closed this as completed Dec 1, 2023
@shcheklein
Copy link
Member

@Debasis5 hey, was it resolved? just to confirm

@Debasis5
Copy link
Author

Debasis5 commented Dec 2, 2023

@shcheklein Yes, but I am not sure the reason why and still curious. I will write down what I did.

  • For running any Git related commands in my project folder, I was using Gitbash. I was not able to run them in VScode's cmd line, as it use to give a "Git is not recognized as an internal or external command" error. However, since I was using Gitbash, I didn't bother using the VScode cmd line.

  • Yesterday, for some reason I was trying to resolve the Git issue and the solution was to add the Git path to the environment variables ([https://stackoverflow.com/questions/4492979/error-git-is-not-recognized-as-an-internal-or-external-command]).

  • After configuring this and restarting, I saw the DVC TRACKED section started populating the data files.

Note: Even before configuring the Git, the DVC setup was showing as complete with a green checkmark.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants