JohnstonCode / svn-scm

SVN support for VS Code
MIT License
208 stars 84 forks source link

New files not added to the repository #1620

Closed martinguenther closed 7 months ago

martinguenther commented 7 months ago

Issue

Newly added files in the project tree are not added to the repository. I only see modified files in the source control panel.

I reinstalled Tortoise SVN making sure, that Command Line Tools is checked. Tortoise SVN is located at C:\Program Files\TortoiseSVN\bin which is available in PATH

It makes no difference if VS Code is run as user or as administrator.

After manually adding files to SVN via Windows File Explorer > Context Menu > SVN > Add they appear in changes.

I'm almost sure it's not a bug... Probably some setting. But I could not find the solution by myself. Any help greatly appreciated.

Steps to Reproduce

  1. Add a new file to project
  2. Check source control tab. The new file is missing in the list.

SVN Output

Using svn "1.14.3" from "C:\Program Files\TortoiseSVN\bin\svn.exe"
[xyzReact]$ svn stat --xml --no-ignore --ignore-externals --show-updates
[xyzReact]$ svn stat --xml --no-ignore --ignore-externals
[xyzReact]$ svn stat --xml --no-ignore --ignore-externals
[xyzReact]$ svn stat --xml --no-ignore --ignore-externals
[xyzReact]$ svn stat --xml --no-ignore --ignore-externals

Screenshots

2024-01-27_00h33_30 2024-01-27_00h34_50

martinguenther commented 7 months ago

After submitting this issue the lights went on...

I found that adding folders via Windows File Explorer context menu did not recursively add the files in the folder - only the folder itself. That caught my attention. And after some research as to what could be causing it, I found that there were some global ignores in some parts of the project structure.

After removing all ignores recursively, and newly adding only the ones needed (e.g. node_modules, ...), the issue was resolved. Now I see all changes in the source control tab.

Maybe this might help someone... someday... :-)