BlazorProSnippets icon indicating copy to clipboard operation
BlazorProSnippets copied to clipboard

Reinstalling the VSIX doesn't install snippets

Open EdCharbeneau opened this issue 5 years ago • 11 comments

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

EdCharbeneau avatar Aug 14 '19 19:08 EdCharbeneau

Waiting for response from Microsoft

EdCharbeneau avatar Aug 16 '19 14:08 EdCharbeneau

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

  1. In Visual Studio press ctrl+K, ctrl+B
  2. Choose Languages > HTML
  3. Find blazor, highlight the node and click Remove
  4. Choose Languages > Csharp
  5. Find blazorcode, highlight the node and click Remove

Next, manually add the new snippets

  1. Choose Languages > HTML
  2. Click Add, locate the Blazor folder (path below)
  3. Choose Languages > Csharp
  4. Click Add, locate the BlazorCode folder (path below)
  5. 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.

EdCharbeneau avatar Aug 16 '19 15:08 EdCharbeneau

@gundermanc any idea?

madskristensen avatar Aug 16 '19 18:08 madskristensen

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.

gundermanc avatar Aug 16 '19 18:08 gundermanc

@madskristensen @gundermanc Thanks for looking into this. I'm seeing similar behavior in the VS Extension SDK when the debugging instance is running.

EdCharbeneau avatar Aug 17 '19 02:08 EdCharbeneau

@aditya-kadam Added for visibility

cc: @madskristensen @gundermanc

EdCharbeneau avatar Oct 04 '19 19:10 EdCharbeneau

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 avatar Oct 04 '19 19:10 gundermanc

@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

EdCharbeneau avatar Oct 05 '19 00:10 EdCharbeneau

Repro steps

  1. Repair install of Visual Studio Preview 16.4
  2. Restarted
  3. Choose web development
  4. Closed VS
  5. Installed old version 1.0.2 https://github.com/EdCharbeneau/BlazorProSnippets/releases/tag/1.0.2
  6. 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

  1. Close VS
  2. Automatic update triggered => Install 1.1.6 update: https://github.com/EdCharbeneau/BlazorProSnippets/releases/tag/1.1.6
  3. Re-Open VS
  4. 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

EdCharbeneau avatar Oct 07 '19 17:10 EdCharbeneau

I think we can all agree that snippets are just broken in Visual Studio

https://developercommunity.visualstudio.com/search?space=8&q=snippet

EdCharbeneau avatar Mar 24 '21 18:03 EdCharbeneau

@EdCharbeneau agreed

/cc @mikadumont

madskristensen avatar Mar 24 '21 18:03 madskristensen