LTeX: Grammar/spell checker :mag::heavy_check_mark: for VS Code using LanguageTool with support for LaTeX :mortar_board:, Markdown :pencil:, and others
Describe the bug
Python docstring content may not be parsed.
Steps to reproduce
Create MWE:
"""I'm a error"""
I'm a error
* Check current document with LTeX
* Line comment that begins with `#` is parsed and the error of `use an instead of a` is raised
**Expected behavior**
The same error should be raised for the content into the docstring.
Especially (not shown in the MWE), it should work for multiple line docstrings
**Sample document**
<details>
```python
"""I'm a error"""
# I'm a error
```
[... truncated]
at java.base/java.util.regex.Pattern$GroupTail.match(Unknown Source)
at java.base/java.util.regex.Pattern$BranchConn.match(Unknown Source)
at java.base/java.util.regex.Pattern$CharProperty.match(Unknown Source)
at java.base/java.util.regex.Pattern$Neg.match(Unknown Source)
at java.base/java.util.regex.Pattern$Branch.match(Unknown Source)
at java.base/java.util.regex.Pattern$GroupHead.match(Unknown Source)
at java.base/java.util.regex.Pattern$LazyLoop.match(Unknown Source)
at java.base/java.util.regex.Pattern$GroupTail.match(Unknown Source)
mars 29, 2023 8:26:56 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: ""
mars 29, 2023 8:26:56 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 0 rule matches
mars 29, 2023 8:26:58 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: ""
mars 29, 2023 8:26:58 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 0 rule matches
mars 29, 2023 8:26:59 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: ""
mars 29, 2023 8:26:59 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 0 rule matches
mars 29, 2023 8:27:00 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: ""
mars 29, 2023 8:27:00 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 0 rule matches
mars 29, 2023 8:27:00 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: ""
mars 29, 2023 8:27:00 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 0 rule matches
mars 29, 2023 8:27:01 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: ""
mars 29, 2023 8:27:01 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 0 rule matches
mars 29, 2023 8:27:02 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: ""
mars 29, 2023 8:27:02 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 0 rule matches
mars 29, 2023 8:27:02 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: ""
mars 29, 2023 8:27:02 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 0 rule matches
mars 29, 2023 8:27:03 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: ""
mars 29, 2023 8:27:03 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 0 rule matches
mars 29, 2023 8:27:04 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: ""
mars 29, 2023 8:27:04 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 0 rule matches
mars 29, 2023 8:27:04 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: ""
mars 29, 2023 8:27:04 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 0 rule matches
mars 29, 2023 8:27:07 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: ""
mars 29, 2023 8:27:07 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 0 rule matches
mars 29, 2023 8:27:08 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: ""
mars 29, 2023 8:27:08 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 0 rule matches
mars 29, 2023 8:27:10 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: ""
mars 29, 2023 8:27:10 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 0 rule matches
mars 29, 2023 8:27:10 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: ""
mars 29, 2023 8:27:10 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 0 rule matches
mars 29, 2023 8:27:14 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: "\n\n\n"
mars 29, 2023 8:27:14 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 0 rule matches
mars 29, 2023 8:27:15 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: "\n\n\nI"
mars 29, 2023 8:27:15 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 0 rule matches
mars 29, 2023 8:27:15 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: "\n\n\nI "
mars 29, 2023 8:27:15 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 0 rule matches
mars 29, 2023 8:27:16 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: "\n\n\nI'm "
mars 29, 2023 8:27:16 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 0 rule matches
mars 29, 2023 8:27:17 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: "\n\n\nI'm a r"
mars 29, 2023 8:27:17 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 1 rule match
mars 29, 2023 8:27:17 AM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation
AVERTISSEMENT: Unmatched cancel notification for request id 71
mars 29, 2023 8:27:18 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: "\n\n\nI'm a e"
mars 29, 2023 8:27:18 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 1 rule match
mars 29, 2023 8:27:18 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
PRÉCIS: Checking the following text in language 'en-GB' via LanguageTool: "\n\n\nI'm a error"
mars 29, 2023 8:27:18 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
PRÉCIS: Obtained 1 rule match
```
Would really like to see this, as well as --I am error (strip ^-- on every line until a line that uses --@something appears) for docstrings in Lua. This and #457
LTeX is not checking python docstring content.
Describe the bug Python docstring content may not be parsed.
Steps to reproduce
I'm a error
LTeX configuration
"LTeX Language Server" log file
"LTeX Language Client" log file
Version information List here the version information of the relevant software.
Thank you for your help and your great linter!