Skip to content

Conversation

@vermiculus
Copy link

See commit messages.

Very interested to see if I can get this working on my system; thanks for throwing this together :-)

I recommend reviewing this diff while ignoring whitespace changes.

This commit brings `objectscript_udl-ts-mode.el' into compliance with
typical Lisp style. No functional changes are made in this commit.
The `autoload` form is generated automatically when package.el builds
this package (as it scans for these cookies); specifying it manually
is atypical.

See `(info "(elisp) Autoload")` for more details.
`use-package` has known the `:vc` keyword for a few years now.

Use it in the installation instructions to drastically simplify what
it advertised -- even before this package is added to MELPA.
@vermiculus vermiculus changed the title Address syntax and style issues Address syntax, style, and functional issues Dec 5, 2025
At [1], we can see that the 'udl' variant simply uses
`tree_sitter_objectscript` as the exported symbol. If we call the
language `objectscript_udl` in `treesit-language-source-alist`, Emacs
will look for `tree_sitter_objectscript_udl`, which does not exist.

Rename the language to `objectscript` so that the correct symbol is
identified and found.

[1]: https://github.com/intersystems/tree-sitter-objectscript/blob/4d34cb2d4a4924f0b9c9524ffaba1b9c0644067e/setup.py#L12
@vermiculus vermiculus marked this pull request as draft December 5, 2025 03:17
@vermiculus
Copy link
Author

By the way, have you been able to get this to build / load recently? I consistently get (for example) Warning (treesit): The installed language grammar for objectscript_core cannot be located or has problems (version-mismatch): 15, which indicates that the upstream grammar is building with tree-sitter ABI version 15, but Emacs 30 is currently built with version 14 ((treesit-library-abi-version)).

Luckily d587ce8c65a (Support Tree-sitter version 0.26 and later, 2025-10-17) dropped on master recently which looks like it adds support for ABI 15, but I'm wondering if I'm just new to the treesitter game.

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

Successfully merging this pull request may close these issues.

1 participant