Skip to content

bug: extra backslash in stdpath in repro.lua #1747

@S1M0N38

Description

@S1M0N38

Did you check docs and existing issues?

  • I have read all the lazy.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of lazy.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.10.1 Build type: Release LuaJIT 2.1.1725453128

Operating system/version

MacOS 14.4.1

Describe the bug

repro.lua suggested on https://lazy.folke.io/developers#reprolua modify XDG wrongly.

An extra backslash is inserted between .repro and its subdirs.

I encounter this bug when I was trying to install molten.nvim which is a rplugin. Neovim was not able to find path for rplugin.nvim manifest file (Issue)

Steps To Reproduce

Run the following repro.lua with nvim -u repro.lua

In my case I got

/Users/my-user/Developer/test-lazyvim/.repro//data/nvim
/Users/my-user/Developer/test-lazyvim/.repro//config/nvim
/Users/my-user/Developer/test-lazyvim/.repro//cache/nvim

Expected Behavior

Valid paths would be

/Users/my-user/Developer/test-lazyvim/.repro/data/nvim
/Users/my-user/Developer/test-lazyvim/.repro/config/nvim
/Users/my-user/Developer/test-lazyvim/.repro/cache/nvim

Repro

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 = { } })

vim.cmd('echo stdpath("data")  ')
vim.cmd('echo stdpath("config")')
vim.cmd('echo stdpath("cache") ')

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions