lean4-htt/nix
Marc Huisinga 7ff7cf9b5a
feat: per-package server options (#2858)
This PR adds per-package server options to resolve #2455. It is based on
the previous work in #2456, but takes a different approach: options are
loaded for the specific file in the file worker when `print-paths` is
called, instead of loading them in the watchdog with a separate Lake
command. This change addresses review comments made in #2456.

In doing so, it introduces two new Lake config fields: 
- `leanOptions`: `-D` flag options that are passed to both the language
server and `lean` when building.
- `moreServerOptions`: `-D` flag options that are passed to the language
server.

Since `print-paths` must also accept a file path to compute the options
for that file, this PR is changing the API for `print-paths`. As there
have been numerous complaints about the name `print-paths`, I also
decided to change it to `setup-file` in this PR, since it would break
compatibility with the old Lake API anyways.

This PR deprecates the Lakefile field `moreServerArgs` in favor of
`moreGlobalServerArgs`, as suggested in the review for #2456.

Fixes #2455

---------

Co-authored-by: digama0 <mcarneir@andrew.cmu.edu>
2023-11-26 13:42:38 +00:00
..
bareStdenv chore: Nix: re-enable nix develop on bare derivations 2022-07-08 14:49:08 +02:00
templates/pkg chore: Nix: use strings instead of URL literals (#2172) 2023-03-28 10:10:24 +02:00
bootstrap.nix test: add Lake tests 2023-07-21 09:19:19 +02:00
buildLeanPackage.nix fix: If src is a dir, assume the lean file has the full path (#2465) 2023-08-28 14:45:45 +02:00
lake-dev.in feat: per-package server options (#2858) 2023-11-26 13:42:38 +00:00
lean-dev.in chore: Nix: better solution for filtering test output 2022-07-28 17:12:17 +02:00
packages.nix chore: Nix bump to LLVM 15 2023-07-28 10:56:54 +02:00