-
Notifications
You must be signed in to change notification settings - Fork 256
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
Analyzer template not working for accounts with long user names #601
Comments
I believe this is caused by the path being too long. Can you tell me the total number of characters appearing in the value for |
thanks @sharwell , it is:
|
For me, the path is:
This is 250 characters, so without special system configuration I would expect the template to work for a user with a username up to 13 characters. |
OK thanks , how do I do that ? (without changing my username) |
A proper fix requires modification to the templates themselves, or fixing the IDE to stop producing paths this long in the template cache. In the meantime, the three ways to fix this would be:
|
Sorry but I can't see how any of these solutions will work for me, I have never had these kind of issues with any other template. Is there a way to provide us with a project based on the template without any modifications that builds ? |
Every template has a limit on the username length. This just happens to be the first one you used where the limit was less than 14. The difficult part now is figuring out exactly how long we need to support.
Here are the templates for the two files that failed to generate: https://github.com/dotnet/roslyn-sdk/blob/master/src/VisualStudio.Roslyn.SDK/Roslyn.SDK/ProjectTemplates/CSharp/Diagnostic/Test/Verifiers/CSRefactoringVerifier%601+Test.cs You'll need to make the following changes:
|
This is an easy way to get a couple more characters allowed in long user names. Related to dotnet#601
I just tried again to create C# analyzer codefix project with the new Version 16.8.0 Preview 2.0
I get:
I have now been trying to simply create and build the c# analyzer template which should be trivial for over a month with no luck. Many issues have been opened and get closed without this resolved.
The text was updated successfully, but these errors were encountered: