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

fix(plugins): "Vim:E150: Not a directory" on plugin update #1679

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

slbug
Copy link
Contributor

@slbug slbug commented Jul 25, 2024

Description

On plugins update it fails with following error for any plugin.

~/.local/share/nvim/lazy/lazy.nvim/manage/task/plugin.lua:95: Vim:E150: Not a directory: ~/.local/share/nvim/lazy/gitsigns.nvim/doc/

@slbug slbug changed the title Fix "Vim:E150: Not a directory" on plugin update fix(plugins) "Vim:E150: Not a directory" on plugin update Jul 25, 2024
@slbug slbug changed the title fix(plugins) "Vim:E150: Not a directory" on plugin update fix(plugins): "Vim:E150: Not a directory" on plugin update Jul 25, 2024
@folke folke merged commit 7108809 into folke:main Jul 25, 2024
2 of 4 checks passed
@folke
Copy link
Owner

folke commented Jul 25, 2024

I never encountered that error, so I don't really understand why you do.
Merged it anyway, since the change doesn't really change anything semantically.

folke pushed a commit that referenced this pull request Jul 25, 2024
🤖 I have created a release *beep* *boop*
---


##
[11.14.1](v11.14.0...v11.14.1)
(2024-07-25)


### Bug Fixes

* **plugins:** "Vim:E150: Not a directory" on plugin update
([#1679](#1679))
([7108809](7108809))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@adriancmiranda
Copy link

adriancmiranda commented Aug 11, 2024

Hey guys!
I noticed this issue occurred when I had just installed the dependencies and ran :Lazy sync or :Lazy update. To address it, I created a local patch for my installation.

diff --git a/lua/lazy/help.lua b/lua/lazy/help.lua
index 46b47fd..ca41f24 100644
--- a/lua/lazy/help.lua
+++ b/lua/lazy/help.lua
@@ -39,7 +39,7 @@ function M.index(plugin)
 end

 function M.update()
-  if Config.plugins["lazy.nvim"] then
+  if Config.plugins["lazy.nvim"] and Util.file_exists(Config.plugins["lazy.nvim"].dir .. "/doc") then
     vim.cmd.helptags(Config.plugins["lazy.nvim"].dir .. "/doc")
   end
   if Config.options.readme.enabled == false then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants