8000 Typst spel checking don't work · Issue #9 · vitallium/zed-ltex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Typst spel checking don't work #9

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

Open
yodatak opened this issue May 18, 2025 · 3 comments
Open

Typst spel checking don't work #9

yodatak opened this issue May 18, 2025 · 3 comments
Labels
bug Something isn't working upstream

Comments

@yodatak
Copy link
yodatak commented May 18, 2025

Thanks for making this in typst i got not diagnostic show but i got some logs that show that lsp find problems but not emit in interface

Did i did something wrong ?
on Zed preview 0.187.2 8f9b217f7944f53699b44f509e0737402871597f

exemple:

// Receive:
{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///var/home/yodatak/Projects/ok.typ","diagnostics":[{"range":{"start":{"line":7,"character":17},"end":{"line":7,"character":21}},"severity":3,"code":"FR_SPELLING_RULE","codeDescription":{"href":"https://community.languagetool.org/rule/show/FR_SPELLING_RULE?lang\u003dfr"},"source":"LTeX","message":"\u0027year\u0027: Faute de frappe possible trouvée."},{"range":{"start":{"line":7,"character":22},"end":{"line":7,"character":26}},"severity":3,"code":"FR_SPELLING_RULE","codeDescription":{"href":"https://community.languagetool.org/rule/show/FR_SPELLING_RULE?lang\u003dfr"},"source":"LTeX","message":"\u0027repr\u0027: Faute de frappe possible trouvée."},{"range":{"start":{"line":7,"character":26},"end":{"line":7,"character":27}},"severity":3,"code":"DEUX_POINTS_ESPACE","codeDescription":{"href":"https://community.languagetool.org/rule/show/DEUX_POINTS_ESPACE?lang\u003dfr"},"source":"LTeX","message":"Une espace est requise."},{"range":{"start":{"line":35,"character":399},"end":{"line":35,"character":402}},"severity":3,"code":"FR_SPELLING_RULE","codeDescription":{"href":"https://community.languagetool.org/rule/show/FR_SPELLING_RULE?lang\u003dfr"},"source":"LTeX","message":"\u0027nb1\u0027: Faute de frappe possible trouvée."}]}}

My config ( i try to add many many this to try to make it work)

{
  "auto_install_extensions": {
    "ltex": true,
    "typst": true
  },
  "languages": {
    "Typst": {
      "format_on_save": "on",
      "soft_wrap": "bounded",
      "preferred_line_length": 120,
      "language_servers": ["tinymist", "ltex"]
    }
  },
  "lsp": {
    "ltex": {
      "enabled": true,
      "settings": {
        "ltex": {
          "completionEnabled": true,
          "diagnosticSeverity": "info",
          "checkFrequency": "edit",
          "additionalRules.motherTongue": "fr",
          "additionalRules.enablePickyRules": "true",
          "enabled": [
            "bibtex",
            "context",
            "context.tex",
            "html",
            "latex",
            "markdown",
            "mdx",
            "typst",
            "Typst",
            "typ",
            "asciidoc",
            "neorg",
            "org",
            "quarto",
            "restructuredtext",
            "rsweave"
          ],
          "language": "fr"
        }
      }
    },
    "tinymist": {
      "settings": {
        "compileStatus": "enable",
        "formatterMode": "typstyle",
        "exportPdf": "never",
        // "fontPaths": ["fonts"],
        // "systemFonts": false,
        "formatterPrintWidth": "90",
        "rootPath": ".",
        "outputPath": "$root/pdf/$name"
      }
    }
  }
}
@yodatak
Copy link
Author
yodatak commented May 18, 2025

interesting it seem to show typo error in zed 0.186.9 but not latest ( i
Zed: v0.186.9 (Zed)
OS: Linux Wayland bazzite 42
Memory: 47 GiB
Architecture: x86_64
GPU: NVIDIA GeForce RTX 3060 || NVIDIA || 570.144

Zed: v0.187.2 (Zed Preview)
OS: Linux Wayland bazzite 42
Memory: 47 GiB
Architecture: x86_64
GPU: NVIDIA GeForce RTX 3060 || NVIDIA || 570.144

@yodatak
Copy link
Author
yodatak commented May 18, 2025

Maybe it linked with changes here
https://github.com/zed-industries/zed/pull/30316/files

because ltex show severity 3

It show the error when i use
"diagnostics_max_severity": "info",

// Which level to use to filter out diagnostics displayed in the editor.
//
// Affects the editor rendering only, and does not interrupt
// the functionality of diagnostics fetching and project diagnostics editor.
// Which files containing diagnostic errors/warnings to mark in the tabs.
// Diagnostics are only shown when file icons are also active.
// This setting only works when can take the following three values:
//
// Which diagnostic indicators to show in the scrollbar, their level should be more or equal to the specified severity level.
// Possible values:
// - "off" — no diagnostics are allowed
// - "error"
// - "warning" (default)
// - "info"
// - "hint"
// - null — allow all diagnostics
"diagnostics_max_severity": "warning",

@vitallium
Copy link
Owner

I think that was fixed in the latest Zed version. Can you please check if this issue is still relevant? Thanks.

@vitallium vitallium added bug Something isn't working upstream labels May 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream
Projects
None yet
Development

No branches or pull requests

2 participants
0