Why I get this message saying "unable to compile some documents for deployment ev3"?
Is that the whole error message or are there more lines to it?
You could always try copying and pasting your project pieces into a new project, maybe the project file itself got corrupted in some way.
It also might be possible that some of your custom blocks have errors in them.
If none of these work for you, then try to isolate the source of the error - hold Ctrl and click on parts of the program, then press Run Selected (looks like play sign with parentheses) to check if the error is still there. If the error goes away after testing a specific block, then it is the source of the error, therefore you should look more closely to find the issue.