Comments (17)
Installing the new update solved it, thanks!
from visualstudiodiscordrpc.
So, the extension was updated recently and looks that the error was resolved, thank you!
from visualstudiodiscordrpc.
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.
Also throws this error when starting Visual Studio:
from visualstudiodiscordrpc.
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: 'VisualStudioDiscordRPC.Dev17' Description: Das Objekt des Typs "VisualStudioDiscordRPC.Shared.Plugs.AssetPlugs.NoneAssetPlug" kann nicht in Typ "VisualStudioDiscordRPC.Shared.Plugs.TextPlugs.BaseTextPlug" umgewandelt werden.
System.InvalidCastException: Das Objekt des Typs "VisualStudioDiscordRPC.Shared.Plugs.AssetPlugs.NoneAssetPlug" kann nicht in Typ "VisualStudioDiscordRPC.Shared.Plugs.TextPlugs.BaseTextPlug" umgewandelt werden.
 at VisualStudioDiscordRPC.Shared.Services.PlugService.GetPlugById[TPlug](String id)
 at VisualStudioDiscordRPC.Shared.PackageController.ApplySettings()
 at VisualStudioDiscordRPC.Shared.PackageController.Init()
 at VisualStudioDiscordRPC.Shared.VisualStudioDiscordRPCPackage.<InitializeAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass21_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)
 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.
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.
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.
@Zagrthos I found the reason of your error.
To fix that, replace:
"StatePlug": "NoneAssetPlug",
to:
"StatePlug": "NoneTextPlug",
from visualstudiodiscordrpc.
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.
@1nade Is your error still actual after the installing 1.6.1 extension patch?
from visualstudiodiscordrpc.
yeah, same error and everything
from visualstudiodiscordrpc.
Attach, please, your settings file (%LocalAppData%/VisualStudioDiscordRPC/settings.json)
from visualstudiodiscordrpc.
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.
Attach, please, your settings file (%LocalAppData%/VisualStudioDiscordRPC/settings.json)
here you go:
settings.json
from visualstudiodiscordrpc.
Strange. The file is filled with Null only.
Then I will add processing soon, in case the settings file gets corrupted.
from visualstudiodiscordrpc.
i have vs 2022 enterprise, let me try to install it on community
from visualstudiodiscordrpc.
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)
- Request - Custom status message HOT 1
- Implement selective display of links for repositories. HOT 3
- Implement the ability to not display links of private repositories. HOT 7
- Discord doesn't detect HOT 10
- Support for Microsoft Blend HOT 1
- Support for Discord PTB? HOT 2
- No active file/project HOT 5
- Don't reset the VS 2022 elapsed time to 0 hours after 24 hours HOT 2
- VisualStudioDiscordRPCPackage did not load correctly HOT 2
- Extension doesn't seem to load. HOT 5
- VSIX Installer error HOT 2
- "Package did not load correctly" on direct loading some solutions/projects HOT 30
- Extension fails to load if repository URL is SSH based HOT 2
- Rich presence not updating when switching between multiple VS instances HOT 1
- ARM64 support HOT 2
- Crash when the file name is too long
- Package did not load correctly HOT 1
- Repository Button dont want to give me the link HOT 2
- Add discord canary and PtB support HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from visualstudiodiscordrpc.