aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mason-core/managers
Commit message (Collapse)AuthorAgeFilesLines
* refactor!: remove old managers (#1497)William Boman2025-02-1613-2006/+0
|
* feat: don't use vim.g.python3_host_prog as a candidate for python (#1606)William Boman2024-01-211-40/+0
| | | | This is inconsistent with how other system dependencies are resolved and is not documented anywhere.
* feat(installer): lock package installation (#1290)William Boman2023-05-1811-39/+45
|
* fix(powershell): close stdin (#1197)William Boman2023-04-081-1/+24
|
* fix(github): fall back to curl/wget if gh is not available (#1181)William Boman2023-04-051-13/+13
|
* refactor: only schedule in a.scheduler() when in fast event (#1170)William Boman2023-04-021-1/+0
| | | Explicitly schedule via `a.wait(vim.schedule)` instead.
* style: enforce import order (#1092)William Boman2023-03-1212-51/+51
| | | | | * chore(workflows): update dependencies * style: enforce import order
* feat: add github registry source capabilities (#1091)William Boman2023-03-121-1/+3
|
* refactor(powershell): remove .script and fix fast API error (#1057)William Boman2023-03-051-46/+2
| | | | Calling vim.fn.executable in the module scope has potential to error if the module is required outside of the main loop.
* feat(installer): add share links (#965)William Boman2023-02-1711-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat(installer): add share links Adds the ability to symlink share files to ~/.local/share/nvim/mason/share (default location). This is currently not used by any packages but will be soon (e.g. linking .jar files to a canonical location on the fs). This also includes the following changes: - fix(windows): correctly unlink executables Prior to this change, executables on Windows would not be removed when uninstalling a package. - refactor(installer): use Result interfaces The motivation behind this is to move away from exceptions and pcalls to leverage the Result interface. This allows for better error messaging during installation, as well as improved composability of actions that may or may not fail. - refactor(bin): use absolute paths in exec wrapper scripts While relative paths are preferred and will end up returning in the future, they i) cannot be guaranteed for all packages, and ii) is somewhat complicated to produce due to lack of std APIs. Moving the entire Mason installation directory was never officially supported anyway. - feat(installer): add "force" flag When this flag is true, any existing executables or share files will be overridden if they exist (i.e. mangle another package installation). * refactor(result): always return Result objects in Result.try The rationale here used to be that exceptions in Result.try() blocks were treated truly as exceptions that should interrupt code execution per Lua's traditional error handling semantics. However, Lua code is somewhat prone to raise exceptions when you don't expect it to (especially when interacting with loosely documented external APIs). Combine this with the fact that code that invokes Result.try() blocks generally doesn't `pcall` and only relies on the Result API to handle errors, you end up with code that only gracefully handles one class of errors (the well-known ones). * test(terminator): sleep in tests to avoid race condition I've no idea why this doesn't pass in CI, works just fine locally.
* chore: fix some typosZhizhen He2023-02-151-1/+1
|
* feat(dotnet): ignore failed sources (#792)Stone Lasley2022-12-301-0/+1
|
* fix(powershell): terminate stdin with newline (#818)William Boman2022-12-281-1/+2
| | | | | Powershell doesn't seem to be closing the process after commands finsh executing and stdin is closed, not entirely sure why. This seems to fix the issue.
* refactor: interact with libuv pipes in async context (#808)William Boman2022-12-261-2/+6
| | | Also now properly close pipes (shutdown -> close).
* feat(powershell): set $ErrorActionPreference = "Stop"; (#807)William Boman2022-12-261-9/+18
| | | Also write to stdin pipe asynchronously.
* refactor(installer): introduce PackageInstallOpts class (#802)William Boman2022-12-2610-20/+20
|
* fix(powershell): use pwsh if available (#782)William Boman2022-12-211-0/+97
|
* refactor(installer): rename run_installer to exec_in_context (#744)William Boman2022-12-0811-39/+51
|
* fix(package): don't call vim API functions inside fast event (#730)William Boman2022-12-051-1/+0
|
* feat(pip): add setting to upgrade pip before installing packages (#671)William Boman2022-11-161-0/+41
| | | Closes #616.
* fix(gem): don't format executable (#634)William Boman2022-11-061-0/+1
| | | | Closes #570. Closes williamboman/mason-lspconfig.nvim#94.
* test: use stubs and dedent (#621)William Boman2022-11-026-182/+166
|
* feat(gem): use provider API (#617)William Boman2022-11-021-37/+23
|
* feat: add provider interface (#601)William Boman2022-10-301-13/+17
|
* refactor(api): use new endpoints (#550)William Boman2022-10-141-2/+2
|
* feat(npm): speed up checking for new versions (#530)William Boman2022-10-091-25/+33
|
* feat(github): use proxy API for fetching latest release (#521)William Boman2022-10-061-39/+0
| | | | | | | This uses a globally distributed, edge-cached, proxy [1] for a very common touchpoint with the GitHub API. This is already done for fetching the latest tag, now expanding to latest release as well. [1]: https://github.com/williamboman/github-api-proxy
* fix(pip3): expand python3_host_prog path (#519)William Boman2022-10-061-0/+17
| | | Fixes #505.
* feat(cargo): improve handling of git-based crates (#512)William Boman2022-10-052-29/+164
| | | | This is all pretty overkill, especially considering the small amount of packages based on git-based crates.
* test(cargo): stub crates.io http call (#508)William Boman2022-10-041-2/+12
|
* fix(r-languageserver): use github releases as version source (#417)William Boman2022-09-141-0/+47
|
* test(github): add spec file for the github manager (#299)William Boman2022-08-151-0/+52
|
* refactor: introduce selene, harden type defs, and use proper EmmyLua syntax ↵William Boman2022-08-156-11/+4
| | | | (#296)
* fix(go): improve parsing package mod (#197)William Boman2022-07-301-0/+1
|
* feat: add luaformatter (#116)William Boman2022-07-221-0/+22
| | | Co-authored-by: Ali Shahid <canttell@gmail>
* feat(mason-lspconfig): add :LspInstall and :LspUninstall commands (#35)William Boman2022-07-082-2/+0
| | | | These should be in complete parity with the nvim-lsp-installer commands. Now even better than before.
* refactor: add mason-schemas and mason-core modules (#29)William Boman2022-07-0811-0/+1638
* refactor: add mason-schemas and move generated filetype map to mason-lspconfig * refactor: add mason-core module