Skip to content

[Bug] #138

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
iriru opened this issue Jan 18, 2025 · 4 comments · May be fixed by #160
Open

[Bug] #138

iriru opened this issue Jan 18, 2025 · 4 comments · May be fixed by #160
Labels
bug Something isn't working

Comments

@iriru
Copy link

iriru commented Jan 18, 2025

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
@iriru iriru added the bug Something isn't working label Jan 18, 2025
@iriru
Copy link
Author

iriru commented Jan 18, 2025

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

iriru added a commit to iriru/code-with-codespaces that referenced this issue Jan 19, 2025
Fixes skills#138
- Added a note advising users to wait sufficiently if errors occur.
- Note: Running commands before the codespace is fully set up might result in errors. If an error occurs, please open a new codespace and wait a sufficient amount of time before trying again.
@iriru
Copy link
Author

iriru commented Jan 19, 2025

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

@nguyenalex836
Copy link

@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! 💛

@tfredrick112
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
3 participants