conan-io / conan-vs-extension

Conan Extension for Visual Studio
https://marketplace.visualstudio.com/items?itemName=conan-io.conan-vs-extension
MIT License
59 stars 34 forks source link

Automatic updates automatically happening after installing dev builds. #139

Closed Gernatch closed 5 years ago

Gernatch commented 5 years ago

If you open visual studio after immediately installing a dev build, it automatically updates to latest with prompt and then if you reopen visual studio in any case again it will have latest version.

jgsogo commented 5 years ago

(I'm not sure if I'm understanding the issue properly)

The command conan install is triggerend automatically when you open a solution with a Conan project, and by default it will update all the requirements. If this is not the desired behavior, there are some configuration options you can use:

image

Setting "Update policy" to "False" will prevent the extension adding the --update parameter to the conan install call, so it won't download new versions/revisions from the remotes.

kkripa84 commented 5 years ago

@jgsogo The issue here is after the installation of the extension. If a user installs Conan extension (developer version) not from the Visual Studio Market place, then once the extension is installed, it automatically queues the extension to update to the latest version which is 1.1.134.

If the user re-opens the Visual Studio it would have already updated to version 1.1.134 already which is not needed by all users.

NOTE:

  1. Automatic check for updates/extension is unchecked in Visual Studio settings.
  2. If I uncheck Automatic updates for this extension option for Conan separately, still it does not help as gets into the queue for the update before even unchecking the option.

image

  1. I installed version: 1.0.166 from here.

It seems by default the extension is queued for updates to the latest version.

image

LBHawk commented 5 years ago

This can be disabled in the Visual Studio settings -- I don't think this is an issue with the actual extension. You can set the default behavior by navigating to:

Tools > Extensions & Updates > "Change your Extensions and Updates settings" > Uncheck "Automatically check for updates".

kkripa84 commented 5 years ago

@LBHawk as mentioned above in Note, it is already unchecked for all extensions Visual Studio settings. I will check if there is anything else missing. I was also not really sure if it is an issue with actual extension.

kkripa84 commented 5 years ago

We noticed it looks okay with all settings unchecked as follows:

image

If only unchecked for "All user extensions", it still updates Conan Extension.

jgsogo commented 5 years ago

Hi, I think this has nothing to do with this extension, it's about how VS handles updates.

Googling I've found that you have to run VS as administrator (not being admin yourself, but "running as administrator") in order to see/change the value of the "Automatically update extensions" checkbox. Depending on how you have installed your extensions you can get more fine-grained control over updates.

SSE4 commented 5 years ago

It's nothing to be done in the extension, we have no control over update policy, it's controlled only by Visual Studio settings.