-
Notifications
You must be signed in to change notification settings - Fork 6
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
Cannot enable the extension #7
Comments
Hi 👋 It seems to be a problem from coc.nvim. 🤔 Answer me a few questions:
|
I'm guessing @MrDogeBro is running WSL, because I stumbled upon this issue myself too. In the meantime, one should also put up a pull request on Discord's RPC implementation, right here to check for WSL as well (it is as simple as checking if the string 'microsoft' is inside the platform info). The last issue is the fact that you dispose the client on error: try {
await client.connect();
} catch (error) {
log(error, LogLevel.Err);
void client.dispose();
} And that calls the |
|
Welp, nvm then. Also it seems named pipes in windows aren't communicable through WSL, so this wont work plugin wont work on WSL. Anyway, for better error handling you should fix the dispose function 😃 |
@MrDogeBro have you tried other extensions? such as: coc-cord? I want to see if it's from my extension or from discordjs/RPC. |
@leonardssh coc-cord doesn't work, but it just says it couldn't connect. None of the commands for coc-cord register either. Plus, on the GitHub for coc-cord, it says that you should use this plugin instead of coc-cord, as well as the fact that coc-cord is literally archived by its owner. Coc-cord doesn't give the cant read write of null error though, which means it is most likely your extension. |
About the error, "could not connect", it is from discordjs/RPC, it does not have support for Mac OSX. Tou can take a look at this, it seems to be the solution: iCrawl/discord-vscode#66 (comment) In the meantime, I'm going to fix the shit error. |
See that's what makes no sense, you say it doesn't support Mac OSX. I would say otherwise, because discord-vscode, which works perfectly on my machine, relies on discordjs/RPC as well, meaning it must support Mac OSX. That would mean it is something that you need to fix in the extension. |
@leonardssh Why did you close the issue? It is not resolved. |
I'm a begginner with "issues". I have a script that I am now learning how to work with on the issues side. Let's put this aside, we solved the problem with: [coc.nvim]: UnhandledRejection: TypeError: Cannot read property 'write' of null
UnhandledRejection: TypeError: Cannot read propery 'write' of null |
We didn't solve the issue though.... |
Give me a few moments to upload the solved version so you can test. :) |
Ok, sounds good. Hopefully it works. Well see I guess. |
Okay, you can update the extension using: |
Ok, on NPM its still at 3.0.8 so should I wait for that to update? |
The npmjs updates the versions very slowly. You can try the command |
Ok, if that doesn't work I'll just wait for NPM to update. Didn't know NPM was slow on updates though because I use python a lot and PyPi updates literally in like a few seconds so I'm kinda used to that. |
When I post a new version of the extension, it always takes some time to update on the site, but if I use the |
So I got the updated version and thats working but I'm not getting the following error:
|
Yeah, this error is from discordjs/RPC. It does not find the discord IPC in the default path. But you said that the vscode extension works, even though I use the same library. Quite strange. 🤔 |
Thats what confusing. Never had any issues with vscode extension that uses discordjs/RPC but this is having issues.....very strange.... |
I really don't know how I can help you, you can try running the example in the discordjs/RPC repository and see if that works, if not do some debugging and open an issue over there. |
Running the example from discordjs/RPC works perfectly fine. This means it is a problem with your extension, not theirs, or there is some greater issue with coc and nvim. |
lol... yeah, most likely to be the problem from neovim or coc.nvim. |
@MrDogeBro can you upgrade the extension to the new version 4.0.0? I want to know if there are any problems. Thanks! |
I have the same issue, discord-vscode works as is, but not coc-discord-rpc. I edited the error message to print the id and path of coc-nvivm.log:
The
macOS 11.1 (Big Sur) |
For anyone else searching, I went into |
I just installed this coc extension and its not working. When I try to enable the extension, it throws this error.
Error:
The text was updated successfully, but these errors were encountered: