BuilderIO / BuilderIO/micro-agent
attempts to read from non-existent file when environment is in bad state
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 380
- PR merge metrics
- No merged PRs in 30d
Description
```fish
╰─❯ micro-agent $TEST_FILENAME -t "bundle exec m"
┌ 🦾 Micro Agent
│
◇ Running tests...
Migrations are pending. To resolve this issue, run:
│
│ bin/rails db:migrate RAILS_ENV=test
│
│ You have 1 pending migration:
│
│ 20240809185934_add_states_to_gloria_requests.rb
│ Shutting down Karafka producer...
│
│
◇ Generating code...
✖ ENOENT: no such file or directory, open ''
at async open (node:internal/fs/promises:636:25)
at async readFile (node:internal/fs/promises:1246:14)
at async generate (file:///Users/emmahyde/.local/share/nvm/v20.14.0/lib/node_modules/@builder.io/micro-agent/dist/cli.mjs:1184:20)
at async runOne (file:///Users/emmahyde/.local/share/nvm/v20.14.0/lib/node_modules/@builder.io/micro-agent/dist/cli.mjs:1516:34)
at async run (file:///Users/emmahyde/.local/share/nvm/v20.14.0/lib/node_modules/@builder.io/micro-agent/dist/cli.mjs:1555:20)
at async runAll (file:///Users/emmahyde/.local/share/nvm/v20.14.0/lib/node_modules/@builder.io/micro-agent/dist/cli.mjs:1596:20)
at async file:///Users/emmahyde/.local/share/nvm/v20.14.0/lib/node_modules/@builder.io/micro-agent/dist/cli.mjs:1780:7
micro-agent v0.1.4
```
Contributor guide
Research direction
Reproduce the `micro-agent $TEST_FILENAME -t "bundle exec m"` command with the pending-migration state shown in the report. Start at the `generate` path in the CLI and trace why it calls `readFile` with an empty path; done means the bad state no longer produces an attempted read from a non-existent file and reports the failure clearly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100