nix/src
Pierre Bourdon ffe6ba69d6 repl: do not crash when tab-completing import errors
File not found while importing is not currently caught by the tab-completion handler.

Original bug report: https://git.lix.systems/lix-project/lix/issues/340
Fix has been adapted from https://gerrit.lix.systems/c/lix/+/1189

Example crash:

$ cat /tmp/foo.nix
{
  someImport = import ./this_file_does_not_exist;
}
$ ./src/nix/nix repl --file /tmp/foo.nix
warning: unknown experimental feature 'repl-flake'
Nix 2.23.0pre20240517_dirty
Type :? for help.
Loading installable ''...
Added 1 variables.
nix-repl> someImport.<TAB>
2024-05-25 23:15:28 +02:00
..
build-remote Use the new StoreReference in Machine 2024-05-22 09:20:15 -04:00
libcmd repl: do not crash when tab-completing import errors 2024-05-25 23:15:28 +02:00
libexpr Require drvPath attribute to end with .drv 2024-05-22 12:50:24 -04:00
libexpr-c C API: Add nix_value_call_multi, NIX_VALUE_CALL 2024-05-23 21:24:06 +02:00
libfetchers add and fix -Wignored-qualifiers 2024-05-17 19:29:50 +02:00
libmain Merge pull request #10556 from nix-windows/uds-remote-on-windows 2024-05-02 09:53:00 -04:00
libstore Merge pull request #10757 from obsidiansystems/fix-4977 2024-05-24 12:14:59 -04:00
libstore-c small additions to the documentation of nix_store_open and nix_state_create (#10728) 2024-05-20 08:27:33 +02:00
libutil libutil/source-accessor: custom error if source does not exist 2024-05-25 23:06:57 +02:00
libutil-c C API: Use nix_get_string_callback typedef 2024-04-15 12:05:57 +02:00
nix Merge pull request #10737 from poweredbypie/mingw-stackSize 2024-05-25 09:56:02 -04:00
nix-build Use std::filesystem::path in more places (#10657) 2024-05-07 22:28:50 +00:00
nix-channel downloadFile(): Remove the "locked" (aka "immutable") flag 2024-04-08 15:56:16 +02:00
nix-collect-garbage inline the usage of nix::readDirectory 2024-05-12 17:42:18 +05:30
nix-copy-closure Restrict some code to StoreDirConfig 2023-11-04 19:05:36 -04:00
nix-env Require drvPath attribute to end with .drv 2024-05-22 12:50:24 -04:00
nix-instantiate Build a minimized Nix with MinGW 2024-04-17 12:26:10 -04:00
nix-store Use SourcePath in more places 2024-05-06 19:05:42 +02:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00