1thenikita / Visual-Studio

A Discord Rich Presence extension for both Visual Studio 2017 and 2019.
https://marketplace.visualstudio.com/items?itemName=VisualDevelopment.drpcvs2019
GNU Affero General Public License v3.0
92 stars 32 forks source link

Extension fails to load #46

Open Lufou opened 3 years ago

Lufou commented 3 years ago

Bug description:

The extension fails to load on VS startup.

Here is the stacktrace from ActivityLog.xml:

  <entry>
    <record>717</record>
    <time>2021/03/06 12:46:21.918</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [DiscordRPforVSPackage]Source: &apos;mscorlib&apos; Description: Could not load file or assembly &apos;Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;System.IO.FileNotFoundException: Could not load file or assembly &apos;Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; ou une de ses d&#x00E9;pendances. Le fichier sp&#x00E9;cifi&#x00E9; est introuvable.&#x000D;&#x000A;Nom de fichier&#x00A0;: &apos;Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos;&#x000D;&#x000A;   &#x00E0; System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)&#x000D;&#x000A;   &#x00E0; System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)&#x000D;&#x000A;   &#x00E0; System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)&#x000D;&#x000A;   &#x00E0; System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)&#x000D;&#x000A;&#x000D;&#x000A;AVT&#x00A0;: la journalisation de liaison d&apos;assembly est d&#x00E9;sactiv&#x00E9;e.&#x000D;&#x000A;Pour activer la journalisation des &#x00E9;checs de liaison d&apos;assembly, attribuez la valeur 1 &#x00E0; la valeur de Registre [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD).&#x000D;&#x000A;Remarque&#x00A0;: une certaine perte de performance est associ&#x00E9;e &#x00E0; l&apos;enregistrement dans le journal des &#x00E9;checs de liaison d&apos;assembly.&#x000D;&#x000A;Pour d&#x00E9;sactiver cette fonctionnalit&#x00E9;, supprimez la valeur de Registre [HKLM\Software\Microsoft\Fusion!EnableLog].&#x000D;&#x000A;</description>
    <guid>{AB4ABBBF-2C58-4FB3-8D6F-651811A796AA}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo></errorinfo>
  </entry>

Reproduction steps:

Steps to reproduce the behavior:

  1. Have the extension installed
  2. Launch Visual Studio 2017

Expected behavior:

The rich presence is showing on Discord and no error on startup.

Screenshots:

https://i.imgur.com/jOGJzVB.png

Desktop (please complete the following information):

Additional context

None.

osyu commented 3 years ago

After checking ActivityLog.xml it turns out I actually have the error in this issue, rather than the one in issue #23 (whoops).

I tried uninstalling the previous version and then installing the VSIX from the GitHub release, but it still results in the same crash.

NotKyoyo commented 3 years ago

I've got the same issue as well

ghost commented 3 years ago

me too

VDoring commented 3 years ago

me too

PoweredByAndrox commented 3 years ago

the same... this is broken is about 4 months ago for me.