A 19-year-old who allegedly stabbed a man sleeping outside a Lake Street building has fronted court wearing a forensic jumpsuit.