Skip to content

Salary Tracker - Step 39: Socrates giving wrong hints #70552

Open

Description

@dinahess

Important

This issue is not currently open for contribution.
The curriculum team will review and address it as appropriate.

Describe the Issue

Socrates is providing incorrect/misleading hints.

Please refer to this forum post: https://forum.freecodecamp.org/t/workshop-workshop-salary-tracker-step-39-understanding-undersored-attributes/801482, which includes screenshots of incorrect/misleading hints provided by Socrates regarding the use of _level.

Affected Page

https://www.freecodecamp.org/learn/python-v9/workshop-salary-tracker/step-39

Steps to Reproduce

The steps to reproduce this are outlined in the referenced forum post.

Recommended fix or suggestions

Modify the Socrates hints so they are correct and helpful.

Screenshots

No response

Activity

  1. added
    status: waiting triage
    on Oct 1, 2026
  2. added theissue type on Oct 1, 2026
  3. QuincyLarson commented on Oct 2, 2026

    @QuincyLarson
    Contributor

    @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.

  4. dinahess commented on Oct 5, 2026

    @dinahess
    Author

    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")) || [];

  5. dinahess commented on Oct 7, 2026

    @dinahess
    Author

    @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.

  6. Stackforge-07 commented on Oct 11, 2026

    @Stackforge-07
    Contributor

    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?

  7. locked and limited conversation to collaborators on Oct 11, 2026
  8. majestic-owl448 commented on Oct 11, 2026

    @majestic-owl448
    Contributor

    @Stackforge-07 this issue is not open for contributions

  9. unlocked this conversation on Oct 11, 2026
  10. dinahess commented on Oct 11, 2026

    @dinahess
    Author

    @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.

  11. dinahess commented on Oct 13, 2026

    @dinahess
    Author

    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.

  12. dinahess commented on Oct 16, 2026

    @dinahess
    Author

    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.

  13. majestic-owl448 commented on Oct 16, 2026

    @majestic-owl448
    Contributor

    16. 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.

    using that code I got this, which is less out of wack. Are you sure you wre using the code shared in that post?

    Image

    I mean, this is still wrong, a value of 0 would not help, it needs to be equal to negative height

    also the top: 0 is even already there, but socrates still suggests to add it

  14. dinahess commented on Oct 17, 2026

    @dinahess
    Author

    @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.

  15. dinahess commented on Oct 18, 2026

    @dinahess
    Author

    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."

  16. dinahess commented on Oct 19, 2026

    @dinahess
    Author

    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 const rather than let. But Socrates says: "Please write some code before asking Socrates for a hint." Clearly there is code.

  17. fhsinchy commented on Oct 20, 2026

    @fhsinchy
    Contributor

    I'm working on fixing these problems.

  18. dinahess commented on Oct 22, 2026

    @dinahess
    Author

    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 normalizedData variable from starting code

    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.

  19. dinahess commented on Oct 23, 2026

    @dinahess
    Author

    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.

  20. dinahess commented on Oct 23, 2026

    @dinahess
    Author

    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.

  21. dinahess commented on Nov 7, 2026

    @dinahess
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

platform: socratesstatus: waiting triage

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions