Skip to content

No handler for make-range! for c language #890

Description

@ilan-schemoul

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Nvim version 0.12.3
Latest version of this package and all other treesitter packages
Open c file

static
void uInt64_toAscii ( char* outbuf, UInt64* n )
{
Int32 i, q;
UChar buf[32];
Int32 nBuf = 0;
UInt64 n_copy = *n;
do {
q = uInt64_qrm10 ( &n_copy );
buf[nBuf] = q + '0';
nBuf++;
} while (!uInt64_isZero(&n_copy));
outbuf[nBuf] = 0;
for (i = 0; i < nBuf; i++)
outbuf[i] = buf[nBuf-i-1];
}

Try anything like a swap

require("nvim-treesitter-textobjects.swap").swap_next "@parameter.inner"

Error
E5108: Lua: ...m/0.12.3/share/nvim/runtime/lua/vim/treesitter/query.lua:861: No handler for make-range!
stack traceback:
[C]: in function 'error'
...m/0.12.3/share/nvim/runtime/lua/vim/treesitter/query.lua:861: in function '_apply_directives'
...m/0.12.3/share/nvim/runtime/lua/vim/treesitter/query.lua:1085: in function '(for generator)'
...r-textobjects/lua/nvim-treesitter-textobjects/shared.lua:68: in function 'fn'
...r-textobjects/lua/nvim-treesitter-textobjects/shared.lua:42: in function 'get_query_matches'
...r-textobjects/lua/nvim-treesitter-textobjects/shared.lua:157: in function 'fn'
...3/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:717: in function 'for_each_tree'
...r-textobjects/lua/nvim-treesitter-textobjects/shared.lua:154: in function 'get_capture_ranges_recursively'
...r-textobjects/lua/nvim-treesitter-textobjects/shared.lua:326: in function 'textobject_at_point'
...ter-textobjects/lua/nvim-treesitter-textobjects/swap.lua:179: in function 'swap_textobject'
...ter-textobjects/lua/nvim-treesitter-textobjects/swap.lua:211: in function <...ter-textobjects/lua/nvim-treesitter-textobjects/swap.lua:210>

Output of :checkhealth nvim-treesitter

Details

==============================================================================
nvim-treesitter: ✅

Requirements ~

  • ✅ OK Neovim was compiled with tree-sitter runtime ABI version 15 (required >=13).
  • ✅ OK tree-sitter-cli 0.26.9 (/opt/homebrew/bin/tree-sitter)
  • ✅ OK tar 3.5.3 (/usr/bin/tar)
  • ✅ OK curl 8.7.1 (/usr/bin/curl)
    curl 8.7.1 (x86_64-apple-darwin25.0) libcurl/8.7.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.68.1
    Release-Date: 2024-03-27
    Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
    Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM SPNEGO SSL threadsafe UnixSockets

OS Info ~

  • sysname: Darwin
  • machine: arm64
  • release: 25.5.0
  • version: Darwin Kernel Version 25.5.0: Mon Apr 27 20:39:29 PDT 2026; root:xnu-12377.121.6~2/RELEASE_ARM64_T8142

Install directory for parsers and queries ~

  • /Users/ilan/.local/share/nvim/site
  • ✅ OK is writable.
  • ✅ OK is in runtimepath.

Installed languages H L F I J ~

  • c ✓ ✓ ✓ ✓ ✓

  • c_sharp ✓ ✓ ✓ . ✓

    Legend: [H]ighlights, [L]ocals, [F]olds, [I]ndents, In[J]ections ~

Output of nvim --version

0.12.3```

**Additional context**
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions