This repository has been archived by the owner on Aug 12, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello there,
I'm trying to close #1312, but I'm having some issues.
First things first: let's define a sample file to understand textidote's output:
If I run
textidote --quiet --no-color --check en --output singleline sample.tex
, this gets printed to stdout:I then defined the following pattern:
[[(.*)(L(%d+)C(%d+)-L(%d+)C(%d+)): (.*)]]
. However, I'm getting the following warning:I tried enabling debug mode (here's the log), which suggests the output is going to stderr instead:
However, if I try to enable
from_stderr
(currently not pushed), while I don't get any warnings, I don't get any diagnostics either. Here's a log withfrom_stderr
enabled. What's going on? Do I just have a faulty pattern, or am I missing something else?Besides that, I have another remark: currently, I'm hard-coding the language to check as English, which is not ideal, users might want to use another language (myself included). What would be the best approach to allow users to change it dynamically?