Giter Club home page Giter Club logo

Comments (17)

Zagrthos avatar Zagrthos commented on May 24, 2024 1

Installing the new update solved it, thanks!

from visualstudiodiscordrpc.

Kaffu093 avatar Kaffu093 commented on May 24, 2024 1

So, the extension was updated recently and looks that the error was resolved, thank you!

from visualstudiodiscordrpc.

carrved avatar carrved commented on May 24, 2024 1

Is this the first time you installed an extension? Or did you have it installed before and you used it, and then updated and everything broke?

it fixed itself after i reinstalled windows, i guess it was just a bug with my pc 🤷 thank you for helping

from visualstudiodiscordrpc.

carrved avatar carrved commented on May 24, 2024

Also throws this error when starting Visual Studio:

image

from visualstudiodiscordrpc.

Zagrthos avatar Zagrthos commented on May 24, 2024

Same error here using VS 17.7.5
Log output is this:

<entry> <record>1610</record> <time>2023/10/12 20:16:26.378</time> <type>Error</type> <source>VisualStudio</source> <description>SetSite failed for package [VisualStudioDiscordRPCPackage]Source: &apos;VisualStudioDiscordRPC.Dev17&apos; Description: Das Objekt des Typs &quot;VisualStudioDiscordRPC.Shared.Plugs.AssetPlugs.NoneAssetPlug&quot; kann nicht in Typ &quot;VisualStudioDiscordRPC.Shared.Plugs.TextPlugs.BaseTextPlug&quot; umgewandelt werden.&#x000D;&#x000A;System.InvalidCastException: Das Objekt des Typs &quot;VisualStudioDiscordRPC.Shared.Plugs.AssetPlugs.NoneAssetPlug&quot; kann nicht in Typ &quot;VisualStudioDiscordRPC.Shared.Plugs.TextPlugs.BaseTextPlug&quot; umgewandelt werden.&#x000D;&#x000A; at VisualStudioDiscordRPC.Shared.Services.PlugService.GetPlugById[TPlug](String id)&#x000D;&#x000A; at VisualStudioDiscordRPC.Shared.PackageController.ApplySettings()&#x000D;&#x000A; at VisualStudioDiscordRPC.Shared.PackageController.Init()&#x000D;&#x000A; at VisualStudioDiscordRPC.Shared.VisualStudioDiscordRPCPackage.&lt;InitializeAsync&gt;d__2.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A; at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A; at Microsoft.VisualStudio.Shell.AsyncPackage.&lt;&gt;c__DisplayClass21_0.&lt;&lt;Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize&gt;b__1&gt;d.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A; at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A; at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)&#x000D;&#x000A; at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)</description> <guid>{5CD3D640-3D33-45EA-8C5B-6DE981FF9900}</guid> <hr>0x80004002 - E_NOINTERFACE</hr> <errorinfo></errorinfo> </entry>

from visualstudiodiscordrpc.

Reavert avatar Reavert commented on May 24, 2024

Perhaps this is due to a change in the storage location of the settings.
Can you also attach a file that is located at %LocalAppData%/VisualStudioDiscordRPC/settings.json?
I would like to make sure that everything is fine with the settings.

from visualstudiodiscordrpc.

Zagrthos avatar Zagrthos commented on May 24, 2024

I attach mine too, thanks for the extension btw 🙂
settings.json

Edit:
Interesting, it says version 1.5.1 though I downloaded the newest from the extension store inside VS...

from visualstudiodiscordrpc.

Reavert avatar Reavert commented on May 24, 2024

@Zagrthos I found the reason of your error.
To fix that, replace:
"StatePlug": "NoneAssetPlug",
to:
"StatePlug": "NoneTextPlug",

from visualstudiodiscordrpc.

Reavert avatar Reavert commented on May 24, 2024

But it seems to me that @1nade has another problem.
I'm still figuring out your problem, but if this fix or upgrade to 1.6.1 helps you too, please let me know.

from visualstudiodiscordrpc.

Reavert avatar Reavert commented on May 24, 2024

@1nade Is your error still actual after the installing 1.6.1 extension patch?

from visualstudiodiscordrpc.

carrved avatar carrved commented on May 24, 2024

yeah, same error and everything

from visualstudiodiscordrpc.

Reavert avatar Reavert commented on May 24, 2024

Attach, please, your settings file (%LocalAppData%/VisualStudioDiscordRPC/settings.json)

from visualstudiodiscordrpc.

Kaffu093 avatar Kaffu093 commented on May 24, 2024

I'm having the same problem, here is my settings.json:

{
  "RichPresenceEnabled": true,
  "Language": "English",
  "LargeIconPlug": "ExtensionIconPlug",
  "SmallIconPlug": "VisualStudioVersionIconPlug",
  "DetailsPlug": "FileNameTextPlug",
  "StatePlug": "SolutionNameTextPlug",
  "TimerPlug": "FileScopeTimerPlug",
  "FirstButtonPlug": "GitRepositoryButtonPlug",
  "SecondButtonPlug": "NoneTextPlug",
  "ApplicationID": "914622396630175855",
  "UpdateTimeout": 1000,
  "Version": "1.0.0",
  "UpdateNotifications": true,
  "TranslationsPath": "Translations/"
}

from visualstudiodiscordrpc.

carrved avatar carrved commented on May 24, 2024

Attach, please, your settings file (%LocalAppData%/VisualStudioDiscordRPC/settings.json)

here you go:
settings.json

from visualstudiodiscordrpc.

Reavert avatar Reavert commented on May 24, 2024

Strange. The file is filled with Null only.
Then I will add processing soon, in case the settings file gets corrupted.

from visualstudiodiscordrpc.

carrved avatar carrved commented on May 24, 2024

i have vs 2022 enterprise, let me try to install it on community

from visualstudiodiscordrpc.

Reavert avatar Reavert commented on May 24, 2024

Is this the first time you installed an extension? Or did you have it installed before and you used it, and then updated and everything broke?

from visualstudiodiscordrpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.