Mac Malone
b51115dac5
feat: IO.Process.SpawnArgs.inheritEnv ( #6081 )
...
This PR adds an `inheritEnv` field to `IO.Process.SpawnArgs`. If
`false`, the spawned process does not inherit its parent's environment.
For example, Lake will make use of this to ensure that build processes
do not use environment variables that Lake is not properly tracking with
its traces.
2025-04-16 00:25:32 +00:00
Sebastian Ullrich
bd24ca3093
test: re-elaboration benchmarks ( #7784 )
...
Tests language server memory use by repeatedly re-elaborate a given file
2025-04-02 10:10:46 +00:00
Sebastian Ullrich
a449e3fdd6
feat: IO.getTID ( #6049 )
...
This PR adds a primitive for accessing the current thread ID
To be used in a thread-aware trace profiler
2024-11-16 19:13:11 +00:00
euprunin
cda6733f97
chore: fix spelling mistakes in non-Lean files ( #5430 )
...
Co-authored-by: euprunin <euprunin@users.noreply.github.com>
2024-09-23 21:11:20 +00:00
Sebastian Ullrich
9b342efb84
fix: calling programs with spaces on Windows ( #4515 )
...
This entire API has been carefully optimized for maximum pain output
---------
Co-authored-by: Mac Malone <tydeu@hatpress.net>
2024-07-26 17:35:05 +00:00
Henrik Böving
9a852595c4
feat: Process.tryWait ( #4660 )
...
Reopen of #4659 due to "processing updates" bug.
2024-07-08 15:14:13 +00:00
Mac Malone
e6160d7d4a
feat: IO.Process.get/setCurrentDir ( #4036 )
...
Adds `IO.Process.getCurrentDir` and `IO.Process.setCurrentDir` for
retrieving and setting, respectively, the current working directory of a
process. The names of the functions are inspired by Rust (e.g.,
[`set_current_dir`](https://doc.rust-lang.org/std/env/fn.set_current_dir.html )).
2024-05-02 13:49:10 +00:00
tydeu
c79c7c89b3
feat: IO.Process.getPID & IO.FS.Mode.writeNew
2023-08-08 16:23:43 -04:00
Sebastian Ullrich
9901804a49
feat: SpawnArgs.setsid, Child.kill
2023-07-05 23:42:53 +02:00
Sebastian Ullrich
51e77d152c
fix: do not inherit file handles across process creation
2023-03-10 16:27:56 +01:00
awson
d5063c8fa7
fix: environment leak on Windows
2022-10-19 19:34:43 -07:00
Sebastian Ullrich
0ade9ee39b
fix: make IO.Process.Child.wait fallible
2021-12-13 15:12:48 +01:00
Sebastian Ullrich
b13d3e6ca5
fix: dllexport functions not already annotated in header
2021-09-20 18:41:46 +02:00
Leonardo de Moura
c8406a301d
chore: reduce src/include/lean
2021-09-07 08:24:54 -07:00
Leonardo de Moura
14b611af96
refactor: move buffer.h and *_ref.h files to runtime
2021-08-16 15:39:38 -07:00
Sebastian Ullrich
1eee82f745
fix: Windows build
2021-07-22 19:50:42 +02:00
Sebastian Ullrich
2091a09fa1
feat: IO.Process.Child.takeStdin
2021-06-11 17:53:51 -07:00
vvs-
b15e770231
fix: crash in IO.Process.wait on 32-bit architecture
...
The implemetation of unbox_uint32 is the same as unbox on 64-bit
but it is different for 32-bit platforms
Fixes #290
2021-01-24 14:37:23 +01:00
Sebastian Ullrich
38911d1be3
feat: Nix: support leanpkg print-paths setup
2021-01-19 19:06:01 +01:00
Sebastian Ullrich
23c3995ae2
fix: Windows cmdline arg quoting
...
...
2021-01-19 19:06:01 +01:00
Sebastian Ullrich
d58b02a0be
fix: translate Windows error codes
2020-12-30 21:07:07 +01:00
Wojciech Nawrocki
b1e6edefde
fix: redirect child I/O to null on Process.Stdio.null
...
And don't use errno for Win32 API errors.
2020-11-27 13:17:32 -08:00
Sebastian Ullrich
c88784ef9d
refactor: consistent io_result_mk* naming
...
/cc @leodemoura
2020-08-31 11:08:57 +02:00
Sebastian Ullrich
1fb1a6f913
fix: do not expose invalid process handles when not redirected
2020-08-30 14:28:56 -07:00
Sebastian Ullrich
9f40e46043
feat: basic process API
2020-08-30 14:28:56 -07:00