cap-js-community / tree-sitter-cds

CAP CDS grammar for tree-sitter.
Apache License 2.0
16 stars 2 forks source link

fix(setup): Specify branch explicitly in config setup #7

Closed qmacro closed 9 months ago

qmacro commented 9 months ago

The treesitter installer assumes master branch, which causes the installation to fail:

[nvim-treesitter] [0/1] Downloading tree-sitter-cds...
[nvim-treesitter] [0/1] Creating temporary directory
[nvim-treesitter] [0/1] Extracting tree-sitter-cds...
nvim-treesitter[cds]: Failed to execute the following command:
{
  cmd = "mv",
  opts = {
    args = { "-f", "tree-sitter-cds-tmp/tree-sitter-cds-master", "tree-sitter-cds" },
    cwd = "/root/.local/share/nvim",
    stdio = {
      [2] = <userdata 1>,
      [3] = <userdata 2>
    }
  }
}
mv: cannot stat 'tree-sitter-cds-tmp/tree-sitter-cds-master': No such file or directory

Need to specify the actual branch main explicitly.

David-Kunz commented 9 months ago

Awesome, good catch!

Thank you, @qmacro

bugwelle commented 9 months ago

Thanks, @qmacro

Need to keep this in mind for #2