# Challenges

**URL:** https://forum.codecrafters.io/c/challenges/6.md?page=1

[Latest](https://forum.codecrafters.io/latest.md) · [Categories](https://forum.codecrafters.io/categories.md) · [Tags](https://forum.codecrafters.io/tags.md)

**Page:** 2

---

## [\[Shell\] How to pass the first stage? pls help](https://forum.codecrafters.io/t/shell-how-to-pass-the-first-stage-pls-help/16138)

<div class="topic-metadata">

**Author:** [@javier-is-coding](https://forum.codecrafters.io/u/javier-is-coding)\
**Replies:** 1\
**Last updated:** [May 30, 2026, 8:49am UTC](https://forum.codecrafters.io/t/shell-how-to-pass-the-first-stage-pls-help/16138 "2026-05-30T08:49:17Z")

</div>

Checklist: :white\_check\_mark: or :cross\_mark:: I’ve uncommented the code. :white\_check\_mark: or :cross\_mark:: I’ve saved the changes. :white\_check\_mark: or :cross\_mark:: I’ve run the git commands: git commit -am "\[see…

---

## [Command processing #YG4 - Sporadic test results](https://forum.codecrafters.io/t/command-processing-yg4-sporadic-test-results/16117)

<div class="topic-metadata">

**Author:** [@yinkam](https://forum.codecrafters.io/u/yinkam)\
**Replies:** 4\
**Last updated:** [May 27, 2026, 11:58am UTC](https://forum.codecrafters.io/t/command-processing-yg4-sporadic-test-results/16117 "2026-05-27T11:58:13Z")

</div>

I completed the command processing #YG4, but during testing, I get sporadic test pass/failures. Sometimes it’s a "connection refused "error, other times a “no content received” error on a GET key request. All tests pass…

---

## [Implementing TAB autocompletion in Elixir - Need guidance](https://forum.codecrafters.io/t/implementing-tab-autocompletion-in-elixir-need-guidance/15685)

<div class="topic-metadata">

**Author:** [@Illuminaxx](https://forum.codecrafters.io/u/Illuminaxx)\
**Replies:** 2\
**Last updated:** [May 25, 2026, 8:23am UTC](https://forum.codecrafters.io/t/implementing-tab-autocompletion-in-elixir-need-guidance/15685 "2026-05-25T08:23:38Z")

</div>

Hi CodeCrafters team, I’m working on the Shell challenge using Elixir and I’m stuck on Stage #QP2 (Tab Autocompletion - Builtin completion). The Problem: The test expects TAB autocompletion to work, but Elixir/Erlang d…

---

## [Is this just Syntax issue or something else? Shell EZ5](https://forum.codecrafters.io/t/is-this-just-syntax-issue-or-something-else-shell-ez5/16127)

<div class="topic-metadata">

**Author:** [@Theo2you](https://forum.codecrafters.io/u/Theo2you)\
**Replies:** 1\
**Last updated:** [May 25, 2026, 8:17am UTC](https://forum.codecrafters.io/t/is-this-just-syntax-issue-or-something-else-shell-ez5/16127 "2026-05-25T08:17:29Z")

</div>

I’m stuck on Stage #EZ5. I’ve tried restructuring and adding print(f"{userInput} " :command not found") as well as a space in sys.stdout.write("$ ") Here are my logs: \[tester::#EZ5\] ^ Expected prompt ("$ ") but recei…

---

## [\#NI6: Single quotes seemed to be parsed correctly but cat throws error (C++)](https://forum.codecrafters.io/t/ni6-single-quotes-seemed-to-be-parsed-correctly-but-cat-throws-error-c/16123)

<div class="topic-metadata">

**Author:** [@DailyPigeon](https://forum.codecrafters.io/u/DailyPigeon)\
**Replies:** 2\
**Last updated:** [May 22, 2026, 11:48am UTC](https://forum.codecrafters.io/t/ni6-single-quotes-seemed-to-be-parsed-correctly-but-cat-throws-error-c/16123 "2026-05-22T11:48:39Z")

</div>

I’m stuck on Stage #NI6. I have a “handleSingleQuotes” function takes the value of the ‘command’ variable which holds the user input. It appears to parse correctly according to the challenge’s instructions and echo test…

---

## [Building a shell, stage #008](https://forum.codecrafters.io/t/building-a-shell-stage-008/16122)

<div class="topic-metadata">

**Author:** [@Hbaggins](https://forum.codecrafters.io/u/Hbaggins)\
**Replies:** 6\
**Last updated:** [May 22, 2026, 10:36am UTC](https://forum.codecrafters.io/t/building-a-shell-stage-008/16122 "2026-05-22T10:36:30Z")

</div>

I’m stuck on stage #008 I’ve tried typing in codecrafters submit, as the challenge suggested but it keeps failing. Here are my logs: This is a turbo test run. https://codecrafters.io/turbo Running tests on your code.…

---

## [Redirect stdout failing due to ls](https://forum.codecrafters.io/t/redirect-stdout-failing-due-to-ls/16118)

<div class="topic-metadata">

**Author:** [@Linkstus](https://forum.codecrafters.io/u/Linkstus)\
**Replies:** 2\
**Last updated:** [May 21, 2026, 9:32pm UTC](https://forum.codecrafters.io/t/redirect-stdout-failing-due-to-ls/16118 "2026-05-21T21:32:55Z")

</div>

I’m stuck on Stage #JV1. Using Python My code current finds the stdout file that is being requested. I then use shutil.which to find if the file exists, if it doesn’t I create it. The issue I am running into is the test…

---

## [Handle Multiple completions stage at build your own shell challenge](https://forum.codecrafters.io/t/handle-multiple-completions-stage-at-build-your-own-shell-challenge/16113)

<div class="topic-metadata">

**Author:** [@MostafaEdrees11](https://forum.codecrafters.io/u/MostafaEdrees11)\
**Replies:** 3\
**Last updated:** [May 19, 2026, 12:05am UTC](https://forum.codecrafters.io/t/handle-multiple-completions-stage-at-build-your-own-shell-challenge/16113 "2026-05-19T00:05:06Z")

</div>

I’m stuck on Stage #Multiple completions #wh6. I’ve tried to solve it by out the bell characters where there is no match or when there are multiple matches and I return the hits from the commands to let the user see the…

---

## [Stuck at SingleQuote challenge in build ur own shell](https://forum.codecrafters.io/t/stuck-at-singlequote-challenge-in-build-ur-own-shell/16111)

<div class="topic-metadata">

**Author:** [@Vamshi-Medamaina](https://forum.codecrafters.io/u/Vamshi-Medamaina)\
**Replies:** 1\
**Last updated:** [May 17, 2026, 8:58pm UTC](https://forum.codecrafters.io/t/stuck-at-singlequote-challenge-in-build-ur-own-shell/16111 "2026-05-17T20:58:54Z")

</div>

I’m stuck on the first Stage of Single Quotes i don’t know how to start this stage. can anyone please give me some hints or guid eme how to do without giving away the solutions. thnxx

---

## [Failing first stage in Build: Shell with Python](https://forum.codecrafters.io/t/failing-first-stage-in-build-shell-with-python/16098)

<div class="topic-metadata">

**Author:** [@Kartik-Tatiparti](https://forum.codecrafters.io/u/Kartik-Tatiparti)\
**Replies:** 4\
**Last updated:** [May 9, 2026, 7:47pm UTC](https://forum.codecrafters.io/t/failing-first-stage-in-build-shell-with-python/16098 "2026-05-09T19:47:48Z")

</div>

I’m stuck on Stage #008 (I’m not sure where I can get the code, scanned the page. This is the “print a prompt” stage in build:shell with python) I’ve tried uncommenting the line and running the codecrafters submit comma…

---

## [Limiting history entries #ag6 Question](https://forum.codecrafters.io/t/limiting-history-entries-ag6-question/16096)

<div class="topic-metadata">

**Author:** [@xsynch](https://forum.codecrafters.io/u/xsynch)\
**Replies:** 2\
**Last updated:** [May 8, 2026, 1:16am UTC](https://forum.codecrafters.io/t/limiting-history-entries-ag6-question/16096 "2026-05-08T01:16:24Z")

</div>

I’m stuck on Stage #ag6 The question is about the tests being run. The first part of the tests where it tests my code for history size works successfully \[tester::#AG6\] Running tests for Stage #AG6 (History - Limiting …

---

## [\[Rust\] Stuck on #CZ2 after a long time | stdout doesn't work properly](https://forum.codecrafters.io/t/rust-stuck-on-cz2-after-a-long-time-stdout-doesnt-work-properly/16088)

<div class="topic-metadata">

**Author:** [@emrecancorapci](https://forum.codecrafters.io/u/emrecancorapci)\
**Replies:** 6\
**Last updated:** [May 8, 2026, 12:45am UTC](https://forum.codecrafters.io/t/rust-stuck-on-cz2-after-a-long-time-stdout-doesnt-work-properly/16088 "2026-05-08T00:45:07Z")

</div>

I’m stuck on Stage #CZ2. After a long time I decided to continue and had many problems with the challenge. Looks like there is a new build pipeline. I copied the necessary code from another repo and gave executable perm…

---

## [Unrelated test case for "Build your own Shell" - Single Quote](https://forum.codecrafters.io/t/unrelated-test-case-for-build-your-own-shell-single-quote/16080)

<div class="topic-metadata">

**Author:** [@Hoksolinvan](https://forum.codecrafters.io/u/Hoksolinvan)\
**Replies:** 4\
**Last updated:** [May 7, 2026, 7:01pm UTC](https://forum.codecrafters.io/t/unrelated-test-case-for-build-your-own-shell-single-quote/16080 "2026-05-07T19:01:40Z")

</div>

I was solving this section and got it to work, but at the very end the test case decided to test (Navigation - The cd builtin: Home directory) and it printed this to console. \[tester::#GP4\] Running tests for Stage #GP4 …

---

## [Readline not found during remote compile](https://forum.codecrafters.io/t/readline-not-found-during-remote-compile/16085)

<div class="topic-metadata">

**Author:** [@tenze21](https://forum.codecrafters.io/u/tenze21)\
**Replies:** 2\
**Last updated:** [May 3, 2026, 1:42pm UTC](https://forum.codecrafters.io/t/readline-not-found-during-remote-compile/16085 "2026-05-03T13:42:52Z")

</div>

Same issue as Usage of libraries \[compile\] app/main.c:14:10: fatal error: readline/readline.h: No such file or directory \[compile\] #include \<readline/readline.h\> \[compile\] ^~~~~~~~~~~~~~~~~~~~~ \[compile\] comp…

---

## [Retrieve data using a full-table scan #ws9 - column id's serial type code is NULL](https://forum.codecrafters.io/t/retrieve-data-using-a-full-table-scan-ws9-column-ids-serial-type-code-is-null/16083)

<div class="topic-metadata">

**Author:** [@magnusram05](https://forum.codecrafters.io/u/magnusram05)\
**Replies:** 2\
**Last updated:** [May 3, 2026, 12:17am UTC](https://forum.codecrafters.io/t/retrieve-data-using-a-full-table-scan-ws9-column-ids-serial-type-code-is-null/16083 "2026-05-03T00:17:07Z")

</div>

column id’s serial type code is NULL, but the test is expecting a number to be printed in the output \[tester::#WS9\] Expected \[1052|Silver St. Cloud (New Earth) 252|Dolphin (New Earth) 2668|Pasquale Galante, Jr. (New Ear…

---

## [Unable to run tests due to broken environment](https://forum.codecrafters.io/t/unable-to-run-tests-due-to-broken-environment/16084)

<div class="topic-metadata">

**Author:** [@warpftl](https://forum.codecrafters.io/u/warpftl)\
**Replies:** 3\
**Last updated:** [May 2, 2026, 3:04pm UTC](https://forum.codecrafters.io/t/unable-to-run-tests-due-to-broken-environment/16084 "2026-05-02T15:04:03Z")

</div>

I’m stuck on Stage #ZV2. I am unable to run tests via codecrafters test due to errors that stem from the test run environment. First, I got this error: \[tester::#ZV2\] Running tests for Stage #ZV2 (Filename Completion …

---

## [Redis Challenge #FY6. Failing with "expected simple string"](https://forum.codecrafters.io/t/redis-challenge-fy6-failing-with-expected-simple-string/16079)

<div class="topic-metadata">

**Author:** [@var-nan](https://forum.codecrafters.io/u/var-nan)\
**Replies:** 4\
**Last updated:** [April 30, 2026, 11:53am UTC](https://forum.codecrafters.io/t/redis-challenge-fy6-failing-with-expected-simple-string/16079 "2026-04-30T11:53:35Z")

</div>

I’m stuck on Redis challenge, #FY6 The specification mentioned that the response of EXEC command is an array of responses of all commands in the transaction. But my test cases are failing with an error message “expected…

---

## [Tests attempt to connect before code is ready](https://forum.codecrafters.io/t/tests-attempt-to-connect-before-code-is-ready/16068)

<div class="topic-metadata">

**Author:** [@benjamaan476](https://forum.codecrafters.io/u/benjamaan476)\
**Replies:** 16\
**Last updated:** [April 30, 2026, 11:13am UTC](https://forum.codecrafters.io/t/tests-attempt-to-connect-before-code-is-ready/16068 "2026-04-30T11:13:14Z")

</div>

I’m stuck on Stage #ZU2 The tests sometimes attempt to connect before the code is ready Here are my logs: \[tester::#ZU2\] Running tests for Stage #ZU2 (Handle concurrent clients) \[tester::#ZU2\] $ ./your\_program.sh \[you…

---

## [How to debug weird expected response?](https://forum.codecrafters.io/t/how-to-debug-weird-expected-response/16055)

<div class="topic-metadata">

**Author:** [@AbdelrahmanElsheikh965](https://forum.codecrafters.io/u/AbdelrahmanElsheikh965)\
**Replies:** 4\
**Last updated:** [April 30, 2026, 3:19am UTC](https://forum.codecrafters.io/t/how-to-debug-weird-expected-response/16055 "2026-04-30T03:19:00Z")

</div>

I’m stuck on Stage #FY6 I’ve tried running the same commands from multiple clients connected locally, and everything is fine Here are my logs: \[tester::#FY6\] \[client-1\] ✔︎ Received \["OK", 23, 1, "1"\] \[tester::#FY6\] \[c…

---

## [./your\_program.sh: cannot execute: required file not found](https://forum.codecrafters.io/t/your-program-sh-cannot-execute-required-file-not-found/16059)

<div class="topic-metadata">

**Author:** [@gabrielbudke](https://forum.codecrafters.io/u/gabrielbudke)\
**Replies:** 6\
**Last updated:** [April 30, 2026, 3:18am UTC](https://forum.codecrafters.io/t/your-program-sh-cannot-execute-required-file-not-found/16059 "2026-04-30T03:18:24Z")

</div>

I’m stuck on improving my solution. I’ve tried to run it locally following the README.md file and some other answers in this forum, but i cannot run without problem. Here are my logs: ➜ ./your\_program.sh bash: ./your…

---

## [Blocking retrieval #EC3: Client receiving unexpected response](https://forum.codecrafters.io/t/blocking-retrieval-ec3-client-receiving-unexpected-response/16075)

<div class="topic-metadata">

**Author:** [@VIGNESHWAR-RV](https://forum.codecrafters.io/u/VIGNESHWAR-RV)\
**Replies:** 5\
**Last updated:** [April 29, 2026, 1:53pm UTC](https://forum.codecrafters.io/t/blocking-retrieval-ec3-client-receiving-unexpected-response/16075 "2026-04-29T13:53:51Z")

</div>

I’m stuck on Stage Blocking retrieval #EC3. I have implemented BLPOP command with proxies and promises. but I keep getting an error that client 1 ( first subscriber of blpop ) received a different response. Maybe I didn…

---

## [Testcase failed: BLPOP on string value](https://forum.codecrafters.io/t/testcase-failed-blpop-on-string-value/16054)

<div class="topic-metadata">

**Author:** [@asli-nobita](https://forum.codecrafters.io/u/asli-nobita)\
**Replies:** 2\
**Last updated:** [April 27, 2026, 6:12am UTC](https://forum.codecrafters.io/t/testcase-failed-blpop-on-string-value/16054 "2026-04-27T06:12:05Z")

</div>

How should we handle it if a BLPOP operation is called on a key which stored a string value previously? The testcases are as follows: SET mango banana BLPOP mango 0.3 Are we to assume the BLPOP operation changes the …

---

## [Question about fd8: Fetch multiple messages from disk. Data isn't being prepended to response from log file correctly](https://forum.codecrafters.io/t/question-about-fd8-fetch-multiple-messages-from-disk-data-isnt-being-prepended-to-response-from-log-file-correctly/15691)

<div class="topic-metadata">

**Author:** [@whorst](https://forum.codecrafters.io/u/whorst)\
**Replies:** 4\
**Last updated:** [April 18, 2026, 1:41am UTC](https://forum.codecrafters.io/t/question-about-fd8-fetch-multiple-messages-from-disk-data-isnt-being-prepended-to-response-from-log-file-correctly/15691 "2026-04-18T01:41:54Z")

</div>

Seems like I’m having trouble parsing the log partition file incorrectly. I’m receiving the following from the command line: remote: \[tester::#FD8\] \[client\] Successfully connected to broker at localhost:9092 remote: \[te…

---

## [\#PL3 - a test that failed for me despite passing the stage](https://forum.codecrafters.io/t/pl3-a-test-that-failed-for-me-despite-passing-the-stage/15977)

<div class="topic-metadata">

**Author:** [@yinchi](https://forum.codecrafters.io/u/yinchi)\
**Replies:** 3\
**Last updated:** [April 14, 2026, 7:17pm UTC](https://forum.codecrafters.io/t/pl3-a-test-that-failed-for-me-despite-passing-the-stage/15977 "2026-04-14T19:17:54Z")

</div>

var bar = 0; var foo = (bar = (foo = 2)) + 1; print bar; print foo; Because I failed to check variable declarations at runtime, my program output was 2 3 even though my code passed #PL3. I’ve since fixed my program s…

---

## [State #DF4 - pkg-config required by Ocaml package](https://forum.codecrafters.io/t/state-df4-pkg-config-required-by-ocaml-package/15921)

<div class="topic-metadata">

**Author:** [@rubenbakker](https://forum.codecrafters.io/u/rubenbakker)\
**Replies:** 3\
**Last updated:** [April 14, 2026, 1:01am UTC](https://forum.codecrafters.io/t/state-df4-pkg-config-required-by-ocaml-package/15921 "2026-04-14T01:01:34Z")

</div>

I’m stuck on Stage #DF4 - Compression Headers. To compress the content of the HTTP body, I installed the OCaml dependency ezgzip 0.2.3 (latest) · OCaml Package. According to the logs, this package requires pkg-config to…

---

## [Code cannot resolve "#include \<cpr/cpr.h\>" or "#include \<nlohmann/json.hpp\>"](https://forum.codecrafters.io/t/code-cannot-resolve-include-cpr-cpr-h-or-include-nlohmann-json-hpp/15991)

<div class="topic-metadata">

**Author:** [@PabloOliveiraVeizaga](https://forum.codecrafters.io/u/PabloOliveiraVeizaga)\
**Replies:** 3\
**Last updated:** [April 13, 2026, 9:12pm UTC](https://forum.codecrafters.io/t/code-cannot-resolve-include-cpr-cpr-h-or-include-nlohmann-json-hpp/15991 "2026-04-13T21:12:29Z")

</div>

\#include \<cpr/cpr.h\> #include \<nlohmann/json.hpp\> using json = nlohmann::json; int main(int argc, char \*argv\[\]) { if (argc \< 3 || std::string(argv\[1\]) != “-p”) { std::cerr \<\< “Expected first argument to be ‘-p’” \<\< …

---

## [\[C\] Implemented raw mode manually, but can't pass #UN3 Test anymore](https://forum.codecrafters.io/t/c-implemented-raw-mode-manually-but-cant-pass-un3-test-anymore/16003)

<div class="topic-metadata">

**Author:** [@KenyiPlatanazo](https://forum.codecrafters.io/u/KenyiPlatanazo)\
**Replies:** 3\
**Last updated:** [April 13, 2026, 9:11pm UTC](https://forum.codecrafters.io/t/c-implemented-raw-mode-manually-but-cant-pass-un3-test-anymore/16003 "2026-04-13T21:11:59Z")

</div>

I’m stuck on Stage #(QP2) due to an error I can’t replicate happening in #(UN3). For the command completion extension I decided to manually implement raw mode using the c-kilo text editor as reference. From there, I dec…

---

## [Stuck with #SX3](https://forum.codecrafters.io/t/stuck-with-sx3/16025)

<div class="topic-metadata">

**Author:** [@lakshyabatman](https://forum.codecrafters.io/u/lakshyabatman)\
**Replies:** 4\
**Last updated:** [April 13, 2026, 9:11pm UTC](https://forum.codecrafters.io/t/stuck-with-sx3/16025 "2026-04-13T21:11:32Z")

</div>

I’m stuck on Stage #SX3 Im not sure why but but in local my implementation works but test fails. \\\[tester::#SX3\\\] Running tests for Stage #SX3 (History Persistence - Append history to file) \\\[tester::#SX3\\\] Original hi…

---

## [Problem with 'cd' command and "/app" output in #RA6](https://forum.codecrafters.io/t/problem-with-cd-command-and-app-output-in-ra6/15993)

<div class="topic-metadata">

**Author:** [@FilipWiacek94](https://forum.codecrafters.io/u/FilipWiacek94)\
**Replies:** 4\
**Last updated:** [April 9, 2026, 9:07pm UTC](https://forum.codecrafters.io/t/problem-with-cd-command-and-app-output-in-ra6/15993 "2026-04-09T21:07:44Z")

</div>

I’m stuck on Stage #RA6. I’m not sure why—when I run the same commands locally, everything works fine. For the pwd command, the path is /tmp/strawberry/grape/mango, as expected. However, when I run the tests, they fail a…

---

## [Creating a dumb terminal](https://forum.codecrafters.io/t/creating-a-dumb-terminal/16011)

<div class="topic-metadata">

**Author:** [@ahmadbenali](https://forum.codecrafters.io/u/ahmadbenali)\
**Replies:** 5\
**Last updated:** [April 8, 2026, 11:55am UTC](https://forum.codecrafters.io/t/creating-a-dumb-terminal/16011 "2026-04-08T11:55:57Z")

</div>

I’m stuck on Stage #QP2. So i did change java version to 17 and add - - enable-native . i added the - - enable-native on edit config → modify options →add vm options and nothing changed. i added - - enable-native to p…

[Previous page](https://forum.codecrafters.io/c/challenges/6.md)

[Next page](https://forum.codecrafters.io/c/challenges/6.md?page=2)
