A judge this week found a York man incompetent for trial and dismissed attempted murder charges he faced for a stabbing in 2020.