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

Pipe write errror #153

Open
t101804 opened this issue May 1, 2024 · 7 comments
Open

Pipe write errror #153

t101804 opened this issue May 1, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@t101804
Copy link

t101804 commented May 1, 2024

Description

cant connect to drpc

Neovim version

NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1713773202

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

OS information

Arch using hyprland and warp terminal

Steps to reproduce

  1. Using NvChad
    {
    "andweeb/presence.nvim",
    event = "VeryLazy",
    lazy = false,
    config = function()
    require("presence").setup( {
    auto_update = true,
    neovim_image_text = "How do I exit it?",
    main_image = "file",
    log_level = "debug",
    debounce_timeout = 10,
    enable_line_number = false,
    buttons = true,
    show_time = true,
    -- Rich Presence text options
    editing_text = "Editing %s",
    file_explorer_text = "Browsing %s",
    git_commit_text = "Committing changes",
    plugin_manager_text = "Managing plugins",
    reading_text = "Reading %s",
    workspace_text = "Working on %s",
    line_number_text = "Line %s out of %s",
    })
    end,
    },

Logs

E325: ATTENTION
[presence.nvim] Setting up plugin for linux
[presence.nvim] Duplicate options: g:presence_auto_update and setup option auto_update
[presence.nvim] Using runtime path: /run/user/1000
[presence.nvim] Using Discord IPC socket path: /run/user/1000/discord-ipc-0
[presence.nvim] Checking Discord IPC socket at /run/user/1000/discord-ipc-0...
[presence.nvim] Using id 116266e2-c696-41eb-8ac5-68946f12e9b4
[presence.nvim] Completed plugin setup
[presence.nvim] Getting nvim socket paths...
[presence.nvim] Executing command: ss -lx|grep "nvim.*/0"
[presence.nvim] Checked Discord IPC socket, looks good!
[presence.nvim] Checked Discord IPC socket, looks good!
[presence.nvim] Handling BufEnter event...
[presence.nvim] Connecting to Discord...
[presence.nvim] Connected to Discord
[presence.nvim] Authorizing with Discord...
[presence.nvim] Wrote message to pipe
[presence.nvim] Failed to authorize with Discord: Received unexpected nonce - initial-ready (expected nil)
[presence.nvim] Got nvim socket paths: {}
[presence.nvim] No other remote nvim instances
[presence.nvim] Got nvim socket paths: {}
[presence.nvim] No other remote nvim instances
[presence.nvim] Handling FocusGained event...
[presence.nvim] Authorizing with Discord...
[presence.nvim] Wrote message to pipe
[presence.nvim] Failed to authorize with Discord: Received unexpected opcode - already handshook (code 1003)
[presence.nvim] Pipe was closed
[presence.nvim] Handling FocusGained event...
[presence.nvim] Authorizing with Discord...
[presence.nvim] Failed to authorize with Discord: Pipe write error - EPIPE
[presence.nvim] Pipe was closed

@t101804 t101804 added the bug Something isn't working label May 1, 2024
@bepnos
Copy link

bepnos commented May 4, 2024

Same error here on Arch using i3 and Xorg ,
Crashes as soon as I open a file (browsin netrw does seem to work)

[presence.nvim] Handling TextChanged event...
[presence.nvim] Currently authorizing with Discord, scheduling callback for later...
[presence.nvim] Wrote message to pipe
[presence.nvim] Currently authorizing with Discord, scheduling callback for later...
[presence.nvim] Failed to authorize with Discord: Received unexpected nonce - 0 (expected nil)
[presence.nvim] Parsed filename nil with no extension
[presence.nvim] Getting project name for nil...
[presence.nvim] Setting activity for unnamed buffer...
[presence.nvim] No project detected
[presence.nvim] Sync activity to all peers...
[presence.nvim] Setting Discord activity...
[presence.nvim] Got nvim socket paths: {}
[presence.nvim] No other remote nvim instances
[presence.nvim] Got nvim socket paths: {}
[presence.nvim] No other remote nvim instances
[presence.nvim] Activity already set for , skipping...
[presence.nvim] Wrote message to pipe
[presence.nvim] Set activity in Discord for nil
[presence.nvim] Handling BufAdd event...
[presence.nvim] Handling BufEnter event...
[presence.nvim] Authorizing with Discord...
[presence.nvim] Currently authorizing with Discord, scheduling callback for later...
[presence.nvim] Wrote message to pipe
[presence.nvim] Parsed filename .prettierignore with no extension
[presence.nvim] Getting project name for /home/bepnos/Work/Quivr/24urenloop...
[presence.nvim] Setting activity for /home/bepnos/Work/Quivr/24urenloop/.prettierignore...
[presence.nvim] Repository URL uses short ssh syntax: [email protected]:Quivr/24urenloop.git
[presence.nvim] Adding button with repository URL: https://github.com/Quivr/24urenloop.git
[presence.nvim] Attaching buttons to activity: { {^@ label = "View Repository",^@ url = "h
ttps://github.com/Quivr/24urenloop.git"^@ } }
[presence.nvim] Detected project: 24urenloop
[presence.nvim] Sync activity to all peers...
[presence.nvim] Setting Discord activity...
[presence.nvim] Wrote message to pipe
[presence.nvim] Failed to set activity in Discord: Received unexpected opcode - already handshoo
k (code 1003)
[presence.nvim] Pipe was closed

@xhyrom
Copy link

xhyrom commented May 15, 2024

I have same issue.

@zackartz
Copy link

same here

@PoolloverNathan
Copy link

PoolloverNathan commented May 28, 2024

Similar issues:

[presence.nvim] Setting up plugin for linux
[presence.nvim] Using runtime path: /run/user/1000
[presence.nvim] Using Discord IPC socket path: /run/user/1000/discord-ipc-0
[presence.nvim] Checking Discord IPC socket at /run/user/1000/discord-ipc-0...
[presence.nvim] Using id ddbc2a8c-625a-4a86-bc63-2856a4ab8664
[presence.nvim] Completed plugin setup
[presence.nvim] Getting nvim socket paths...
[presence.nvim] Executing command: `ss -lx|grep "nvim.*/0"`
[presence.nvim] Checked Discord IPC socket, looks good!
[presence.nvim] Handling BufEnter event...
[presence.nvim] Connecting to Discord...
[presence.nvim] Connected to Discord
[presence.nvim] Authorizing with Discord...
[presence.nvim] Wrote message to pipe
[presence.nvim] Got nvim socket paths: {}
[presence.nvim] No other remote nvim instances
[presence.nvim] Failed to authorize with Discord: Received unexpected nonce - initial-ready (expected nil)
[presence.nvim] Failed to set activity in Discord: Received unexpected opcode - already handshook (code 1003)
[presence.nvim] Pipe was closed
Press ENTER or type command to continue
[nathan@nathanlaptopv:~/stuff/rustpilled]$ uname -a
Linux nathanlaptopv 6.6.30 #1-NixOS SMP PREEMPT_DYNAMIC Thu May  2 14:32:50 UTC 2024 x86_64 GNU/Linux

[nathan@nathanlaptopv:~/stuff/rustpilled]$ vim --version
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1693350652

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "
/nix/store/8amp9c1lcf22qy94j8mh3lciy7gfbw2k-neovim-unwrapped-0.9.5/share/nvim
"

Run :checkhealth for more info
local Plug = vim.fn["plug#"]
vim.call "plug#begin"
Plug "andweeb/presence.nvim"
vim.call "plug#end"
require "presence" .setup {
  auto_update = true;
  main_image = "file";
  debounce_timeout = 5;
  enable_line_number = true;
  log_level = "debug";
  blacklist = {};
  show_time = true;
  editing_text = "Editing %s";
  file_explorer_text = "Navigating %s/";
  git_commit_text = "Determining worst possible commit message";
  plugin_manager_text = "Spending more time configuring Neovim than using Neovim";
  reading_text = "Trying to edit %s";
  workspace_text = "Stuck in %s";
  line_number_text = "[%s/%s]";
}```

@nezutero
Copy link

same here

@wardxela
Copy link

Same issue.
Interestingly though it was working correct until I switched to Vesktop (unofficial Discord client).
Maybe plugin can't recognize unofficial clients? But VS Code Rich Presence seems to work fine with that.
Any ideas?

@wardxela
Copy link

Looks like there is a fix for it:
See: jiriks74#59 (comment)

For those who wonder, there is a fork of this plugin that seems to work with no headache
See: https://github.com/IogaMaster/neocord

Still thank you for your work guys, it's really cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants