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

ltex.dictionary does not accept an external file #56

Open
chrisgrieser opened this issue Dec 11, 2024 · 3 comments
Open

ltex.dictionary does not accept an external file #56

chrisgrieser opened this issue Dec 11, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@chrisgrieser
Copy link

Describe the bug
The config ltex.dictionary does not accept an external file

Steps to reproduce

  1. Add adfh to an external dictionary file
  2. configure ltex-plus to use that external dictionary file

Expected behavior
external files should work

Sample document
Markdown file with just adfh in it.

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.

does not work:

{
		"language": "en-US",
		"dictionary": {
				"en-US" = [":/Users/chrisgrieser/spellfile.txt"],
		}
}

does work:

{
		"language": "en-US",
		"dictionary": {
				"en-US" = ["adfh"],
		}
}

LTeX LS log
Paste the log (output) of LTeX LS here:

[ERROR][2024-12-11 13:21:07] .../vim/lsp/rpc.lua:770	"rpc"	"/Users/chrisgrieser/.local/share/nvim/mason/bin/ltex-ls-plus"	"stderr"	"Dec 11, 2024 1:21:07 PM org.bsplines.ltexls.server.LtexLanguageServer initialize\nINFO: ltex-ls 18.2.0 - initializing...\n"
[ERROR][2024-12-11 13:21:07] .../vim/lsp/rpc.lua:770	"rpc"	"/Users/chrisgrieser/.local/share/nvim/mason/bin/ltex-ls-plus"	"stderr"	"Dec 11, 2024 1:21:07 PM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked\nFINE: Checking the following text in language 'en-US' via LanguageTool: \"adfh\\n\\n\"\n"
[ERROR][2024-12-11 13:21:07] .../vim/lsp/rpc.lua:770	"rpc"	"/Users/chrisgrieser/.local/share/nvim/mason/bin/ltex-ls-plus"	"stderr"	"Dec 11, 2024 1:21:07 PM org.bsplines.ltexls.server.LtexTextDocumentItem raiseExceptionIfCanceled\nFINE: Canceling check due to incoming check request...\n"
[ERROR][2024-12-11 13:21:07] .../vim/lsp/rpc.lua:770	"rpc"	"/Users/chrisgrieser/.local/share/nvim/mason/bin/ltex-ls-plus"	"stderr"	"Dec 11, 2024 1:21:07 PM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked\nFINE: Checking the following text in language 'en-US' via LanguageTool: \"adfh\\n\\n\"\n"
[ERROR][2024-12-11 13:21:09] .../vim/lsp/rpc.lua:770	"rpc"	"/Users/chrisgrieser/.local/share/nvim/mason/bin/ltex-ls-plus"	"stderr"	"Dec 11, 2024 1:21:09 PM org.bsplines.ltexls.server.LtexTextDocumentItem raiseExceptionIfCanceled\nFINE: Canceling check due to incoming check request...\n"
[ERROR][2024-12-11 13:21:09] .../vim/lsp/rpc.lua:770	"rpc"	"/Users/chrisgrieser/.local/share/nvim/mason/bin/ltex-ls-plus"	"stderr"	"Dec 11, 2024 1:21:09 PM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked\nFINE: Checking the following text in language 'en-US' via LanguageTool: \"adfh\\n\\n\"\n"
[ERROR][2024-12-11 13:21:09] .../vim/lsp/rpc.lua:770	"rpc"	"/Users/chrisgrieser/.local/share/nvim/mason/bin/ltex-ls-plus"	"stderr"	"Dec 11, 2024 1:21:09 PM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment\nFINE: Obtained 1 rule match\n"

Version information

  • Operating system: macOS 15.1 (arm)
  • ltex-ls: 18.2.0
  • Java: 21.0.4

Additional context/information
Using ltex-plus in nvim, in case that matters.

@spitzerd
Copy link

LTeX+ LS does not support external files, only the VS Code extension.
See valentjn#157

@David-Else
Copy link

I just came here to add this as a bug and found this issue. Can this feature be implemented in LTeX+? That would be amazing!

@spitzerd spitzerd added the enhancement New feature or request label Dec 14, 2024
@spitzerd
Copy link

Sure, but I cannot announce a delivery date for this feature, of course. Pull requests are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants