# Seems the instruction and test for "Scanning: Empty file" ry8 is wrong

**URL:** <https://forum.codecrafters.io/t/seems-the-instruction-and-test-for-scanning-empty-file-ry8-is-wrong/8804>\
**Category:** Challenges\
**Tags:** challenge:interpreter\
**Created:** [April 15, 2025, 10:54am UTC](https://forum.codecrafters.io/t/seems-the-instruction-and-test-for-scanning-empty-file-ry8-is-wrong/8804 "2025-04-15T10:54:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ImSingee](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/imsingee/32/9266_2.png) [@ImSingee](https://forum.codecrafters.io/u/ImSingee)\
**Post date:** [April 15, 2025, 10:54am UTC](https://forum.codecrafters.io/t/seems-the-instruction-and-test-for-scanning-empty-file-ry8-is-wrong/8804/1 "2025-04-15T10:54:31Z")

</div>

The instruction says I should just uncomment the code. And doing this makes me pass the test.

I tried Rust and Go and the uncommented code of them both are just throw a “Scanner not implemented” error.

But the task requests doing a little more things, which will be needed in the next stage.

---

<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 21, 2025, 8:48am UTC](https://forum.codecrafters.io/t/seems-the-instruction-and-test-for-scanning-empty-file-ry8-is-wrong/8804/4 "2025-04-21T08:48:46Z")

</div>

Hey @ImSingee, would you mind sharing a screenshot of the code after uncommenting?

That might help us understand why you’re seeing the “Scanner not implemented” error.

---

<div class="post-metadata">

**Author:** ![ImSingee](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/imsingee/32/9266_2.png) [@ImSingee](https://forum.codecrafters.io/u/ImSingee)\
**Post date:** [April 21, 2025, 9:02am UTC](https://forum.codecrafters.io/t/seems-the-instruction-and-test-for-scanning-empty-file-ry8-is-wrong/8804/6 "2025-04-21T09:02:24Z")

</div>

@andy1li The commented code is just simply throw the error

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

---

<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 21, 2025, 9:10am UTC](https://forum.codecrafters.io/t/seems-the-instruction-and-test-for-scanning-empty-file-ry8-is-wrong/8804/7 "2025-04-21T09:10:05Z")

</div>

@ImSingee Thanks for sharing the screenshot! Could you also share one that shows the “Scanner not implemented” error?

Just for reference, I tested it a minute ago and got the following results:

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

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

---

<div class="post-metadata">

**Author:** ![ImSingee](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/imsingee/32/9266_2.png) [@ImSingee](https://forum.codecrafters.io/u/ImSingee)\
**Post date:** [April 21, 2025, 9:23am UTC](https://forum.codecrafters.io/t/seems-the-instruction-and-test-for-scanning-empty-file-ry8-is-wrong/8804/8 "2025-04-21T09:23:08Z")

</div>

@andy1li Yes this test passes.

But the task requires implementing the tokenizer, not just throw an error.

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

---

<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 21, 2025, 9:33am UTC](https://forum.codecrafters.io/t/seems-the-instruction-and-test-for-scanning-empty-file-ry8-is-wrong/8804/9 "2025-04-21T09:33:30Z")

</div>

> But the task requires implementing the tokenizer, not just throw an error.

Yep, your feedback makes perfect sense! We’ll look into how we can make the instructions less confusing.

---

<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 24, 2025, 6:17am UTC](https://forum.codecrafters.io/t/seems-the-instruction-and-test-for-scanning-empty-file-ry8-is-wrong/8804/12 "2025-04-24T06:17:57Z")

</div>

@ImSingee Thanks again for highlighting the issue! We’ve updated the instructions and notes in [this PR](https://github.com/codecrafters-io/build-your-own-interpreter/pull/90/files).

---

<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 30, 2025, 9:02am UTC](https://forum.codecrafters.io/t/seems-the-instruction-and-test-for-scanning-empty-file-ry8-is-wrong/8804/14 "2025-04-30T09:02:09Z")

</div>

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