-
Notifications
You must be signed in to change notification settings - Fork 180
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
Not able to use treesitter derived mode with straight #541
Comments
I'm not sure how straight works to comment on this. But I would be happy to accept a documentation PR if you have found a workaround for this ? |
@xofyarg You can disable autoloads and byte-compiling for
But in my experience this still doesn't work because whenever I use the above with |
Same issue with |
Do you mean without |
@psibi Right! I am using
(use-package rust-mode
:init (setq rust-format-on-save t
rust-mode-treesitter-derive t)) |
@psibi I found the root cause in my env. I enabled |
Yeah, agree. I use rust-mode with |
I can't reproduce these errors. Rust-mode works fine with treesitter on my machine
|
Sorry for the late reply. Let me try to explain the issue in more details: Firstly, Secondly, straight generates the autoloads file by default with Now let's see how it (doesn't) work: the autoloads has the code below. When a
The following straight snippet works but not elegant, as it manually set autoloads for rust-mode:
I'm not sure if there are any better options, there are something in my mind:
|
Given the following config, straight will byte compile the package, and generate an autoload file. The autoload file pulls in
rust-prog-mode
unconditionally. I'm not sure how to workaround this, maybe wrap the file content with a runtime check?The text was updated successfully, but these errors were encountered: