Text tool not working

so I was trying to use the text tool and it said, “Error no text” when there was text. am I doing something wrong or is this a bug? and is there a way to fix it?