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

[Neo-tree WARN] Error rendering component icon: .../astrocommunity/lua/astrocommunity/pack/ansible/init.lua:7: couldn't parse regex: Vim:E55: Unmatched ) #1283

Closed
4 tasks done
wert2all opened this issue Dec 6, 2024 · 8 comments · Fixed by #1284
Labels
bug Something isn't working

Comments

@wert2all
Copy link

wert2all commented Dec 6, 2024

Checklist

  • I have searched through the AstroNvim documentation
  • I have searched through the existing issues of this project
  • I have searched the existing issues of plugins related to this issue
  • I can replicate the bug with the minimal repro.lua provided below

Neovim version (nvim -v)

0.10.2

Operating system/version

opensuse

Terminal/GUI

kitty

Describe the bug

Warning on open neotree window
Caused by #1280

Steps to Reproduce

  1. Open neotree window

Expected behavior

no warnings

Screenshots

No response

Additional Context

No response

Minimal configuration

-- save as repro.lua
-- run with nvim -u repro.lua
-- DO NOT change the paths
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "runtime", "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
  -- stylua: ignore
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)

-- install plugins
local plugins = {
  { "AstroNvim/AstroNvim", import = "astronvim.plugins" },
  { "AstroNvim/astrocommunity" },

  -- add any other plugins/customizations here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

-- add anything else here (autocommands, vim.filetype, etc.)
@wert2all wert2all added the bug Something isn't working label Dec 6, 2024
@hit0ri
Copy link

hit0ri commented Dec 7, 2024

I think an extra \\ in front of vars introduced in commit c5e7f6a is causing this

@wert2all
Copy link
Author

wert2all commented Dec 7, 2024

I think an extra \\ in front of vars introduced in commit c5e7f6a is causing this

looks like you're right

@YouSysAdmin
Copy link

YouSysAdmin commented Dec 8, 2024

Same else problem

Please tell me how to pin a version, add a "version" or/and "commit," it isn't helpful, it always gets the latest commit from the main branch

@wert2all
Copy link
Author

wert2all commented Dec 9, 2024

@YouSysAdmin just relax and wait for #1284 merge :)

@YouSysAdmin
Copy link

@wert2all this is for the future, version pinning in the community.lua config doesn't work for me.
So I'm wondering where I don't understand something or if it is just a feature :)

@wert2all
Copy link
Author

wert2all commented Dec 9, 2024

@wert2all this is for the future, version pinning in the community.lua config doesn't work for me. So I'm wondering where I don't understand something or if it is just a feature :)

i have no clue. You could remove import ... from community.lua and will add a new plugin with #1284 content ( https://github.com/AstroNvim/astrocommunity/blob/cf7a7ae0e92bf09f5f7d710113fcad794d3e3b77/lua/astrocommunity/pack/ansible/init.lua)

ps. якщо у вас не вийде, то можете мені написати в діскорді astriNvim'а.

@AlePini
Copy link

AlePini commented Dec 10, 2024

Same else problem

Please tell me how to pin a version, add a "version" or/and "commit," it isn't helpful, it always gets the latest commit from the main branch

@YouSysAdmin I found a way to pin the plugin version, but not the single pack. Since astrocommunity is a plugin, you can follow the documentation at lazy.folke.io and edit community.lua like this:

@type LazySpec
return {
  {
    "AstroNvim/astrocommunity",
    commit = "cf7a7ae0e92bf09f5f7d710113fcad794d3e3b77"
  },
  { import = "astrocommunity.pack.ansible" }
}

@YouSysAdmin
Copy link

YouSysAdmin commented Dec 10, 2024

Hi @AlePini @wert2all
Thnx, it's work
I made a mistake, I forgot about the bracket.

return {
  {
    "AstroNvim/astrocommunity",
    commit = "cf7a7ae0e92bf09f5f7d710113fcad794d3e3b77",
  { import = "astrocommunity.pack.ansible" }
}

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.

4 participants