-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Error trying to update Repo, can't read MissingPropertySerializationConfigurationAnalyzerTest.vb #11758
Comments
I was able to resolve this issue by adding longpaths = true to my config. prior to that I had enabled long paths in windows via the registry. |
@elachlan can you be more explicit as to what config file the line needs to be added to. |
Your local git config. Also you need to enable longpaths in windows: |
@elachlan did all those things and it still didn't work completely. Git works, merge works but Visual Studio Community can't read MissingPropertySerializationConfigurationAnalyzerTest.vb. I moved repo directory to C:\Repo, deleted artifacts directory and then everything worked. Thanks, this should be documented if it's not possible to shorten path length. |
.NET version
Microsoft Visual Studio Community 2022
Version 17.11.0 Preview 5.0
VisualStudio.17.Preview/17.11.0-pre.5.0+35118.90
Microsoft .NET Framework
Version 4.8.09032
Installed Version: Community
Did it work in .NET Framework?
N/A
Did it work in any of the earlier releases of .NET Core or .NET 5+?
N/A
Issue description
unable to create file src/System.Windows.Forms.Analyzers.VisualBasic/tests/UnitTests/System.Windows.Forms.Analyzers.VisualBasic.Tests/System/Windows/Forms/Analyzers/MissingPropertySerializationConfiguration/MissingPropertySerializationConfigurationAnalyzerTest.vb: Filename too long
After running below from ADMIN command prompt
Start-Process -Verb RunAs "git" "config","core.longpaths","true"
The error changes to
Severity Code Description Project File Line Suppression State Details
Error (active) IDE1100 Error reading content of source file
Steps to reproduce
After sync Main repo no longer can commit changes.
Unable to fix using
PS C:\Users\PaulM\Source\Repos\winforms> git fetch origin
PS C:\Users\PaulM\Source\Repos\winforms> git reset --hard origin/master
error: unable to create file src/System.Windows.Forms.Analyzers.VisualBasic/tests/UnitTests/System.Windows.Forms.Analyzers.VisualBasic.Tests/System/Windows/Forms/Analyzers/MissingPropertySerializationConfiguration/MissingPropertySerializationConfigurationAnalyzerTest.vb: Filename too long
fatal: Could not reset index file to revision 'origin/master'.
The text was updated successfully, but these errors were encountered: