andweeb / presence.nvim

Discord Rich Presence for Neovim
836 stars 65 forks source link

[Void Linux] Error while processing textchanged autocommands for "*" #6

Closed siduck closed 2 years ago

siduck commented 3 years ago

I keep getting this error , I use neovim 0.5 image

andweeb commented 3 years ago

Hi @siduck76! It looks like the Discord IPC socket wasn't able to be found on your system. What OS are you using?

siduck commented 3 years ago

I use void linux , do I need to install this discord IPC socket?

andweeb commented 3 years ago

Hmm okay I see, nah it's not something you need to install!

It looks like I need to support the case where named pipes aren't in tmp runtime directories. It's likely that on your system the IPC socket is in this location: /run/user/{userid}/discord-ipc-0.

Can you confirm that that's the case? You can find your userid with id -u $USER (or echo $UID).

siduck commented 3 years ago

image

siduck commented 3 years ago

@siduck76 My /run/user is empty ,do I need to install this? https://github.com/iamtraction/discoIPC

andweeb commented 3 years ago

Nah there shouldn't be anything to install other than your Discord application and ensure that Discord is running, as the client will automatically initialize and open the socket on your system somewhere. We just gotta find where that is lol

I did some light research on Discord on Void Linux, and I'm starting to suspect it may be due to how the application is packaged for your system. Are you using the flatpak version by any chance? It seems there's some limitations and/or extra work into enabling Rich Presence (see here).

Otherwise, try searching for the discord IPC socket location via netstat -u | grep discord (assuming netstat is available), and let me know if you can find it!

siduck commented 3 years ago

discord is available on void but its a restricted package so I have to use xbps-src to build it , So I just used xdeb to install discord (deb file) , xdeb is a tool that converts xdeb to xbps packages https://github.com/toluschr/xdeb.

image

andweeb commented 3 years ago

Hmm you ran that command while Discord was running right?

If Discord is running and for some reason it doesn't open a socket for the plugin to connect to, I'm not exactly sure if there's a fix I can apply on my end. :/

Coincidentally I've been meaning to try out Void (and Arch) so when I have the time I'll try setting that up and install Discord myself to be able to replicate your issue locally, though it may be a while.

Until then it'd be helpful if you could let me know if you come across more information, such as the discord-ipc-0 socket location on your system or whether Discord on Void Linux actually does support Rich Presence.

siduck commented 3 years ago

image No worries I'll wait! and check about the discord-ipc-0 .

OliverKovacs commented 3 years ago

I keep getting this error , I use neovim 0.5 image

I've encountered the same issue using Ubuntu 20 on WSL2.

andweeb commented 3 years ago

Thanks for reporting @OliverKovacs! I've not yet added support for WSL on Windows, I'll add that note to the README.

Regarding the error, that occurs when the Discord IPC socket is unable to be found (due to lack of support for Void Linux and WSL at the moment). I'll make a fix to properly handle the error and have a more helpful/informative log here.

JuniorSuperTux commented 2 years ago

I wonder if I'm a similar situation. I'm also on Void Linux, and the following appears when the plugin executes:

[presence.nvim] Failed to determine Discord IPC socket path    

However, when I look into the /tmp folder, I do see the file discord-ipc-0: image

What should I do?

JuniorSuperTux commented 2 years ago

I think I found the problem: image

All of these are not set in Void Linux by default

JuniorSuperTux commented 2 years ago

@siduck Try adding the following to your .xinitrc:

export TMPDIR=/tmp

It worked for me

siduck commented 2 years ago

@siduck Try adding the following to your .xinitrc:

export TMPDIR=/tmp

It worked for me

cool works :D

xbz-24 commented 1 year ago

I think I found the problem: image

All of these are not set in Void Linux by default

which file is this im getting this same error and adding that line to my xinitrc didnt fix it, but im not using void but artix,

![Uploading image.png…]()

xbz-24 commented 1 year ago

I think I found the problem: image

All of these are not set in Void Linux by default

which file is this im getting this same error and adding that line to my xinitrc didnt fix it, but im not using void but artix,

image