Compounds of FormulaI:in which R1, R2, R3, R4, X, Y and n have the meanings given in the specification, are inhibitors of Trk kinases and are useful in the treatment of diseases which can be treated with a Trk kinase inhibitor.本發明係關於一種式I化合物:其中R1、R2、R3、R4、X、Y及n具有說明書中所給出之含義,該化合物係Trk激酶之抑制劑且可用於治療可用Trk激酶抑制劑治療之疾病。