Skip to content

Add debug feature (no MSRV change)#81

Merged
andrewhickman merged 1 commit intoandrewhickman:mainfrom
schneems:schneems/path-facts-no-msrv-change
Nov 15, 2025
Merged

Add debug feature (no MSRV change)#81
andrewhickman merged 1 commit intoandrewhickman:mainfrom
schneems:schneems/path-facts-no-msrv-change

Conversation

@schneems
Copy link
Copy Markdown
Contributor

@schneems schneems commented Nov 6, 2025

Before:

failed to open file `file.txt`: The system cannot find the file specified. (os error 2)

After (with debug feature):

failed to open file `file.txt`: The system cannot find the file specified. (os error 2)

Path does not exist `file.txt`
- Absolute path `/path/to/dir/file.txt`
- Missing `file.txt` from parent directory:
  `/path/to/dir`
    └── `file.md`
    └── `different.txt`

Alternative to #80 that does not change MSRV but requires developers using both tokio and debug to enable tokio/rt-multi-thread. This can also be done via the debug_tokio feature.

Close #55

@schneems schneems force-pushed the schneems/path-facts-no-msrv-change branch 4 times, most recently from 647f635 to 5f8f84c Compare November 7, 2025 20:36
@schneems schneems marked this pull request as ready for review November 7, 2025 20:46
@schneems schneems force-pushed the schneems/path-facts-no-msrv-change branch from 5f8f84c to f570eb8 Compare November 7, 2025 21:18
@schneems schneems force-pushed the schneems/path-facts-no-msrv-change branch 2 times, most recently from f4eea78 to 8271028 Compare November 7, 2025 21:50
Before:

```
failed to open file `file.txt`: The system cannot find the file specified. (os error 2)
```

After (with `debug` feature):

```
failed to open file `file.txt`: The system cannot find the file specified. (os error 2)

Path does not exist `file.txt`
- Absolute path `/path/to/dir/file.txt`
- Missing `file.txt` from parent directory:
  `/path/to/dir`
    └── `file.md`
    └── `different.txt`
```

Alternative to andrewhickman#80 that does not change MSRV but requires developers using both `tokio` and `debug` to enable `tokio/rt-multi-thread`. This can also be done via the `debug_tokio` feature.

Close andrewhickman#55
@andrewhickman
Copy link
Copy Markdown
Owner

Looks great, thanks!

@andrewhickman andrewhickman merged commit 754bfb2 into andrewhickman:main Nov 15, 2025
6 checks passed
@schneems
Copy link
Copy Markdown
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Would like a way to toggle on more information

2 participants