vscode-discord icon indicating copy to clipboard operation
vscode-discord copied to clipboard

Can't connect to discord rpc

Open the-kezian-diary opened this issue 6 years ago • 9 comments

After Installation, I get a prompt.

Can't connect to discord rpc: connect ENOENT /run/user/1000/discord-ipc-0

the-kezian-diary avatar Apr 02 '18 13:04 the-kezian-diary

I guess discord is launched ?

maxerbox avatar Apr 02 '18 17:04 maxerbox

Discord was already launched up. After that I launched VS code. After Installation, On reloading vs code the prompt appears.

A strange thing that i recently noticed, It's happening with all the other vs-code extensions too that rely on Discord RPC.

the-kezian-diary avatar Apr 03 '18 17:04 the-kezian-diary

Do you have the client version of discord ?

maxerbox avatar Apr 04 '18 13:04 maxerbox

Yes, I do have the client installed (discord-0.0.4.deb)

the-kezian-diary avatar Apr 04 '18 22:04 the-kezian-diary

Yeah i have same problem too

NetLuiz avatar Sep 22 '18 17:09 NetLuiz

Yeah i have same problem too

Issue seems to be Ubuntu 18.04 using snap, so the discord directory looks like snap.discord and not discord. Download Discord Presence plugin, and if it doesn't work for you, head over /home/{user}/.vscode/extensions/icrawl.discord-vscode-x.xx.x/node_modules/discord-rpc/src/transports/ and replace the IPC.js file with the one that I have forked, in my repositories.

AliDeym avatar Sep 24 '18 18:09 AliDeym

Am i crazy, there's no node_modules folder in the folder?

Nishant-Pall avatar Jun 09 '21 19:06 Nishant-Pall

Am i crazy, there's no node_modules folder in the folder?

@Nishant-Pall what exactly do you mean? node_modules should never be committed to any repository, it only contains dependencies defined in the lock file (package-lock.json or yarn.lock). That's why we tell git to ignore this folder in .gitignore. If you're testing this on your local environment you need to run npm install or yarn that will install all dependencies given in package.json and generate a lock file.

therealsujitk avatar Jun 10 '21 02:06 therealsujitk

That's why we tell git to ignore this folder in .gitignore. If you're testing this on your local environment you need to run npm install or yarn that will install all dependencies given in package.json and generate a lock file.

Oh yeah, I forgot my bad, although I was able to solve the issue, just do sudo snap remove discord sudo snap remove code and install them from the main site and not from snap.

Nishant-Pall avatar Jun 10 '21 15:06 Nishant-Pall