aws / aws-toolkit-visual-studio

AWS Toolkit for Visual Studio - a plugin to interact with AWS
https://aws.amazon.com/visualstudio/
Apache License 2.0
107 stars 29 forks source link

AWS Toolkit extension does not appear in the Visual Studio Extension Manager #451

Open awschristou opened 1 month ago

awschristou commented 1 month ago

Symptoms

After installing the AWS Toolkit extension, your instance of Visual Studio can get in a state where the Extension Manager does not list the AWS Toolkit extension under the list of Installed extensions.

Afterwards, you might have some of the following behaviors:

Solution

Have Visual Studio re-generate some of its internal cache files

It is possible that some of Visual Studio's internal bookkeeping got out of sync when an extension is installed. Visual Studio will rebuild these files the next time you launch Visual Studio.

After this, the extension should be listed as installed, and the AWS Extension should no longer report one of the error messages listed at the top of this issue.

After working through these steps, please share in the comments below whether or not you continue to see the error messages.

Additional solutions Here are some actions you can run to try to bring Visual Studio back into a good state. ### Repair Visual Studio and Restart your system * Close all running instances of Visual Studio. * From the Windows start menu, Launch **Visual Studio Installer**. * Run **Repair** on the affected installation(s) of Visual Studio. This will allow Visual Studio to rebuild its index of installed extensions. * Restart Windows * After rebooting, Visual Studio’s extension manager should list the extension as installed ### Manually uninstall the extension, then re-install it * Close all running instances of Visual Studio. * From the Windows start menu, **Developer Command Prompt for VS XXXX**, where XXXX is your relevant Visual Studio version. * In the developer command prompt, uninstall the extension using the VSIX Installer by running one of these commands: * For the VS 2022 extension: `vsixinstaller.exe /uninstall:0B82CB16-0E52-4363-9BC0-61E758689176` * For the VS 2017 and 2019 extension: `vsixinstaller.exe /uninstall:12ed248b-6d4a-47eb-be9e-8eabea0ff119` * Restart Windows * After rebooting, try to install the AWS Toolkit extension again, either directly from within the Visual Studio Extension manager, or by downloading the latest version from the marketplace. ### Check the VSIX Installation Log Visual Studio extensions are installed using a VSIX Installer. At the end of the installation, there is a link to view the installation log. This log is produced by the VSIX installer. ![image](https://github.com/user-attachments/assets/b003bb2c-5770-44be-ba89-8db5fa990984) The VSIX installation logs are named `%temp%\dd_VSIXInstaller_XXX.log`, where `XXX` is a date/time stamp. If you continue to see this extension missing from your Extension Manager but your installation is reporting success, check these logs for some clues. Please share this installation log by attaching it to a comment down below, or in a new issue. ## Possible Causes * Visual Studio’s extension installer may have had difficulties properly installing the extension * Visual Studio’s internal indexes that reference the installed extensions may have gone out of sync with the folders containing the installed extensions on your disk. * Between version 1.53.0.0 and 1.54.0.0, the AWS Toolkit extension was renamed (from “AWS Toolkit for Visual Studio 2022” to “AWS Toolkit with Amazon Q”). This may have caused some problems with how Visual Studio manages its installed extensions.
genifycom commented 1 month ago

Please note Christopher that most of our clients have policies that currently disallow the use of AI near proprietary code.

I have reported this before, but it means that we MUST have the option to disallow Amazon Q, CoPilot etc from our development environments. You MUST make it optional to install any AI components otherwise we will not be able to use these tools. Clients do not want the risk of having AI scrape commercial code and these precautions are highly warranted for legal and security reasons.

Thanks

genifycom commented 1 month ago

I have manually uninstalled the AWS Tookit VSIX and reinstalled it. No issues with either, but after starting Microsoft Visual Studio Community 2022 (64-bit) - Current the AWS Toolkit with Amazon Q is still not installed.

awschristou commented 1 month ago

Hi @genifycom , this comment is not related to the issue where the extension is not reported as installed. This issue is intended to provide guidance around that behavior, and additional topics make it hard for others to find the information they need. Can you please move that comment into a new issue (which we can then address), and then delete your comment from this issue?