Open yanis-fourel opened 1 week ago
Hi, the issue involves a JsonSchema error for the rust-analyzer configuration schema in the mason.nvim plugin. To solve it:
1. Identify the source of the error in json-schema.lua at line 119, where a nil value is being concatenated.
2. Add a conditional check to handle the nil value by setting a default label if key is nil.
3. Test the modified code to ensure it displays the configuration schema correctly without errors.
I've searched open issues for similar requests
I've manually reviewed logs to find potential errors
I've recently downloaded the latest plugin version of mason.nvim
Problem description
Expanding the "LSP server configuration schema" for rust-analyzer gives the following error
By adding a
vim.print(shema)
on the line right before the error happens, this is the last messages that got printed:and then the error message.
by adding a
Then there is no more error, and here is the displayed Json schema:
Expected behavior
Show the server configuration json schema without error
Steps to reproduce
37a336b
):Mason
Affected packages
rust-analyzer
Neovim version (>= 0.7)
NVIM v0.10.0 Build type: Release LuaJIT 2.1.1716656478
Operating system/version
Linux xxx 6.9.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 16 Jun 2024 19:06:37 +0000 x86_64 GNU/Linux
Healthcheck
Screenshots or recordings
No response