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

Couldn't connect to Discord via RPC: #145

Open
KuezyIT opened this issue Nov 19, 2022 · 56 comments · Fixed by #150
Open

Couldn't connect to Discord via RPC: #145

KuezyIT opened this issue Nov 19, 2022 · 56 comments · Fixed by #150
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@KuezyIT
Copy link

KuezyIT commented Nov 19, 2022

I tried to use vscord but when trying to edit code it says:
Couldn't connect to Discord via RPC: RPC_CONNECTION_TIMEOUT: Connection timed out

I do have the necessary settings enabled in discord:
image

Heres the exact error log:

[6:23:15 PM] [INFO] Discord Rich Presence for VS Code activated.
[6:23:15 PM] [INFO] Registered Discord Rich Presence commands
[6:23:25 PM] [ERROR] Encountered following error while trying to login: RPC_CONNECTION_TIMEOUT: Connection timed out
    at Ma.login (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.10\node_modules\@xhayper\discord-rpc\dist\Client.js:250:20)
    at new Qi (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.10\src\controller.ts:34:14)
    at Object.<anonymous> (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.10\src\extension.ts:10:20)
    at Module.u._compile (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\loader.js:4:1313)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1220:10)
    at Module.load (node:internal/modules/cjs/loader:1035:32)
    at Module._load (node:internal/modules/cjs/loader:876:12)
    at Function.c._load (node:electron/js2c/asar_bundle:5:13343)
    at Function.r._load (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:120:13363)
    at Function.w._load (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:115:61309)
    at Function.v._load (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:115:60713)
    at Module.require (node:internal/modules/cjs/loader:1059:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Function.r [as __$__nodeRequire] (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\loader.js:5:101)
    at d.rb (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:115:62572)
    at async Promise.all (index 0)
[6:23:25 PM] [INFO] [002] Destroyed Discord RPC client
[6:23:25 PM] [INFO] Successfully logged in to Discord with client ID 782685898163617802

When looking at the discord client ID it says 782685898163617802 which is not my client id...

@xhayper
Copy link
Collaborator

xhayper commented Nov 19, 2022

Client ID is the id that VSCord use, not user id.

@xhayper xhayper added the bug Something isn't working label Nov 19, 2022
@xhayper
Copy link
Collaborator

xhayper commented Nov 19, 2022

Can you enable debug mode and send me the log?

@xhayper
Copy link
Collaborator

xhayper commented Nov 20, 2022

Alright i am getting this bug too

@xhayper
Copy link
Collaborator

xhayper commented Nov 20, 2022

alright you can try reconnecting it if it fix it

@KuezyIT
Copy link
Author

KuezyIT commented Nov 20, 2022

And how can I reconnect the extension in VS code?

@xhayper
Copy link
Collaborator

xhayper commented Nov 20, 2022

ctrl + sift + p and there should be a reconmect command

@KuezyIT
Copy link
Author

KuezyIT commented Nov 20, 2022

image

Just tried to reconnect, still doesnt work.. :(

@xhayper
Copy link
Collaborator

xhayper commented Nov 20, 2022

restart you discord then reconnect, see id it work

@KuezyIT
Copy link
Author

KuezyIT commented Nov 20, 2022

image
After restarting discord and then reconnecting via STRG + SHIFT + P and then selecting reconnecting to discord gateway I get the same error message..

@xhayper
Copy link
Collaborator

xhayper commented Nov 20, 2022

what the hell... this is so weird, another weird bug to the list, you can try debug mode to see if anything good come up in output

@KuezyIT
Copy link
Author

KuezyIT commented Nov 20, 2022

Uhh, if I just would know how to debug extensions xddd

@xhayper
Copy link
Collaborator

xhayper commented Nov 20, 2022

its in settings

@KuezyIT
Copy link
Author

KuezyIT commented Nov 21, 2022

Yep, got it. Here you go:

[6:19:34 PM] [INFO] [data.ts] ext(): Extension
[6:19:34 PM] [INFO] [data.ts] ext(): Changed to Extension
[6:19:34 PM] [INFO] [data.ts] [data.ts] ext(): Git extension is active
[6:19:34 PM] [INFO] [data.ts] api(): true
[6:19:34 PM] [INFO] [data.ts] api(): gitApi
[6:19:34 PM] [INFO] [data.ts] updateGit()
[6:19:34 PM] [INFO] [data.ts] gitRepoPath(): 
[6:19:34 PM] [INFO] [data.ts] updateGit(): repo 
[6:19:34 PM] [INFO] [data.ts] api(): true
[6:19:34 PM] [INFO] [data.ts] api(): gitApi
[6:19:34 PM] [INFO] [data.ts] updateGit()
[6:19:34 PM] [INFO] [data.ts] gitRepoPath(): 
[6:19:34 PM] [INFO] [data.ts] updateGit(): repo 
[6:19:34 PM] [INFO] Discord Rich Presence for VS Code activated.
[6:19:34 PM] [INFO] Registered Discord Rich Presence commands
[6:19:34 PM] [INFO] [data.ts] listeners(): Open Repo CUDA-Systembot
[6:19:34 PM] [INFO] [data.ts] updateGit()
[6:19:34 PM] [INFO] [data.ts] gitRepoPath(): d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\00 System Builds\CUDA-Systembot
[6:19:34 PM] [INFO] [data.ts] updateGit(): repo d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\00 System Builds\CUDA-Systembot
[6:19:34 PM] [INFO] [data.ts] listeners(): Open Repo CUDA-Systembot
[6:19:34 PM] [INFO] [data.ts] updateGit()
[6:19:34 PM] [INFO] [data.ts] gitRepoPath(): d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\00 System Builds\CUDA-Systembot
[6:19:34 PM] [INFO] [data.ts] updateGit(): repo d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\00 System Builds\CUDA-Systembot
[6:19:35 PM] [INFO] [data.ts] listeners(): Change State initialized
[6:19:35 PM] [INFO] [data.ts] updateGit()
[6:19:35 PM] [INFO] [data.ts] gitRepoPath(): d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\00 System Builds\CUDA-Systembot
[6:19:35 PM] [INFO] [data.ts] updateGit(): repo d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\00 System Builds\CUDA-Systembot
[6:19:35 PM] [INFO] [data.ts] listeners(): Change State initialized
[6:19:35 PM] [INFO] [data.ts] updateGit()
[6:19:35 PM] [INFO] [data.ts] gitRepoPath(): d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\00 System Builds\CUDA-Systembot
[6:19:35 PM] [INFO] [data.ts] updateGit(): repo d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\00 System Builds\CUDA-Systembot
[6:19:44 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[6:19:44 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[6:19:44 PM] [ERROR] Encountered following error while trying to login: RPC_CONNECTION_TIMEOUT: Connection timed out
    at za.login (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.11\node_modules\@xhayper\discord-rpc\dist\Client.js:250:20)
    at new en (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.11\src\controller.ts:34:14)
    at Object.<anonymous> (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.11\src\extension.ts:10:20)
    at Module.u._compile (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\loader.js:4:1313)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1220:10)
    at Module.load (node:internal/modules/cjs/loader:1035:32)
    at Module._load (node:internal/modules/cjs/loader:876:12)
    at Function.c._load (node:electron/js2c/asar_bundle:5:13343)
    at Function.r._load (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:120:13370)
    at Function.w._load (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:115:61374)
    at Function.v._load (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:115:60776)
    at Module.require (node:internal/modules/cjs/loader:1059:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Function.r [as __$__nodeRequire] (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\loader.js:5:101)
    at d.rb (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:115:62638)
    at async Promise.all (index 0)
[6:19:44 PM] [INFO] [002] Destroyed Discord RPC client
[6:19:44 PM] [INFO] Successfully logged in to Discord with client ID 782685898163617802
[6:19:57 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[6:19:57 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[6:19:59 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[6:19:59 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[6:20:00 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[6:20:00 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[6:20:13 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[6:20:13 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[6:21:49 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[6:21:49 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor: got unallowed scheme, got 'output'
[6:21:49 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[6:21:51 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[6:21:51 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor: got unallowed scheme, got 'output'

@getlaurekt
Copy link

I have different bug, for me it was saying about not finding a command or sum when i tried to connect to the discord with command in vsc(similiar error what Kuezy got, but with not finding a command), even after restarting vsc or dc it doesnt really matter also the img at the bottom wasnt visible at all, smth is going wrong with this extension recently, so i switched back to crawl one, this one isnt useful at all atm, and i was using it cause of astro files

This is the error:
image
It happens to every command from vscord
No matter which of these etc i will use it the same, and same goes for restarting vsc or discord
image
I have hope you will fix it somehow, its so annoying i havent had so many problems with any extension so far ;-;

@xhayper
Copy link
Collaborator

xhayper commented Nov 23, 2022

i know that it's super annoying and stuff, but i can't get it to re-produce it on my mac machine WHICH is really a bad sign on fixing this bug, i really can't figure out what cause it it all, i also use astro on my project and the same bug didn't happened.

I think this extension is haunted.

@xhayper
Copy link
Collaborator

xhayper commented Nov 23, 2022

same on my windows machine, everything just works, it's really weird.

@getlaurekt
Copy link

getlaurekt commented Nov 25, 2022

i know that it's super annoying and stuff, but i can't get it to re-produce it on my mac machine WHICH is really a bad sign on fixing this bug, i really can't figure out what cause it it all, i also use astro on my project and the same bug didn't happened.

I think this extension is haunted.

The funniest part is that it did start to happen after one of updates, it's not like problem on my side that's the funniest part and I have no idea what does it happens. I also managed like 2 times to make it work, like the extension was running somehow, BUT after disconnecting it of discord etc i couldnt reconnect it no matter what cause I was getting the error that I did show you in my previous comment.

Ye, this extension has hard time ngl. I started to use it cause of Astro files, but welp I can't even use it anymore hah.

@getlaurekt
Copy link

same on my windows machine, everything just works, it's really weird.

Stranger things I'd say then hah, it's so weird.

@xhayper
Copy link
Collaborator

xhayper commented Nov 25, 2022

I also have no idea on my side either

@nick22985
Copy link
Collaborator

Can use send your exact windows version and also the exact vscode / vscodium / vsinsider build numbers

you can get windows version by doing win + r -> winver
to get vscode version go to the toolbar click help and then about.

Idk if I can recreate it by going to your version of things. But working fine for me on windows so semi confused why this is happening

@nick22985
Copy link
Collaborator

@xhayper to hackly recreate this you can just spam the hell outta disconnecting and reconnecting eventually you will get a error for disconnecting when going to reconnect it wont fully reconnect. It got something to do with the client not fully destorying the rpc when it errors. Making it stuck in a loop where it can send presence or reconnect because it is disabeld.

Tryied to see if the this.client.isConnected but it is still true even after erroring.

A check could be added to root(): window.onDidChangeActiveTextEditor checking if any errors have occurred if so enable the extension again but have to make sure it doesn't actually do it when it is not meant to.

@xhayper
Copy link
Collaborator

xhayper commented Nov 25, 2022

when an error happened the whole discord rpc lib would die... right?

@nick22985
Copy link
Collaborator

nick22985 commented Nov 25, 2022

Yes but no not when the timeout happens. It somehow doesn't. For some reason it just like nope and is still active but not active

@nick22985
Copy link
Collaborator

nick22985 commented Nov 26, 2022

Im now getting this now sometimes as well interesting

2022-11-26 11:57:27.221 [info] [perf] Render performance baseline is 27ms
2022-11-26 11:57:27.817 [info] UNRESPONSIVE extension host: starting to profile NOW
2022-11-26 11:57:38.285 [info] UNRESPONSIVE extension host: starting to profile NOW
2022-11-26 11:57:39.038 [info] UNRESPONSIVE extension host: received responsive event and cancelling profiling session
2022-11-26 11:57:39.227 [warning] UNRESPONSIVE extension host: 'leonardssh.vscord' took 39.19048481778833% of 296.351ms, saved PROFILE here: 'file:///c%3A/Users/nick/AppData/Local/Temp/exthost-b8983f.cpuprofile'

will send the log file to you @xhayper on discord as it doesn't wanna on here

Maybe relatated maybe not.

also #111 I think the same bug

@xhayper
Copy link
Collaborator

xhayper commented Nov 27, 2022

This is weird...

@xhayper xhayper added the help wanted Extra attention is needed label Nov 27, 2022
nick22985 added a commit to nick22985/vscord that referenced this issue Nov 27, 2022
xhayper added a commit that referenced this issue Dec 2, 2022
devops: Added extra debug for issue: #145
@KuezyIT
Copy link
Author

KuezyIT commented Dec 2, 2022

Hey guys, just checkin' up on this issue. Any way to fix it so far?

@xhayper
Copy link
Collaborator

xhayper commented Dec 2, 2022

Nope, we are actively hunting for the source

@Euro-pol
Copy link

Euro-pol commented Dec 3, 2022

Same here, running Arch.
image

@xhayper
Copy link
Collaborator

xhayper commented Dec 3, 2022

its the timeout issue again....

@nick22985
Copy link
Collaborator

nick22985 commented Dec 3, 2022

can use send logs on the latest version. Added a few new things to see if I can figure out what going on

Same here, running Arch. image

@KuezyIT
Copy link
Author

KuezyIT commented Dec 4, 2022

can use send logs on the latest version. Added a few new things to see if I can figure out what going on

Same here, running Arch. image

Thats what I've got (DEBUG OUTPUT):

[4:18:12 PM] [INFO] [data.ts] ext(): Extension
[4:18:12 PM] [INFO] [data.ts] ext(): Changed to Extension
[4:18:12 PM] [INFO] [data.ts] [data.ts] ext(): Git extension is active
[4:18:12 PM] [INFO] [data.ts] api(): true
[4:18:12 PM] [INFO] [data.ts] api(): gitApi
[4:18:12 PM] [INFO] [data.ts] updateGit()
[4:18:12 PM] [INFO] [data.ts] gitRepoPath(): 
[4:18:12 PM] [INFO] [data.ts] updateGit(): repo 
[4:18:12 PM] [INFO] [data.ts] api(): true
[4:18:12 PM] [INFO] [data.ts] api(): gitApi
[4:18:12 PM] [INFO] [data.ts] updateGit()
[4:18:12 PM] [INFO] [data.ts] gitRepoPath(): 
[4:18:12 PM] [INFO] [data.ts] updateGit(): repo 
[4:18:12 PM] [INFO] Discord Rich Presence for VS Code activated.
[4:18:12 PM] [INFO] Registered Discord Rich Presence commands
[4:18:12 PM] [INFO] [data.ts] listeners(): Open Repo RyzenRP - Systembot
[4:18:12 PM] [INFO] [data.ts] updateGit()
[4:18:12 PM] [INFO] [data.ts] gitRepoPath(): d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\30 Customer Builds\RyzenRP - Systembot
[4:18:12 PM] [INFO] [data.ts] updateGit(): repo d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\30 Customer Builds\RyzenRP - Systembot
[4:18:12 PM] [INFO] [data.ts] listeners(): Open Repo RyzenRP - Systembot
[4:18:12 PM] [INFO] [data.ts] updateGit()
[4:18:12 PM] [INFO] [data.ts] gitRepoPath(): d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\30 Customer Builds\RyzenRP - Systembot
[4:18:12 PM] [INFO] [data.ts] updateGit(): repo d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\30 Customer Builds\RyzenRP - Systembot
[4:18:12 PM] [INFO] [data.ts] listeners(): Change State initialized
[4:18:12 PM] [INFO] [data.ts] updateGit()
[4:18:12 PM] [INFO] [data.ts] gitRepoPath(): d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\30 Customer Builds\RyzenRP - Systembot
[4:18:12 PM] [INFO] [data.ts] updateGit(): repo d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\30 Customer Builds\RyzenRP - Systembot
[4:18:12 PM] [INFO] [data.ts] listeners(): Change State initialized
[4:18:12 PM] [INFO] [data.ts] updateGit()
[4:18:12 PM] [INFO] [data.ts] gitRepoPath(): d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\30 Customer Builds\RyzenRP - Systembot
[4:18:12 PM] [INFO] [data.ts] updateGit(): repo d:\Users\Kuezy\04 Projects\[CUDA - DEVELOPMENT]\10 Develoment\30 Customer Builds\RyzenRP - Systembot
[4:18:15 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[4:18:15 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor: got unallowed scheme, got 'output'
[4:18:19 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[4:18:21 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[4:18:21 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor: got unallowed scheme, got 'output'
[4:18:22 PM] [ERROR] Encountered following error while trying to login: RPC_CONNECTION_TIMEOUT: Connection timed out
    at $a.login (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.14\node_modules\@xhayper\discord-rpc\dist\Client.js:250:20)
    at new Zi (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.14\src\controller.ts:35:14)
    at Object.<anonymous> (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.14\src\extension.ts:10:20)
    at Module.u._compile (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\loader.js:4:1313)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1220:10)
    at Module.load (node:internal/modules/cjs/loader:1035:32)
    at Module._load (node:internal/modules/cjs/loader:876:12)
    at Function.c._load (node:electron/js2c/asar_bundle:5:13343)
    at Function.r._load (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:120:13379)
    at Function.w._load (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:115:61900)
    at Function.v._load (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:115:61293)
    at Module.require (node:internal/modules/cjs/loader:1059:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Function.r [as __$__nodeRequire] (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\loader.js:5:101)
    at d.pb (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:115:63164)
    at async Promise.all (index 0)
[4:18:22 PM] [INFO] [002] Destroyed Discord RPC client
[4:18:22 PM] [INFO] Successfully logged in to Discord with client ID 782685898163617802

@getlaurekt
Copy link

After update on 27th the extension started to work again for me(i was surprised) but update on 29th fcked up it again, i have no idea whats going on, im getting the same error again, im hopeless for this extension xD

All the time rlly? I wish I could recreate this with that consistently.

How I was recreating this I have fixed and no longer does it so I have no way of reproducing this

Ye, update on 27th was working for me, IDK WHY, but the extension was working for the whole day of me coding, but on 29th the new update came out and the extension in my case came back to the error and didnt work at all.

If I can help you with sending some logs or something you can tell me how and where I can find them, so i will send yaa them maybe it will help you...

@Maeglithier
Copy link

Maeglithier commented Dec 8, 2022

ctrl + shift + p
Then use: "developer:reload Window"

This fix the problem ( in my pc )

@KuezyIT
Copy link
Author

KuezyIT commented Dec 11, 2022

ctrl + shift + p Then use: "developer:reload Window"

This fix the problem ( in my pc )

Nope, that did not fix the issue on my end..

@KuezyIT
Copy link
Author

KuezyIT commented Dec 20, 2022

Hi, just checkin' up on this issue. Anything new as for now?

@ar065
Copy link

ar065 commented Dec 21, 2022

Had this issue for ages, uninstalled, re-installed, didn't fix it. Finally I decided to restart discord which fixed the issue

@xhayper
Copy link
Collaborator

xhayper commented Dec 21, 2022

That's timeout issue then... hmm

@nick22985
Copy link
Collaborator

nick22985 commented Dec 23, 2022

Activating extension 'LeonardSSH.vscord' failed: Extension 'vscode.git' is not known or not activated.
$onExtensionActivationError @ workbench.desktop.main.js:2155

@xhayper Looks like if vscode.git is initialized it will not correctly load the extension. Causing the reconnect commands not working or any commands. But still show up in the command menu. I hope this is related to the whole cause atleast

https://gyazo.com/a3e73e3aa64f4eaf8c019a72a0451c53
https://gyazo.com/09764fe47575223dc8a5409ba0de0cc5

@nick22985
Copy link
Collaborator

So for anyone looking to help us in this could you please go to help > toggle dev tools and then find the error for LeonardSSH.vscord

@xhayper
Copy link
Collaborator

xhayper commented Dec 25, 2022

I found out there's a bug with discord-rpc have a bug where disconnected event is not called properly.

@xhayper
Copy link
Collaborator

xhayper commented Dec 25, 2022

that might explain why a lot of stuff just doesn't work when disconnected.

@xhayper
Copy link
Collaborator

xhayper commented Dec 25, 2022

98db028 should fix git issue.

@xhayper
Copy link
Collaborator

xhayper commented Dec 27, 2022

Reconnecting works now

@KuezyIT
Copy link
Author

KuezyIT commented Jan 2, 2023

Hi - yes it works now on both my laptop and workstation. Thanks for helping!

@SirFluffDev
Copy link

Same issue for me, but only when I'm running VSCodium. Regular VSCode runs the extension fine.
I'm on the latest version of Pop!_OS.

@xhayper
Copy link
Collaborator

xhayper commented Jan 3, 2023

Same issue for me, but only when I'm running VSCodium. Regular VSCode runs the extension fine.
I'm on the latest version of Pop!_OS.

could you open your logs?

@SirFluffDev
Copy link

Here you go:

[10:06:53 PM] [INFO] Registered Discord Rich Presence commands
[10:07:03 PM] [ERROR] Encountered following error while trying to login: RPC_CONNECTION_TIMEOUT: Connection timed out
    at $a.login (/home/luke/.var/app/com.vscodium.codium/data/codium/extensions/leonardssh.vscord-5.0.18-universal/node_modules/.pnpm/@xhayper+discord-rpc@1.0.15/node_modules/@xhayper/discord-rpc/dist/Client.js:250:20)
    at new Zi (/home/luke/.var/app/com.vscodium.codium/data/codium/extensions/leonardssh.vscord-5.0.18-universal/src/controller.ts:44:14)
    at Object.<anonymous> (/home/luke/.var/app/com.vscodium.codium/data/codium/extensions/leonardssh.vscord-5.0.18-universal/src/extension.ts:10:20)
    at Module.u._compile (/app/share/codium/resources/app/out/vs/loader.js:4:1313)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Module._load (node:internal/modules/cjs/loader:829:12)
    at Function.c._load (node:electron/js2c/asar_bundle:5:13343)
    at Function.r._load (/app/share/codium/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:120:13379)
    at Function.w._load (/app/share/codium/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:115:61900)
    at Function.v._load (/app/share/codium/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:115:61293)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Function.r [as __$__nodeRequire] (/app/share/codium/resources/app/out/vs/loader.js:5:101)
    at d.pb (/app/share/codium/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:115:63164)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Promise.all (index 0)
[10:07:03 PM] [INFO] [002] Destroyed Discord RPC client
[10:07:03 PM] [INFO] Successfully logged in to Discord with client ID 1031067701474492496```

@SirFluffDev
Copy link

I solved the issue! Turns out I was using the Flatpak version of VSCodium. Manually installing the .deb provided by VSCodium's website fixed the issue.

@nick22985
Copy link
Collaborator

98db028 should fix git issue.

Still happening more often now.

@xhayper
Copy link
Collaborator

xhayper commented Jan 5, 2023

Gahh ....

@KuezyIT
Copy link
Author

KuezyIT commented Jan 6, 2023

Heyo, issue is now re-occuring with Visual Studio Code - Insiders:

[3:48:53 PM] [INFO] [data.ts] ext(): Extension
[3:48:53 PM] [INFO] [data.ts] ext(): Changed to Extension
[3:48:53 PM] [INFO] [data.ts] [data.ts] ext(): Git extension is active
[3:48:53 PM] [INFO] [data.ts] api(): true
[3:48:53 PM] [INFO] [data.ts] api(): gitApi
[3:48:53 PM] [INFO] [data.ts] updateGit()
[3:48:53 PM] [INFO] [data.ts] repo(): no file open
[3:48:53 PM] [INFO] [data.ts] gitRepoPath(): f:\Projects\Team Increase\General Management\12 Development
[3:48:53 PM] [INFO] [data.ts] updateGit(): repo f:\Projects\Team Increase\General Management\12 Development
[3:48:53 PM] [INFO] [data.ts] api(): true
[3:48:53 PM] [INFO] [data.ts] api(): gitApi
[3:48:53 PM] [INFO] [data.ts] updateGit()
[3:48:53 PM] [INFO] [data.ts] repo(): no file open
[3:48:53 PM] [INFO] [data.ts] gitRepoPath(): f:\Projects\Team Increase\General Management\12 Development
[3:48:53 PM] [INFO] [data.ts] updateGit(): repo f:\Projects\Team Increase\General Management\12 Development
[3:48:53 PM] [INFO] Discord Rich Presence for VS Code activated.
[3:48:53 PM] [INFO] Registered Discord Rich Presence commands
[3:48:58 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[3:49:02 PM] [INFO] Reconnecting to Discord Gateway...
[3:49:02 PM] [INFO] [004] Debug: Logging in with client ID "782685898163617802"
[3:49:02 PM] [INFO] [004] Debug: Login - isConnected false isReady 782685898163617802
[3:49:02 PM] [INFO] [004] Debug: login - [object Object]
[3:49:03 PM] [ERROR] Encountered following error while trying to login: RPC_CONNECTION_TIMEOUT: Connection timed out
    at $a.login (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.18\node_modules\.pnpm\@xhayper+discord-rpc@1.0.15\node_modules\@xhayper\discord-rpc\dist\Client.js:250:20)
    at new Zi (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.18\src\controller.ts:44:14)
    at Object.<anonymous> (c:\Users\kuezy\.vscode-insiders\extensions\leonardssh.vscord-5.0.18\src\extension.ts:10:20)
    at Module.u._compile (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\loader.js:4:1313)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1220:10)
    at Module.load (node:internal/modules/cjs/loader:1035:32)
    at Module._load (node:internal/modules/cjs/loader:876:12)
    at Function.c._load (node:electron/js2c/asar_bundle:5:13343)
    at Function.l._load (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:121:13353)
    at Function.b._load (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:116:61972)
    at Function.E._load (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:116:61365)
    at Module.require (node:internal/modules/cjs/loader:1059:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Function.r [as __$__nodeRequire] (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\loader.js:5:101)
    at f.pb (e:\Users\Kuezy\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:116:63236)
    at async Promise.all (index 0)
[3:49:03 PM] [INFO] [002] Destroyed Discord RPC client
[3:49:03 PM] [INFO] Successfully logged in to Discord with client ID 782685898163617802
[3:49:13 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[3:49:13 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor: got unallowed scheme, got 'output'
[3:49:16 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[3:49:17 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor
[3:49:17 PM] [INFO] [data.ts] root(): window.onDidChangeActiveTextEditor: got unallowed scheme, got 'output'

@MatheusPese
Copy link

I was having the same issue, until I closed all discord instances (from other users in my machine) and restarted discord in my user. I don't know if it was what fixed it, but it is worth a try later.
(Cannot try to reproduce it right now, as I am in someone else's computer)

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

Successfully merging a pull request may close this issue.

9 participants