Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on NVIM seems to not build correctly #28

Open
DrummyFloyd opened this issue Sep 10, 2024 · 4 comments
Open

on NVIM seems to not build correctly #28

DrummyFloyd opened this issue Sep 10, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@DrummyFloyd
Copy link

DrummyFloyd commented Sep 10, 2024

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 Peefy added the bug Something isn't working label Sep 10, 2024
@Peefy
Copy link
Contributor

Peefy commented Sep 11, 2024

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
Copy link
Contributor

Peefy commented Sep 11, 2024

I've updated the tree-sitter deps to 0.23.0 in #29

@DrummyFloyd
Copy link
Author

thank for the update!

but it seems that is not related to that =/

@Peefy
Copy link
Contributor

Peefy commented Sep 11, 2024

Thanks for the feedback. I will try to see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants