committed by
GitHub
parent
1f0fc8d6e8
commit
1b13a49f91
@@ -1724,5 +1724,6 @@ Windows WSL and PowerShell
|
|||||||
- Trash is unavailable
|
- Trash is unavailable
|
||||||
- Executable file detection is disabled as this is non-performant and can
|
- Executable file detection is disabled as this is non-performant and can
|
||||||
freeze nvim
|
freeze nvim
|
||||||
|
- Some filesystem watcher error related to permissions will not be reported
|
||||||
|
|
||||||
vim:tw=78:ts=4:sw=4:et:ft=help:norl:
|
vim:tw=78:ts=4:sw=4:et:ft=help:norl:
|
||||||
|
|||||||
@@ -54,7 +54,14 @@ function Event:start()
|
|||||||
local event_cb = vim.schedule_wrap(function(err, filename)
|
local event_cb = vim.schedule_wrap(function(err, filename)
|
||||||
if err then
|
if err then
|
||||||
log.line("watcher", "event_cb '%s' '%s' FAIL : %s", self._path, filename, err)
|
log.line("watcher", "event_cb '%s' '%s' FAIL : %s", self._path, filename, err)
|
||||||
self:destroy(string.format("File system watcher failed (%s) for path %s, halting watcher.", err, self._path))
|
local message = string.format("File system watcher failed (%s) for path %s, halting watcher.", err, self._path)
|
||||||
|
if err == "EPERM" and (utils.is_windows or utils.is_wsl) then
|
||||||
|
-- on directory removal windows will cascade the filesystem events out of order
|
||||||
|
log.line("watcher", message)
|
||||||
|
self:destroy()
|
||||||
|
else
|
||||||
|
self:destroy(message)
|
||||||
|
end
|
||||||
else
|
else
|
||||||
log.line("watcher", "event_cb '%s' '%s'", self._path, filename)
|
log.line("watcher", "event_cb '%s' '%s'", self._path, filename)
|
||||||
for _, listener in ipairs(self._listeners) do
|
for _, listener in ipairs(self._listeners) do
|
||||||
|
|||||||
Reference in New Issue
Block a user