You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dinahess Thanks for reporting this, and please also let us know about any other issues you find with Socrates. You can reply directly to this issue if it's more convenient. We're still working out the kinks in Socrates.
Socrates says: "Your code tries to parse the value from localStorage without first confirming that localStorage.getItem("data") actually returns something, which can cause an error when the storage is empty. Check the result of localStorage.getItem("data") before calling JSON.parse and use an empty array as the fallback, and try again." This is misleading.
The failed test hint is: "taskData should be initialized from localStorage using JSON.parse and localStorage.getItem("data"), falling back to an empty array."
And the passing code is: const taskData = JSON.parse(localStorage.getItem("data")) || [];
@QuincyLarson Actually, credit for reporting this issue goes to @rethinker who documented this fully in their forum post. I haven't really been checking Socrates when troubleshooting requests for help, but I'm now paying more attention to that and will report here as you requested.
Hi! I'd like to work on this issue. I reviewed the description and linked forum discussion, and I'd like to reproduce the problem and investigate how to make Socrates' hints accurate and helpful. Since the issue is currently assigned, would it be okay for me to contribute a fix?
@QuincyLarson, Would it be possible to lift the Socrates limit for me so it's easier to test? I found another one today but couldn't get back in to copy it because I'd reached the limit.
@majestic-owl448, I see what you mean. I just plugged in that code again and didn't get the above message about the stylesheet. I must've refreshed without plugging the index.html code back in. Sorry for the confusion, but you're right -- the hint is still wrong.
Here's another one for Design a Cafe Menu. Please refer to forum post https://forum.freecodecamp.org/t/design-a-cafe-menu-step-48/802403/2. The issue is missing class attributes in the article elements. But Socrates says: "Your p elements contain whitespace (spaces or line breaks) between the closing tag of the first p and the opening tag of the second p. Remove all characters that create space between those two p tags so they sit directly next to each other and try again."
But Socrates says, "Your code still contains a console.log(normalizedData) statement, which should be removed before declaring the function. Delete that console.log line and try again," even though there is no such log in the user's code.
But Socrates says, "Your code never calls splice() on the updatedCrew array, so the astronauts are not being swapped. Add the one‑line splice technique that uses updatedCrew, fromIndex, and toIndex inside the editable region and try again," even though the one-line splice technique was used correctly in the code.
But Socrates says, "Your template literal is using the wrong placeholder names (e.g., ${departments} instead of the required ${departments_variable_goes_here} and similar for the other values). Replace each placeholder with the exact variable name specified in the challenge description and try again," which is incorrect.
But Socrates says: 'Your console.log("\nTick " + (tickIndex + 1)) statement is not located inside the while loop. Move that log line so it runs within the body of the while loop and try again,' even though the requested log is clearly inside the while loop.
Activity
QuincyLarson commentedon Oct 2, 2026
@dinahess Thanks for reporting this, and please also let us know about any other issues you find with Socrates. You can reply directly to this issue if it's more convenient. We're still working out the kinks in Socrates.
dinahess commentedon Oct 5, 2026
There's another Socrates issue at https://www.freecodecamp.org/learn/javascript-v9/workshop-todo-app/step-61.
Socrates says: "Your code tries to parse the value from localStorage without first confirming that localStorage.getItem("data") actually returns something, which can cause an error when the storage is empty. Check the result of localStorage.getItem("data") before calling JSON.parse and use an empty array as the fallback, and try again." This is misleading.
The failed test hint is: "taskData should be initialized from localStorage using JSON.parse and localStorage.getItem("data"), falling back to an empty array."
And the passing code is:
const taskData = JSON.parse(localStorage.getItem("data")) || [];dinahess commentedon Oct 7, 2026
@QuincyLarson Actually, credit for reporting this issue goes to @rethinker who documented this fully in their forum post. I haven't really been checking Socrates when troubleshooting requests for help, but I'm now paying more attention to that and will report here as you requested.
Stackforge-07 commentedon Oct 11, 2026
Hi! I'd like to work on this issue. I reviewed the description and linked forum discussion, and I'd like to reproduce the problem and investigate how to make Socrates' hints accurate and helpful. Since the issue is currently assigned, would it be okay for me to contribute a fix?
majestic-owl448 commentedon Oct 11, 2026
@Stackforge-07 this issue is not open for contributions
dinahess commentedon Oct 11, 2026
@QuincyLarson, Would it be possible to lift the Socrates limit for me so it's easier to test? I found another one today but couldn't get back in to copy it because I'd reached the limit.
dinahess commentedon Oct 13, 2026
Here's another one for the Emoji Reactor - Step 11. Please refer to forum post https://forum.freecodecamp.org/t/build-an-emoji-reactor-step-11/802099. The issue was that an arrow function was unacceptable since the tests are using spyOn, which apparently only supports regular functions, but the Socrates hints missed that.
dinahess commentedon Oct 16, 2026
Here's another one for Build a House Painting. Please refer to forum post https://forum.freecodecamp.org/t/build-a-house-painting-build-a-house-painting/802312. The issue is related to the positioning of the chimney, but Socrates says, "Your link element is missing an href attribute, so the stylesheet (including the top value for #chimney) isn’t being applied. Add a correct href attribute to the link tag that points to your styles.css file and try again." This not true. The stylesheet link is correct in index. html.
majestic-owl448 commentedon Oct 16, 2026
using that code I got this, which is less out of wack. Are you sure you wre using the code shared in that post?
I mean, this is still wrong, a value of 0 would not help, it needs to be equal to negative height
also the
top: 0is even already there, but socrates still suggests to add itdinahess commentedon Oct 17, 2026
@majestic-owl448, I see what you mean. I just plugged in that code again and didn't get the above message about the stylesheet. I must've refreshed without plugging the index.html code back in. Sorry for the confusion, but you're right -- the hint is still wrong.
dinahess commentedon Oct 18, 2026
Here's another one for Design a Cafe Menu. Please refer to forum post https://forum.freecodecamp.org/t/design-a-cafe-menu-step-48/802403/2. The issue is missing
classattributes in thearticleelements. But Socrates says: "Your p elements contain whitespace (spaces or line breaks) between the closing tag of the first p and the opening tag of the second p. Remove all characters that create space between those two p tags so they sit directly next to each other and try again."dinahess commentedon Oct 19, 2026
Challenge: Build a Fortune Teller. Please refer to forum post https://forum.freecodecamp.org/t/build-a-fortune-teller-build-a-fortune-teller-my-code-is-not-seen/802433. The issue is a variable declared as
constrather thanlet. But Socrates says: "Please write some code before asking Socrates for a hint." Clearly there is code.majestic-owl448 commentedon Oct 19, 2026
socrates allucinations again https://forum.freecodecamp.org/t/build-an-employee-profile-validator-step-19/802452/
fhsinchy commentedon Oct 20, 2026
I'm working on fixing these problems.
dinahess commentedon Oct 22, 2026
Challenge: https://www.freecodecamp.org/learn/javascript-v9/workshop-campus-directory-normalizer/step-27
Related forum post: https://forum.freecodecamp.org/t/build-a-campus-directory-normalizer-step-27/802607
Actual issue: Missing
normalizedDatavariable from starting codeBut Socrates says, "Your code still contains a console.log(normalizedData) statement, which should be removed before declaring the function. Delete that console.log line and try again," even though there is no such log in the user's code.
dinahess commentedon Oct 23, 2026
Challenge: https://www.freecodecamp.org/learn/javascript-v9/workshop-space-mission-roster/step-12
Related forum post: https://forum.freecodecamp.org/t/build-a-space-mission-roster-step-12/802649
Actual issue: Added a return statement that wasn't asked for in this step
But Socrates says, "Your code never calls splice() on the updatedCrew array, so the astronauts are not being swapped. Add the one‑line splice technique that uses updatedCrew, fromIndex, and toIndex inside the editable region and try again," even though the one-line splice technique was used correctly in the code.
dinahess commentedon Oct 23, 2026
Challenge: https://www.freecodecamp.org/learn/javascript-v9/workshop-campus-directory-normalizer/step-51
Related forum post: https://forum.freecodecamp.org/t/build-a-campus-directory-normalizer-step-51/802659
Actual issue: The tests are looking for a template literal that uses newline characters rather than carriage returns
But Socrates says, "Your template literal is using the wrong placeholder names (e.g., ${departments} instead of the required ${departments_variable_goes_here} and similar for the other values). Replace each placeholder with the exact variable name specified in the challenge description and try again," which is incorrect.
majestic-owl448 commentedon Nov 6, 2026
https://forum.freecodecamp.org/t/build-a-discount-calculator-step-30/802960/
an other situation of Socrates being useless
majestic-owl448 commentedon Nov 6, 2026
https://forum.freecodecamp.org/t/build-an-email-simulator-step-23/821547/
again Socrates being useless
dinahess commentedon Nov 7, 2026
Challenge: https://www.freecodecamp.org/learn/javascript-v9/workshop-festival-crowd-flow-simulator/step-30
Related forum post: https://forum.freecodecamp.org/t/reading-bug-in-festival-crowd-flow-sim/821632
Actual issue: for-in loop was used rather than a for-of loop
But Socrates says: 'Your console.log("\nTick " + (tickIndex + 1)) statement is not located inside the while loop. Move that log line so it runs within the body of the while loop and try again,' even though the requested log is clearly inside the while loop.