-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No warnings found in CI #185
Comments
Could it be a file encoding problem? I recall this issue from last year: If the encoding of the file does not match what TeXtidote expects, nothing is being read and that would explain the absence of warnings. |
To debug the issue, may I suggest you try this command:
If |
I just created a minimal example for this issue in this repository. |
Thanks for providing these artifacts. I opened the files in a hex editor to see how the characters have been encoded. Here is what I found: Source file (
CI (
Local (
I am a bit puzzled by what I see. The source file is a valid UTF-8 document. When processed locally, it ends up as a file transcoded into latin-1 (visible by the fact that the two characters end up with a different hex value). I don't know how this is possible, as TeXtidote always assumes the default encoding of the OS it runs in. Finally, when it is run in the CI pipeline, the characters are garbled --indicating again that the program does not assume UTF-8 as the input encoding. However, looking at your CI configuration, I see that you use a Debian OS, so UTF-8 input should not be a problem. A workaround for your problem would be to explicitly TeXtidote to use UTF-8, by adding the |
Thanks for the help so far! As suggested, I added To confirm that the main.tex is not altered by Git in some unexpected way when pushing / pulling, I also tried downloading my local main.tex version as part of the pipeline on another branch which yielded the same results. |
This may not be related, but I see that the calls to TeXtidote mix the |
@giulianorasper |
Will close this due to lack of information to fix the issue. |
There seems to be an issue where no warnings are found when using the tool in CI.
Running
java -jar textidote.jar --check de --output html PuE.tex > language_report.html
locallyin the root of the repo works and warnings are found. In the CI log, it does not state that the file was skipped, but no warnings are found either.
Explicitly using the correct file name "PuE.tex" in the CI script instead of the variable has no effect.
gitlab-ci.txt
The text was updated successfully, but these errors were encountered: