Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Breaking change: attempt to call method 'gsub' (a nil value) from project_config.lua:52 #17

Closed
csy19960309 opened this issue Nov 28, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@csy19960309
Copy link

Bug description
Got the error message in the title.

Steps to reproduce

Nearly every operation raises that.

Expected behavior

Screenshots

Environment

  • OS: WIndows 11
  • Desktop environment:
  • Plugins commit hash: b5c7565

Additional context

After taking back the toString method, everything will be OK.

@csy19960309 csy19960309 added the bug Something isn't working label Nov 28, 2021
@Shatur
Copy link
Owner

Shatur commented Nov 28, 2021

Can't reproduce. Could you provide your configuration?

@btaczala
Copy link

btaczala commented Dec 1, 2021

@csy19960309 Had the same problem with config:

require("cmake").setup({
    parameters_file = "neovim.json",
    build_dir = Path:new('{cwd}', 'build', ''),

changing it to

require("cmake").setup({
	parameters_file = "neovim.json",
	build_dir = tostring(Path:new("{cwd}", "build")),

fixed the issue.

@Shatur
Copy link
Owner

Shatur commented Dec 1, 2021

Oh, you used Plenary.Path in your configuration.
Sorry, I didn't think this could be a breaking change, my bad. Yes, now you should use plain strings in settings.

@Shatur Shatur changed the title attempt to call method 'gsub' (a nil value) from project_config.lua:52 Attempt to call method 'gsub' (a nil value) from project_config.lua:52 Dec 1, 2021
@Shatur Shatur pinned this issue Dec 1, 2021
@Shatur
Copy link
Owner

Shatur commented Dec 1, 2021

Pinning and closing.

@Shatur Shatur closed this as completed Dec 1, 2021
@Shatur Shatur changed the title Attempt to call method 'gsub' (a nil value) from project_config.lua:52 Breaking change: Attempt to call method 'gsub' (a nil value) from project_config.lua:52 Dec 1, 2021
@Shatur Shatur changed the title Breaking change: Attempt to call method 'gsub' (a nil value) from project_config.lua:52 Breaking change: attempt to call method 'gsub' (a nil value) from project_config.lua:52 Dec 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants