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

The Provided example doesn't work #2

Closed
Vaimer9 opened this issue Sep 23, 2021 · 6 comments
Closed

The Provided example doesn't work #2

Vaimer9 opened this issue Sep 23, 2021 · 6 comments

Comments

@Vaimer9
Copy link

Vaimer9 commented Sep 23, 2021

The example in the readme does not work, even tried using different Application IDs but still get the error

Error: "Couldn't connect to the Discord IPC socket"
@ghost
Copy link

ghost commented Sep 23, 2021

The example works completely fine on my end. Could you elaborate on your environment at runtime (i.e. system, Discord version, etc)?

@Vaimer9
Copy link
Author

Vaimer9 commented Sep 26, 2021

I am running the program using wsl, using the stable build, I have the discord desktop client on while I am running the program.

@ghost
Copy link

ghost commented Sep 26, 2021

Ah. The issue is that you're trying to run it in WSL. While it's possible to communicate with Windows named pipes from the Linux subsystem in WSL 1, the same cannot be done in WSL 2.

With the amount of work it requires to get even WSL 1 working in such a manner, your best bet is unfortunately likely to be developing on Windows, or in a full installation of Linux.

@ghost ghost closed this as completed Oct 1, 2021
@Vaimer9
Copy link
Author

Vaimer9 commented Oct 2, 2021

Well, shortly after i decided to go full linux and it still does not work getting the same error here, Maybe the prob is ubuntu as its the only same thing between the 2 environments

@ghost
Copy link

ghost commented Oct 3, 2021

If that's the case, and the error is still appearing even when you run the example while Discord is open, then my best guess is that it would have to be an issue beyond the crate itself (i.e. with how you're running it, your system setup, etc).

As for Ubuntu, it has been successfully tested before, so I can't imagine that's the root issue here.

@ghost ghost reopened this Oct 3, 2021
@ghost ghost closed this as completed Oct 14, 2021
@echelon
Copy link

echelon commented Oct 18, 2022

I'm running this on vanilla Ubuntu 22.04 and am receiving the same error message.

Desktop Discord client:

Stable 152532 (a118a24) Host 0.0.20 Linux 64-Bit (5.15.0-48-Generic)

rustc 1.64.0

This issue was closed.
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

2 participants