I didn't have core.eol in my git config; I was operating using the default settings (for cygwin's git, anyway). I set 'core.eol=crlf' and things improved.
I made another commit so that .kt and .kts files are treated as text (therefore converted to Windows line endings on Windows), and shell scripts (gradlew, sqlline, sqlsh) always have Unix line-endings. Thanks, Vladimir, for supporting skipAutostyle under buildSrc. I forced-pushed your commit to fix a typo in the commit message. I am still having trouble starting sqlline and sqlsh. I get ClassNotFoundException. I suspect the classpath-in-a-jar trick doesn't work on Windows/Cygwin. I also wish Autostyle weren't so picky about line endings. Javac etc. ignore them, so Autostyle should too. Julian On Wed, Jan 29, 2020 at 12:34 AM Amir Gajst <[email protected]> wrote: > > I had a similar problem. Try *removing core.eol *from your git config. > > On Wed, Jan 29, 2020 at 10:03 AM Julian Hyde <[email protected]> wrote: > > > What is in the file is fine, and yet autostyle is complaining. So I > > think it is a bug in our autostyle setup. > > > > I can't figure out how to disable autostyle. I've tried things like > > "gradlew -PskipAutostyle". > > > > Julian > > > > On Tue, Jan 28, 2020 at 11:39 PM Vladimir Sitnikov > > <[email protected]> wrote: > > > > > > I guess it expects EOL to match Git configuration. > > > > > > >Autostyle seems to expect \n at the ends of lines and get \r\n, or vice > > > versa > > > > > > I guess it should show what is in the file, and what it expects. > > > > > > Vladimir > > > > > -- > > > > [image: Sisense] > <https://www.sisense.com/?source=xink&utm_source=xink&utm_medium=email&utm_campaign=emailsignature2018> > *Amir Gajst* > Software Engineer > +972-54-4766239 > amir.gajst > [image: Instagram] <https://www.instagram.com/sisense/> [image: LinkedIn] > <https://www.linkedin.com/company/sisense> [image: Facebook] > <https://www.facebook.com/Sisense> [image: Twitter] > <https://twitter.com/Sisense> > <https://t.xink.io/Tracking/Index/0NgBAPDBAADdv0QA0> Read more about > Sisense Q4 2019 Release >> > <https://t.xink.io/Tracking/Index/0NgBAPDBAADdv0QA0>
