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

Error when connecting on account that hasn't joined rooms yet #123

Closed
Kabouik opened this issue Jan 27, 2023 · 5 comments
Closed

Error when connecting on account that hasn't joined rooms yet #123

Kabouik opened this issue Jan 27, 2023 · 5 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Kabouik
Copy link

Kabouik commented Jan 27, 2023

I was very happy to find an emacs package for Matrix so I immediately installed it from list-packages, but I am getting the following issue when running ement-connect:

Ement: Response arrived after 30.21 seconds.  Reading 795 JSON response...
Ement: Reading JSON took 0.00 seconds
Ement: Reading events... 
Ement: Sync request sent, waiting for response...
error in process sentinel: taxy-magit-section-format-header: Invalid format operation %n
error in process sentinel: Invalid format operation %n

This is on Guix system, and I get the same error after trying to uninstall emacs-magit. I have tried both emacs-magit@3.3.0-2.c883fab and emacs-magit@20230125.1440, same symptoms.

The only way I can install ement-el is from list-packages because the version on Guix seems to have dependency conflicts. However, when I install it, I get the above error, but also other ones when I restart emacs

Unable to activate package ‘transient’.
Required package ‘compat-28.1.1.0’ is unavailable
Unable to activate package ‘taxy-magit-section’.
Required package ‘magit-section-3.2.1’ is unavailable
Unable to activate package ‘taxy-magit-section’.
Required package ‘magit-section-3.2.1’ is unavailable
Unable to activate package ‘ement’.
Required package ‘taxy-magit-section-0.12.1’ is unavailable
@alphapapa
Copy link
Owner

Hello,

Although I'm glad to have Ement in Guix, I can't offer support for that packaging, because I have no control over it. I recommend installing the required packages directly from GNU ELPA into a clean Emacs configuration, e.g. using https://github.com/alphapapa/with-emacs.sh. If you do that, it should work.

@alphapapa alphapapa changed the title Unable to connect Issues with Guix packaging Jan 28, 2023
@oantolin
Copy link
Contributor

oantolin commented Feb 6, 2023

For what it's worth, I get the same "error in process sentinel: Invalid format operation %n" when trying to use ement.el. I installed it with package-install and do not use Guix. I tried in emacs -Q, running M-x package-initialize and then M-x ement-connect and get the same error. I'm new to matrix, so I'm possibly screwing up with what "user ID" means, I think it is of the form @username:server.tld (and I made my account on :matrix.org as I gather most people do). I have Emacs 28.1 running in WSL, and ement 0.5.2

@oantolin
Copy link
Contributor

oantolin commented Feb 6, 2023

Oh, here's a clue: I had initially tried to use ement.el right after creating an account, before joining any rooms. That's when I got the %n error. So next I joined a room using a different client and then tried to log in with ement.el again and this time it worked. So maybe it's a bug triggered by an empty room list?

@alphapapa
Copy link
Owner

Oh, here's a clue: I had initially tried to use ement.el right after creating an account, before joining any rooms. That's when I got the %n error. So next I joined a room using a different client and then tried to log in with ement.el again and this time it worked. So maybe it's a bug triggered by an empty room list?

Yes, that's likely the case. I haven't tested logging in on an account that hasn't yet joined any rooms.

@alphapapa alphapapa changed the title Issues with Guix packaging Error when connecting on account that hasn't joined rooms yet Feb 7, 2023
@alphapapa alphapapa self-assigned this Feb 7, 2023
@alphapapa alphapapa added the bug Something isn't working label Feb 7, 2023
@Kabouik
Copy link
Author

Kabouik commented Feb 7, 2023

I think you're right @oantolin: my use case was also with an account not in any room yet, and I believe this very error message vanished when I joined a room using the Element web UI first. I didn't notice that initially because I was still experiencing some other issues which I thought were all related, and I wanted to give troubleshooting a little more time before reporting here, to determine whether those issues would be related to my system or to ement.el.

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

3 participants