aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core
Commit message (Collapse)AuthorAgeFilesLines
* fix(fetch): use correct separator for Windows iwr headers (#1014)William Boman2023-02-201-2/+2
|
* feat(providers): add more endpoints (#1013)William Boman2023-02-191-7/+24
|
* feat(installer): add share links (#965)William Boman2023-02-178-116/+231
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* refactor(std): remove zstd from untar (#966)William Boman2023-02-051-11/+1
| | | This accidentally remained in #963.
* feat(windows): manually decompress zstd archives before untar (#963)BVegNow2023-02-052-5/+33
| | | Co-authored-by: William Boman <william@redwill.se>
* feat(ui): customizable window height and width (#906)Zeng2023-01-151-9/+17
|
* feat(ui): nicer bottom offset (#905)William Boman2023-01-141-1/+5
| | | This ensures that the window doesn't overlap the status bar.
* fix(ui): better bottom padding if cmdheight=0 (#902)William Boman2023-01-131-1/+1
|
* feat(functional): add list.index_by (#882)William Boman2023-01-102-0/+13
|
* refactor(providers): remove ?include_prerelease query param (#872)William Boman2023-01-092-7/+3
| | | This is no longer supported by mason-registry-api.
* fix(package): emit package:uninstall:success registry event (#849)William Boman2023-01-041-0/+1
|
* refactor(expr): rename to interpolate (#836)William Boman2023-01-021-14/+14
|
* feat(functional): add split_every and default_to (#835)William Boman2023-01-023-0/+29
|
* feat(dotnet): ignore failed sources (#792)Stone Lasley2022-12-301-0/+1
|
* fix(powershell): terminate stdin with newline (#818)William Boman2022-12-281-0/+1
| | | | | 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-263-10/+17
| | | Also now properly close pipes (shutdown -> close).
* feat(powershell): set $ErrorActionPreference = "Stop"; (#807)William Boman2022-12-261-11/+15
| | | Also write to stdin pipe asynchronously.
* refactor(installer): write debug log file after installation finishes (#806)William Boman2022-12-261-3/+8
|
* feat(expr): add tbl_interpolate() (#805)William Boman2022-12-261-7/+24
|
* feat(result): add .try() interface (#804)William Boman2022-12-261-0/+32
|
* feat(functional): add strip_{prefix,suffix} (#803)William Boman2022-12-263-2/+37
|
* refactor(installer): introduce PackageInstallOpts class (#802)William Boman2022-12-264-13/+8
|
* refactor(async): error with stack level 0 (#801)William Boman2022-12-261-2/+4
|
* feat(registry): add smithy-language-server (#795)Nick Rodgers2022-12-241-0/+6
|
* Revert "fix(spawn): always expand cmd if PATH is not modified (#773)" (#783)William Boman2022-12-211-19/+21
| | | This reverts commit dd04b4105e84620685c37efb6ca935d282e11465.
* fix(powershell): use pwsh if available (#782)William Boman2022-12-211-2/+4
|
* fix(spawn): always expand cmd if PATH is not modified (#773)William Boman2022-12-201-21/+19
| | | | | fix(spawn): always expand cmd on Windows Closes #720.
* feat(expr): use same context for value & filter evaluation (#778)William Boman2022-12-201-4/+34
|
* feat(functional): add trim_start and assoc (#779)William Boman2022-12-204-6/+34
|
* feat: add expr module (#775)William Boman2022-12-202-0/+53
| | | | | This is (soon) to be used when installing package definitions from https://github.com/mason-org/mason-registry/. See for example: https://github.com/mason-org/mason-registry/blob/7df69dd2a73efc3a08520552ca64597d1db5f4fb/packages/go-debug-adapter/package.yaml#L16
* feat(functional): add list.reduce (#772)William Boman2022-12-192-0/+13
|
* fix(functional): spread function args in _.apply (#770)William Boman2022-12-191-1/+1
|
* Revert "chore: use pwsh instead of powershell (#706)" (#769)William Boman2022-12-191-2/+2
| | | This reverts commit e64dffb84e84e67836a05707a95b1d81fe698481.
* feat: add purl parser (#756)William Boman2022-12-101-0/+283
|
* feat(functional): add some more functions (#755)William Boman2022-12-105-0/+104
|
* refactor(installer): rename run_installer to exec_in_context (#744)William Boman2022-12-081-6/+7
|
* feat(platform): accept darwin (#743)William Boman2022-12-082-6/+8
| | | | | Mac systems are generally referred to as the Darwin OS. For all intents and purposes, "mac" and "darwin" can be used interchangeably (although darwin will be preferred going forward).
* feat(functional): add more functions (#741)William Boman2022-12-086-0/+87
|
* fix(ui): set severity min & max for namespaced diagnostic config (#738)William Boman2022-12-071-1/+4
| | | | | | Simply setting it to true won't override sub-items such as a user's severity config. Some users may for example have set the `virtual_text` severity to only show ERRORs, causing Mason's INFO diagnostics to not be displayed.
* fix(package): don't call vim API functions inside fast event (#730)William Boman2022-12-052-6/+108
|
* feat: show warning message when exiting neovim with active installations (#725)William Boman2022-12-041-0/+10
|
* feat(ui): increase window height (#719)William Boman2022-12-021-6/+6
|
* feat(ui): hoist "Installing" and "Failed" package groups to the top (#712)William Boman2022-12-011-0/+1
| | | Also improve how logs are displayed.
* chore: use pwsh instead of powershell (#706)William Boman2022-11-291-2/+2
|
* feat(pip): add setting to upgrade pip before installing packages (#671)William Boman2022-11-161-0/+12
| | | Closes #616.
* docs: update mason-errors help section (#646)William Boman2022-11-081-1/+1
|
* feat(ui): add MasonNormal highlight (#636)William Boman2022-11-061-14/+10
|
* fix(gem): don't format executable (#634)William Boman2022-11-061-0/+1
| | | | Closes #570. Closes williamboman/mason-lspconfig.nvim#94.
* fix(platform): also accept exit code 1 when checking ldd version (#630)William Boman2022-11-051-1/+1
| | | Fixes #629.
* fix(zls): support zst (#622)Access2022-11-032-3/+7
| | | Co-authored-by: William Boman <william@redwill.se>