Skip to content
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

Equations incorrectly Dummied in LTex-Catalan #865

Open
TheRepSter opened this issue Jan 5, 2024 · 2 comments
Open

Equations incorrectly Dummied in LTex-Catalan #865

TheRepSter opened this issue Jan 5, 2024 · 2 comments
Labels
1-bug 🐛 Issue type: Bug report (something isn't working as expected) 2-unconfirmed Issue status: Bug that needs to be reproduced (all new bugs have this label)

Comments

@TheRepSter
Copy link

Describe the bug
When writing in Catalan, math is not correctly handled by the parser. It raises a MORFOLOGIK_RULE_CA_ES at the end of every equation, both inline and envs.

Steps to reproduce
Steps to reproduce the behavior:

  1. Lint the following .tex file:
\documentclass{article}

\begin{document}

Definim $\vec{u} = A\vec{v}$. Volem demostrar que la suma de coeficients de $\sum_{i=1}^{N} u_i = c*k$.
Sabem que cada coeficient de $\vec{u}$ a posició $i$ es calcula $u_i = \sum_{j=1}^{N} a_{ij}*v_j$.
Com volem calcular la suma de tots els coeficients de $\vec{u}$, hem de calcular el sumatori següent:
\begin{displaymath} 
    \sum_{i=1}^{N} u_i = \sum_{i=1}^{N} \sum_{j=1}^{N} a_{ij}*v_j  
\end{displaymath}

\end{document}

The linter raises an spelling error for each end of an equation or enviroment.

Expected behavior
The parser should dummy the equations like it is the case for the english support.

LTeX configuration

"ltex.language": "ca-ES",
 "ltex.additionalRules.motherTongue": "es"

"LTeX Language Server" log file

ene. 05, 2024 5:53:27 P. M. org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
DETALLADO: Checking the following text in language 'ca-ES' via LanguageTool: "\n\nDefinim Dummy0. Volem demostrar que la suma de coeficients de Dummy1. Sabem que cada coeficient de"... (truncated to 100 characters)
ene. 05, 2024 5:53:27 P. M. org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
DETALLADO: Obtained 7 rule matches

"LTeX Language Client" log file
First, set the ltex.trace.server setting in your settings.json to "verbose". Then, reload the VS Code window and reproduce the bug. Go to ViewOutput and select LTeX Language Client in the drop-down list. Paste this log here (note: it will contain your checked document):

[Trace - 5:58:23 PM] Sending request 'textDocument/codeAction - (10)'.
Params: {
    "textDocument": {
        "uri": "file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex"
    },
    "range": {
        "start": {
            "line": 5,
            "character": 33
        },
        "end": {
            "line": 5,
            "character": 33
        }
    },
    "context": {
        "diagnostics": []
    }
}


[Trace - 5:58:23 PM] Received response 'textDocument/codeAction - (10)' in 2ms.
Result: []


[Trace - 5:58:23 PM] Sending request 'textDocument/codeAction - (11)'.
Params: {
    "textDocument": {
        "uri": "file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex"
    },
    "range": {
        "start": {
            "line": 5,
            "character": 34
        },
        "end": {
            "line": 5,
            "character": 34
        }
    },
    "context": {
        "diagnostics": []
    }
}


[Trace - 5:58:23 PM] Received response 'textDocument/codeAction - (11)' in 1ms.
Result: []


[Trace - 5:58:37 PM] Sending notification 'textDocument/didChange'.
Params: {
    "textDocument": {
        "uri": "file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex",
        "version": 4
    },
    "contentChanges": [
        {
            "text": "\\documentclass{article}\r\n\r\n\\begin{document}\r\nDefinim $\\vec{u} = A\\vec{v}$. Volem demostrar que la suma de coeficients de $\\sum_{i=1}^{N} u_i = c*k$.\r\nSabem que cada coeficient de $\\vec{u}$ a posició $i$ es calcula $u_i = \\sum_{j=1}^{N} a_{ij}*v_j$.\r\nCom volem calcular la suma de tot els coeficients de $\\vec{u}$, hem de calcular el sumatori següent:\r\n\\begin{displaymath} \r\n    \\sum_{i=1}^{N} u_i = \\sum_{i=1}^{N} \\sum_{j=1}^{N} a_{ij}*v_j  \r\n\\end{displaymath}\r\n\\end{document}"
        }
    ]
}


[Trace - 5:58:37 PM] Received request 'window/workDoneProgress/create - (10)'.
Params: {
    "token": "{\"uri\":\"file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex\",\"operation\":\"checkDocument\",\"uuid\":\"4ccda04b-2ca9-156b-1985-20d957b337b0\"}"
}


[Trace - 5:58:37 PM] Sending response 'window/workDoneProgress/create - (10)'. Processing request took 0ms
No result returned.


[Trace - 5:58:37 PM] Received notification '$/progress'.
Params: {
    "token": "{\"uri\":\"file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex\",\"operation\":\"checkDocument\",\"uuid\":\"4ccda04b-2ca9-156b-1985-20d957b337b0\"}",
    "value": {
        "kind": "begin",
        "title": "Checking document",
        "cancellable": false,
        "message": "file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex"
    }
}


[Trace - 5:58:37 PM] Received request 'workspace/configuration - (11)'.
Params: {
    "items": [
        {
            "scopeUri": "file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex",
            "section": "ltex"
        }
    ]
}


[Trace - 5:58:37 PM] Sending response 'workspace/configuration - (11)'. Processing request took 1ms
Result: [
    {
        "enabled": [
            "bibtex",
            "context",
            "context.tex",
            "html",
            "latex",
            "markdown",
            "org",
            "restructuredtext",
            "rsweave"
        ],
        "language": "ca-ES",
        "dictionary": {},
        "disabledRules": {},
        "enabledRules": {},
        "hiddenFalsePositives": {},
        "bibtex": {
            "fields": {}
        },
        "latex": {
            "commands": {},
            "environments": {}
        },
        "markdown": {
            "nodes": {}
        },
        "configurationTarget": {
            "dictionary": "workspaceFolderExternalFile",
            "disabledRules": "workspaceFolderExternalFile",
            "hiddenFalsePositives": "workspaceFolderExternalFile"
        },
        "additionalRules": {
            "enablePickyRules": false,
            "motherTongue": "es",
            "languageModel": "",
            "neuralNetworkModel": "",
            "word2VecModel": ""
        },
        "languageToolHttpServerUri": "",
        "languageToolOrg": {
            "username": "",
            "apiKey": ""
        },
        "ltex-ls": {
            "path": "",
            "logLevel": "fine",
            "languageToolHttpServerUri": "",
            "languageToolOrgUsername": "",
            "languageToolOrgApiKey": ""
        },
        "java": {
            "path": "",
            "initialHeapSize": 64,
            "maximumHeapSize": 512
        },
        "sentenceCacheSize": 2000,
        "completionEnabled": false,
        "diagnosticSeverity": "information",
        "checkFrequency": "edit",
        "clearDiagnosticsWhenClosingFile": true,
        "statusBarItem": false,
        "trace": {
            "server": "verbose"
        }
    }
]


[Trace - 5:58:37 PM] Received request 'ltex/workspaceSpecificConfiguration - (12)'.
Params: {
    "items": [
        {
            "scopeUri": "file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex",
            "section": "ltex"
        }
    ]
}


[Trace - 5:58:37 PM] Sending response 'ltex/workspaceSpecificConfiguration - (12)'. Processing request took 35ms
Result: [
    {
        "dictionary": {
            "auto": [],
            "ar": [],
            "ast-ES": [],
            "be-BY": [],
            "br-FR": [],
            "ca-ES": [],
            "ca-ES-valencia": [],
            "da-DK": [],
            "de": [],
            "de-AT": [],
            "de-CH": [],
            "de-DE": [],
            "de-DE-x-simple-language": [],
            "el-GR": [],
            "en": [],
            "en-AU": [],
            "en-CA": [],
            "en-GB": [],
            "en-NZ": [],
            "en-US": [],
            "en-ZA": [],
            "eo": [],
            "es": [],
            "es-AR": [],
            "fa": [],
            "fr": [],
            "ga-IE": [],
            "gl-ES": [],
            "it": [],
            "ja-JP": [],
            "km-KH": [],
            "nl": [],
            "nl-BE": [],
            "pl-PL": [],
            "pt": [],
            "pt-AO": [],
            "pt-BR": [],
            "pt-MZ": [],
            "pt-PT": [],
            "ro-RO": [],
            "ru-RU": [],
            "sk-SK": [],
            "sl-SI": [],
            "sv": [],
            "ta-IN": [],
            "tl-PH": [],
            "uk-UA": [],
            "zh-CN": []
        },
        "disabledRules": {
            "auto": [],
            "ar": [],
            "ast-ES": [],
            "be-BY": [],
            "br-FR": [],
            "ca-ES": [],
            "ca-ES-valencia": [],
            "da-DK": [],
            "de": [],
            "de-AT": [],
            "de-CH": [],
            "de-DE": [],
            "de-DE-x-simple-language": [],
            "el-GR": [],
            "en": [],
            "en-AU": [],
            "en-CA": [],
            "en-GB": [],
            "en-NZ": [],
            "en-US": [],
            "en-ZA": [],
            "eo": [],
            "es": [],
            "es-AR": [],
            "fa": [],
            "fr": [],
            "ga-IE": [],
            "gl-ES": [],
            "it": [],
            "ja-JP": [],
            "km-KH": [],
            "nl": [],
            "nl-BE": [],
            "pl-PL": [],
            "pt": [],
            "pt-AO": [],
            "pt-BR": [],
            "pt-MZ": [],
            "pt-PT": [],
            "ro-RO": [],
            "ru-RU": [],
            "sk-SK": [],
            "sl-SI": [],
            "sv": [],
            "ta-IN": [],
            "tl-PH": [],
            "uk-UA": [],
            "zh-CN": []
        },
        "enabledRules": {
            "auto": [],
            "ar": [],
            "ast-ES": [],
            "be-BY": [],
            "br-FR": [],
            "ca-ES": [],
            "ca-ES-valencia": [],
            "da-DK": [],
            "de": [],
            "de-AT": [],
            "de-CH": [],
            "de-DE": [],
            "de-DE-x-simple-language": [],
            "el-GR": [],
            "en": [],
            "en-AU": [],
            "en-CA": [],
            "en-GB": [],
            "en-NZ": [],
            "en-US": [],
            "en-ZA": [],
            "eo": [],
            "es": [],
            "es-AR": [],
            "fa": [],
            "fr": [],
            "ga-IE": [],
            "gl-ES": [],
            "it": [],
            "ja-JP": [],
            "km-KH": [],
            "nl": [],
            "nl-BE": [],
            "pl-PL": [],
            "pt": [],
            "pt-AO": [],
            "pt-BR": [],
            "pt-MZ": [],
            "pt-PT": [],
            "ro-RO": [],
            "ru-RU": [],
            "sk-SK": [],
            "sl-SI": [],
            "sv": [],
            "ta-IN": [],
            "tl-PH": [],
            "uk-UA": [],
            "zh-CN": []
        },
        "hiddenFalsePositives": {
            "auto": [],
            "ar": [],
            "ast-ES": [],
            "be-BY": [],
            "br-FR": [],
            "ca-ES": [
                "{\"rule\":\"APOSTROFACIO_MOT_DESCONEGUT\",\"sentence\":\"^\\\\Q\\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q Això permet definir, a partir de \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q (matriu com fins ara), \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q i un vector inicial \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q complint les condicions de l'exercici anterior, una successió de vectors amb la fórmula:\\\\E$\"}",
                "{\"rule\":\"APOSTROFACIO_MOT_DESCONEGUT\",\"sentence\":\"^\\\\Q\\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q De forma trivial Això permet definir, a partir de \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q (matriu com fins ara), \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q i un vector inicial \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q complint les condicions de l'exercici anterior, una successió de vectors amb la fórmula:\\\\E$\"}",
                "{\"rule\":\"APOSTROFACIO_MOT_DESCONEGUT\",\"sentence\":\"^\\\\QA l'anteror exercici, sabiem que la suma dels coeficients de \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q.\\\\E$\"}",
                "{\"rule\":\"APOSTROFACIO_MOT_DESCONEGUT\",\"sentence\":\"^\\\\QDemostreu que la suma dels coeficients de \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q (on \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q és el vector escrit en columna) és \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q.\\\\E$\"}",
                "{\"rule\":\"APOSTROFACIO_MOT_DESCONEGUT\",\"sentence\":\"^\\\\QEn aquest cas, sabem que \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q (ja que la suma de coeficients de cada columna de \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q dóna sempre 1) i per l'enunciat de l'exercici, \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q (ja que la suma dels coeficients de \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q dóna \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q).\\\\E$\"}",
                "{\"rule\":\"APOSTROFACIO_MOT_DESCONEGUT\",\"sentence\":\"^\\\\QEn aquest cas, sabem que \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q (ja que la suma de coeficients de cada columna de \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q dona sempre 1) i per l'enunciat de l'exercici, \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q (ja que la suma dels coeficients de \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q dóna \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q).\\\\E$\"}",
                "{\"rule\":\"APOSTROFACIO_MOT_DESCONEGUT\",\"sentence\":\"^\\\\QEn aquest cas, sabem que \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q (ja que la suma de coeficients de cada columna de \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q dona sempre 1) i per l'enunciat de l'exercici, \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q (ja que la suma dels coeficients de \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q dona \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q).\\\\E$\"}",
                "{\"rule\":\"MORFOLOGIK_RULE_CA_ES\",\"sentence\":\"^\\\\QLliurament 1 Àlgebra lineal Eduardo Pérez Motato NIU: 1709992 14/01/2024\\\\E$\"}",
                "{\"rule\":\"MORFOLOGIK_RULE_CA_ES\",\"sentence\":\"^\\\\QSigui \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q una matriu \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q amb coeficients reals tal que la suma dels coeficients de cada columna dóna sempre el mateix numero \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q, o sigui \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q per a tota \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q.\\\\E$\"}",
                "{\"rule\":\"MORFOLOGIK_RULE_CA_ES\",\"sentence\":\"^\\\\QSigui \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q una matriu \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q amb coeficients reals tal que la suma dels coeficients de cada columna dona sempre el mateix numero \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q, o sigui \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q per a tota \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q.\\\\E$\"}"
            ],
            "ca-ES-valencia": [],
            "da-DK": [],
            "de": [],
            "de-AT": [],
            "de-CH": [],
            "de-DE": [],
            "de-DE-x-simple-language": [],
            "el-GR": [],
            "en": [],
            "en-AU": [],
            "en-CA": [],
            "en-GB": [],
            "en-NZ": [],
            "en-US": [],
            "en-ZA": [],
            "eo": [],
            "es": [],
            "es-AR": [],
            "fa": [],
            "fr": [],
            "ga-IE": [],
            "gl-ES": [],
            "it": [],
            "ja-JP": [],
            "km-KH": [],
            "nl": [],
            "nl-BE": [],
            "pl-PL": [],
            "pt": [],
            "pt-AO": [],
            "pt-BR": [],
            "pt-MZ": [],
            "pt-PT": [],
            "ro-RO": [],
            "ru-RU": [],
            "sk-SK": [],
            "sl-SI": [],
            "sv": [],
            "ta-IN": [],
            "tl-PH": [],
            "uk-UA": [],
            "zh-CN": []
        }
    }
]


[Trace - 5:58:37 PM] Sending request 'textDocument/codeAction - (12)'.
Params: {
    "textDocument": {
        "uri": "file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex"
    },
    "range": {
        "start": {
            "line": 5,
            "character": 33
        },
        "end": {
            "line": 5,
            "character": 33
        }
    },
    "context": {
        "diagnostics": []
    }
}


[Trace - 5:58:37 PM] Received response 'textDocument/codeAction - (12)' in 2ms.
Result: []


[Trace - 5:58:37 PM] Received notification '$/progress'.
Params: {
    "token": "{\"uri\":\"file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex\",\"operation\":\"checkDocument\",\"uuid\":\"4ccda04b-2ca9-156b-1985-20d957b337b0\"}",
    "value": {
        "kind": "end"
    }
}


[Trace - 5:58:37 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
    "uri": "file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex",
    "diagnostics": [
        {
            "range": {
                "start": {
                    "line": 3,
                    "character": 27
                },
                "end": {
                    "line": 3,
                    "character": 28
                }
            },
            "severity": 3,
            "code": "MORFOLOGIK_RULE_CA_ES",
            "codeDescription": {
                "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_CA_ES?lang=ca-ES"
            },
            "source": "LTeX",
            "message": "'Dummy0': Possible error ortogràfic."
        },
        {
            "range": {
                "start": {
                    "line": 3,
                    "character": 101
                },
                "end": {
                    "line": 3,
                    "character": 102
                }
            },
            "severity": 3,
            "code": "MORFOLOGIK_RULE_CA_ES",
            "codeDescription": {
                "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_CA_ES?lang=ca-ES"
            },
            "source": "LTeX",
            "message": "'Dummy1': Possible error ortogràfic."
        },
        {
            "range": {
                "start": {
                    "line": 4,
                    "character": 37
                },
                "end": {
                    "line": 4,
                    "character": 38
                }
            },
            "severity": 3,
            "code": "MORFOLOGIK_RULE_CA_ES",
            "codeDescription": {
                "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_CA_ES?lang=ca-ES"
            },
            "source": "LTeX",
            "message": "'Dummy2': Possible error ortogràfic."
        },
        {
            "range": {
                "start": {
                    "line": 4,
                    "character": 51
                },
                "end": {
                    "line": 4,
                    "character": 52
                }
            },
            "severity": 3,
            "code": "MORFOLOGIK_RULE_CA_ES",
            "codeDescription": {
                "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_CA_ES?lang=ca-ES"
            },
            "source": "LTeX",
            "message": "'Ina3': Possible error ortogràfic."
        },
        {
            "range": {
                "start": {
                    "line": 4,
                    "character": 96
                },
                "end": {
                    "line": 4,
                    "character": 97
                }
            },
            "severity": 3,
            "code": "MORFOLOGIK_RULE_CA_ES",
            "codeDescription": {
                "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_CA_ES?lang=ca-ES"
            },
            "source": "LTeX",
            "message": "'Dummy4': Possible error ortogràfic."
        },
        {
            "range": {
                "start": {
                    "line": 5,
                    "character": 61
                },
                "end": {
                    "line": 5,
                    "character": 62
                }
            },
            "severity": 3,
            "code": "MORFOLOGIK_RULE_CA_ES",
            "codeDescription": {
                "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_CA_ES?lang=ca-ES"
            },
            "source": "LTeX",
            "message": "'Dummy5': Possible error ortogràfic."
        },
        {
            "range": {
                "start": {
                    "line": 8,
                    "character": 4
                },
                "end": {
                    "line": 8,
                    "character": 16
                }
            },
            "severity": 3,
            "code": "MORFOLOGIK_RULE_CA_ES",
            "codeDescription": {
                "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_CA_ES?lang=ca-ES"
            },
            "source": "LTeX",
            "message": "'Dummy6': Possible error ortogràfic."
        }
    ]
}


[Trace - 5:58:37 PM] Sending request 'textDocument/codeAction - (13)'.
Params: {
    "textDocument": {
        "uri": "file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex"
    },
    "range": {
        "start": {
            "line": 5,
            "character": 33
        },
        "end": {
            "line": 5,
            "character": 33
        }
    },
    "context": {
        "diagnostics": []
    }
}


[Trace - 5:58:37 PM] Received response 'textDocument/codeAction - (13)' in 2ms.
Result: []


[Trace - 5:58:38 PM] Sending notification 'textDocument/didChange'.
Params: {
    "textDocument": {
        "uri": "file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex",
        "version": 5
    },
    "contentChanges": [
        {
            "text": "\\documentclass{article}\r\n\r\n\\begin{document}\r\nDefinim $\\vec{u} = A\\vec{v}$. Volem demostrar que la suma de coeficients de $\\sum_{i=1}^{N} u_i = c*k$.\r\nSabem que cada coeficient de $\\vec{u}$ a posició $i$ es calcula $u_i = \\sum_{j=1}^{N} a_{ij}*v_j$.\r\nCom volem calcular la suma de tots els coeficients de $\\vec{u}$, hem de calcular el sumatori següent:\r\n\\begin{displaymath} \r\n    \\sum_{i=1}^{N} u_i = \\sum_{i=1}^{N} \\sum_{j=1}^{N} a_{ij}*v_j  \r\n\\end{displaymath}\r\n\\end{document}"
        }
    ]
}


[Trace - 5:58:38 PM] Sending request 'textDocument/completion - (14)'.
Params: {
    "textDocument": {
        "uri": "file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex"
    },
    "position": {
        "line": 5,
        "character": 34
    },
    "context": {
        "triggerKind": 1
    }
}


[Trace - 5:58:38 PM] Received response 'textDocument/completion - (14)' in 2ms.
Result: []


[Trace - 5:58:38 PM] Received request 'window/workDoneProgress/create - (13)'.
Params: {
    "token": "{\"uri\":\"file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex\",\"operation\":\"checkDocument\",\"uuid\":\"ea8647ed-9a4f-94e4-2fc3-3781ea6f74b3\"}"
}


[Trace - 5:58:38 PM] Sending response 'window/workDoneProgress/create - (13)'. Processing request took 0ms
No result returned.


[Trace - 5:58:38 PM] Received notification '$/progress'.
Params: {
    "token": "{\"uri\":\"file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex\",\"operation\":\"checkDocument\",\"uuid\":\"ea8647ed-9a4f-94e4-2fc3-3781ea6f74b3\"}",
    "value": {
        "kind": "begin",
        "title": "Checking document",
        "cancellable": false,
        "message": "file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex"
    }
}


[Trace - 5:58:38 PM] Received request 'workspace/configuration - (14)'.
Params: {
    "items": [
        {
            "scopeUri": "file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex",
            "section": "ltex"
        }
    ]
}


[Trace - 5:58:38 PM] Sending response 'workspace/configuration - (14)'. Processing request took 1ms
Result: [
    {
        "enabled": [
            "bibtex",
            "context",
            "context.tex",
            "html",
            "latex",
            "markdown",
            "org",
            "restructuredtext",
            "rsweave"
        ],
        "language": "ca-ES",
        "dictionary": {},
        "disabledRules": {},
        "enabledRules": {},
        "hiddenFalsePositives": {},
        "bibtex": {
            "fields": {}
        },
        "latex": {
            "commands": {},
            "environments": {}
        },
        "markdown": {
            "nodes": {}
        },
        "configurationTarget": {
            "dictionary": "workspaceFolderExternalFile",
            "disabledRules": "workspaceFolderExternalFile",
            "hiddenFalsePositives": "workspaceFolderExternalFile"
        },
        "additionalRules": {
            "enablePickyRules": false,
            "motherTongue": "es",
            "languageModel": "",
            "neuralNetworkModel": "",
            "word2VecModel": ""
        },
        "languageToolHttpServerUri": "",
        "languageToolOrg": {
            "username": "",
            "apiKey": ""
        },
        "ltex-ls": {
            "path": "",
            "logLevel": "fine",
            "languageToolHttpServerUri": "",
            "languageToolOrgUsername": "",
            "languageToolOrgApiKey": ""
        },
        "java": {
            "path": "",
            "initialHeapSize": 64,
            "maximumHeapSize": 512
        },
        "sentenceCacheSize": 2000,
        "completionEnabled": false,
        "diagnosticSeverity": "information",
        "checkFrequency": "edit",
        "clearDiagnosticsWhenClosingFile": true,
        "statusBarItem": false,
        "trace": {
            "server": "verbose"
        }
    }
]


[Trace - 5:58:38 PM] Received request 'ltex/workspaceSpecificConfiguration - (15)'.
Params: {
    "items": [
        {
            "scopeUri": "file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex",
            "section": "ltex"
        }
    ]
}


[Trace - 5:58:38 PM] Sending response 'ltex/workspaceSpecificConfiguration - (15)'. Processing request took 57ms
Result: [
    {
        "dictionary": {
            "auto": [],
            "ar": [],
            "ast-ES": [],
            "be-BY": [],
            "br-FR": [],
            "ca-ES": [],
            "ca-ES-valencia": [],
            "da-DK": [],
            "de": [],
            "de-AT": [],
            "de-CH": [],
            "de-DE": [],
            "de-DE-x-simple-language": [],
            "el-GR": [],
            "en": [],
            "en-AU": [],
            "en-CA": [],
            "en-GB": [],
            "en-NZ": [],
            "en-US": [],
            "en-ZA": [],
            "eo": [],
            "es": [],
            "es-AR": [],
            "fa": [],
            "fr": [],
            "ga-IE": [],
            "gl-ES": [],
            "it": [],
            "ja-JP": [],
            "km-KH": [],
            "nl": [],
            "nl-BE": [],
            "pl-PL": [],
            "pt": [],
            "pt-AO": [],
            "pt-BR": [],
            "pt-MZ": [],
            "pt-PT": [],
            "ro-RO": [],
            "ru-RU": [],
            "sk-SK": [],
            "sl-SI": [],
            "sv": [],
            "ta-IN": [],
            "tl-PH": [],
            "uk-UA": [],
            "zh-CN": []
        },
        "disabledRules": {
            "auto": [],
            "ar": [],
            "ast-ES": [],
            "be-BY": [],
            "br-FR": [],
            "ca-ES": [],
            "ca-ES-valencia": [],
            "da-DK": [],
            "de": [],
            "de-AT": [],
            "de-CH": [],
            "de-DE": [],
            "de-DE-x-simple-language": [],
            "el-GR": [],
            "en": [],
            "en-AU": [],
            "en-CA": [],
            "en-GB": [],
            "en-NZ": [],
            "en-US": [],
            "en-ZA": [],
            "eo": [],
            "es": [],
            "es-AR": [],
            "fa": [],
            "fr": [],
            "ga-IE": [],
            "gl-ES": [],
            "it": [],
            "ja-JP": [],
            "km-KH": [],
            "nl": [],
            "nl-BE": [],
            "pl-PL": [],
            "pt": [],
            "pt-AO": [],
            "pt-BR": [],
            "pt-MZ": [],
            "pt-PT": [],
            "ro-RO": [],
            "ru-RU": [],
            "sk-SK": [],
            "sl-SI": [],
            "sv": [],
            "ta-IN": [],
            "tl-PH": [],
            "uk-UA": [],
            "zh-CN": []
        },
        "enabledRules": {
            "auto": [],
            "ar": [],
            "ast-ES": [],
            "be-BY": [],
            "br-FR": [],
            "ca-ES": [],
            "ca-ES-valencia": [],
            "da-DK": [],
            "de": [],
            "de-AT": [],
            "de-CH": [],
            "de-DE": [],
            "de-DE-x-simple-language": [],
            "el-GR": [],
            "en": [],
            "en-AU": [],
            "en-CA": [],
            "en-GB": [],
            "en-NZ": [],
            "en-US": [],
            "en-ZA": [],
            "eo": [],
            "es": [],
            "es-AR": [],
            "fa": [],
            "fr": [],
            "ga-IE": [],
            "gl-ES": [],
            "it": [],
            "ja-JP": [],
            "km-KH": [],
            "nl": [],
            "nl-BE": [],
            "pl-PL": [],
            "pt": [],
            "pt-AO": [],
            "pt-BR": [],
            "pt-MZ": [],
            "pt-PT": [],
            "ro-RO": [],
            "ru-RU": [],
            "sk-SK": [],
            "sl-SI": [],
            "sv": [],
            "ta-IN": [],
            "tl-PH": [],
            "uk-UA": [],
            "zh-CN": []
        },
        "hiddenFalsePositives": {
            "auto": [],
            "ar": [],
            "ast-ES": [],
            "be-BY": [],
            "br-FR": [],
            "ca-ES": [
                "{\"rule\":\"APOSTROFACIO_MOT_DESCONEGUT\",\"sentence\":\"^\\\\Q\\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q Això permet definir, a partir de \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q (matriu com fins ara), \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q i un vector inicial \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q complint les condicions de l'exercici anterior, una successió de vectors amb la fórmula:\\\\E$\"}",
                "{\"rule\":\"APOSTROFACIO_MOT_DESCONEGUT\",\"sentence\":\"^\\\\Q\\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q De forma trivial Això permet definir, a partir de \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q (matriu com fins ara), \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q i un vector inicial \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q complint les condicions de l'exercici anterior, una successió de vectors amb la fórmula:\\\\E$\"}",
                "{\"rule\":\"APOSTROFACIO_MOT_DESCONEGUT\",\"sentence\":\"^\\\\QA l'anteror exercici, sabiem que la suma dels coeficients de \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q.\\\\E$\"}",
                "{\"rule\":\"APOSTROFACIO_MOT_DESCONEGUT\",\"sentence\":\"^\\\\QDemostreu que la suma dels coeficients de \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q (on \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q és el vector escrit en columna) és \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q.\\\\E$\"}",
                "{\"rule\":\"APOSTROFACIO_MOT_DESCONEGUT\",\"sentence\":\"^\\\\QEn aquest cas, sabem que \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q (ja que la suma de coeficients de cada columna de \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q dóna sempre 1) i per l'enunciat de l'exercici, \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q (ja que la suma dels coeficients de \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q dóna \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q).\\\\E$\"}",
                "{\"rule\":\"APOSTROFACIO_MOT_DESCONEGUT\",\"sentence\":\"^\\\\QEn aquest cas, sabem que \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q (ja que la suma de coeficients de cada columna de \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q dona sempre 1) i per l'enunciat de l'exercici, \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q (ja que la suma dels coeficients de \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q dóna \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q).\\\\E$\"}",
                "{\"rule\":\"APOSTROFACIO_MOT_DESCONEGUT\",\"sentence\":\"^\\\\QEn aquest cas, sabem que \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q (ja que la suma de coeficients de cada columna de \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q dona sempre 1) i per l'enunciat de l'exercici, \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q (ja que la suma dels coeficients de \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q dona \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q).\\\\E$\"}",
                "{\"rule\":\"MORFOLOGIK_RULE_CA_ES\",\"sentence\":\"^\\\\QLliurament 1 Àlgebra lineal Eduardo Pérez Motato NIU: 1709992 14/01/2024\\\\E$\"}",
                "{\"rule\":\"MORFOLOGIK_RULE_CA_ES\",\"sentence\":\"^\\\\QSigui \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q una matriu \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q amb coeficients reals tal que la suma dels coeficients de cada columna dóna sempre el mateix numero \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q, o sigui \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q per a tota \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q.\\\\E$\"}",
                "{\"rule\":\"MORFOLOGIK_RULE_CA_ES\",\"sentence\":\"^\\\\QSigui \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q una matriu \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q amb coeficients reals tal que la suma dels coeficients de cada columna dona sempre el mateix numero \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q, o sigui \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q per a tota \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q.\\\\E$\"}"
            ],
            "ca-ES-valencia": [],
            "da-DK": [],
            "de": [],
            "de-AT": [],
            "de-CH": [],
            "de-DE": [],
            "de-DE-x-simple-language": [],
            "el-GR": [],
            "en": [],
            "en-AU": [],
            "en-CA": [],
            "en-GB": [],
            "en-NZ": [],
            "en-US": [],
            "en-ZA": [],
            "eo": [],
            "es": [],
            "es-AR": [],
            "fa": [],
            "fr": [],
            "ga-IE": [],
            "gl-ES": [],
            "it": [],
            "ja-JP": [],
            "km-KH": [],
            "nl": [],
            "nl-BE": [],
            "pl-PL": [],
            "pt": [],
            "pt-AO": [],
            "pt-BR": [],
            "pt-MZ": [],
            "pt-PT": [],
            "ro-RO": [],
            "ru-RU": [],
            "sk-SK": [],
            "sl-SI": [],
            "sv": [],
            "ta-IN": [],
            "tl-PH": [],
            "uk-UA": [],
            "zh-CN": []
        }
    }
]


[Trace - 5:58:38 PM] Received notification '$/progress'.
Params: {
    "token": "{\"uri\":\"file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex\",\"operation\":\"checkDocument\",\"uuid\":\"ea8647ed-9a4f-94e4-2fc3-3781ea6f74b3\"}",
    "value": {
        "kind": "end"
    }
}


[Trace - 5:58:38 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
    "uri": "file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex",
    "diagnostics": [
        {
            "range": {
                "start": {
                    "line": 3,
                    "character": 27
                },
                "end": {
                    "line": 3,
                    "character": 28
                }
            },
            "severity": 3,
            "code": "MORFOLOGIK_RULE_CA_ES",
            "codeDescription": {
                "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_CA_ES?lang=ca-ES"
            },
            "source": "LTeX",
            "message": "'Dummy0': Possible error ortogràfic."
        },
        {
            "range": {
                "start": {
                    "line": 3,
                    "character": 101
                },
                "end": {
                    "line": 3,
                    "character": 102
                }
            },
            "severity": 3,
            "code": "MORFOLOGIK_RULE_CA_ES",
            "codeDescription": {
                "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_CA_ES?lang=ca-ES"
            },
            "source": "LTeX",
            "message": "'Dummy1': Possible error ortogràfic."
        },
        {
            "range": {
                "start": {
                    "line": 4,
                    "character": 37
                },
                "end": {
                    "line": 4,
                    "character": 38
                }
            },
            "severity": 3,
            "code": "MORFOLOGIK_RULE_CA_ES",
            "codeDescription": {
                "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_CA_ES?lang=ca-ES"
            },
            "source": "LTeX",
            "message": "'Dummy2': Possible error ortogràfic."
        },
        {
            "range": {
                "start": {
                    "line": 4,
                    "character": 51
                },
                "end": {
                    "line": 4,
                    "character": 52
                }
            },
            "severity": 3,
            "code": "MORFOLOGIK_RULE_CA_ES",
            "codeDescription": {
                "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_CA_ES?lang=ca-ES"
            },
            "source": "LTeX",
            "message": "'Ina3': Possible error ortogràfic."
        },
        {
            "range": {
                "start": {
                    "line": 4,
                    "character": 96
                },
                "end": {
                    "line": 4,
                    "character": 97
                }
            },
            "severity": 3,
            "code": "MORFOLOGIK_RULE_CA_ES",
            "codeDescription": {
                "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_CA_ES?lang=ca-ES"
            },
            "source": "LTeX",
            "message": "'Dummy4': Possible error ortogràfic."
        },
        {
            "range": {
                "start": {
                    "line": 5,
                    "character": 62
                },
                "end": {
                    "line": 5,
                    "character": 63
                }
            },
            "severity": 3,
            "code": "MORFOLOGIK_RULE_CA_ES",
            "codeDescription": {
                "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_CA_ES?lang=ca-ES"
            },
            "source": "LTeX",
            "message": "'Dummy5': Possible error ortogràfic."
        },
        {
            "range": {
                "start": {
                    "line": 8,
                    "character": 4
                },
                "end": {
                    "line": 8,
                    "character": 16
                }
            },
            "severity": 3,
            "code": "MORFOLOGIK_RULE_CA_ES",
            "codeDescription": {
                "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_CA_ES?lang=ca-ES"
            },
            "source": "LTeX",
            "message": "'Dummy6': Possible error ortogràfic."
        }
    ]
}


[Trace - 5:58:38 PM] Sending request 'textDocument/codeAction - (15)'.
Params: {
    "textDocument": {
        "uri": "file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex"
    },
    "range": {
        "start": {
            "line": 5,
            "character": 34
        },
        "end": {
            "line": 5,
            "character": 34
        }
    },
    "context": {
        "diagnostics": []
    }
}


[Trace - 5:58:38 PM] Received response 'textDocument/codeAction - (15)' in 2ms.
Result: []


[Trace - 5:58:40 PM] Sending notification 'textDocument/didSave'.
Params: {
    "textDocument": {
        "uri": "file:///e%3A/MatCAD/Apunts%20MatCAD/Deures/%C3%80lgebra%20Lineal/1r%20lliurament/prueba.tex"
    }
}

Version information

  • Operating system: Windows 10
  • VS Code: 1.85.1
  • vscode-ltex: Latest (13.1)

Additional context/information
I think this problem is similar to #27

@TheRepSter TheRepSter added 1-bug 🐛 Issue type: Bug report (something isn't working as expected) 2-unconfirmed Issue status: Bug that needs to be reproduced (all new bugs have this label) labels Jan 5, 2024
@Feluk6174
Copy link

I had the same problem, the only difference is that instead of dummy# I had Ina#, where # is a number. Managed to make it work by adding Ina0 to Ina9999 to the dictionary.

@Feluk6174
Copy link

Checked my solution has problems In cases where text is just after a tag (Like \text{"Una "}), it will be displays as incorrect as it thinks it is Dummy56Una.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-bug 🐛 Issue type: Bug report (something isn't working as expected) 2-unconfirmed Issue status: Bug that needs to be reproduced (all new bugs have this label)
Projects
None yet
Development

No branches or pull requests

2 participants