The way my DM has always played is that if you are a warlock with devils sight you can most definitely shoot eldritch blast or bows into and out of darkness. That no ranged rule should apply only to ppl without devils sight. Looks like it’s still not quite implemented correctly.