Giter Site home page Giter Site logo

Comments (9)

iCrawl avatar iCrawl commented on August 15, 2024 18

Looking through various of other issues of that kind should have gotten you that answer pretty quickly, namely:

#61
#54
#49
#21
#9
#8

I'm just kind of sick of people not looking through past issues at this point, so I left this one open.

from discord-vscode.

spkane avatar spkane commented on August 15, 2024 10

@iCrawl (Adding a pointer in your README to this might be be helpful).

The issue for most people, is likely that that the underlying Discord RPC library here https://github.com/discordjs/RPC uses a naive approach to determining the IPC path to the discord-ipc-0 file. It looks like it was written for Windows, and has had some Linux logic added as well, but still does not properly support Mac OS X.

I created an issue here with some details:
discordjs/RPC#54

Basically, the fix is likely that you need to search your system for the IPC file:

find / -name "*discord-ipc*" 2> /dev/null
/private/var/folders/kh/388s01ns6r9480zhlk51nb200000gn/T/discord-ipc-0

edit .vscode/extensions/icrawl.discord-vscode-3.2.1/node_modules/discord-rpc/src/transports/IPC.js accordingly:

function getIPCPath(id) {
  return `/private/var/folders/kh/388s01ns6r9480zhlk51nb200000gn/T/discord-ipc-${id}`;
}

and then restart Visual Studio Code.

At this point it . should work.

from discord-vscode.

spkane avatar spkane commented on August 15, 2024 9

It might help folks if the error message including a link to a troubleshooting doc or something, that had a few suggestions. Most of the "answers" in all of these issues, are very vague and don't have any follow through on possible root causes.

from discord-vscode.

TheTeaCup avatar TheTeaCup commented on August 15, 2024 8

getting the same problem

from discord-vscode.

sheerlox avatar sheerlox commented on August 15, 2024 6

If you installed Discord / VSCode using Snap / Ubuntu Software Center, here is a fix.

I am using Ubuntu 18.10, Snap was the origin of my Can't connect to Discord, as it sandboxes apps.
It has been confirmed by a Discord collaborator: discord/discord-rpc#213 (comment)

So if you installed any of those two using Snap, here's the fix:

  • sudo snap remove vscode discord
  • download the .deb files from the official websites
  • install the .deb files using the sudo dpkg -i package.dpkg command
  • DO NOT USE UBUNTU SOFTWARE CENTER, AS IT USES SNAP.

@iCrawl (Adding a pointer in your README to this might be be helpful).

from discord-vscode.

 avatar commented on August 15, 2024 5

same

from discord-vscode.

Luann0233 avatar Luann0233 commented on August 15, 2024 1

@SherloxTV Thank you S2

from discord-vscode.

bziya avatar bziya commented on August 15, 2024

Is this issue dead? The lack of attention this is getting is a little bit ridiculous.

Edit: This issue is more than a month old and still no response from a dev.

from discord-vscode.

GabrielMessiasdaRosa avatar GabrielMessiasdaRosa commented on August 15, 2024

You save the day, thx

from discord-vscode.

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.