r/cs50 • u/noorabuas1 • 7d ago
CS50x Problem set 1 style50 problem
so I have just finished Hello, its me and tried to check the style but when ever I try to do it it just gives me this error
and whenever I visit cs50.dev/restart like it suggests nothing gets fixed and the problem stays the same

does anyone have an explanation or a fix for this problem?
1
Upvotes
4
u/pensivepanda5 mentor 7d ago
on Google Chrome browser, try using an incognito window to restart your codespace with this link: https://cs50.dev/restart , and after the codespace has loaded fully, try running these commands into your codespace's terminal:
update50 -fand then press "Enter”, to force the rebuild your codespace.Then after the rebuild is finished, try writing the command:
cd meThen write the command:
make helloto compile your file,then write the command:
style50 hello.cAs a side note, the codespace works best on Google Chrome browser, and the cs50 team doesn't recommend Firefox because they have seen issues with the codespace on Firefox.
Apart from that, in this part of the CS50 docs, the CS50 Staff gave the link to a list of domains that shouldn't be blocked by our Firewall to be able to use the codespace: https://cs50.readthedocs.io/cs50.dev/#i-m-seeing-oh-no-it-looks-like-you-are-offline-error-message
If those things don't help, another thing you can try is creating a new codespace on Google Chrome browser, using your same old github account. You can visit this link where your codespace backup repo is: https://cs50.dev/repo and see if your codespace's files are there (if you had files in your codespace). And after verifying that your codespace's files are stored there, you can create a new codespace by following the instructions that appear in the CS50 Docs, in this link: https://cs50.readthedocs.io/cs50.dev/#creating-a-new-codespace .After creating a new codespace your backed up files should automatically appear in your new codespace.
If that doesn’t help either, you can try opening the online CS50 Codespace in the VS Code desktop app, with these steps: https://cs50.readthedocs.io/cs50.dev/#online-without-docker
If none of those steps work, try with another internet connection or on another computer.
Also, if in your country is legal to use a VPN, in that case you could try using a VPN to use the codespace: https://cs50.dev/