Skip to content

INT and MAC Routines not working #24

@XXXL-JOCH

Description

@XXXL-JOCH

With the current release and main branch the queries for INT and MAC are failing.
The CLS files work like a charm (with a few fixes of the queries).
There is no error-message. Comments actually kinda works:

Image

You can see that the $PIECE starts to get a comment as soon as there is a semicolon. That is not the case in cls files. So something is definitly going on there.
I tried different versions of tree-sitter and different versions of the queries.
To get it to work at all for cls I had to do the following:

# from main branch
cat ../core/queries/highlights.scm > ./highlights.scm
cat ../expr/queries/highlights.scm >> ./highlights.scm
cat ../udl/queries/highlights.scm >> ./highlights.scm

repeated that for all kind of queries and used that to TSInstall objectscript
Then it worked.
Otherwise I was getting a lot of errors in NVIM from the queries

local parsers = require('nvim-treesitter.parsers').get_parser_configs()
    parsers.objectscript = {
      install_info = {
        url = "https://github.com/intersystems/tree-sitter-objectscript",
        branch = "release",
        files = { "src/parser.c", "src/scanner.c"},
        location = "udl"
      },
    } 
vim.filetype.add({
  extension = {
    cls = "objectscript",
    int = "objectscript",
    mac = "objecscrtipt"
  }
})
vim.treesitter.language.register("objectscript", "objectscript")
vim.api.nvim_create_autocmd('FileType', {
  pattern = { 'objectscript' },
  callback = function() vim.treesitter.start() end,
})
====Neovim
NVIM v0.11.5
Build type: Release
LuaJIT 2.1.1741730670

====tree-sitter
branch: master
commit: 42fc28b
version: v0.10.0

===checkhealth nvim-treesitter
Parser/Features         H L F I J
  - css                 ✓ . ✓ ✓ ✓
  - html                ✓ ✓ ✓ ✓ ✓
  - javascript          ✓ ✓ ✓ ✓ ✓
  - markdown            ✓ . ✓ ✓ ✓
  - objectscript        ✓ . . ✓ ✓
  - python              ✓ ✓ ✓ ✓ ✓
  - sql                 ✓ . ✓ ✓ ✓
  - xml                 ✓ ✓ ✓ ✓ ✓

Maybe I'm missing something of the installation part. But nothing else is working for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions