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

Merging plugins is not supported for key dir`` #60

Closed
max397574 opened this issue Dec 21, 2022 · 9 comments · Fixed by #55
Closed

Merging plugins is not supported for key dir`` #60

max397574 opened this issue Dec 21, 2022 · 9 comments · Fixed by #55
Labels
bug Something isn't working

Comments

@max397574
Copy link
Contributor

Describe the bug
I get this error on startup for all the local plugins (as new) in combination with always the same plugin as old.
If I remove the plugin then just another one is the old one.

Which version of Neovim are you using?
NVIM v0.9.0-dev-525+ga7332ba9b

Expected Behavior
No errors

Screenshots
image
image

Log
Please include any related errors from the Noice log file. (open with :Lazy log)

Lazy log

lazy.nvim (H) Install (I) Update (U) Sync (S) Clean (X) Check (C) Log (L) Restore (R) Profile (P) Debug (D) Help (?)

Total: 55 plugins

Breaking Changes (1)
● lazy.nvim 56170.32ms  init.lua
3c3a711 chore(build): auto-generate vimdoc (67 minutes ago)
44f80a7 feat(plugin): allow plugin files only without a main plugin module. Fixes #53 (68 minutes ago)
f5734f5 chore(build): auto-generate vimdoc (2 hours ago)
3814883 fix(ui): set current win only when its valid (2 hours ago)
3a7b8c8 chore(main): release 5.1.0 (#30) (11 hours ago)
3606d62 fix: add after directories to rtp to make after/ftplugin and others work. Fixes #47 (11 hours ago)
b193f96 fix(spec): only process a spec once (11 hours ago)
7be46bc style: removed unused requires (12 hours ago)
897d6df fix: add filetype to window buffer. (#41) (13 hours ago)
14300b3 chore(build): auto-generate vimdoc (13 hours ago)
78e9d6c docs: add a note about mapleader (13 hours ago)
06ac8bd perf(ui): clear existing extmarks before rendering (13 hours ago)
ffcd0ab fix(loader): source filetype.lua before plugins. Fixes #35 (14 hours ago)
9d12cdc fix(git): don't run git log for submodules. Fixes #33 (14 hours ago)
06ffcf5 chore(build): auto-generate vimdoc (14 hours ago)
7fb0652 docs: added docs on update checker (14 hours ago)
1f86cb3 chore(build): auto-generate vimdoc (15 hours ago)
3cffb2a docs: added change detection to the readme (15 hours ago)
6c767a6 feat: added options to configure change detection. Fixes #32 (15 hours ago)
cd162f3 chore(build): auto-generate vimdoc (15 hours ago)
941df31 feat(ui): make the windoww size configurable. Fixes #34 (15 hours ago)
5298441 fix: use nvim_feekeys instead of nvim_input for keys handler. Fixes #28 (16 hours ago)
2927b05 docs: added lincense (16 hours ago)
4d78203 chore(main): release 5.0.1 (#17) (17 hours ago)
1371a14 fix(build): use the shell to execute build commands (17 hours ago)
ffabe91 fix(cache): if mod is loaded already in the loader, then return that (18 hours ago)
316503f fix: dont autoload cached modules when module=false (18 hours ago)
992c679 fix: always set Config.me regardless of reset rtp (18 hours ago)
df6c986 fix: add neovim libs to rtp for treesitter parsers etc (19 hours ago)
49b69b7 chore(build): auto-generate vimdoc (20 hours ago)
e9d3a73 fix: default logs are now since 3 days ago to be in line with the docs (20 hours ago)
4234322 chore(build): auto-generate vimdoc (20 hours ago)
6e32759 fix: deepcopy lazyspec before processing (20 hours ago)
ec0f8d0 docs: added config.dev.path to the example (20 hours ago)
6404d42 fix: move re-sourcing check to the top (20 hours ago)
ddf36d7 fix: checker should not error on non-existing dirs (20 hours ago)
50ba619 test: fix tests (21 hours ago)
f78d8bf fix: show error when merging, but continue (21 hours ago)
b8a0055 chore(build): auto-generate vimdoc (22 hours ago)
1754056 fix: use jobstart instead of system to open urls (22 hours ago)
5ecc988 docs: use https to bootstrap lazy (22 hours ago)
ae644a6 fix: only run updated checker for installed plugins. Fixes #16 (22 hours ago)
7225b05 chore(build): auto-generate vimdoc (23 hours ago)
17fd57a docs: added docs for statusline and count (23 hours ago)
48a596e chore(build): auto-generate vimdoc (23 hours ago)
dfe8a65 docs: removed extra performance section (23 hours ago)
1fa2d87 docs: moved my dots to structuring plugins (23 hours ago)
9916318 chore(build): auto-generate vimdoc (23 hours ago)
abe026a docs: added section on performance (23 hours ago)
82aea47 chore(build): auto-generate vimdoc (24 hours ago)
72d66cd docs: updated lua stuff (24 hours ago)
ca43018 chore(build): auto-generate vimdoc (24 hours ago)
36cb7ea docs: migration guide (24 hours ago)
2f59ead chore(main): release 5.0.0 (#12) (24 hours ago)
dbcf675 chore(build): auto-generate vimdoc (24 hours ago)
b906ad9 docs: added windows to supported platforms (24 hours ago)
cb87aa3 ci: run tests on linux only for nw (25 hours ago)
75a36f3 chore(build): auto-generate vimdoc (25 hours ago)
af87108 fix(util): fixed double slashes (25 hours ago)
62c1542 fix(cache): normalize paths (26 hours ago)
bb1c2f4 feat: added support for Windows (27 hours ago)
198963f feat: utility method to normalize a path (27 hours ago)
a189883 fix: check for installed plugins with plain find (27 hours ago)
833b387 chore(build): auto-generate vimdoc (2 days ago)
ff89319 docs: removed dots from features (2 days ago)
b7bf18a style: spelling (2 days ago)
66dad89 chore(build): auto-generate vimdoc (2 days ago)
0c0b8b7 docs: todo (2 days ago)
92fd0d4 docs: updated installation and structuring plugins (2 days ago)
1baa92f docs: added docs on <cr> and <K> (2 days ago)
d827d8a docs: collapse semver examples (2 days ago)
1e16363 chore(build): auto-generate vimdoc (2 days ago)
980cfa9 docs: added config example when not using a Nerd Font (2 days ago)
713dcb6 build: added markdownlint config (2 days ago)
706fe6f chore(build): auto-generate vimdoc (2 days ago)
5ed9855 feat: added completion for all lazy commands (2 days ago)
b462787 docs: added optional plugins to docs for commands and methods (2 days ago)
f29f3d2 chore(build): auto-generate vimdoc (2 days ago)
1efa710 feat: added module=false to skip auto-loading of plugins on require (2 days ago)
55d194c chore(build): auto-generate vimdoc (2 days ago)
bac34cc docs: added section on uninstalling (2 days ago)
c065ca2 chore(build): auto-generate vimdoc (2 days ago)
2dd6230 feat: added :Lazy load foobar.nvim to load a plugin (2 days ago)
8a0da3b config: move lazy cache to state/nvim/lazy/cache (2 days ago)
7eb6034 chore(build): auto-generate vimdoc (2 days ago)
6567580 chore: todo (2 days ago)
6f00cde docs: typos (2 days ago)
faac2dd perf(cache): cache loadfile and no find modpaths without package.loaders (2 days ago)
32f2b71 fix(cache): do a fast check to see if a cached modpath is still valid. find it again otherwise (2 days ago)
1fe43f3 fix(ui): focus Lazy window when auto-installing plugins in VimEnter (2 days ago)
d4aee27 feat!: removed the LazyUpdate etc commands. sub-commands only from now on (2 days ago)
b89e6bf perf: lazy-load the commands available on the lazy module (3 days ago)
48309dd chore(main): release 4.2.0 (#11) (3 days ago)
c87673c feat(ui): added help for on a plugin (3 days ago)
b88b7d7 chore(build): auto-generate vimdoc (3 days ago)
e42a180 docs: added line on :checkhealth (3 days ago)
2526a01 chore(build): auto-generate vimdoc (3 days ago)
968fa3f style: removed bold from home button (3 days ago)
5fc87f9 docs: updated screenshots (3 days ago)
cd3d87c chore(build): auto-generate vimdoc (3 days ago)
d0651e4 docs: added section about the lockfile (3 days ago)
39f629e chore(build): auto-generate vimdoc (3 days ago)
628d421 docs: added my dots to the examples (3 days ago)
c88ad91 docs: added section on versioning (3 days ago)
78b284c docs: added section on lazy loading (3 days ago)
c0d3617 feat: check if ffi is available and error if not (3 days ago)
0f62ec0 chore(build): auto-generate vimdoc (3 days ago)
b70bb19 docs: added more detailed requirements (3 days ago)
db469ed chore(build): auto-generate vimdoc (3 days ago)
671b163 docs: added more details on startup sequence (3 days ago)
1730661 docs: generate docs for commands (3 days ago)
f25f942 feat: expose all commands on main lazy module (3 days ago)

Log (11)
● LuaSnip 67.66ms  nvim-cmp
5570fd7 Auto generate docs (13 hours ago)
618b945 log: don't print a message on every start, provide log.ping() instead. (13 hours ago)

○ gitsigns.nvim
    2ab3bdf fix(blame): #697 (2 days ago)

● neodev.nvim 8.8ms   nvim-lspconfig
    c5f0a81 chore: auto-generated types for Neovim nightly (3 hours ago)
    f8b17d3 chore: auto-generated types for Neovim nightly (27 hours ago)

● noice.nvim 1.42ms   LazyLoad
    e4a4290 chore(build): auto-generate vimdoc (2 days ago)
    29a2e05 feat: added `Filter.cond` to conditionally use a route (2 days ago)
    7dac8ce chore(build): auto-generate vimdoc (3 days ago)
    c9c1fbd fix: correctly apply padding based on four numbers (3 days ago)

● nui.nvim 0.1ms   noice.nvim
    b12db53 fix(layout): process split layout box change (4 hours ago)
    51721a4 fix(layout): process float layout box change (4 hours ago)
    96ef1cb feat(split): store id internally (4 hours ago)

● nvim-dap 4.04ms   LazyLoad   rust-tools.nvim
    284c754 Stop resizing widgets if converted to non-float window (2 days ago)
    3971d9b Allow opening multiple frames or scopes widgets (2 days ago)

● nvim-lspconfig 20.69ms   LazyLoad
    5292d60 docs: update server_configurations.md skip-checks: true (7 hours ago)
    f70a094 fix: rename ruff-lsp to ruff_lsp (#2337) (7 hours ago)
    80e81b1 docs: update server_configurations.md skip-checks: true (7 hours ago)
    d8a4493 chore: remove `languageFeatures`, `documentFeatures` (#2336) (7 hours ago)
    baab771 docs: update server_configurations.md skip-checks: true (8 hours ago)
    4e13145 feat: add ruff-lsp support (#2335) (8 hours ago)
    d597b0f fix: send the lsp method request after insert workspace folders (#2330) (27 hours ago)
    1ab2720 docs: update server_configurations.md skip-checks: true (27 hours ago)
    9c70f37 feat: add jq support (#2333) (27 hours ago)
    259729c docs: update server_configurations.md skip-checks: true (29 hours ago)
    aa22008 feat: add uvl support (#2331) (29 hours ago)
    dd9e7f9 fix(gdscript): support get the port from env variable (#2313) (31 hours ago)
    22c87d6 build(rockspec): fix rockspec package name (2 days ago)

● nvim-treesitter 10.2ms   nvim-treesitter-refactor
    eedb7b9 csharp: update query to parser change (26 hours ago)
    8498ebd Update parsers: c_sharp, jsonnet, query (26 hours ago)
    6e37050 Update parsers: swift (2 days ago)
    a75aded highlights(java): fix '!',param,global group (2 days ago)

● nvim-treesitter-textobjects 1.69ms   LazyLoad
    e2ee8fd ci: bump stylua version (3 days ago)

● playground 0.98ms   LazyLoad   nvim-treesitter
    3421bbb ci: bump action versions (3 days ago)

○ telescope.nvim
    d16581e fix: misidentification invert and files_with_matches (#2240) (#2262) (78 minutes ago)
    278c797 fix(builtin.live_grep): add spacer ":" even when coordinates disabled (#2275) (79 minutes ago)

Clean (6)

○ friendly-snippets
○ lense.nvim
● nvim-cmp 85.92ms  CmdLineEnter
○ packer.nvim
● which-key.nvim 90.9ms  LazyLoad

Loaded (9)
● neogen 0.64ms  nvim-cmp
● nvim-autopairs 1.85ms  LazyLoad  nvim-cmp
● nvim-dap-ui 2.92ms  LazyLoad  nvim-dap
● nvim-dap-virtual-text 0.18ms  nvim-dap
● nvim-notify 0.14ms  noice.nvim
● nvim-treesitter-refactor 11.24ms  LazyLoad
● one-small-step-for-vimkind 0.12ms  nvim-dap
● plenary.nvim 1.21ms  nvim-cmp
● rust-tools.nvim 7.27ms  nvim-lspconfig

Installed (28)
○ Comment.nvim
○ bufferline.nvim
○ cmp-emoji
○ cmp-latex-symbols
○ cmp-nvim-lsp
○ cmp-nvim-lua
○ cmp-path
○ cmp_luasnip
○ dirbuf.nvim
○ formatter.nvim
○ gitlinker.nvim
○ heirline.nvim
○ indent-blankline.nvim
○ jeskape.nvim
○ lightspeed.nvim
○ luv-vimdocs
○ nabla.nvim
○ neorg
○ nvim-colorizer.lua
○ nvim-surround
○ nvim-treesitter-endwise
○ nvim-web-devicons
○ paperplanes.nvim
○ ssr.nvim
○ telescope-file-browser.nvim
○ telescope-fzf-native.nvim
○ toggleterm.nvim
○ trouble.nvim

@max397574 max397574 added the bug Something isn't working label Dec 21, 2022
@folke folke closed this as completed in 540847b Dec 21, 2022
@folke
Copy link
Owner

folke commented Dec 21, 2022

The problem was that you had / at the end of the directory. Fixed now

@lvim-tech
Copy link

The problem was that you had / at the end of the directory. Fixed now

@folke, same error with commit

Merging plugins is not supported for key `1`
{
  new = { "telescope-fzf-native.nvim",
    _ = {
      dep = true
    },
    dir = "/home/usr/.local/share/nvim/lazy/telescope-fzf-native.nvim",
    name = "telescope-fzf-native.nvim",
    url = "https://github.com/telescope-fzf-native.nvim.git"
  },
  old = { "nvim-telescope/telescope-fzf-native.nvim",
    _ = {
      dep = true
    },
    build = "make",
    commit = "fab3e2212e206f4f8b3bbaa656e129443c9b802e",
    dir = "/home/usr/.local/share/nvim/lazy/telescope-fzf-native.nvim",
    name = "telescope-fzf-native.nvim",
    url = "https://github.com/nvim-telescope/telescope-fzf-native.nvim.git"
  }

@max397574
Copy link
Contributor Author

this isn't the same error

@dinhmai74
Copy link

I got the same error today; how to resolve it guys?

@folke
Copy link
Owner

folke commented Dec 21, 2022

@dinhmai74 for dir or for 1?

If you specify a dependency, it should be the full short url, not just the name

@folke
Copy link
Owner

folke commented Dec 21, 2022

@lvim-tech @dinhmai74 feel free to open a new issue, but make sure to provide a https://github.com/folke/lazy.nvim/wiki/Minimal-%60init.lua%60-to-Reproduce-an-Issue

It's impossible to debug this otherwise.

I need to have a minimal spec that is giving an issue so I can reproduce it

@dinhmai74
Copy link

I found the issue, I migrated from the packer and some plugins used dependencies as a table of the table instead of a table of strings.
change this

dependencies = {
     {"nvim-lua/plenary.nvim"},
     {"nvim-treesitter/nvim-treesitter"}
   },

to this

 dependencies = {
        "nvim-lua/plenary.nvim",
        "nvim-treesitter/nvim-treesitter"
      },

and it works.

@folke
Copy link
Owner

folke commented Dec 21, 2022

@dinhmai74 great! The first way should also work. I'll fix it. Thanks for looking into this

@max397574
Copy link
Contributor Author

I use the first way and it works for me

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