lorri
lorri copied to clipboard
Crash on unicode-named folders
Describe the bug
Lorri is crashing when used in direnv in a folder that has a non-ascii character in the folder's name.
To Reproduce
Steps to reproduce the behavior:
- Create a folder with a non-ascii character
- Setup direnv/lorri in the folder to load a devshell flake
- cwd to the folder and see lorri crash
Metadata
$ journalctl --user -u lorri.service
Mar 07 12:07:03 chocobar lorri[3412548]: lorri had a problem and crashed. To help us diagnose the problem you can send us a crash report.
Mar 07 12:07:03 chocobar lorri[3412548]: We have generated a report file at "/tmp/report-707a52d6-b9e8-408f-b221-1c4571128f83.toml". Submit an issue or email with the s
ubject of "lorri Crash Report" and include the report as an attachment.
Mar 07 12:07:03 chocobar lorri[3412548]: - Homepage: https://github.com/nix-community/lorri
Mar 07 12:07:03 chocobar lorri[3412548]: - Authors: Graham Christensen <[email protected]>, Profpatsch <[email protected]>
Mar 07 12:07:03 chocobar lorri[3412548]: We take privacy seriously, and do not perform any automated error collection. In order to improve the software, we rely on people to submit reports.
Mar 07 12:07:03 chocobar lorri[3412548]: Thank you kindly!
Crash file content:
name = 'lorri'
operating_system = 'unix:Ubuntu'
crate_version = '1.7.1'
explanation = '''
Panic occurred in file 'src/builder.rs' at line 756
'''
cause = 'flake name to include absolute path: "/home/x/x/g%C3%B6delwerk"'
method = 'Panic'
backtrace = '''
0: 0x6109b2cb3da6 - core::result::unwrap_failed::h2ba69a02b8a8418b
1: 0x6109b2d7f7a8 - lorri::builder::NixDevParser::parse::h377c3af4a283f89d
2: 0x6109b2d46bcf - <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::try_fold::ha2d4f62dc13938c3
3: 0x6109b2d3d780 - core::iter::adapters::try_process::he8466159c2743e2c
4: 0x6109b2d199ee - std::sys::backtrace::__rust_begin_short_backtrace::h5e5b8557739dec7b
5: 0x6109b2dafc1a - core::ops::function::FnOnce::call_once{{vtable.shim}}::h65758c6495927773
6: 0x6109b2f56a0b - std::sys::pal::unix::thread::Thread::new::thread_start::h87241c7e32b9860b
7: 0x7dea02b2baf3 - start_thread
8: 0x7dea02baaf4c - __GI___clone3
9: 0x0 - <unresolved>'''
$ lorri info --flake .
Project Shell File: /home/evgeny/src/ai-ml/gödelwerk/flake.nix
Project Garbage Collector Root: GC roots do not exist. Has the project been built with lorri yet?
General:
Lorri User GC Root Dir: /home/evgeny/.cache/lorri/gc_roots
Lorri Daemon Socket: /run/user/1000/lorri/daemon.socket
Lorri Daemon Status: `lorri daemon` is running
$ uname -a
Linux chocobar 6.11.11-061111-generic #202412051415 SMP PREEMPT_DYNAMIC Thu Dec 5 17:38:13 UTC 2024 x86_64 GNU/Linux
Yeah, the flake code is pretty rough at the moment. It should work with an old-style shell.nix.