pjssilva · GitHub

Enter a summary of the issue in the title field above and replace this sentence with the bug report from your clipboard.

Describe the bug
When I use vscode-ltex it leaves a stray java process behind even after I close the editor.

Steps to reproduce
Steps to reproduce the behavior:

1.Open any LaTeX document in vscode with ltex installed.
2. Await a few minutes for ltex to start.
3. Close the editor.
4. Search for "java" in your process list. There will be a stray java process running and consuming memory;

Expected behavior
I would expect all java processes started by vscode-ltex to terminate upon closing vscode.

Sample document
Any document will do, see the example below.

Details
\documentclass{article}
\begin{document}
Any document will do.
\end{document}

LTeX configuration
Please paste all configuration settings starting with ltex. from your settings.json. You can help us by temporarily removing some irrelevant settings from your settings.json and see if the bug still occurs.

Details
{
  "enabled": [
    "bibtex",
    "context",
    "context.tex",
    "html",
    "latex",
    "markdown",
    "org",
    "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": 512
  },
  "sentenceCacheSize": 2000,
  "completionEnabled": false,
  "diagnosticSeverity": "information",
  "checkFrequency": "edit",
  "clearDiagnosticsWhenClosingFile": true,
  "statusBarItem": false,
  "trace": {
    "server": "off"
  }
}

"LTeX Language Server" log file
First, reproduce the bug. Then, go to ViewOutput and select LTeX Language Server in the drop-down list. Paste this log here:

Details
[Info  - 09:33:41] Starting ltex-ls...
dez 24, 2021 9:33:47 AM org.bsplines.ltexls.server.LtexLanguageServer initialize
INFORMAÇÕES: ltex-ls 15.2.0 - initializing...
dez 24, 2021 9:33:47 AM org.bsplines.ltexls.tools.I18n setLocale
INFORMAÇÕES: Setting locale to 'en'
dez 24, 2021 9:33:48 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
DETALHADO: Checking the following text in language 'en-US' via LanguageTool: "\n\n\n\nAny document will do.\n\n"
dez 24, 2021 9:33:51 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
DETALHADO: Obtained 0 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):

Details
2021-12-24T12:33:40.423Z Info: Setting LTeX UI language to 'pt-br'.
2021-12-24T12:33:40.423Z Info: Loading i18n messages...
2021-12-24T12:33:40.424Z Info: Loading default i18n messages...
2021-12-24T12:33:40.428Z Info:
2021-12-24T12:33:40.428Z Info: ltex.ltex-ls.path not set.
2021-12-24T12:33:40.428Z Info: Searching for ltex-ls in '/home/pjssilva/.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib'...
2021-12-24T12:33:40.429Z Info: ltex-ls found in '/home/pjssilva/.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib/ltex-ls-15.2.0'.
2021-12-24T12:33:40.429Z Info:
2021-12-24T12:33:40.429Z Info: Using ltex-ls from '/home/pjssilva/.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib/ltex-ls-15.2.0'.
2021-12-24T12:33:40.429Z Info: Using Java bundled with ltex-ls as ltex.java.path is not set.
2021-12-24T12:33:40.445Z Info: Testing ltex-ls...
2021-12-24T12:33:40.445Z Info:   Command: "/home/pjssilva/.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib/ltex-ls-15.2.0/bin/ltex-ls"
2021-12-24T12:33:40.445Z Info:   Arguments: ["--version"]
2021-12-24T12:33:40.445Z Info:   env['JAVA_HOME']: undefined
2021-12-24T12:33:40.445Z Info:   env['JAVA_OPTS']: "-Xms64m -Xmx512m"
2021-12-24T12:33:41.723Z Info: Test successful!
2021-12-24T12:33:41.733Z Info:
2021-12-24T12:33:41.737Z Info: Starting ltex-ls...
2021-12-24T12:33:41.737Z Info:   Command: "/home/pjssilva/.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib/ltex-ls-15.2.0/bin/ltex-ls"
2021-12-24T12:33:41.737Z Info:   Arguments: []
2021-12-24T12:33:41.737Z Info:   env['JAVA_HOME']: undefined
2021-12-24T12:33:41.737Z Info:   env['JAVA_OPTS']: "-Xms64m -Xmx512m"
2021-12-24T12:33:41.737Z Info:
2021-12-24T12:33:57.138Z Info: Creating bug report...

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

  • Operating system: Linux (linux), x64, 5.13.0-22-generic
  • VS Code: 1.63.2
  • vscode-ltex: 13.1.0
  • ltex-ls: 15.2.0
  • Java: 11.0.12

Additional context/information
You can add any other context or information about the problem here.

Read the original on github.com ↗