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

"Unknown command '_ltex.*', ignoring" #282

Open
rynoV opened this issue Nov 11, 2023 · 2 comments
Open

"Unknown command '_ltex.*', ignoring" #282

rynoV opened this issue Nov 11, 2023 · 2 comments
Labels
1-question ❓ Issue type: General or specific question about LTeX

Comments

@rynoV
Copy link

rynoV commented Nov 11, 2023

Thanks for making this tool!

I'm trying to setup ltex-ls 15.2.0 in emacs with eglot, and it seems to be failing on commands that use external config files: disableRules, addToDictionary, hideFalsePositives. Apart from that it seems to be working, and replacement commands work as expected.

Is this expected? If so, do you have any pointers on setting these things up outside of vscode?

@rynoV rynoV added the 1-question ❓ Issue type: General or specific question about LTeX label Nov 11, 2023
@rynoV
Copy link
Author

rynoV commented Nov 11, 2023

I tried adding file paths for the various external files but this doesn't seem to do the trick. My settings look like this:

{
  "ltex-ls": {
    "language": "en-CA",
    "dictionary": {
      "en-US": [
        ":~/scripts/ltex-ls-15.2.0/dictionary"
      ],
      "en-CA": [
        ":~/scripts/ltex-ls-15.2.0/dictionary"
      ]
    },
    "disabledRules": {
      "en-US": [
        ":~/scripts/ltex-ls-15.2.0/disabledRules"
      ],
      "en-CA": [
        ":~/scripts/ltex-ls-15.2.0/disabledRules"
      ]
    },
    "enabledRules": {
      "en-US": [
        ":~/scripts/ltex-ls-15.2.0/enabledRules"
      ],
      "en-CA": [
        ":~/scripts/ltex-ls-15.2.0/enabledRules"
      ]
    },
    "hiddenFalsePositives": {
      "en-US": [
        ":~/scripts/ltex-ls-15.2.0/hiddenFalsePositives"
      ],
      "en-CA": [
        ":~/scripts/ltex-ls-15.2.0/hiddenFalsePositives"
      ]
    }
  }
}

@weakish
Copy link

weakish commented Jan 26, 2024

duplicate of #157

External files are located on the machine of the client, and managed by the client. When a client reads a config like [":~/scripts/ltex-ls-15.2.0/dictionary"], it read the file and send the word list to ltex-ls. ltex-ls itself does not understand the special :/path/string syntax and does not read external files on the client side. I myself find that it will be easier to understand this design if I image that ltex-ls is running on a remote machine and does not have access to the dictionary file at the local machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-question ❓ Issue type: General or specific question about LTeX
Projects
None yet
Development

No branches or pull requests

2 participants