Isn't it working as described in the spell's description? If I remember correctly in the description it says that creatures cannot make ranged attacks into or out of the darkness. Now that doesn't mean that it makes sense. I guess darkness is really a spell for melee warlocks. Maybe a drow with a rapier? Or you could even take a githyanki and only focus on melee.