BlazorProSnippets
BlazorProSnippets copied to clipboard
Reinstalling the VSIX doesn't install snippets
Currently if you uninstall or reinstall the snippets they will not reappear in Visual Studio.
If you are experiencing this issue, please up vote the ticket on the Visual Studio Developer Portal. https://developercommunity.visualstudio.com/content/problem/745995/cannot-update-or-reinstalling-vsix-installed-snipp.html
Waiting for response from Microsoft
Troubleshooting tips:
You have installed a previous version of the snippets, you have updated to a new version or un/re-installed.
No Blazor Snippets appear, or no NEW Blazor snippets appear.
First, removing the old snippets
- In Visual Studio press
ctrl+K, ctrl+B
- Choose Languages > HTML
- Find
blazor
, highlight the node and click Remove - Choose Languages > Csharp
- Find
blazorcode
, highlight the node and click Remove
Next, manually add the new snippets
- Choose Languages > HTML
- Click Add, locate the
Blazor
folder (path below) - Choose Languages > Csharp
- Click Add, locate the
BlazorCode
folder (path below) - Close Snippet Manager
path: drive:\Users\<user>\AppData\Local\Microsoft\VisualStudio\16.0_f9317699\Extensions\<guid?>\
Note: <guid?> this changes on each install, I think this could be the underlying issue.
Sorry for the complicated steps, this is what the VSIX is "supposed to" eliminate but I believe it has a bug in VS Preview. This has been reported to the proper contacts at Microsoft.
@gundermanc any idea?
I don't have to much familiarity with this area unless it's TextMate snippets. Aditya (adityk) is probably the most up to date. I'll ping him and ask for a Github username.
@madskristensen @gundermanc Thanks for looking into this. I'm seeing similar behavior in the VS Extension SDK when the debugging instance is running.
@aditya-kadam Added for visibility
cc: @madskristensen @gundermanc
I think Aditya has been occupied with another investigation. Can you please file an issue on Developer Community so this gets more attention?
+@olegtk in case he has any ideas.
@gundermanc Looks like this issue has been reported to the Developer Community portal already and has been closed due to low priority.
https://developercommunity.visualstudio.com/content/problem/153919/vsix-snippets-problem.html
My ticket:
https://developercommunity.visualstudio.com/content/problem/745995/cannot-update-or-reinstalling-vsix-installed-snipp.html
Repro steps
- Repair install of Visual Studio Preview 16.4
- Restarted
- Choose web development
- Closed VS
- Installed old version 1.0.2 https://github.com/EdCharbeneau/BlazorProSnippets/releases/tag/1.0.2
- Test usage:
bform + tab
OUT:
<EditForm Model="model" OnValidSubmit="HandleValidSubmit">
<DataAnnotationsValidator />
<ValidationSummary />
<button type="submit">Submit</button>
</EditForm>
bcode + tab
OUT: Nothing, this is added in version 1.1.6
ctrl K+B
- Close VS
- Automatic update triggered => Install 1.1.6 update: https://github.com/EdCharbeneau/BlazorProSnippets/releases/tag/1.1.6
- Re-Open VS
- Test Usage:
bfrom + tab
bhelp + tab
OUT: Nothing, snippets are no longer available
ctrl K+B
Snippets show error icon
11: Update to 1.1.7: https://github.com/EdCharbeneau/BlazorProSnippets/releases/tag/1.1.7 12: Same results as 1.1.6
I think we can all agree that snippets are just broken in Visual Studio
https://developercommunity.visualstudio.com/search?space=8&q=snippet
@EdCharbeneau agreed
/cc @mikadumont