EdCharbeneau / BlazorProSnippets

A collection of Blazor snippets for .NET ninjas.
Other
23 stars 4 forks source link

Reinstalling the VSIX doesn't install snippets #2

Open EdCharbeneau opened 5 years ago

EdCharbeneau commented 5 years ago

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 commented 5 years ago

Waiting for response from Microsoft

EdCharbeneau commented 5 years ago

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.

madskristensen commented 5 years ago

@gundermanc any idea?

gundermanc commented 5 years ago

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.

EdCharbeneau commented 5 years ago

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

EdCharbeneau commented 5 years ago

@aditya-kadam Added for visibility

cc: @madskristensen @gundermanc

gundermanc commented 5 years ago

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.

EdCharbeneau commented 5 years ago

@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 commented 5 years ago

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 commented 3 years ago

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

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

madskristensen commented 3 years ago

@EdCharbeneau agreed

/cc @mikadumont