StarChart-Labs / corona-ide

A exploratory project to build a lighter, simpler Java IDE - or learn trying!
Eclipse Public License 1.0
3 stars 1 forks source link

Parse and handle git merge conflicts well #59

Open nickavv opened 7 years ago

nickavv commented 7 years ago

When using git, developers may run into merge conflicts. These are represented directly in code as such:

<<<<<<< HEAD
            // code from your branch
=======
            // code from merging-branch
>>>>>>> commit hash or description

In Eclipse the Java parser completely chokes on these extra lines and you get a sea of compile errors. My recommendation is that in Corona we parse the three merge conflict lines and make it visually obvious what is happening. To avoid errors related to part of the conflict referencing classes that don't exist or whatnot I recommend we not even bother trying to compile the code inside the merge chunks