omallassi / omallassi/adrust

Crashing without file in ./src folder

Open
#52 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
21
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 18446744073709551615', adr_core_local_impl\src\adr_repo\mod.rs:140:27
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

To Reproduce
Steps to reproduce the behavior:

  1. Install on Windows
  2. Set new config values
  3. try creating new adr

Expected behavior
An Entry should be added

Desktop (please complete the following information):

  • OS: Windows 11
  • adr adr 0.1.0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Windows 11 crash while creating a new ADR with the updated configuration values. Inspect adr_core_local_impl\src\adr_repo\mod.rs at line 140 and use RUST_BACKTRACE=1 for context. Done means creating an ADR adds an Entry without panicking when the ./src folder has no file.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.