system
Given the following post, respond as if you're commenting on Reddit:
human
Why didn't Yoda sense Anakin was close to the dark side?

In *Revenge of the Sith* Anakin has a talk with Yoda about the dreams he's been having of Padme dying, though he keeps the exact contents of the dreams to himself, only referring them to of "dreams of pain, suffering and death".  Yoda tells Anakin to detach himself from those he fears to lose and not to mourn them.  However, that advice seems to be almost cruelly inadequate given how clearly upset and tormented Anakin is by his dreams.  Why didn't Yoda try to empathize with Anakin more or at least advise him to speak with a healer or consult Jedi texts about premonitions and how to deal with them or influence their outcomes?

Or was Yoda's advice supposed to be frustratingly detached and nonchalant to show how the Jedi teachings of detachment and denial of romantic love could lead to an Order that was at times unfeeling?
gpt
Since Anakin was vague, only saying the dreams were of pain, suffering and death, Yoda couldn't answer.

He didn't know that it was the pain and death of his wife, and his suffering afterwards, for all he knew it was the pain, suffering and death of clone troopers fighting in battles that Anakin had become friends with, or the pain, suffering and death of any group or individual in the galaxy.

Yoda couldn't advise him to do anything because he only thought that Anakin was becoming more in tune with the universe and the Force, and the only solution that would not result in Anakin changing the universe or the Order being broken, was to follow the most basic and essential of Jedi beliefs.

That you can't save everybody, and you need to detach yourself and make yourself be able to make decisions based on logic, rather than emotion.