Skip to content

[Bug] #138

Closed
Closed

Description

@iriru

Summary

"Command not found" error when running sl too soon after opening a codespace

After opening a new codespace and running the setup.sh script, running the sl command too soon results in a "command not found" error. This happens because the environment variables are not yet fully set.

How to reproduce

  1. Open a new codespace.
  2. Immediately run the sl command:
sl

Expected Result

The sl command should run successfully.

Actual Result

The terminal returns a "command not found" error.

Image

Additional context

This issue occurs because the sl command is run before the environment variables are fully applied. To prevent this, please wait a sufficient amount of time before running the command. If the issue has already occurred, try the following method:

source ~/.bashrc
sl

Activity

  1. iriru commented on Jan 18, 2025

    @iriru
    Author

    "Issue might be caused by user error, but I wanted to document it as I continue to learn. I will also try to create a pull request for this issue later, but unfortunately, I can't do more at the moment."

  2. added a commit that references this issue on Jan 19, 2025
    268e842
  3. iriru commented on Jan 19, 2025

    @iriru
    Author

    @jhonatanparada499
    , there are currently no reviewers available for this pull request. Could you please review it and merge if everything looks good? Thank you!

  4. nguyenalex836 commented on Jan 20, 2025

    @nguyenalex836

    @iriru Thank you for raising this issue! I'll get this triaged for review ✨ Our team will provide feedback regarding the best next steps for this issue - thanks for your patience! 💛

  5. tfredrick112 commented on Apr 25, 2025

    @tfredrick112

    @nguyenalex836 I found that updating the postCreateCommand helps solve the issue, can you please review this PR and merge if it looks good? #160

  6. v-fidelusaleksander commented on Jan 28, 2026

    @v-fidelusaleksander
    Contributor

    The exercise just got a major update and this should be fixed

  7. jhonatanparada499 commented on Jan 28, 2026

    @jhonatanparada499
    Contributor

    @iriru
    Why are you calling me?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions