I once played with a DM that strictly ruled that rogues didn't get a sneak attack bonus unless I was in stealth and undetected by the enemy. (As he said its in the name: SNEAK attack)
I brought up I could probably make that still work with a bow and I was immediately preemptively banned from using ranged weapons lol.
That was a frustrating game.