# Shell Failing OO8 to GP4 due to Expected prompt ("$ ") but received "" Issue

**URL:** <https://forum.codecrafters.io/t/shell-failing-oo8-to-gp4-due-to-expected-prompt-but-received-issue/10769>\
**Category:** Challenges\
**Tags:** challenge:shell\
**Created:** [May 19, 2025, 10:33am UTC](https://forum.codecrafters.io/t/shell-failing-oo8-to-gp4-due-to-expected-prompt-but-received-issue/10769 "2025-05-19T10:33:42Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spiderpig86](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/spiderpig86/32/1756_2.png) [@Spiderpig86](https://forum.codecrafters.io/u/Spiderpig86)\
**Post date:** [May 19, 2025, 10:33am UTC](https://forum.codecrafters.io/t/shell-failing-oo8-to-gp4-due-to-expected-prompt-but-received-issue/10769/1 "2025-05-19T10:33:42Z")

</div>

Is it possible to get some help debugging this issue? My code can run from the first pipeline stage to GP4 without issue, but I can no longer pass even the first stage even though I used to be able to back in February. Did something change? I now fail even the first stage with `Expected prompt (“$ “) but received “”` I added a few additional logs to show that the test harness did not even finish compiling the program before the error prompt came in in the screenshot. Thanks!

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/4/4814c2a7d31e7687d76a70ad3960735fdd465ab6.jpeg)  
 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/3/32641df5bb87f29807e4c5307b9ea34d065960a6.jpeg)

---

<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:** [May 19, 2025, 10:34am UTC](https://forum.codecrafters.io/t/shell-failing-oo8-to-gp4-due-to-expected-prompt-but-received-issue/10769/3 "2025-05-19T10:34:54Z")

</div>

Hey @Spiderpig86, could you [upload your code to GitHub](https://docs.codecrafters.io/features/publish-to-github) and share the link? It will be much easier to debug if I can run it directly.

---

<div class="post-metadata">

**Author:** ![Spiderpig86](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/spiderpig86/32/1756_2.png) [@Spiderpig86](https://forum.codecrafters.io/u/Spiderpig86)\
**Post date:** [May 19, 2025, 10:38am UTC](https://forum.codecrafters.io/t/shell-failing-oo8-to-gp4-due-to-expected-prompt-but-received-issue/10769/4 "2025-05-19T10:38:53Z")

</div>

> **[GitHub - Spiderpig86/codecrafters-shell](https://github.com/Spiderpig86/codecrafters-shell)**
>
> Contribute to Spiderpig86/codecrafters-shell development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Spiderpig86](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/spiderpig86/32/1756_2.png) [@Spiderpig86](https://forum.codecrafters.io/u/Spiderpig86)\
**Post date:** [May 20, 2025, 8:31am UTC](https://forum.codecrafters.io/t/shell-failing-oo8-to-gp4-due-to-expected-prompt-but-received-issue/10769/6 "2025-05-20T08:31:33Z")

</div>

I did some more testing with the test harness and I still can’t seem to pinpoint the issue. I was able to pass the first stage again by putting an artificial delay of 5 seconds in ShellExecutable start().However, there are more failures existing test cases I used to pass

---

<div class="post-metadata">

**Author:** ![Spiderpig86](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/spiderpig86/32/1756_2.png) [@Spiderpig86](https://forum.codecrafters.io/u/Spiderpig86)\
**Post date:** [May 20, 2025, 4:28pm UTC](https://forum.codecrafters.io/t/shell-failing-oo8-to-gp4-due-to-expected-prompt-but-received-issue/10769/7 "2025-05-20T16:28:13Z")

</div>

I was able to make modifications to my program and was able to pass the tests locally. For some reason I can’t pinpoint what is delaying on the test runner. Either the compilation takes too long or the program is still not starting up in time (but I set the timeout from 15 → 5 seconds locally and it passes just fine)

---

<div class="post-metadata">

**Author:** ![Spiderpig86](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/spiderpig86/32/1756_2.png) [@Spiderpig86](https://forum.codecrafters.io/u/Spiderpig86)\
**Post date:** [May 22, 2025, 1:08am UTC](https://forum.codecrafters.io/t/shell-failing-oo8-to-gp4-due-to-expected-prompt-but-received-issue/10769/8 "2025-05-22T01:08:30Z")

</div>

Just tried resetting my own branch back to the setup you have here: [build-your-own-shell/solutions/go/01-oo8/code at main · codecrafters-io/build-your-own-shell · GitHub](https://github.com/codecrafters-io/build-your-own-shell/tree/main/solutions/go/01-oo8/code)

`codecrafters test --previous` still fails regardless if the only file I have left is `main.go` and all it does is print something. Is there something wrong with go-1.22? I can get the tester to run successfully locally but it doesn’t work remotely.

---

<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:** [May 22, 2025, 6:20am UTC](https://forum.codecrafters.io/t/shell-failing-oo8-to-gp4-due-to-expected-prompt-but-received-issue/10769/9 "2025-05-22T06:20:32Z")

</div>

@Spiderpig86 Were you able to resolve the issue? I cannot access your repo on GitHub.

---

<div class="post-metadata">

**Author:** ![Spiderpig86](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/spiderpig86/32/1756_2.png) [@Spiderpig86](https://forum.codecrafters.io/u/Spiderpig86)\
**Post date:** [May 22, 2025, 7:38am UTC](https://forum.codecrafters.io/t/shell-failing-oo8-to-gp4-due-to-expected-prompt-but-received-issue/10769/10 "2025-05-22T07:38:08Z")

</div>

I have not been able to resolve it. The test runner runs the program fine locally but not remotely on your servers. I have made the repo available again.

---

<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:** [May 22, 2025, 9:49am UTC](https://forum.codecrafters.io/t/shell-failing-oo8-to-gp4-due-to-expected-prompt-but-received-issue/10769/11 "2025-05-22T09:49:08Z")

</div>

@Spiderpig86 It looks like the issue was caused by the old Go v1.22 setup.

I’ve now upgraded the buildpack for your repo to v1.24 and pushed a new commit to it. You can run `git pull` to sync the changes.

Let me know if the issue persists!

---

<div class="post-metadata">

**Author:** ![Spiderpig86](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/spiderpig86/32/1756_2.png) [@Spiderpig86](https://forum.codecrafters.io/u/Spiderpig86)\
**Post date:** [May 25, 2025, 2:21am UTC](https://forum.codecrafters.io/t/shell-failing-oo8-to-gp4-due-to-expected-prompt-but-received-issue/10769/13 "2025-05-25T02:21:37Z")

</div>

Ty! This issue has been resolved.

---

<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:** [June 1, 2025, 7:09pm UTC](https://forum.codecrafters.io/t/shell-failing-oo8-to-gp4-due-to-expected-prompt-but-received-issue/10769/14 "2025-06-01T19:09:10Z")

</div>

Closed on June 1, 2025, 7:09pm UTC

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