It's reported bug.Here's a fix that's connected with Kate;
-open up System Settings, hit the Advanced tab and select File Associations. Find "plain" under "text", highlight Kate and hit edit. In the Application tab, change the %U to %u in the command field, and it should work .
If error comes back,see for what app you might need to change settings too.