elisp-tree-sitter
elisp-tree-sitter copied to clipboard
Issue with emacs "native-comp" branch: Error during redisplay: (jit-lock-function 339) signaled (invalid-function tsc--save-context)
I was able to have Emacs with the native-comp branch working on Arch Linux, thanks to this reddit post.
Now, I'm facing with an issue related to this package on that "flavor" of Emacs:
Error during redisplay: (jit-lock-function 339) signaled (invalid-function tsc--save-context)
this triggers from time to time during editing a buffer that has tree-sitter-hl-mode turned on.
Error during redisplay: (jit-lock-function 339) signaled (invalid-function tsc--save-context) [3 times]
Error during redisplay: (jit-lock-function 839) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 339) signaled (invalid-function tsc--save-context) [2 times]
Error during redisplay: (jit-lock-function 839) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 339) signaled (invalid-function tsc--save-context) [2 times]
Error during redisplay: (jit-lock-function 839) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 339) signaled (invalid-function tsc--save-context) [10 times]
Error during redisplay: (jit-lock-function 839) signaled (invalid-function tsc--save-context)
Saving file /home/jorge/code/kue/fero/dev/frontend/src/modules/ability/ability.tsx...
Wrote /home/jorge/code/kue/fero/dev/frontend/src/modules/ability/ability.tsx
Error during redisplay: (jit-lock-function 339) signaled (invalid-function tsc--save-context) [2 times]
Error during redisplay: (jit-lock-function 839) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 339) signaled (invalid-function tsc--save-context) [2 times]
Error during redisplay: (jit-lock-function 839) signaled (invalid-function tsc--save-context)
Saving file /home/jorge/code/kue/fero/dev/frontend/src/modules/ability/ability.tsx...
Wrote /home/jorge/code/kue/fero/dev/frontend/src/modules/ability/ability.tsx
Error during redisplay: (jit-lock-function 495) signaled (invalid-function tsc--save-context) [4 times]
Saving file /home/jorge/code/kue/fero/dev/frontend/src/modules/ability/ability.tsx...
Wrote /home/jorge/code/kue/fero/dev/frontend/src/modules/ability/ability.tsx
Error during redisplay: (jit-lock-function 995) signaled (invalid-function tsc--save-context)
Updating buffer list...done
Commands: m, u, t, RET, g, k, S, D, Q; q to quit; h for help
Building tree-sitter...
Building tree-sitter → Building tsc...done
Building tree-sitter...done
Mark set
Error during redisplay: (jit-lock-function 495) signaled (invalid-function tsc--save-context) [2 times]
Error during redisplay: (jit-lock-function 995) signaled (invalid-function tsc--save-context)
Saving file /home/jorge/code/kue/fero/dev/frontend/src/modules/ability/ability.tsx...
Wrote /home/jorge/code/kue/fero/dev/frontend/src/modules/ability/ability.tsx
Error during redisplay: (jit-lock-function 434) signaled (invalid-function tsc--save-context) [2 times]
Error during redisplay: (jit-lock-function 934) signaled (invalid-function tsc--save-context)
Mark set
Error during redisplay: (jit-lock-function 434) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 375) signaled (invalid-function tsc--save-context) [2 times]
Error during redisplay: (jit-lock-function 875) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 375) signaled (invalid-function tsc--save-context) [2 times]
Error during redisplay: (jit-lock-function 875) signaled (invalid-function tsc--save-context)
Mark set
Error during redisplay: (jit-lock-function 490) signaled (invalid-function tsc--save-context) [10 times]
Error during redisplay: (jit-lock-function 990) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 910) signaled (invalid-function tsc--save-context) [30 times]
Auto-saving...done
Error during redisplay: (jit-lock-function 910) signaled (invalid-function tsc--save-context) [2 times]
Saving file /home/jorge/code/kue/fero/dev/frontend/src/modules/ability/ability.tsx...
Wrote /home/jorge/code/kue/fero/dev/frontend/src/modules/ability/ability.tsx
Undo
Error during redisplay: (jit-lock-function 910) signaled (invalid-function tsc--save-context)
Undo
Error during redisplay: (jit-lock-function 910) signaled (invalid-function tsc--save-context)
Undo
Error during redisplay: (jit-lock-function 910) signaled (invalid-function tsc--save-context)
Undo
Error during redisplay: (jit-lock-function 910) signaled (invalid-function tsc--save-context)
Undo
Error during redisplay: (jit-lock-function 910) signaled (invalid-function tsc--save-context)
Undo
Error during redisplay: (jit-lock-function 490) signaled (invalid-function tsc--save-context) [2 times]
Error during redisplay: (jit-lock-function 990) signaled (invalid-function tsc--save-context)
Undo
Error during redisplay: (jit-lock-function 490) signaled (invalid-function tsc--save-context)
Undo
Error during redisplay: (jit-lock-function 490) signaled (invalid-function tsc--save-context) [2 times]
Error during redisplay: (jit-lock-function 990) signaled (invalid-function tsc--save-context)
Undo
Error during redisplay: (jit-lock-function 375) signaled (invalid-function tsc--save-context)
Undo
Error during redisplay: (jit-lock-function 375) signaled (invalid-function tsc--save-context)
Undo
Error during redisplay: (jit-lock-function 434) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 375) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 875) signaled (invalid-function tsc--save-context)
Mark activated
Error during redisplay: (jit-lock-function 552) signaled (invalid-function tsc--save-context) [2 times]
Error during redisplay: (jit-lock-function 1052) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 552) signaled (invalid-function tsc--save-context) [7 times]
Error during redisplay: (jit-lock-function 1052) signaled (invalid-function tsc--save-context)
Saving file /home/jorge/code/kue/fero/dev/frontend/src/modules/ability/ability.tsx...
Wrote /home/jorge/code/kue/fero/dev/frontend/src/modules/ability/ability.tsx
Tree-Sitter-Hl mode disabled in current buffer
Tree-Sitter-Hl mode enabled in current buffer
Error during redisplay: (jit-lock-function 281) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 781) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 1281) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 759) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 819) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 759) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 1259) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 818) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 819) signaled (invalid-function tsc--save-context) [4 times]
Error during redisplay: (jit-lock-function 1319) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 819) signaled (invalid-function tsc--save-context) [5 times]
Error during redisplay: (jit-lock-function 818) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 819) signaled (invalid-function tsc--save-context) [2 times]
Error during redisplay: (jit-lock-function 1319) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 819) signaled (invalid-function tsc--save-context) [2 times]
Error during redisplay: (jit-lock-function 1319) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 819) signaled (invalid-function tsc--save-context) [8 times]
Error during redisplay: (jit-lock-function 1319) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 819) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 837) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 819) signaled (invalid-function tsc--save-context)
Error during redisplay: (jit-lock-function 1319) signaled (invalid-function tsc--save-context)
Auto-saving...done
is there a way to provide more information for debugging purposes?
Does this happen if tree-sitter and tsc are interpreted or byte-compiled (instead of native-compiled)?
This happens in the redisplay code, so you won't be able to use debug-on-error. You can try tracing tree-sitter and tsc. You can also try logging in places that call tsc--save-context.
My guess is that gccemacs hasn't handled macro calls in the redisplay code path yet.
I native compile everything on ~/.emacs.d/ does that answer part of your question?
El vie., 18 de diciembre de 2020 04:39, Tuấn-Anh Nguyễn < [email protected]> escribió:
Does this happen if tree-sitter and tsc are interpreted or byte-compiled (instead of native-compiled)?
This happens in the redisplay code, so you won't be able to use debug-on-error. You can try tracing tree-sitter and tsc. You can also try logging in places that call tsc--save-context.
My guess is that gccemacs hasn't handled macro calls in the redisplay code path yet.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ubolonton/emacs-tree-sitter/issues/83#issuecomment-748013806, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIBT4HE7O6U6C53Q72LA6TSVMWNBANCNFSM4VARJ3LQ .
I native compile everything on ~/.emacs.d/ does that answer part of your question?
No, I meant you should try loading the interpreted or byte-compiled versions of tree-sitter and tsc, and check whether the error happens then.
(load "tree-sitter.el")
(load "tsc.el")
(load "tree-sitter.elc")
(load "tsc.elc")
To check whether a function is interpreted, byte-compiled, or native-compiled, use symbol-function.
Additionally, you can try changing individually suspected functions, using eval-defun and compile-defun.