This was intentional behaviour. The idea was to put them near the edge of their range from the target, so that defenses would have a harder time reaching them. The problem is, sometimes their range is longer than their LOS, so they never attack the target.
Placing at the edge of their weapon range is a sensible option for low-HP units with long range, like merls and artillery, but everything else should put themselves within their LOS from the target.
This was intentional behaviour. The idea was to put them near the edge of their range from the target, so that defenses would have a harder time reaching them. The problem is, sometimes their range is longer than their LOS, so they never attack the target.
Placing at the edge of their weapon range is a sensible option for low-HP units with long range, like merls and artillery, but everything else should put themselves within their LOS from the target.