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

Invalid predicate error #2

Closed
steeni opened this issue Dec 1, 2024 · 1 comment
Closed

Invalid predicate error #2

steeni opened this issue Dec 1, 2024 · 1 comment

Comments

@steeni
Copy link

steeni commented Dec 1, 2024

I tried using this with the latest emacs version (built today from sources) but got the following error:

Invalid predicate, see ‘treesit-thing-settings’ for valid forms for a predicate: ("Invalid predicate, see `treesit-thing-settings' for valid forms of predicate" ("\\`\\(?:\\(?:bitstruct_declara\\|enum_declara\\|f\\(?:ault_declara\\|unc_defini\\)\\|\\(?:interface\\|macro\\|struct\\|union\\)_declara\\)tion\\)\\'"))

Here's how I tried to set it up:

(defun my-c3-preferences ()
  (setq-local treesit-font-lock-level 4))

(use-package c3-ts-mode
  :vc (:url "https://github.com/c3lang/c3-ts-mode" :branch "main")
  :hook (c3-ts-mode . my-c3-preferences))

Occurred in a c3 example hello world program.

import std::io;

fn void main()
{
    io::printn("Hello, World!");
}

My tree-sitter library version is 0.24.3. I did install language grammar first ofcourse. TS-modes works with other modes (I tried c/c++ and dockerfile). Could be that it occurs for me because I'm using so new emacs, but figured to report this for you anyway.

@Nathan-Melaku
Copy link
Contributor

I think this issue can be closed. now that the fix has been merged.

@lerno lerno closed this as completed Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants