Omnisharp installation error #1282
-
Hi All, I'm trying to install omnisharp ls and keep getting "Cannot write exec wrapper to "omnisharp" because the file already exists". I've removed the existing omnisharp folder in the data directory, but this had no effect. Does anyone know what might be causing the issue? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
If you've manually tried to clean up things in Mason's directory it may have "corrupted" the installation if not all related artifacts were removed. Try installing again with the |
Beta Was this translation helpful? Give feedback.
-
Tried it with no luck. It looks like it is failing on the "Registering bin links" line: `[DEBUG Thu May 4 12:29:12 2023] ...te/pack/packer/start/mason.nvim/lua/mason-core/fetch.lua:34: Fetching URL "https://raw.githubusercontent.com/OmniSharp/omnisharp-vscode/master/package.json" [DEBUG Thu May 4 12:29:12 2023] .../pack/packer/start/mason.nvim/lua/mason-core/process.lua:116: Spawning cmd="curl", spawn_opts={ [DEBUG Thu May 4 12:29:12 2023] .../pack/packer/start/mason.nvim/lua/mason-core/process.lua:162: Spawned with pid 45157 [DEBUG Thu May 4 12:29:13 2023] .../pack/packer/start/mason.nvim/lua/mason-core/process.lua:148: Job pid=45157 exited with exit_code=0, signal=0 [DEBUG Thu May 4 12:29:13 2023] ...rt/mason.nvim/lua/mason-core/installer/registry/link.lua:157: Registering bin links Package(name=omnisharp) { [ERROR Thu May 4 12:29:13 2023] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:200: Installation failed for Package(name=omnisharp) error='Cannot write exec wrapper to "omnisharp" because the file already exists.' |
Beta Was this translation helpful? Give feedback.
Hm there seems to be an issue with the package itself on case-insensitive file systems actually. mason-org/mason-registry#1478 should fix this, (once merged run
:MasonUpdate
and try installing again)