slycelote / caide

Automates certain common tasks that you do during programming competitions
84 stars 18 forks source link

caide doesn't open in Visual Studio 2019 #24

Closed ririyad closed 4 years ago

ririyad commented 4 years ago

I installed vscaide (version 2.4.1) extension in Visual Studio 2019. Restarted VS and tried again, caide doesn't open.

1

slycelote commented 4 years ago

Yes, unfortunately VsCaide is currently incompatible with VS2019. I recommend using VS2017 for the time being.

slycelote commented 4 years ago

@ririyad Apparently VS made some changes and the extension is compatible again. Could you try with the latest VS version? Mine is 16.5.4. Edit: You'll need to click "allow synchronous loading" in Visual Studio when it prompts you. I'm working on getting rid of deprecated APIs so that it's not needed.

ririyad commented 4 years ago

@slycelote, just updated Visual Studio to 16.5.4. VsCaid was already installed. After finishing update, tried again, nothing happened. Then I uninstalled and downloaded again from the Extension Manager. Same result as before.

image

slycelote commented 4 years ago

Could you try going to Tools -> Options -> Environment -> Extensions, and making sure that "Allow synchronous autoload of extensions" is selected?

ririyad commented 4 years ago

You were right. After allowing synchronous autoload of extension, VsCaide now appears. Now while creating a caide solution an Application Error message is popping up.

image

slycelote commented 4 years ago

Hmm, interesting, so the whole Visual Studio crashes? Does it happen with VS 2017 too? Does this happen immediately after you click "Create solution" button or do you get to choose the directory?

ririyad commented 4 years ago

Exactly. It crashes with VS 2019 when I click 'Create Solution', show the directory and try to save the solution in that directory. And no, I didn't face this issue for VS 2017. Although it took a bit more time to load the extension initially, it worked fine with 2017 version.

slycelote commented 4 years ago
ririyad commented 4 years ago

image

image

  <entry>
    <record>601</record>
    <time>2020/04/29 12:42:39.855</time>
    <type>Warning</type>
    <source>SyncAutoLoadedExtensions</source>
    <description>Extension &apos;VsCaide&apos; uses the &apos;synchronous autoload&apos; feature of Visual Studio. This feature will no longer be supported in a future Visual Studio 2019 update, at which point this extension will not work. Please contact the extension vendor to get an update. (UI Context: {adfc4e64-0397-11d1-9f4e-00a0c911004f} Package Guid: {8e97a36f-88cc-49ee-8e47-df660b4c7d83})</description>
  </entry>
slycelote commented 4 years ago

Yes, some pending Windows / VS updates could be the cause. Anyway, glad it's working for you! The usage of deprecated synchronous API will be fixed in the next VsCaide release.