Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discord doesn't recognize Visual Studio #12

Closed
Cryzuz opened this issue Jun 23, 2022 · 15 comments
Closed

Discord doesn't recognize Visual Studio #12

Cryzuz opened this issue Jun 23, 2022 · 15 comments

Comments

@Cryzuz
Copy link

Cryzuz commented Jun 23, 2022

I have reinstalled your Plugin several times but I can't make it work.
There is the Discord Rich Presence Plugin in the Extensions Tab so it is installed but Discord doesn't recognize it somehow.

@Reavert
Copy link
Owner

Reavert commented Jun 24, 2022

Have you tried restarting Visual Studio after installing the plugin? The plugin may not initialize if it is not done. Sometimes the plugin may not "see" the launch of Visual Studio, but when opening files it starts working.
In addition, can you attach your version of Visual Studio? And, just in case, the version of the installed plugin.

@Cryzuz
Copy link
Author

Cryzuz commented Jun 24, 2022

I have tried to start Discord first and then VS. As this didn't work I did the same more often without success. Same when I start VS first and then Discord.

Plugin Version: 1.3.2
VS Version: 17.2.5 - VS Community 2022 64-bit
Microsoft Net V: 4.8.04084

Hope this helps!

image
image

@Reavert
Copy link
Owner

Reavert commented Jun 24, 2022

What about opening a file? Discord also doesn't react?
Can you also attach this file?
%AppData%\Microsoft\VisualStudio<your_version>\ActivityLog.xml
There should be an error log. It might help me.

@Cryzuz
Copy link
Author

Cryzuz commented Jun 24, 2022

No Discord doesn't react, nothing is shown.
I don't have any error log there, only an activity log.

Activity Log:
ActivityLog.zip

@Reavert
Copy link
Owner

Reavert commented Jun 25, 2022

I didn't find any problems in the ActivityLog.
Could you check something else: did the "Visual Studio Discord RPC" option appear in the "Extensions" menu?
I also made a build with some changes. You can also install it and check it again.
VisualStudioDiscordRPC.Dev17_Debug.zip

Thank you for helping me with testing the extension.

@Cryzuz
Copy link
Author

Cryzuz commented Jun 25, 2022

I have installed the build you have sent me but again no reaction from Discord
Yes I see the "Visual Studio Discord RPC" option in the Extensions menu.

When I click on it, the settings window pops up:
image

@Reavert
Copy link
Owner

Reavert commented Jun 25, 2022

Very interesting . The plugin is installed and initialized successfully. So there is some problem with the document change event.
Can you install this version with diagnostic MessageBox?
VisualStudioDiscordRPC.Dev17.zip

I'm sorry for asking you to test this extension so much.

@Cryzuz
Copy link
Author

Cryzuz commented Jun 25, 2022

Sure. When I switch between Tabs it says "Window changed to: Consumables".
In VS the Plugin recognizes the .cs Sheets but somehow it doesnt get shown in Discord.

I like to help, I want that this works too so you don't have to be sorry :D

@Reavert
Copy link
Owner

Reavert commented Jun 25, 2022

Have you checked the Activity Status settings in discord?
I'm already running out of options, what could be the problem. Everything looks workable, but no.
image

@Cryzuz
Copy link
Author

Cryzuz commented Jun 25, 2022

It's activated.
Am I the only one with the problem? If its only me I have to look up for a solution myself.

@Reavert
Copy link
Owner

Reavert commented Jun 25, 2022

On my other machine, the extension works stably.
It also works "stably" for you, because the tab change event is triggered and immediately after that there should be an update of the Discord RPC status.
Still, it seems to me that the problem is not in the extension.
I'll leave the question open. Perhaps someone else will report such a problem.

@Cryzuz
Copy link
Author

Cryzuz commented Jun 25, 2022

I have reinstalled Discord and suddenly it works.
Thanks for the support, if anyone has the same problem, this is the solution then :)

@Reavert Reavert closed this as completed Jun 25, 2022
@Cryzuz
Copy link
Author

Cryzuz commented Jun 27, 2022

Have found the issue, as soon as you start Discord as admin, it doesn't work anymore.
Then you have to delete Discord and install it again. :)

@GoshiAims
Copy link

Can confirm that running discord as admin causes this, however, I did not need to reinstall.
Running VS2022 as admin seems to fix the issue.

@Reavert
Copy link
Owner

Reavert commented Aug 23, 2022

I have another variation of this bug, which I have not yet learned how to reproduce: even if I do not run the discord with administrator rights, the discord does not recognize the open Visual Studio.
Solved by restarting the Discord.
How to solve this on the extension side: I don't have any options yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants