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

void-function magit-insert-section--create #288

Closed
butter-radish opened this issue Aug 3, 2024 · 6 comments
Closed

void-function magit-insert-section--create #288

butter-radish opened this issue Aug 3, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@butter-radish
Copy link

butter-radish commented Aug 3, 2024

OS/platform

Linux

Emacs version and provenance

GNU Emacs 29.4, from GNU Guix, installed with Guix

Emacs command

Default xinit for EXWM that comes with the GNU Guix System, which starts with this process: /bin/emacs --eval (cond\ ((file-exists-p\ "~/.exwm")\ (load-file\ "~/.exwm"))\ ((not\ (featurep\ (quote\ exwm)))\ (require\ (quote\ exwm))\ (require\ (quote\ exwm-config))\ (exwm-config-default)\ (message\ (concat\ "exwm\ configuration\ not\ found.\ "\ "Falling\ back\ to\ default\ configuration..."))))

Emacs frame type

GUI

Ement package version and provenance

0.15.1, from GNU Guix, installed with Guix

Actions taken

I connected to my Matrix ID, the error occurred as soon Ement finished loading? The backtrace popped up instead of my room list.

Observed results

My room list wouldn’t load, it errored out. My notifications buffer wouldn’t load, it errored out. I was able to get into rooms and load their messages with ‘ement-room-view’, but I couldn’t send any messages because I would get the same error.

Expected results

Everything working :’)

Backtrace

(void-function magit-insert-section--create)
    magit-insert-section--create(ement-room-list-section nil nil)
    taxy-magit-section-insert(#s(taxy-magit-section :name "Ement Rooms" :description nil :key nil :items nil :taxys (#s(taxy-magit-section :name ... :description nil :key ... :items ... :taxys nil :predicate #f(compiled-function (item) #<bytecode 0x1fd0a5c579bfaa14>) :then ignore :make #f(compiled-function (&rest args) #<bytecode -0x1ef8d1594d1edd3b>) :take nil :visibility-fn taxy-magit-section-visibility :heading-face-fn #f(compiled-function (depth) #<bytecode 0x162b700297ba571a>) :level-indent 2 :item-indent 2 :format-fn #f(compiled-function (item) #<bytecode 0x1d623777c3710629>)) #s(taxy-magit-section :name "Unread" :description nil :key "Unread" :items ... :taxys nil :predicate #f(compiled-function (item) #<bytecode 0x1db0ce1fbd2f7569>) :then ignore :make #f(compiled-function (&rest args) #<bytecode -0x1ef8d1594d1edd3b>) :take nil :visibility-fn taxy-magit-section-visibility :heading-face-fn #f(compiled-function (depth) #<bytecode 0x162b700297ba571a>) :level-indent 2 :item-indent 2 :format-fn #f(compiled-function (item) #<bytecode 0x1d623777c3710629>)) #s(taxy-magit-section :name "Spaced" :description nil :key "Spaced" :items nil :taxys ... :predicate #f(compiled-function (item) #<bytecode 0x1db0ce1e6b953de9>) :then ignore :make #f(compiled-function (&rest args) #<bytecode -0x1ef8d1594d1edd3b>) :take #f(compiled-function (item taxy) #<bytecode 0xc5e1d77d867cf6>) :visibility-fn taxy-magit-section-visibility :heading-face-fn #f(compiled-function (depth) #<bytecode 0x162b700297ba571a>) :level-indent 2 :item-indent 2 :format-fn #f(compiled-function (item) #<bytecode 0x1d623777c3710629>)) #s(taxy-magit-section :name "Unspaced" :description nil :key "Unspaced" :items nil :taxys ... :predicate #f(compiled-function (item) #<bytecode 0x1d103eaa84f7c900>) :then ignore :make #f(compiled-function (&rest args) #<bytecode -0x1ef8d1594d1edd3b>) :take #f(compiled-function (item taxy) #<bytecode 0xc0dcf6b9c87cf6>) :visibility-fn taxy-magit-section-visibility :heading-face-fn #f(compiled-function (depth) #<bytecode 0x162b700297ba571a>) :level-indent 2 :item-indent 2 :format-fn #f(compiled-function (item) #<bytecode 0x1d623777c3710629>)) #s(taxy-magit-section :name ... :description nil :key ... :items nil :taxys ... :predicate #f(compiled-function (item) #<bytecode 0x1db0ce2823d2c2e9>) :then ignore :make #f(compiled-function (&rest args) #<bytecode -0x1ef8d1594d1edd3b>) :take #f(compiled-function (item taxy) #<bytecode 0x17463ab05867cf6>) :visibility-fn taxy-magit-section-visibility :heading-face-fn #f(compiled-function (depth) #<bytecode 0x162b700297ba571a>) :level-indent 2 :item-indent 2 :format-fn #f(compiled-function (item) #<bytecode 0x1d623777c3710629>)) #s(taxy-magit-section :name "Spaces" :description nil :key "Spaces" :items ... :taxys nil :predicate #f(compiled-function (item) #<bytecode 0x1db0ce1e6b97b7e9>) :then ignore :make #f(compiled-function (&rest args) #<bytecode -0x1ef8d1594d1edd3b>) :take #f(compiled-function (item taxy) #<bytecode 0xc0df4fa9d67cf6>) :visibility-fn taxy-magit-section-visibility :heading-face-fn #f(compiled-function (depth) #<bytecode 0x162b700297ba571a>) :level-indent 2 :item-indent 2 :format-fn #f(compiled-function (item) #<bytecode 0x1d623777c3710629>)) #s(taxy-magit-section :name "Low-priority" :description nil :key "Low-priority" :items ... :taxys ... :predicate #f(compiled-function (item) #<bytecode -0x11c0754e7da518fd>) :then ignore :make #f(compiled-function (&rest args) #<bytecode -0x1ef8d1594d1edd3b>) :take #f(compiled-function (item taxy) #<bytecode 0xc5e1d785567cf6>) :visibility-fn taxy-magit-section-visibility :heading-face-fn #f(compiled-function (depth) #<bytecode 0x162b700297ba571a>) :level-indent 2 :item-indent 2 :format-fn #f(compiled-function (item) #<bytecode 0x1d623777c3710629>)) #s(taxy-magit-section :name "[Left]" :description nil :key "[Left]" :items ... :taxys nil :predicate #f(compiled-function (item) #<bytecode 0x1db0ce3e69be16e9>) :then ignore :make #f(compiled-function (&rest args) #<bytecode -0x1ef8d1594d1edd3b>) :take nil :visibility-fn taxy-magit-section-visibility :heading-face-fn #f(compiled-function (depth) #<bytecode 0x162b700297ba571a>) :level-indent 2 :item-indent 2 :format-fn #f(compiled-function (item) #<bytecode 0x1d623777c3710629>))) :predicate identity :then ignore :make #f(compiled-function (&rest args) #<bytecode -0x1ef8d1594d1edd3b>) :take (lambda (item taxy) (taxy-take-keyed ... item taxy)) :visibility-fn taxy-magit-section-visibility :heading-face-fn #f(compiled-function (depth) #<bytecode 0x162b700297ba571a>) :level-indent 2 :item-indent 2 :format-fn #f(compiled-function (item) #<bytecode 0x1d623777c3710629>)) :items first :initial-depth 0 :section-class ement-room-list-section)
    ement-room-list()
    ement-room-list--after-initial-sync(#s(ement-session :user ... :server ... :token "syt_Zm56_HNBMJ..." :transaction-id 3015314874 :rooms ... :next-batch "s5136121822_75..." :device-id "8dc1c360ddc167..." :initial-device-display-name "Ement.el: user..." :has-synced-p nil :account-data ... :events #<hash-table equal 606/730 0x397e001>))
    run-hook-with-args(ement-room-list--after-initial-sync #s(ement-session :user ... :server ... :token "syt_Zm56_HNBMJ..." :transaction-id 3015314874 :rooms ... :next-batch "s5136121822_75..." :device-id "8dc1c360ddc167..." :initial-device-display-name "Ement.el: user..." :has-synced-p nil :account-data ... :events #<hash-table equal 606/730 0x397e001>))
    ement--sync-callback(#s(ement-session :user ... :server ... :token "syt_Zm56_HNBMJ..." :transaction-id 3015314874 :rooms ... :next-batch "s5136121822_75..." :device-id "8dc1c360ddc167..." :initial-device-display-name "Ement.el: user..." :has-synced-p nil :account-data ... :events #<hash-table equal 606/730 0x397e001>) (... ... ... ... ... ...))
    apply(ement--sync-callback (... ...))
    #f(compiled-function (&rest args2) #<bytecode -0xade01cdce46dcf0>)(((next_batch . "s5136121822_757284974_16070518_3...") (account_data (events . [... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...])) (device_one_time_keys_count (signed_curve25519 . 51)) (org.matrix.msc2732.device_unused_fallback_key_types . []) (device_unused_fallback_key_types . []) (rooms (join
  (room-ids) ;; [​List of my Room IDs, redacted​]  
  ) (leave (room-ids))))) ;; [​List of my Room IDs, redacted​]  
    #f(compiled-function () #<bytecode 0x8d50dc25bbe3f20>)()
    plz--respond(#<process plz-request-curl> #<buffer  *plz-request-curl*> "finished\n")
    apply(plz--respond (#<process plz-request-curl> #<buffer  *plz-request-curl*> "finished\n"))
    timer-event-handler([t 26286 1433 945591 nil plz--respond (#<process plz-request-curl> #<buffer  *plz-request-curl*> "finished\n") nil 931000 nil])

Etc.

I just upgraded to 0.15.1, from either 0.15.0 or 0.14.

@butter-radish butter-radish added the bug Something isn't working label Aug 3, 2024
@butter-radish
Copy link
Author

I installed magit, just going off what the backtrace was saying, but that didn’t fix it :(

@alphapapa
Copy link
Owner

@tarsius Maybe you have an idea here?

@tarsius
Copy link
Contributor

tarsius commented Aug 3, 2024

Sounds like taxy-magit-section was compiled with a newer magit version, which does define magit-insert-section--create, and then interactively an older magit is used, which doesn't do that yet.

@butter-radish
Copy link
Author

I have ‘taxy-magit-section’, installed by Guix, which I’m assuming came with Ement, but there is a version of ‘magit-section’ on my system that’s been installed as a dependency by package.el. The only version of ‘magit’ I have is the one I just installed via Guix.

@butter-radish
Copy link
Author

You were right, @tarsius, it was that ‘magit-section’ installed by package.el with something else that was causing problems. Apparently, it was refusing to autoremove because package.el detected the externally installed ‘taxy-magit-sections’ and Magit still depending on it. So removing it was more complicated than it had to be.

But it’s gone now, and everything works!! Well, except for the notifications, which seems like a separate issue, actually… My rooms load, though, thanks! This issue is fixed.

@alphapapa
Copy link
Owner

Thanks, @tarsius!

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