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

bug: Build.ps1 build failed every time after update #878

Open
TiancongLx opened this issue Nov 19, 2024 · 1 comment
Open

bug: Build.ps1 build failed every time after update #878

TiancongLx opened this issue Nov 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@TiancongLx
Copy link

Describe the bug

build_failed

Unable to perform cleanup operation due to insufficient access permissions.

To reproduce

No response

Expected behavior

The build script should be able to successfully complete the cleanup task, Just like installing from scratch:

install

Installation method

Use lazy.nvim:

{
  "yetone/avante.nvim",
  
  event = "VeryLazy",
  lazy = false,
  version = false,
    
  build = (function()
    if jit.os == "Windows" then
        return "pwsh -NoProfile Build.ps1"
    else
        return "make"
    end
  end)(),

  opts = {
    -- add any opts here
  },
}

Environment

NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1713484068

Kernel: WIN32_NT 10.0.26100.2314 (24H2)
Shell: PowerShell 7.4.6

Repro

No response

@TiancongLx TiancongLx added the bug Something isn't working label Nov 19, 2024
@yuchanns
Copy link
Collaborator

When a file is opened in Windows, it is locked by default and cannot be deleted, moved, or modified. The *.dll files are loaded by nvim at startup, which causes them to be locked.

A file can be deleted if FILE_SHARE_DELETE is set during the opening process. However, I'm unsure how we can influence the behavior of Lua when loading plugins.

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

No branches or pull requests

2 participants