cargo run run memgpt.modelfilewarning: hiding a lifetime that's elided elsewhere is confusing
--> src/core/modelfile.rs:252:22
|
252 | fn parse_file(input: &str) -> IResult<&str, Vec<(&str, Output)>> {
| ^^^^ ---- ---- ------ the same lifetime is hidden here
| | | |
| | | the same lifetime is elided here
| | the same lifetime is elided here
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
|
252 | fn parse_file(input: &str) -> IResult<&str, Vec<(&str, Output<'_>)>> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> src/core/modelfile.rs:256:25
|
256 | fn parse_command(input: &str) -> IResult<&str, (&str, Output)> {
| ^^^^ ---- ---- ------ the same lifetime is hidden here
| | | |
| | | the same lifetime is elided here
| | the same lifetime is elided here
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
256 | fn parse_command(input: &str) -> IResult<&str, (&str, Output<'_>)> {
| ++++
warning: `tiles` (lib) generated 2 warnings
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.04s
Running `target/debug/tiles run memgpt.modelfile`
thread 'main' panicked at src/runner/mlx.rs:44:10:
mlx runner failed: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The error shows:
- Warnings: Two lifetime syntax warnings in
src/core/modelfile.rsat lines 252 and 256 - Main Error: A panic in
src/runner/mlx.rsat line 44 with error code 2 (No such file or directory)
The main issue appears to be that the MLX runner is trying to access a file or directory that doesn't exist. This could be related to missing MLX dependencies or configuration files.
- Check if MLX is properly installed
- Verify the
memgpt.modelfileexists and is accessible - Run with
RUST_BACKTRACE=1to get more detailed stack trace information - Fix the lifetime warnings in the modelfile parser