Today I installed Eclipse (on Windows 10) according to the instructions on this page: Eclipse IDE | openHAB
I have Maven and openJDK 11 installed as well.
I forked the addon repo and then created a skeleton for a new binding, implemented a simple binding and was indeed able to bring up and test the binding according to the description.
When I wanted to commit the progress to a branch I noticed however that several files outside my project have been modified, with the only changes being the line endings:
Other files affected are CODEOWNERS and bom/openhab-addons/pom.xml
Is this a setting in Eclipse somewhere?
And speaking of Eclipse… will it keep using 20-100% CPU all the time? It just keeps building and building and invoking and building and waiting and refreshing IDE (for almost 3 hours now)
I’d let the build complete and turn off the auto-build to prevent that. Autobuild will automatically do that anytime you save a file for the most part.
This might be some setting that coverts line endings to windows line endings when the skeleton script modifies those files. But I would not know what causes this. Maybe a git setting?
I did revert the bundles pom.xml file and then created another skeleton and indeed now I do have the additional ‘empty’ lines again. Thing is in fact, they are not empty but they do contain spaces (multiples of 4, roughly following the indent level of the xml)
(Wild guess: git adds \r and the script treats both \r and \n as lines and then inserts a line with indentation for each)
The CODEOWNER file seems to be something different. My first binding was not added, my second is in there.
I’ll copy my work and start from a clean repo to be able to better see what is going on.