KaranAhlawat / scala-ts-mode

A tree-sitter based Emacs major-mode for the Scala programming language
GNU General Public License v3.0
38 stars 6 forks source link

Document which grammar version to use #21

Open huanie opened 5 days ago

huanie commented 5 days ago

Hi I am getting some font-lock errors when using latest commit from https://github.com/tree-sitter/tree-sitter-scala/commit/a9af6356f8e31f04e870587bca79bc2b15808ff5. Please document in the README which version to use or add a function that installs the correct grammar.

KaranAhlawat commented 5 days ago

Could you post the errors here? Would give me a sense of what version of grammar the package currently supports

huanie commented 4 days ago

Example error:

object Test:
  print("Hello word")

Error during redisplay: (jit-lock-function 19) signaled (treesit-query-error "Node type error at" 135 "(boolean_literal) @font-lock-constant-face (integer_literal) @font-lock-number-face (floating_point_literal) @font-lock-number-face [(symbol_literal) (string) (character_literal)] @font-lock-string-face" "Debug the query with `treesit-query-validate'")

You get this when typing/indenting.

KaranAhlawat commented 4 days ago

Okay so, while I try and fix this (and get the package up to speed with newer versions), you can use version 0.23.2, that seems to work for me.