iCrawl / discord-vscode

🖋️ Update your discord status with a rich presence
https://marketplace.visualstudio.com/items?itemName=icrawl.discord-vscode
MIT License
1.17k stars 1.6k forks source link

Client Discord doesn't detected via RPC #77

Closed mortim closed 6 years ago

mortim commented 6 years ago

Hi ! I have a problem, the Rich Presence isn't detected on Visual Studio Code (I'm using Ubuntu Budgie 18.04) , I'm not sure that the problem is coming from Discord, because it works perfectly on Spotify

Screen: https://screenshotscdn.firefoxusercontent.com/images/dc4b7aa8-baab-484a-a369-f031228324d3.png

iCrawl commented 6 years ago

66

Spotify Rich Presence is an official Discord implementation so its not comparable. Discord does a very poor job when implementing RPC for Ubuntu, nothing I can do.

mortim commented 6 years ago

okey thanks

Stapleton commented 5 years ago

I found a solution to the extension not working on Ubuntu Budgie 18.04. Don't install Discord from the software centre. If you have, uninstall it. Go to https://discordapp.com mouse over "Download for Linux" then hit ~.deb` [Direct Link] Open your downloads folder, right click and hit "Open Tilix/(some terminal emulator) here" and then paste in the following

# This first
dpkg -i discord*.deb
# If it finishes with an error basically saying it cannot finish
# because its missing libc++1, then do the following
sudo apt install --fix-broken

Installing the actual package and not the snap package is what made it work for me like a charm. Makes it seem like snap's packaging either strips features or isolates the app to the extent some stuff either doesn't work or is flaky.

dakyskye commented 5 years ago

I found a solution to the extension not working on Ubuntu Budgie 18.04. Don't install Discord from the software centre. If you have, uninstall it. Go to https://discordapp.com mouse over "Download for Linux" then hit ~.deb` [Direct Link] Open your downloads folder, right click and hit "Open Tilix here" and then paste in the following

# This first
dpkg -i discord-0.0.5.deb
# If it finishes with an error basically saying it cannot finish
# because its missing libc++1, then do the following
sudo apt --fix-broken install

Installing the actual package and not the snap package is what made it work for me like a charm. Makes it seem like snap's packaging either strips features or isolates the app to the extent some stuff either doesn't work or is flaky.

Thank you @OscarXcore for solution and @iCrawl for referencing this to me !

Stapleton commented 5 years ago

No worries! I noticed that when you download the .deb off of the discord website, it opens the software centre. Anything that is installed in the software centre isn't the actual package, the .deb just links to the snap version unless you install the .deb with dpkg.

kalkafox commented 5 years ago

I found a solution to the extension not working on Ubuntu Budgie 18.04. Don't install Discord from the software centre. If you have, uninstall it. Go to https://discordapp.com mouse over "Download for Linux" then hit ~.deb` [Direct Link] Open your downloads folder, right click and hit "Open Tilix here" and then paste in the following

# This first
dpkg -i discord-0.0.5.deb
# If it finishes with an error basically saying it cannot finish
# because its missing libc++1, then do the following
sudo apt --fix-broken install

Installing the actual package and not the snap package is what made it work for me like a charm. Makes it seem like snap's packaging either strips features or isolates the app to the extent some stuff either doesn't work or is flaky.

One thing to note as well: Make sure you also do NOT have Visual Studio Code installed on the Software Center. Just had this same issue, but I was able to fix it.

Go to the Visual Studio Code website and download VSCode. Direct link

In your Downloads folder, run the following in a Terminal.

sudo dpkg -i code*.deb
sudo apt install --fix-broken #incase packages are missing

You should be all set now.

gregistech commented 5 years ago

sudo apt --fix-broken install is not correct, I had to use sudo apt install --fix-broken

kalkafox commented 5 years ago

@thegergo02 Goodness me, I'm very sorry about that. I was half-assed tired.

Fixed now.

Stapleton commented 5 years ago

Fixed my comment as well @thegergo02

RyanTheDevelopan commented 5 years ago

Um, I'm starting to experience the same problem. I'm using Windows 7 Ultimate.

Stapleton commented 5 years ago

Try starting discord and VSCode both as Administrator

Blaze135 commented 4 years ago

I have problem with connect to discord https://gyazo.com/8a41e2bf56965135aaf5170d9c1db808

HPaulson commented 4 years ago

I'd like to stress the comment made here. Basic fix: Don't use Software Installer. For Discord OR vscode.

Pverte commented 4 years ago

It’s ok for me, I downloaded manually and now it’s work

danbulant commented 4 years ago

Don't use Software Installer

Don't forget that this is an issue with snap based installers (like in Ubuntu). Other software centers which don't use snaps usually uses the deb package, meaning the installation will work normally.

Snaps are pretty isolated from system, nearly like running a VM. They're more secure, but also more limited and some features like rich presence might not work.

iDevoid commented 4 years ago

has anyone faced the same problem on Fedora?

kavinvalli commented 4 years ago

I am on a Mac. How do I solve the issue? I downloaded the app from their website

kavinvalli commented 4 years ago

I am on a Mac. How do I solve the issue? I downloaded the app from their website

It ended up connecting after I reinstalled the extension

RCout1nho commented 4 years ago

i'm on ubuntu 20.04 and i have the rpc connection problem, anyone can help me?

aliredahajj commented 4 years ago

I have the same error but I am on windows 10 home

RCout1nho commented 4 years ago

i'm on ubuntu 20.04 and i have the rpc connection problem, anyone can help me?

I resolved it, i just installed vscode and discord from oficial sites and install with dpkg

brendan-27 commented 4 years ago

Just restarting my pc worked for me.

dinogomez commented 3 years ago

i'm on ubuntu 20.04 and i have the rpc connection problem, anyone can help me?

@RCout1nho try following @Stapleton fix

# This first
dpkg -i discord-0.0.5.deb
# If it finishes with an error basically saying it cannot finish
# because its missing libc++1, then do the following
sudo apt install --fix-broken

I removed both VSCODE and Discord from the pre-installed packages and redownloaded them fresh from their official websites then Discord Presence started to work.

dinogomez commented 3 years ago

@RCout1nho you can uninstall pre-installed discord by using this command. sudo snap remove discord

ElnuDev commented 3 years ago

TL;DR: If this isn't working for you:

  1. If you installed Discord through Ubuntu Software, uninstall it.
  2. Reinstall Discord with the download directly from Discord's website.
  3. If you installed Visual Studio Code through Ubuntu Software, uninstall it.
  4. Reinstall Visual Studio Code directly from Visual Studio's website.
  5. If you get the error "Failed to install file: not supported" from Ubuntu Software when installing Discord or Visual Studio Code directly from their websites, use the GDebi Package Installer instead. It usually installs properly when Ubuntu Software fails, and when it fails it gives a detailed error.
DeveloperPY-git commented 3 years ago

it was helpful thanks

HeySkidee commented 3 years ago

I uninstalled both discord and vs code from ubuntu software and then installed them from the official websites It worked for me..Thanks :)

Avnoor-Gamerz commented 3 years ago

I found a solution to the extension not working on Ubuntu Budgie 18.04. Don't install Discord from the software centre. If you have, uninstall it. Go to https://discordapp.com mouse over "Download for Linux" then hit ~.deb` [Direct Link] Open your downloads folder, right click and hit "Open Tilix/(some terminal emulator) here" and then paste in the following

# This first
dpkg -i discord-0.0.5.deb
# If it finishes with an error basically saying it cannot finish
# because its missing libc++1, then do the following
sudo apt install --fix-broken

Installing the actual package and not the snap package is what made it work for me like a charm. Makes it seem like snap's packaging either strips features or isolates the app to the extent some stuff either doesn't work or is flaky.

what will for windows

Stapleton commented 3 years ago

what will for windows

Run them as admin. A proper solution for windows should be made into a new issue.

Th3Ph4nt0m commented 3 years ago

I found a solution to the extension not working on Ubuntu Budgie 18.04. Don't install Discord from the software centre. If you have, uninstall it. Go to https://discordapp.com mouse over "Download for Linux" then hit ~.deb` [Direct Link] Open your downloads folder, right click and hit "Open Tilix/(some terminal emulator) here" and then paste in the following

# This first
dpkg -i discord-0.0.5.deb
# If it finishes with an error basically saying it cannot finish
# because its missing libc++1, then do the following
sudo apt install --fix-broken

Installing the actual package and not the snap package is what made it work for me like a charm. Makes it seem like snap's packaging either strips features or isolates the app to the extent some stuff either doesn't work or is flaky.

Thank you soooo much!

I have a similar solution:

  1. Open Discord
  2. Remove Discord via "Ubuntu Software" (While Discord is still opened!)
  3. Wait until the store is finished
  4. Close Discord
  5. Open Discord again

This worked for me!

Peresh commented 3 years ago

For OS X Big Sur, grant the vscode "Full Disk Access" may help.

Just go Sustem Preferences -> Security & Privacy -> Full Disk Access -> Add the vscode

Avnoor-Gamerz commented 3 years ago

Ok

On Fri, 5 Feb, 2021, 11:40 am Peresh Cheng, notifications@github.com wrote:

For OS X Big Sur, grant the vscode "Full Disk Access" may help.

Just go Sustem Preferences -> Security & Privacy -> Full Disk Access -> Add the vscode

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/iCrawl/discord-vscode/issues/77#issuecomment-773815722, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR4T67GRRSWATFQJ7OEU2S3S5ODW3ANCNFSM4FOR5AUQ .

viktorashi commented 3 years ago

For anybody that it doesn't work for: I got it working, by just uninstalling vscode and installing it back,

BEWARE THOUGH, AS IT WILL DELETE ALL YOUR SETTINGS AND EXTENSIONS, IT'S GONNA BE LIKE BEFORE YOU INSTALLED IT AND WENT THROUGH THE COSTUMIZATION PROCESS, VERY ANNOYING.

  1. Uninstall VsCode
  2. Install It back Up
  3. Install the rich presence plugin again.
  4. You should be done I hope

    NOT DISCORD, but Vscode,

fred-direne commented 2 years ago

For who is using it on MacOS just go to System Preferences -> Security & Privacy -> Firewall -> Firewall options and allow both vscode and discord incoming connections. It worked for me

DiegoNG90 commented 2 years ago

I found a solution to the extension not working on Ubuntu Budgie 18.04. Don't install Discord from the software centre. If you have, uninstall it. Go to https://discordapp.com mouse over "Download for Linux" then hit ~.deb` [Direct Link] Open your downloads folder, right click and hit "Open Tilix/(some terminal emulator) here" and then paste in the following

# This first
dpkg -i discord*.deb
# If it finishes with an error basically saying it cannot finish
# because its missing libc++1, then do the following
sudo apt install --fix-broken

Installing the actual package and not the snap package is what made it work for me like a charm. Makes it seem like snap's packaging either strips features or isolates the app to the extent some stuff either doesn't work or is flaky.

It worked perfectly for me. Danke schön @kalkafox

DexrnZacAttack commented 11 months ago

What about people that use Fedora, as there seems to be no RPM package and updating Discord is hella annoying, so Flatpak is the easiest way.