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

bug: loading reference 'xx\xx\neoconf.nvim\schemas\pyright.json/': Unable to laod schema from '\' #18

Closed
3 tasks done
liuyangzys opened this issue Mar 15, 2023 · 4 comments · Fixed by #19
Closed
3 tasks done
Labels
bug Something isn't working

Comments

@liuyangzys
Copy link

Did you check docs and existing issues?

  • I have read all the neoconf.nvim docs
  • I have searched the existing issues of neoconf.nvim
  • I have searched the exsiting issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.9.0-dev-1115+g446c353a5

Operating system/version

Windows 11

Describe the bug

I opened a python file and use cmd "Neoconf local" to edit the local lsp configuration file. Then it report a bug as follow
image

Steps To Reproduce

  1. open a python file in nvim 9.0, Windows 11
  2. edit the settings json file by command "Neoconf local"

Expected Behavior

the reference json file should be found in the right path.

Repro

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  "folke/neoconf.nvim",
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here
@liuyangzys liuyangzys added the bug Something isn't working label Mar 15, 2023
@folke folke closed this as completed in 7297592 Mar 15, 2023
@folke
Copy link
Owner

folke commented Mar 15, 2023

I think I just fixed that. Would be great if you could verify

@liuyangzys
Copy link
Author

I think I just fixed that. Would be great if you could verify

It looks like there are still some problems. I have update neoconf.nvim to the correct head
image

But the bug report still exist
image

And I confirm that the pyright.json file does exist
image

folke added a commit that referenced this issue Mar 16, 2023
@folke
Copy link
Owner

folke commented Mar 16, 2023

Can you check again with the last update?

@liuyangzys
Copy link
Author

It woks fine now! Thanks for you hard work.

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

Successfully merging a pull request may close this issue.

2 participants