Steps to reproduce
Create a new world
Place a barrel
Place a comparator opposite and adjacent to the barrel
Place an item in the comparator
→ The comparator should activate, but does not
Create a new world
Place a barrel
Place a comparator opposite and adjacent to the barrel
Place an item in the comparator
→ The comparator should activate, but does not
This is not a bug. It was made that way on purpose.