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

error on neovim 0.11.0 release canditate #278

Open
pcorbineau opened this issue Nov 25, 2024 · 1 comment
Open

error on neovim 0.11.0 release canditate #278

pcorbineau opened this issue Nov 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@pcorbineau
Copy link

Bug description
CMakeGenerate produce this on next release candidate neovim 0.11.0

Error executing Lua callback: Vim:E474: Trailing comma: }
    ]
}
stack traceback:
        [C]: in function 'json_decode'
        ...a/nvim/lazy/cmake-tools.nvim/lua/cmake-tools/presets.lua:18: in function 'decode'
        ...a/nvim/lazy/cmake-tools.nvim/lua/cmake-tools/presets.lua:102: in function 'parse'
        ...data/nvim/lazy/cmake-tools.nvim/lua/cmake-tools/init.lua:116: in function <...data/nvim/lazy/cmake-tools.nvim/lua/cmake-tools/init.lua:85>

Steps to reproduce

Minimal configuration
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
    spec = {
        "stevearc/conform.nvim",
        "nvim-neotest/nvim-nio",
        {
            "Civitasv/cmake-tools.nvim",
            dependencies = {
                "nvim-lua/plenary.nvim",
            },
            opts = {
                cmake_regenerate_on_save = false,   -- auto generate when save CMakeLists.txt
                cmake_virtual_text_support = false, -- Show the target related to current file using virtual text (at right corner)
            }
        },
    },
})

Expected behavior

Working as expected

Screenshots

Environment

  • OS: Ubuntu 24.04 (on WSL2)
  • Desktop environment: WSL2
  • Plugins commit hash: 53bc526

Contents in the *cmake-tools* buffer

@pcorbineau pcorbineau added the bug Something isn't working label Nov 25, 2024
@pcorbineau pcorbineau changed the title error on neovim 0.11.0 release target error on neovim 0.11.0 release canditate Nov 25, 2024
@Civitasv
Copy link
Owner

Appear that neovim does not support json with comma: Vim:E474: Trailing comma:. You should check your json file.

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

2 participants