You should never run rebuild if you want to keep your code. Unfortunately this action has cleared anything you may have created prior. (Use “reopen…” instead next time)
Looking at your screenshot, the environment looks broken.
You will have to reset the environment using the instructions here: