kcl-lang / tree-sitter-kcl

A tree-sitter grammar for KCL
Apache License 2.0
8 stars 6 forks source link

on NVIM seems to not build correctly #28

Open DrummyFloyd opened 2 months ago

DrummyFloyd commented 2 months ago

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

use Lazyvim

and nvim: 0.10.1

return {
  { "kcl-lang/kcl.nvim" },
  {
    "kcl-lang/tree-sitter-kcl",
    build = ":TSUpdate kcl",
    dependencies = {
      "nvim-treesitter/nvim-treesitter",
      opts = function(_, opts)
        require("nvim-treesitter.parsers").get_parser_configs().kcl = {
          install_info = {
            url = "https://github.com/kcl-lang/tree-sitter-kcl",
            files = { "src/parser.c" },
            branch = "main",
          },
          filetype = "kcl",
        }
      end,
    },
  },
}

2. What did you expect to see? (Required)

no erro message on build TSUpdate kcl

TBH, don't know if it's related to Tree-sitter-kcl compilator orTreeSitter pluginissue

3. What did you see instead (Required)

- ERROR Parser "kcl" failed to load (path: /home/drummy/.local/share/nvim/lazy/nvim-treesitter/parser/kcl.so): ...nux64/share/nvim/runtime/lua/vim/treesitter/language.lua:112: Failed to load parser for language 'kcl': uv_dlopen: no error

4. What is your KCL components version? (Required)

latest (kcl version 0.10.0-beta.3)

Peefy commented 2 months ago

I have realized that there has been a refactoring of the tree-sitter recently, and I will refactor and update the tree-sitter-kcl. Besides, you can also use the kcl-language-server in NVIM.

Peefy commented 2 months ago

I've updated the tree-sitter deps to 0.23.0 in https://github.com/kcl-lang/tree-sitter-kcl/pull/29

DrummyFloyd commented 2 months ago

thank for the update!

but it seems that is not related to that =/

Peefy commented 2 months ago

Thanks for the feedback. I will try to see.