coc-discord-rpc
coc-discord-rpc copied to clipboard
Cannot read properties of null reading "write"
Been coding on nvim and I installed this Plugin until encountered this error
I'm having the same issue. Did you ever figure it out?
This error occurs when the rpc doesn't find the discord client (it is not started or rpc doesn't have permissions).
I've been getting this issue lately - but it only seems to happen when I use my window manager (Awesome) instead of my usual desktop environment (KDE). So it's probably not an issue with the plugin (for me), but does anyone know what might cause this in my situation?
I'm getting the same error. Is there any configuration I need to setup to make it work?
@LeonardSSH Uhm, facing the same bizzare issue? Would you mind helping us?
Seems like all issues are dead.
can't get this to work either
sadge :(
same here
I see, Maintainers aren't responding 😐
@leonardssh
I have the same issue. As well as:
[coc.nvim] RPC: TypeError: e.forEach is not a function
This is also happening for me on Zorin (Ubuntu 20.04).
Here's the log from COC:
2022-06-22T10:34:20.970 ERROR (pid:574489) [coc-discord-rpc] - Error: Could not connect
at Socket.o (/home/felipe/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:14782)
at Object.onceWrapper (node:events:642:26)
at Socket.emit (node:events:527:28)
at emitErrorNT (node:internal/streams/destroy:164:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
2022-06-22T10:34:20.971 ERROR (pid:574489) [extensions] - Error on active extension coc-discord-rpc: Cannot read properties of null (reading 'write') TypeError: Cannot read properties of null (reading 'write')
at e.exports.send (/home/felipe/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:16144)
at /home/felipe/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:16222
at new Promise (<anonymous>)
at e.exports.close (/home/felipe/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:16179)
at e.exports.destroy (/home/felipe/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:10989)
at Function.login (/home/felipe/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:39568)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.t.activate (/home/felipe/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:44242)
Same thing is happening to me
2022-07-10T18:53:42.466 ERROR (pid:47991) [server] - unhandledRejection Promise {
<rejected> TypeError: Cannot read properties of null (reading 'write')
at e.exports.send (/home/tudbut/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:16144)
at /home/tudbut/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:16222
at new Promise (<anonymous>)
at e.exports.close (/home/tudbut/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:16179)
at e.exports.destroy (/home/tudbut/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:10989)
at u.handleDisconnected (/home/tudbut/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:40034)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
} TypeError: Cannot read properties of null (reading 'write')
at e.exports.send (/home/tudbut/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:16144)
at /home/tudbut/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:16222
at new Promise (<anonymous>)
at e.exports.close (/home/tudbut/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:16179)
at e.exports.destroy (/home/tudbut/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:10989)
at u.handleDisconnected (/home/tudbut/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:40034)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2022-07-10T18:53:42.644 INFO (pid:47991) [coc-discord-rpc] - Connected to Discord Gateway
2022-07-10T18:53:42.646 ERROR (pid:47991) [server] - unhandledRejection Promise {
<rejected> TypeError: e.forEach is not a function
at l (/home/tudbut/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:35508)
at f.sendActivity (/home/tudbut/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:35689)
at u.handleLogin (/home/tudbut/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:39783)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
} TypeError: e.forEach is not a function
at l (/home/tudbut/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:35508)
at f.sendActivity (/home/tudbut/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:35689)
at u.handleLogin (/home/tudbut/.config/coc/extensions/node_modules/coc-discord-rpc/dist/index.js:2:39783)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2022-07-10T18:53:52.787 INFO (pid:47991) [attach] - receive notification: showInfo []
@leonardssh this issue is 3/4 of a year old and fatal.
@TudbuT I know about this issue, I tried to solve it, but to no avail. At the moment I don't have the time and environment to start try solving it again.
Uh, this sucks! :(
Can you guys try installing leonardssh/coc-discord-rpc#build-dev
version of the extenstion? It should fix this bug, if it did then i will publish it.
Windows:
%appdata%\..\Local\coc\extensions
macOS:
~/.config/coc/extensions
Linux:
~/.config/coc/extensions