# VZ4 tester error message

**URL:** <https://forum.codecrafters.io/t/vz4-tester-error-message/13456>\
**Category:** Bug Reports\
**Tags:** challenge:shell\
**Created:** [July 13, 2025, 9:56am UTC](https://forum.codecrafters.io/t/vz4-tester-error-message/13456 "2025-07-13T09:56:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShahriarJavidi](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/shahriarjavidi/32/12709_2.png) [@ShahriarJavidi](https://forum.codecrafters.io/u/ShahriarJavidi)\
**Post date:** [July 13, 2025, 9:56am UTC](https://forum.codecrafters.io/t/vz4-tester-error-message/13456/1 "2025-07-13T09:56:35Z")

</div>

At [VZ4](https://app.codecrafters.io/courses/shell/stages/vz4), I get the following error:

```auto
Initiating test run...

⚡ This is a turbo test run. https://codecrafters.io/turbo

Running tests. Logs should appear shortly...

[compile] Compiling codecrafters-shell v0.1.0 (/app)
[compile] Finished `release` profile [optimized] target(s) in 1.53s
[compile] Moved ./.codecrafters/run.sh → ./your_program.sh
[compile] Compilation successful.

Debug = true

[tester::#VZ4] Running tests for Stage #VZ4 (Redirection - Redirect stderr)
[tester::#VZ4] [setup] export PATH=/tmp/grape/apple/blueberry:$PATH
[tester::#VZ4] Running ./your_program.sh
[tester::#VZ4] [setup] echo -n "blueberry" > "/tmp/quz/blueberry"
[your-program] $ ls -1 nonexistent 2> /tmp/foo/bar.md
[your-program] $ cat /tmp/foo/bar.md
[your-program] ls: nonexistent: No such file or directory
[tester::#VZ4] ✓ Received redirected error message
[tester::#VZ4] Expected file "/tmp/foo/baz.md" to exist. Error: open /tmp/foo/baz.md: no such file or directory
[your-program] $ echo 'Maria file cannot be found' 2> /tmp/foo/baz.md
[your-program] Maria file cannot be found
[your-program] $ 
[tester::#VZ4] Assertion failed.
[tester::#VZ4] Test failed

```

The error `[tester::#VZ4] Expected file "/tmp/foo/baz.md" to exist. Error: open /tmp/foo/baz.md: no such file or directory` seems to be generated out of order (before executing the next command `$ echo 'Maria file cannot be found' 2> /tmp/foo/baz.md`)

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [July 14, 2025, 9:09am UTC](https://forum.codecrafters.io/t/vz4-tester-error-message/13456/4 "2025-07-14T09:09:17Z")

</div>

Hey @ShahriarJavidi, thanks for highlighting the issue! We’re addressing it in [this PR](https://github.com/codecrafters-io/shell-tester/pull/156).

Let me know if you notice anything else or need help with anything!

Just a quick note: while the error message appears before the command, the command is actually executed first. It’s just a display order issue.

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [July 15, 2025, 1:21pm UTC](https://forum.codecrafters.io/t/vz4-tester-error-message/13456/5 "2025-07-15T13:21:23Z")

</div>

This should be fixed now. Feel free to test it and let me know if anything’s still off.

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/7/77f1b2f631b027e44f2046d57b1bfa0a5df703ac.png)

---

<div class="post-metadata">

**Author:** ![ShahriarJavidi](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/shahriarjavidi/32/12709_2.png) [@ShahriarJavidi](https://forum.codecrafters.io/u/ShahriarJavidi)\
**Post date:** [July 19, 2025, 4:01pm UTC](https://forum.codecrafters.io/t/vz4-tester-error-message/13456/7 "2025-07-19T16:01:24Z")

</div>

@andy1li thank you for considering it! The issue has been addressed 🙏

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [July 26, 2025, 4:02pm UTC](https://forum.codecrafters.io/t/vz4-tester-error-message/13456/8 "2025-07-26T16:02:01Z")

</div>

Closed on July 26, 2025, 4:02pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
