I have had this problem (or its variations) for many years, and I suspect that this is caused by the exchange of file servers with Mac users, in particular Dreamweaver users (mostly graphic artists). It looks like he is changing the files he is editing (loading?) Into mixed / weird lines, which are a combination of NL + CR (hex 0a0d), double-CR (0d0d) and solid newline lines (0a).
If you opened the same file in vim, it is not a double interval, but all lines end with ^ M.
Anyway, none of the solutions on this page worked for me, but I found something that does.
You need to follow these steps (Eclipse 4.2.2)
1.) File β Convert Line Delimiters To β MacOS 9 (CR, \ r)
2.) Change β Find / Replace (Ctrl-F)
Find: \r$ Replace: leave blank
3.) Replace everything
If you do not do this in order or start with the file again, you will receive an error message "incompatible line separators", as in the question.
SpliFF
source share