You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding (global-tree-sitter-mode) in my config.el causes the following warning to be thrown:
error No language registered for major mode 'fundamental-mode'
Shouldn't this just be a no-op for fundamental-mode. The entire purpose of (global-tree-sitter-mode) is so that I don't need to add my own hooks for each and every mode.
The text was updated successfully, but these errors were encountered:
For me it actually breaks startup; I'm using the doom emacs configuration, with fold enabled. fold triggers (ts-fold-mode +1) which triggers a tree-sitter--handle-dependent macro. That macro runs this:
(progn
(tree-sitter--error-protect
;; Make sure `tree-sitter-mode' is enabled before MODE.
(progn
(unless tree-sitter-mode
(tree-sitter-mode))
,setup)
;; Setup failed. Clean things up, leave no trace.
(setq ,mode nil)
,teardown) ...
For whatever reason, this unwind-protect isn't working; running doom with fold and tree-sitter enabled results in an init error, and running it with --debug-init gives me the trace that led me here.
Adding (global-tree-sitter-mode) in my config.el causes the following warning to be thrown:
error No language registered for major mode 'fundamental-mode'
Shouldn't this just be a no-op for fundamental-mode. The entire purpose of (global-tree-sitter-mode) is so that I don't need to add my own hooks for each and every mode.
The text was updated successfully, but these errors were encountered: