#EA6 dont work (rust)

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:

[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:

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

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.

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