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

en.GB not finding spelling mistakes; en.US/en.NZ work fine #103

Open
Sam-OT opened this issue Dec 4, 2024 · 0 comments
Open

en.GB not finding spelling mistakes; en.US/en.NZ work fine #103

Sam-OT opened this issue Dec 4, 2024 · 0 comments
Assignees
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

@Sam-OT
Copy link

Sam-OT commented Dec 4, 2024

Description of bug

Setting ltex.language to en.GB, spelling mistakes are not found, but things like double spaces are. Setting to en.NZ, for example, or the default en.US works fine. Compare the following two screenshots: the first uses en.US and the second en.GB.

en.US: correct

en.GB: incorrect

Expected behaviour

Find spelling mistakes

LTeX+ configuration

I have almost nothing in my ltex. configuration.

"ltex.disabledRules": {},
"ltex.hiddenFalsePositives": {},
"ltex.diagnosticSeverity": "information",
"ltex.language": "en-GB"

"LTeX+ Language Server" log file

I ran both en.GB and en.US.

[Info  - 2:36:59 PM] Starting ltex-ls...
Dec 04, 2024 2:37:06 PM org.bsplines.ltexls.server.LtexLanguageServer initialize
INFO: ltex-ls 18.3.0 - initializing...
Dec 04, 2024 2:37:06 PM org.bsplines.ltexls.tools.I18n setLocale
INFO: Setting locale to 'en'
Dec 04, 2024 2:37:06 PM org.bsplines.ltexls.server.LtexTextDocumentItem raiseExceptionIfCanceled
FINE: Canceling check due to incoming check request...
Dec 04, 2024 2:37:06 PM org.bsplines.ltexls.settings.SettingsManager$Companion logDifferentSettings
FINE: Reinitializing LanguageTool due to different settings for language 'en-GB': setting 'settings', old 'null', new 'non-null'
Dec 04, 2024 2:37:07 PM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-GB' via LanguageTool: "Speling mistache heere, followed by  two spaces"
Dec 04, 2024 2:37:09 PM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 1 rule match
Dec 04, 2024 2:37:34 PM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleNotification
WARNING: Notification threw an exception: {
  "jsonrpc": "2.0",
  "method": "$/setTrace",
  "params": {
    "value": "off"
  }
}
java.lang.UnsupportedOperationException
	at org.eclipse.lsp4j.services.LanguageServer.setTrace(LanguageServer.java:125)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$recursiveFindRpcMethods$0(GenericEndpoint.java:65)
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.notify(GenericEndpoint.java:160)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleNotification(RemoteEndpoint.java:231)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:198)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:185)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:97)
	at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:114)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

Dec 04, 2024 2:37:34 PM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: "Speling mistache heere, followed by  two spaces"
Dec 04, 2024 2:37:34 PM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 4 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):

2024-12-04T14:42:01.979Z Info: Setting LTeX UI language to 'en-us'.
2024-12-04T14:42:01.980Z Info: Loading i18n messages...
2024-12-04T14:42:01.981Z Info: Loading default i18n messages...
2024-12-04T14:42:01.984Z Info: 
2024-12-04T14:42:01.984Z Info: ltex.ltex-ls.path not set.
2024-12-04T14:42:01.984Z Info: Searching for ltex-ls in 'c:\Users\u2174548\.vscode\extensions\ltex-plus.vscode-ltex-plus-15.3.0\lib'...
2024-12-04T14:42:01.985Z Info: ltex-ls found in 'c:\Users\u2174548\.vscode\extensions\ltex-plus.vscode-ltex-plus-15.3.0\lib\ltex-ls-plus-18.3.0'.
2024-12-04T14:42:01.985Z Info: 
2024-12-04T14:42:01.985Z Info: Using ltex-ls from 'c:\Users\u2174548\.vscode\extensions\ltex-plus.vscode-ltex-plus-15.3.0\lib\ltex-ls-plus-18.3.0'.
2024-12-04T14:42:01.985Z Info: Using Java bundled with ltex-ls as ltex.java.path is not set.
2024-12-04T14:42:01.986Z Info: Testing ltex-ls...
2024-12-04T14:42:01.986Z Info:   Command: "\"c:\\Users\\u2174548\\.vscode\\extensions\\ltex-plus.vscode-ltex-plus-15.3.0\\lib\\ltex-ls-plus-18.3.0\\bin\\ltex-ls-plus.bat\""
2024-12-04T14:42:01.986Z Info:   Arguments: ["--version"]
2024-12-04T14:42:01.986Z Info:   env['JAVA_HOME']: undefined
2024-12-04T14:42:01.986Z Info:   env['JAVA_OPTS']: "-Xms64m -Xmx2048m"
2024-12-04T14:42:02.577Z Info: Test successful!
2024-12-04T14:42:02.577Z Info: 
2024-12-04T14:42:02.580Z Info: Starting ltex-ls...
2024-12-04T14:42:02.581Z Info:   Command: "\"c:\\Users\\u2174548\\.vscode\\extensions\\ltex-plus.vscode-ltex-plus-15.3.0\\lib\\ltex-ls-plus-18.3.0\\bin\\ltex-ls-plus.bat\""
2024-12-04T14:42:02.581Z Info:   Arguments: []
2024-12-04T14:42:02.581Z Info:   env['JAVA_HOME']: undefined
2024-12-04T14:42:02.581Z Info:   env['JAVA_OPTS']: "-Xms64m -Xmx2048m"
2024-12-04T14:42:02.581Z Info: 
[Trace - 2:42:02 PM] Sending request 'initialize - (0)'.
Params: {
    "processId": 24100,
    "clientInfo": {
        "name": "Visual Studio Code",
        "version": "1.95.3"
    },
    "locale": "en",
    "rootPath": null,
    "rootUri": null,
    "capabilities": {
        "workspace": {
            "applyEdit": true,
            "workspaceEdit": {
                "documentChanges": true,
                "resourceOperations": [
                    "create",
                    "rename",
                    "delete"
                ],
                "failureHandling": "textOnlyTransactional",
                "normalizesLineEndings": true,
                "changeAnnotationSupport": {
                    "groupsOnLabel": true
                }
            },
            "configuration": true,
            "didChangeWatchedFiles": {
                "dynamicRegistration": true,
                "relativePatternSupport": true
            },
            "symbol": {
                "dynamicRegistration": true,
                "symbolKind": {
                    "valueSet": [
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7,
                        8,
                        9,
                        10,
                        11,
                        12,
                        13,
                        14,
                        15,
                        16,
                        17,
                        18,
                        19,
                        20,
                        21,
                        22,
                        23,
                        24,
                        25,
                        26
                    ]
                },
                "tagSupport": {
                    "valueSet": [
                        1
                    ]
                },
                "resolveSupport": {
                    "properties": [
                        "location.range"
                    ]
                }
            },
            "codeLens": {
                "refreshSupport": true
            },
            "executeCommand": {
                "dynamicRegistration": true
            },
            "didChangeConfiguration": {
                "dynamicRegistration": true
            },
            "workspaceFolders": true,
            "foldingRange": {
                "refreshSupport": true
            },
            "semanticTokens": {
                "refreshSupport": true
            },
            "fileOperations": {
                "dynamicRegistration": true,
                "didCreate": true,
                "didRename": true,
                "didDelete": true,
                "willCreate": true,
                "willRename": true,
                "willDelete": true
            },
            "inlineValue": {
                "refreshSupport": true
            },
            "inlayHint": {
                "refreshSupport": true
            },
            "diagnostics": {
                "refreshSupport": true
            }
        },
        "textDocument": {
            "publishDiagnostics": {
                "relatedInformation": true,
                "versionSupport": false,
                "tagSupport": {
                    "valueSet": [
                        1,
                        2
                    ]
                },
                "codeDescriptionSupport": true,
                "dataSupport": true
            },
            "synchronization": {
                "dynamicRegistration": true,
                "willSave": true,
                "willSaveWaitUntil": true,
                "didSave": true
            },
            "completion": {
                "dynamicRegistration": true,
                "contextSupport": true,
                "completionItem": {
                    "snippetSupport": true,
                    "commitCharactersSupport": true,
                    "documentationFormat": [
                        "markdown",
                        "plaintext"
                    ],
                    "deprecatedSupport": true,
                    "preselectSupport": true,
                    "tagSupport": {
                        "valueSet": [
                            1
                        ]
                    },
                    "insertReplaceSupport": true,
                    "resolveSupport": {
                        "properties": [
                            "documentation",
                            "detail",
                            "additionalTextEdits"
                        ]
                    },
                    "insertTextModeSupport": {
                        "valueSet": [
                            1,
                            2
                        ]
                    },
                    "labelDetailsSupport": true
                },
                "insertTextMode": 2,
                "completionItemKind": {
                    "valueSet": [
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7,
                        8,
                        9,
                        10,
                        11,
                        12,
                        13,
                        14,
                        15,
                        16,
                        17,
                        18,
                        19,
                        20,
                        21,
                        22,
                        23,
                        24,
                        25
                    ]
                },
                "completionList": {
                    "itemDefaults": [
                        "commitCharacters",
                        "editRange",
                        "insertTextFormat",
                        "insertTextMode",
                        "data"
                    ]
                }
            },
            "hover": {
                "dynamicRegistration": true,
                "contentFormat": [
                    "markdown",
                    "plaintext"
                ]
            },
            "signatureHelp": {
                "dynamicRegistration": true,
                "signatureInformation": {
                    "documentationFormat": [
                        "markdown",
                        "plaintext"
                    ],
                    "parameterInformation": {
                        "labelOffsetSupport": true
                    },
                    "activeParameterSupport": true
                },
                "contextSupport": true
            },
            "definition": {
                "dynamicRegistration": true,
                "linkSupport": true
            },
            "references": {
                "dynamicRegistration": true
            },
            "documentHighlight": {
                "dynamicRegistration": true
            },
            "documentSymbol": {
                "dynamicRegistration": true,
                "symbolKind": {
                    "valueSet": [
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7,
                        8,
                        9,
                        10,
                        11,
                        12,
                        13,
                        14,
                        15,
                        16,
                        17,
                        18,
                        19,
                        20,
                        21,
                        22,
                        23,
                        24,
                        25,
                        26
                    ]
                },
                "hierarchicalDocumentSymbolSupport": true,
                "tagSupport": {
                    "valueSet": [
                        1
                    ]
                },
                "labelSupport": true
            },
            "codeAction": {
                "dynamicRegistration": true,
                "isPreferredSupport": true,
                "disabledSupport": true,
                "dataSupport": true,
                "resolveSupport": {
                    "properties": [
                        "edit"
                    ]
                },
                "codeActionLiteralSupport": {
                    "codeActionKind": {
                        "valueSet": [
                            "",
                            "quickfix",
                            "refactor",
                            "refactor.extract",
                            "refactor.inline",
                            "refactor.rewrite",
                            "source",
                            "source.organizeImports"
                        ]
                    }
                },
                "honorsChangeAnnotations": true
            },
            "codeLens": {
                "dynamicRegistration": true
            },
            "formatting": {
                "dynamicRegistration": true
            },
            "rangeFormatting": {
                "dynamicRegistration": true,
                "rangesSupport": true
            },
            "onTypeFormatting": {
                "dynamicRegistration": true
            },
            "rename": {
                "dynamicRegistration": true,
                "prepareSupport": true,
                "prepareSupportDefaultBehavior": 1,
                "honorsChangeAnnotations": true
            },
            "documentLink": {
                "dynamicRegistration": true,
                "tooltipSupport": true
            },
            "typeDefinition": {
                "dynamicRegistration": true,
                "linkSupport": true
            },
            "implementation": {
                "dynamicRegistration": true,
                "linkSupport": true
            },
            "colorProvider": {
                "dynamicRegistration": true
            },
            "foldingRange": {
                "dynamicRegistration": true,
                "rangeLimit": 5000,
                "lineFoldingOnly": true,
                "foldingRangeKind": {
                    "valueSet": [
                        "comment",
                        "imports",
                        "region"
                    ]
                },
                "foldingRange": {
                    "collapsedText": false
                }
            },
            "declaration": {
                "dynamicRegistration": true,
                "linkSupport": true
            },
            "selectionRange": {
                "dynamicRegistration": true
            },
            "callHierarchy": {
                "dynamicRegistration": true
            },
            "semanticTokens": {
                "dynamicRegistration": true,
                "tokenTypes": [
                    "namespace",
                    "type",
                    "class",
                    "enum",
                    "interface",
                    "struct",
                    "typeParameter",
                    "parameter",
                    "variable",
                    "property",
                    "enumMember",
                    "event",
                    "function",
                    "method",
                    "macro",
                    "keyword",
                    "modifier",
                    "comment",
                    "string",
                    "number",
                    "regexp",
                    "operator",
                    "decorator"
                ],
                "tokenModifiers": [
                    "declaration",
                    "definition",
                    "readonly",
                    "static",
                    "deprecated",
                    "abstract",
                    "async",
                    "modification",
                    "documentation",
                    "defaultLibrary"
                ],
                "formats": [
                    "relative"
                ],
                "requests": {
                    "range": true,
                    "full": {
                        "delta": true
                    }
                },
                "multilineTokenSupport": false,
                "overlappingTokenSupport": false,
                "serverCancelSupport": true,
                "augmentsSyntaxTokens": true
            },
            "linkedEditingRange": {
                "dynamicRegistration": true
            },
            "typeHierarchy": {
                "dynamicRegistration": true
            },
            "inlineValue": {
                "dynamicRegistration": true
            },
            "inlayHint": {
                "dynamicRegistration": true,
                "resolveSupport": {
                    "properties": [
                        "tooltip",
                        "textEdits",
                        "label.tooltip",
                        "label.location",
                        "label.command"
                    ]
                }
            },
            "diagnostic": {
                "dynamicRegistration": true,
                "relatedDocumentSupport": false
            }
        },
        "window": {
            "showMessage": {
                "messageActionItem": {
                    "additionalPropertiesSupport": true
                }
            },
            "showDocument": {
                "support": true
            },
            "workDoneProgress": true
        },
        "general": {
            "staleRequestSupport": {
                "cancel": true,
                "retryOnContentModified": [
                    "textDocument/semanticTokens/full",
                    "textDocument/semanticTokens/range",
                    "textDocument/semanticTokens/full/delta"
                ]
            },
            "regularExpressions": {
                "engine": "ECMAScript",
                "version": "ES2020"
            },
            "markdown": {
                "parser": "marked",
                "version": "1.1.0"
            },
            "positionEncodings": [
                "utf-16"
            ]
        },
        "notebookDocument": {
            "synchronization": {
                "dynamicRegistration": true,
                "executionSummarySupport": true
            }
        }
    },
    "initializationOptions": {
        "customCapabilities": {
            "workspaceSpecificConfiguration": true
        }
    },
    "trace": "verbose",
    "workspaceFolders": null
}


[Trace - 2:42:09 PM] Received response 'initialize - (0)' in 7002ms.
Result: {
    "capabilities": {
        "textDocumentSync": 1,
        "completionProvider": {},
        "codeActionProvider": {
            "codeActionKinds": [
                "quickfix.ltex.acceptSuggestions"
            ]
        },
        "executeCommandProvider": {
            "commands": [
                "_ltex.checkDocument",
                "_ltex.getServerStatus"
            ]
        }
    }
}


[Trace - 2:42:09 PM] Sending notification 'initialized'.
Params: {}


[Trace - 2:42:09 PM] Sending notification 'textDocument/didOpen'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/u2174548/Downloads/tmp.md",
        "languageId": "markdown",
        "version": 1,
        "text": "Speling mistache heere, followed by  two spaces"
    }
}


[Trace - 2:42:09 PM] Sending notification 'workspace/didChangeConfiguration'.
Params: {
    "settings": {
        "ltex": {
            "enabled": [
                "bibtex",
                "context",
                "context.tex",
                "html",
                "latex",
                "markdown",
                "mdx",
                "typst",
                "org",
                "quarto",
                "restructuredtext",
                "rsweave"
            ],
            "language": "en-US",
            "dictionary": {},
            "disabledRules": {},
            "enabledRules": {},
            "hiddenFalsePositives": {},
            "bibtex": {
                "fields": {}
            },
            "latex": {
                "commands": {},
                "environments": {}
            },
            "markdown": {
                "nodes": {}
            },
            "configurationTarget": {
                "dictionary": "workspaceFolderExternalFile",
                "disabledRules": "workspaceFolderExternalFile",
                "hiddenFalsePositives": "workspaceFolderExternalFile"
            },
            "additionalRules": {
                "enablePickyRules": false,
                "motherTongue": "",
                "languageModel": "",
                "neuralNetworkModel": "",
                "word2VecModel": ""
            },
            "languageToolHttpServerUri": "",
            "languageToolOrg": {
                "username": "",
                "apiKey": ""
            },
            "ltex-ls": {
                "path": "",
                "logLevel": "fine",
                "languageToolHttpServerUri": "",
                "languageToolOrgUsername": "",
                "languageToolOrgApiKey": ""
            },
            "java": {
                "path": "",
                "initialHeapSize": 64,
                "maximumHeapSize": 2048
            },
            "sentenceCacheSize": 2000,
            "completionEnabled": false,
            "diagnosticSeverity": "information",
            "checkFrequency": "edit",
            "clearDiagnosticsWhenClosingFile": true,
            "statusBarItem": false,
            "trace": {
                "server": "verbose"
            }
        }
    }
}


[Trace - 2:42:09 PM] Sending request 'textDocument/codeAction - (1)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/u2174548/Downloads/tmp.md"
    },
    "range": {
        "start": {
            "line": 0,
            "character": 47
        },
        "end": {
            "line": 0,
            "character": 47
        }
    },
    "context": {
        "diagnostics": [],
        "triggerKind": 2
    }
}


[Trace - 2:42:09 PM] Received request 'window/workDoneProgress/create - (1)'.
Params: {
    "token": "{\"uri\":\"file:///c%3A/Users/u2174548/Downloads/tmp.md\",\"operation\":\"checkDocument\",\"uuid\":\"445f25da-b0bd-eb35-0002-a00d66b75bef\"}"
}


[Trace - 2:42:09 PM] Sending response 'window/workDoneProgress/create - (1)'. Processing request took 1ms
No result returned.


[Trace - 2:42:09 PM] Received response 'textDocument/codeAction - (1)' in 12ms.
Result: []


[Trace - 2:42:09 PM] Received notification '$/progress'.
Params: {
    "token": "{\"uri\":\"file:///c%3A/Users/u2174548/Downloads/tmp.md\",\"operation\":\"checkDocument\",\"uuid\":\"445f25da-b0bd-eb35-0002-a00d66b75bef\"}",
    "value": {
        "kind": "end"
    }
}


[Trace - 2:42:09 PM] Received request 'window/workDoneProgress/create - (2)'.
Params: {
    "token": "{\"uri\":\"file:///c%3A/Users/u2174548/Downloads/tmp.md\",\"operation\":\"checkDocument\",\"uuid\":\"7167b4a5-3cc4-d1e1-d6c8-fb80b40ab45b\"}"
}


[Trace - 2:42:09 PM] Sending response 'window/workDoneProgress/create - (2)'. Processing request took 0ms
No result returned.


[Trace - 2:42:09 PM] Received notification '$/progress'.
Params: {
    "token": "{\"uri\":\"file:///c%3A/Users/u2174548/Downloads/tmp.md\",\"operation\":\"checkDocument\",\"uuid\":\"7167b4a5-3cc4-d1e1-d6c8-fb80b40ab45b\"}",
    "value": {
        "kind": "begin",
        "title": "Checking document",
        "cancellable": false,
        "message": "file:///c%3A/Users/u2174548/Downloads/tmp.md"
    }
}


[Trace - 2:42:09 PM] Received request 'workspace/configuration - (3)'.
Params: {
    "items": [
        {
            "scopeUri": "file:///c%3A/Users/u2174548/Downloads/tmp.md",
            "section": "ltex"
        }
    ]
}


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


[Trace - 2:42:09 PM] Received request 'ltex/workspaceSpecificConfiguration - (4)'.
Params: {
    "items": [
        {
            "scopeUri": "file:///c%3A/Users/u2174548/Downloads/tmp.md",
            "section": "ltex"
        }
    ]
}


2024-12-04T14:42:09.641Z Info: Started watching external setting file 'c:\Users\u2174548\AppData\Roaming\Code\User\globalStorage\ltex-plus.vscode-ltex-plus\ltex.dictionary.en-GB.txt'.
2024-12-04T14:42:09.651Z Info: Started watching external setting file 'c:\Users\u2174548\AppData\Roaming\Code\User\globalStorage\ltex-plus.vscode-ltex-plus\ltex.disabledRules.en-GB.txt'.
2024-12-04T14:42:09.666Z Info: Started watching external setting file 'c:\Users\u2174548\AppData\Roaming\Code\User\globalStorage\ltex-plus.vscode-ltex-plus\ltex.hiddenFalsePositives.en-GB.txt'.
[Trace - 2:42:09 PM] Sending response 'ltex/workspaceSpecificConfiguration - (4)'. Processing request took 36ms
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": [
                "Elo",
                "logloss"
            ],
            "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": [
                "MORFOLOGIK_RULE_EN_GB",
                "OK",
                "OXFORD_SPELLING_Z_NOT_S"
            ],
            "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": [],
            "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": [
                "{\"rule\":\"A_MUCH_NN1\",\"sentence\":\"^\\\\QThere didn't appear to be much new, and that that was new had mistakes\\\\E$\"}",
                "{\"rule\":\"THEMSELF\",\"sentence\":\"^\\\\QWeighted ratings\\nThis was not suggested by me; the student came up with / researched this themself\\\\E$\"}"
            ],
            "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 - 2:42:11 PM] Received notification '$/progress'.
Params: {
    "token": "{\"uri\":\"file:///c%3A/Users/u2174548/Downloads/tmp.md\",\"operation\":\"checkDocument\",\"uuid\":\"7167b4a5-3cc4-d1e1-d6c8-fb80b40ab45b\"}",
    "value": {
        "kind": "end"
    }
}


[Trace - 2:42:11 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
    "uri": "file:///c%3A/Users/u2174548/Downloads/tmp.md",
    "diagnostics": [
        {
            "range": {
                "start": {
                    "line": 0,
                    "character": 0
                },
                "end": {
                    "line": 0,
                    "character": 7
                }
            },
            "severity": 3,
            "code": "MORFOLOGIK_RULE_EN_US",
            "codeDescription": {
                "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
            },
            "source": "LTeX",
            "message": "'Speling': Possible spelling mistake found."
        },
        {
            "range": {
                "start": {
                    "line": 0,
                    "character": 8
                },
                "end": {
                    "line": 0,
                    "character": 16
                }
            },
            "severity": 3,
            "code": "MORFOLOGIK_RULE_EN_US",
            "codeDescription": {
                "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
            },
            "source": "LTeX",
            "message": "'mistache': Possible spelling mistake found."
        },
        {
            "range": {
                "start": {
                    "line": 0,
                    "character": 17
                },
                "end": {
                    "line": 0,
                    "character": 22
                }
            },
            "severity": 3,
            "code": "MORFOLOGIK_RULE_EN_US",
            "codeDescription": {
                "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
            },
            "source": "LTeX",
            "message": "'heere': Possible spelling mistake found."
        },
        {
            "range": {
                "start": {
                    "line": 0,
                    "character": 35
                },
                "end": {
                    "line": 0,
                    "character": 37
                }
            },
            "severity": 3,
            "code": "CONSECUTIVE_SPACES",
            "codeDescription": {
                "href": "https://community.languagetool.org/rule/show/CONSECUTIVE_SPACES?lang=en-US"
            },
            "source": "LTeX",
            "message": "It seems like there are too many consecutive spaces here."
        }
    ]
}


[Trace - 2:42:11 PM] Sending request 'textDocument/codeAction - (2)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/u2174548/Downloads/tmp.md"
    },
    "range": {
        "start": {
            "line": 0,
            "character": 47
        },
        "end": {
            "line": 0,
            "character": 47
        }
    },
    "context": {
        "diagnostics": [],
        "triggerKind": 2
    }
}


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


[Trace - 2:42:17 PM] Sending request 'textDocument/codeAction - (3)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/u2174548/Downloads/tmp.md"
    },
    "range": {
        "start": {
            "line": 0,
            "character": 0
        },
        "end": {
            "line": 0,
            "character": 0
        }
    },
    "context": {
        "diagnostics": [
            {
                "range": {
                    "start": {
                        "line": 0,
                        "character": 0
                    },
                    "end": {
                        "line": 0,
                        "character": 7
                    }
                },
                "message": "'Speling': Possible spelling mistake found.",
                "code": "MORFOLOGIK_RULE_EN_US",
                "codeDescription": {
                    "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang%3Den-US"
                },
                "severity": 3,
                "source": "LTeX"
            }
        ],
        "triggerKind": 2
    }
}


[Trace - 2:42:17 PM] Received response 'textDocument/codeAction - (3)' in 23ms.
Result: [
    {
        "title": "Use 'Spelling'",
        "kind": "quickfix.ltex.acceptSuggestions",
        "diagnostics": [
            {
                "range": {
                    "start": {
                        "line": 0,
                        "character": 0
                    },
                    "end": {
                        "line": 0,
                        "character": 7
                    }
                },
                "severity": 3,
                "code": "MORFOLOGIK_RULE_EN_US",
                "codeDescription": {
                    "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
                },
                "source": "LTeX",
                "message": "'Speling': Possible spelling mistake found."
            }
        ],
        "edit": {
            "documentChanges": [
                {
                    "textDocument": {
                        "version": 1,
                        "uri": "file:///c%3A/Users/u2174548/Downloads/tmp.md"
                    },
                    "edits": [
                        {
                            "range": {
                                "start": {
                                    "line": 0,
                                    "character": 0
                                },
                                "end": {
                                    "line": 0,
                                    "character": 7
                                }
                            },
                            "newText": "Spelling"
                        }
                    ]
                }
            ]
        }
    },
    {
        "title": "Use 'Spewing'",
        "kind": "quickfix.ltex.acceptSuggestions",
        "diagnostics": [
            {
                "range": {
                    "start": {
                        "line": 0,
                        "character": 0
                    },
                    "end": {
                        "line": 0,
                        "character": 7
                    }
                },
                "severity": 3,
                "code": "MORFOLOGIK_RULE_EN_US",
                "codeDescription": {
                    "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
                },
                "source": "LTeX",
                "message": "'Speling': Possible spelling mistake found."
            }
        ],
        "edit": {
            "documentChanges": [
                {
                    "textDocument": {
                        "version": 1,
                        "uri": "file:///c%3A/Users/u2174548/Downloads/tmp.md"
                    },
                    "edits": [
                        {
                            "range": {
                                "start": {
                                    "line": 0,
                                    "character": 0
                                },
                                "end": {
                                    "line": 0,
                                    "character": 7
                                }
                            },
                            "newText": "Spewing"
                        }
                    ]
                }
            ]
        }
    },
    {
        "title": "Use 'Spieling'",
        "kind": "quickfix.ltex.acceptSuggestions",
        "diagnostics": [
            {
                "range": {
                    "start": {
                        "line": 0,
                        "character": 0
                    },
                    "end": {
                        "line": 0,
                        "character": 7
                    }
                },
                "severity": 3,
                "code": "MORFOLOGIK_RULE_EN_US",
                "codeDescription": {
                    "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
                },
                "source": "LTeX",
                "message": "'Speling': Possible spelling mistake found."
            }
        ],
        "edit": {
            "documentChanges": [
                {
                    "textDocument": {
                        "version": 1,
                        "uri": "file:///c%3A/Users/u2174548/Downloads/tmp.md"
                    },
                    "edits": [
                        {
                            "range": {
                                "start": {
                                    "line": 0,
                                    "character": 0
                                },
                                "end": {
                                    "line": 0,
                                    "character": 7
                                }
                            },
                            "newText": "Spieling"
                        }
                    ]
                }
            ]
        }
    },
    {
        "title": "Add 'Speling' to dictionary",
        "kind": "quickfix.ltex.addToDictionary",
        "diagnostics": [
            {
                "range": {
                    "start": {
                        "line": 0,
                        "character": 0
                    },
                    "end": {
                        "line": 0,
                        "character": 7
                    }
                },
                "severity": 3,
                "code": "MORFOLOGIK_RULE_EN_US",
                "codeDescription": {
                    "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
                },
                "source": "LTeX",
                "message": "'Speling': Possible spelling mistake found."
            }
        ],
        "command": {
            "title": "Add 'Speling' to dictionary",
            "command": "_ltex.addToDictionary",
            "arguments": [
                {
                    "uri": "file:///c%3A/Users/u2174548/Downloads/tmp.md",
                    "words": {
                        "en-US": [
                            "Speling"
                        ]
                    }
                }
            ]
        }
    },
    {
        "title": "Hide false positive",
        "kind": "quickfix.ltex.hideFalsePositives",
        "diagnostics": [
            {
                "range": {
                    "start": {
                        "line": 0,
                        "character": 0
                    },
                    "end": {
                        "line": 0,
                        "character": 7
                    }
                },
                "severity": 3,
                "code": "MORFOLOGIK_RULE_EN_US",
                "codeDescription": {
                    "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
                },
                "source": "LTeX",
                "message": "'Speling': Possible spelling mistake found."
            }
        ],
        "command": {
            "title": "Hide false positive",
            "command": "_ltex.hideFalsePositives",
            "arguments": [
                {
                    "uri": "file:///c%3A/Users/u2174548/Downloads/tmp.md",
                    "falsePositives": {
                        "en-US": [
                            "{\"rule\":\"MORFOLOGIK_RULE_EN_US\",\"sentence\":\"^\\\\QSpeling mistache heere, followed by  two spaces\\\\E$\"}"
                        ]
                    }
                }
            ]
        }
    },
    {
        "title": "Disable rule",
        "kind": "quickfix.ltex.disableRules",
        "diagnostics": [
            {
                "range": {
                    "start": {
                        "line": 0,
                        "character": 0
                    },
                    "end": {
                        "line": 0,
                        "character": 7
                    }
                },
                "severity": 3,
                "code": "MORFOLOGIK_RULE_EN_US",
                "codeDescription": {
                    "href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
                },
                "source": "LTeX",
                "message": "'Speling': Possible spelling mistake found."
            }
        ],
        "command": {
            "title": "Disable rule",
            "command": "_ltex.disableRules",
            "arguments": [
                {
                    "uri": "file:///c%3A/Users/u2174548/Downloads/tmp.md",
                    "ruleIds": {
                        "en-US": [
                            "MORFOLOGIK_RULE_EN_US"
                        ]
                    }
                }
            ]
        }
    }
]


[Trace - 2:42:17 PM] Sending request 'textDocument/codeAction - (4)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/u2174548/Downloads/tmp.md"
    },
    "range": {
        "start": {
            "line": 0,
            "character": 47
        },
        "end": {
            "line": 0,
            "character": 47
        }
    },
    "context": {
        "diagnostics": [],
        "triggerKind": 2
    }
}


[Trace - 2:42:17 PM] Received response 'textDocument/codeAction - (4)' in 2ms.
Result: []



Version information
List here the version information of the relevant software.

  • Operating system: Windows 10
  • CPU manufacturer: Intel
  • VS Code: 1.95.3
  • vscode-ltex-plus: 15.3.0
  • ltex-ls-plus: Using LTeX+
  • Java: using LTeX+
@Sam-OT Sam-OT 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 Dec 4, 2024
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