<p></p>
<blockquote>
<blockquote>
<p>No, I don't. I just ran the checks now with this PR as I thought it might help.<br>
The tests fail in the same way for Geany master, so you are absolutely right: it's not new and not related to this PR.</p>
</blockquote>
<p>Ctags uses appveyor for CI on Windows so it might be worth considering to use it as well so we can run tests for Windows builds too.</p>
</blockquote>
<p>We discussed this in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="178176103" data-permission-text="Title is private" data-url="https://github.com/geany/geany/issues/1241" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/1241/hovercard" href="https://github.com/geany/geany/issues/1241">#1241</a>.<br>
I still don't want to invest time in an appveyor setup.<br>
Some time ago I started (and not yet finished) a dockerized MSYS2 setup to cross-build Geany<br>
and Geany-Plugins from GIT to release ready installers. The script and Docker container could also be used in a Travis CI step even though my primary target are nightly build installers and especially release installers without booting a Windows machine.</p>
<blockquote>
<blockquote>
<blockquote>
<ol>
<li>Would you try opening the file in binary mode and check what tests fail when you do?</li>
</ol>
</blockquote>
</blockquote>
<blockquote>
<p>No change.</p>
</blockquote>
<p>Weird, I don't get it then. This is the place where tags are written and newlines are written using <code>\n</code> - so it's a matter of figuring out why <code>\n</code> produces CRLF.</p>
</blockquote>
<p>I gave it another shot: the binary didn't work because of my other change in <code>runner.sh</code> where I added <code>--strip-trailing-cr</code> to the diff command.<br>
The good news is: without the <code>--strip-trailing-cr</code> change, the binary mode actually fixes all the tests except the six failures. The six failures can be fixed easily by converting the test samples to LF, however.<br>
So it should be pretty easy to get the tests running on Windows as well.</p>
<blockquote>
<blockquote>
<blockquote>
<ol>
<li>Would you try changing CRLF line ends in the SQL tests that fail to LF to see if this is the reason for the problem? I checked uctags implementation of file reading and CRLF should be handled there correctly so it could be something parser-specific.</li>
</ol>
</blockquote>
</blockquote>
<blockquote>
<p>This actually helps. I converted the test files of the six failures to LF and the tests passed fine.</p>
</blockquote>
<p>Good, at least we know it's the CRLFs. Now only to figure out why. I'm afraid I'm out of ideas so it's your turn with debugging :-(</p>
</blockquote>
<p>See above :).</p>
<blockquote>
<blockquote>
<p>So I think we should address this separately, maybe after this PR got merged.</p>
</blockquote>
<p>Sounds good to me.</p>
</blockquote>
<p>I just opened <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="752917129" data-permission-text="Title is private" data-url="https://github.com/geany/geany/issues/2677" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/2677/hovercard" href="https://github.com/geany/geany/issues/2677">#2677</a> for this.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2666#issuecomment-735394520">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJY2GU7XRAHU5NRFC73SSJEFFANCNFSM4T2VTWXA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJZPNSXCI6YQQFML5KDSSJEFFA5CNFSM4T2VTWXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFPKTVWA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2666#issuecomment-735394520",
"url": "https://github.com/geany/geany/pull/2666#issuecomment-735394520",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>