# \#EA6 dont work (rust)

**URL:** <https://forum.codecrafters.io/t/ea6-dont-work-rust/8561>\
**Category:** Challenges\
**Tags:** challenge:interpreter\
**Created:** [April 10, 2025, 8:47pm UTC](https://forum.codecrafters.io/t/ea6-dont-work-rust/8561 "2025-04-10T20:47:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjoernp116](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/bjoernp116/32/8974_2.png) [@bjoernp116](https://forum.codecrafters.io/u/bjoernp116)\
**Post date:** [April 10, 2025, 8:47pm UTC](https://forum.codecrafters.io/t/ea6-dont-work-rust/8561/1 "2025-04-10T20:47:15Z")

</div>

I’m stuck on Stage #EA6

The output is exactly what it wants. It just doesnt work, i have spent way to long on this so i hope you guys can explain this.

Here are my logs:

```auto
[compile] Moved ./.codecrafters/run.sh → ./your_program.sh
[compile] Compilation successful.
Debug = true
[tester::#EA6] Running tests for Stage #EA6 (Scanning: Lexical errors)
[tester::#EA6] [test-1] Running test case: 1
[tester::#EA6] [test-1] Writing contents to ./test.lox:
[tester::#EA6] [test-1.lox] @
[tester::#EA6] [test-1] $ ./your_program.sh tokenize test.lox
[your_program] [line 1]: Error: Unexpected character: @
[your_program] EOF null
[tester::#EA6] [test-1] ? [line 1] Error: Unexpected character: @
[tester::#EA6] [test-1] Skipped 1 lines that didn't start with [line N]
[tester::#EA6] [test-1] Expected line #1 on stderr to be "[line 1] Error: Unexpected character: @", but didn't find line
[tester::#EA6] [test-1] Test failed

```

Output of manual test:

```auto
[line 1]: Error: Unexpected character: @
EOF null

```

---

<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:** [April 10, 2025, 8:55pm UTC](https://forum.codecrafters.io/t/ea6-dont-work-rust/8561/3 "2025-04-10T20:55:21Z")

</div>

> Expected line #1 on **stderr** to be “[line 1] Error: Unexpected character: @”, but didn’t find line

Hey @bjoernp116, error messages should be printed to **stderr** , but it seems they’re currently being printed to **stdout**.

Let me know if you’d like further clarification.

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

---

<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:** [April 20, 2025, 9:02am UTC](https://forum.codecrafters.io/t/ea6-dont-work-rust/8561/4 "2025-04-20T09:02:59Z")

</div>

Closed on April 20, 2025, 9:02am UTC

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