tinymist icon indicating copy to clipboard operation
tinymist copied to clipboard

Word count incorrect

Open medmaca opened this issue 7 months ago • 1 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Platform

x64 Windows (win32-x64, Most Common)

Editor

VS Cod(e,ium)

Editor Version

Version: 1.103.2 (user setup) Commit: 6f17636121051a53c88d3e605c491d22af2ba755 Date: 2025-08-20T16:45:34.255Z Electron: 37.2.3 ElectronBuildId: 12035395 Chromium: 138.0.7204.100 Node.js: 22.17.0 V8: 13.8.500258-electron.0 OS: Windows_NT x64 10.0.26100

Describe the bug

Currently the word count that appears at the bottom of VSCODE seems to be incorrect. For instance if my *.typ contains this:

One, two, three, four, five, Six, seven, eight, nine, ten.

Then I end up with a word count of 10, howver, if it has a blank line, e.g.:

One, two, three, four, five,

Six, seven, eight, nine, ten.

Then the word count drops to 9.

Is this expected?

#lorem(15) gives the correct word count, while any above this e.g. #lorem(16) give incorrect word counts.

All other features currently seem to be working as expected, so this is a strange glitch.

I'm using TinyMist Typts v0.13.24 and typst 0.13.1 on a Windows machine (Windows 11) interacting with a WSL2 version of Ubuntu linux, in which Typst is installed.

Server Logs

[2025-09-04T14:34:18Z INFO  sync_ls::server] handling workspace/executeCommand - (30)
[2025-09-04T14:34:18Z INFO  tinymist::input] the task of the primary is changing to TaskInputs { entry: Some(EntryState { root: Some("/root/MySoftware/typst_work"), main: Some(@ws/p0:0.0.0/test.typ) }), inputs: None }
[2025-09-04T14:34:18Z INFO  tinymist::cmd] file focused: Some("/root/MySoftware/typst_work/test.typ")
[2025-09-04T14:34:18Z INFO  sync_ls::server] handled  workspace/executeCommand - (30) in 363.46µs
[2025-09-04T14:34:18Z INFO  tinymist_project::compiler] /root/MySoftware/typst_work/test.typ: compilation succeeded in 400.094µs
[2025-09-04T14:34:18Z INFO  sync_ls::server] handling textDocument/codeLens - (31)
[2025-09-04T14:34:18Z INFO  sync_ls::server] handled  textDocument/codeLens - (31) in 416.35µs
[2025-09-04T14:34:21Z INFO  sync_ls::server] handling shutdown - (32)
[2025-09-04T14:34:21Z INFO  tinymist_project::watch] NotifyActor: failed to get event, exiting...
[2025-09-04T14:34:21Z INFO  tinymist_project::watch] NotifyActor: exited
[2025-09-04T14:34:21Z INFO  tinymist::actor::editor] editor actor is stopped
[2025-09-04T14:34:21Z INFO  sync_ls::server] handled  shutdown - (32) in 6.39ms
[2025-09-04T14:34:21Z INFO  sync_ls::transport] reader thread finished
[2025-09-04T14:34:21Z INFO  sync_ls::server] notifying exit
[2025-09-04T14:34:21Z WARN  sync_ls::server::lsp_srv] server is shutting down, while received notification exit
[2025-09-04T14:34:21Z INFO  sync_ls::server] notify exit succeeded in 15.57µs
[2025-09-04T14:34:21Z INFO  sync_ls::transport] writer thread finished
[2025-09-04T14:34:21Z INFO  tinymist::cmd::lsp] language server did shut down
[Error - 3:34:21 PM] Server process exited with code 0.
[2025-09-04T14:34:21Z INFO  tinymist::cmd::lsp] tinymist version information: [["Build Timestamp", "2025-08-26T08:23:05.224318186Z"], ["Build Git Describe", "v0.13.24"], ["Commit SHA", "2fc5d919e9af811b4335388111ac0345b5770360"], ["Commit Date", "None"], ["Commit Branch", "None"], ["Cargo Target Triple", "x86_64-unknown-linux-gnu"], ["Typst Version", "0.13.1"], ["Typst Source", "git+https://github.com/Myriad-Dreamin/typst.git?tag=tinymist/v0.13.10#946ea31fb554bcf62e3215f64ddda87d70b026af"]]
[2025-09-04T14:34:21Z INFO  tinymist::cmd::lsp] starting language server: LspArgs { mirror: MirrorArgs { mirror: "", replay: "" }, font: CompileFontArgs { font_paths: [], ignore_system_fonts: false } }
[2025-09-04T14:34:21Z INFO  sync_ls::server] handling initialize - (0)
[2025-09-04T14:34:21Z INFO  tinymist::config] ServerState: config update_by_map {}
[2025-09-04T14:34:21Z INFO  tinymist::config] ServerState: config update_by_map {"colorTheme":"dark","compileStatus":"enable","completion":{"postfix":true,"postfixUfcs":true,"postfixUfcsLeft":true,"postfixUfcsRight":true,"symbol":"step","triggerOnSnippetPlaceholders":false},"configureDefaultWordSeparator":"disable","copyAndPaste":"enable","customizedShowDocument":true,"delegateFsRequests":false,"dragAndDrop":"enable","exportPdf":"never","exportTarget":"paged","formatterIndentSize":2,"formatterMode":"typstyle","formatterPrintWidth":120,"formatterProseWrap":false,"lint":{"enabled":false,"when":"onSave"},"onEnterEvent":true,"outputPath":"","preview":{"cursorIndicator":false,"fontPaths":[],"invertColors":"never","partialRendering":true,"pinPreviewFile":false,"refresh":"onType","scrollSync":"onSelectionChangeByMouse","sysInputs":{},"systemFonts":true},"previewFeature":"enable","probedServerPath":"/root/.vscode-server/extensions/myriad-dreamin.tinymist-0.13.24-linux-x64/out/tinymist","projectResolution":"singleFile","renderDocs":"enable","semanticTokens":"enable","showExportFileIn":null,"statusBarFormat":"{compileStatusIcon} {wordCount} [{fileName}]","supportExtendedCodeAction":true,"supportHtmlInMarkdown":true,"systemFonts":true,"trace":{"server":"off"},"triggerParameterHints":true,"triggerSuggest":true,"triggerSuggestAndParameterHints":true,"typingContinueCommentsOnNewline":true,"typstExtraArgs":[]}
[2025-09-04T14:34:21Z INFO  tinymist::server] ServerState: initialized with config Config { const_config: ConstConfig { position_encoding: Utf16, cfg_change_registration: true, notify_will_rename_files: true, tokens_dynamic_registration: true, tokens_overlapping_token_support: false, tokens_multiline_token_support: false, doc_line_folding_only: true, doc_fmt_dynamic_registration: true, locale: Some("en") }, const_dap_config: ConstDapConfig { path_format: Path, lines_start_at1: true, columns_start_at1: true }, delegate_fs_requests: false, customized_show_document: true, has_default_entry_path: false, notify_status: true, support_html_in_markdown: true, extended_code_action: true, development: false, color_theme: Some("dark"), entry_resolver: EntryResolver { project_resolution: SingleFile, root_path: None, roots: ["/root/MySoftware/typst_work"], entry: None, typst_toml_cache: {} }, lsp_inputs: {"x-preview": "{\"version\":1,\"theme\":\"dark\"}"}, periscope_args: None, typst_extra_args: Some(TypstExtraArgs { root_dir: None, entry: None, inputs: {}, font: CompileFontArgs { font_paths: [], ignore_system_fonts: false }, package: CompilePackageArgs { package_path: None, package_cache_path: None }, features: [], pdf_standard: [], creation_timestamp: None, cert: None }), semantic_tokens: Enable, completion: CompletionFeat { trigger_on_snippet_placeholders: false, trigger_suggest: true, trigger_parameter_hints: true, trigger_suggest_and_parameter_hints: true, symbol: Some(Step), postfix: Some(true), postfix_ufcs: Some(true), postfix_ufcs_left: Some(true), postfix_ufcs_right: Some(true), postfix_snippets: None }, preview: PreviewFeat { browsing: BrowsingPreviewOpts { args: None }, background: BackgroundPreviewOpts { enabled: false, args: None }, refresh: Some(OnType), partial_rendering: true, invert_colors: Enum(Never) }, lint: LintFeat { enabled: Some(false), when: Some(OnSave) }, on_enter: OnEnterFeat { handle_list: false }, font_opts: CompileFontArgs { font_paths: [], ignore_system_fonts: false }, font_paths: [], fonts: OnceLock(<uninit>), access_model: OnceLock(<uninit>), system_fonts: Some(true), export_target: Paged, export_pdf: Never, output_path: PathPattern(""), formatter_mode: Typstyle, formatter_print_width: Some(120), formatter_indent_size: Some(2), formatter_prose_wrap: Some(false), warnings: [] }
[2025-09-04T14:34:21Z INFO  tinymist::config] creating AccessModel with delegation=false
[2025-09-04T14:34:21Z INFO  tinymist::project] ServerState: creating ProjectState, entry: EntryState { root: Some("/root/MySoftware/typst_work"), main: None }, inputs: {"x-preview": "{\"version\":1,\"theme\":\"dark\"}"}
[2025-09-04T14:34:21Z INFO  tinymist::config] creating SharedFontResolver with CompileFontArgs { font_paths: [], ignore_system_fonts: false }
[2025-09-04T14:34:22Z INFO  tinymist::tool::preview] Stopping all preview tasks
[2025-09-04T14:34:22Z INFO  tinymist_project::watch] NotifyActor: start watching files...
[2025-09-04T14:34:22Z INFO  tinymist::project] ServerState: creating ProjectState, entry: EntryState { root: Some("/root/MySoftware/typst_work"), main: None }, inputs: {"x-preview": "{\"version\":1,\"theme\":\"dark\"}"}
[2025-09-04T14:34:22Z INFO  tinymist_project::watch] NotifyActor: start watching files...
[2025-09-04T14:34:22Z INFO  sync_ls::server] handled  initialize - (0) in 334.45ms
[2025-09-04T14:34:22Z INFO  tinymist_project::watch] NotifyActor: failed to get event, exiting...
[2025-09-04T14:34:22Z INFO  tinymist_project::watch] NotifyActor: exited
[2025-09-04T14:34:22Z INFO  sync_ls::server] notifying initialized
[2025-09-04T14:34:22Z INFO  tinymist::lsp] server initialized
[2025-09-04T14:34:22Z INFO  sync_ls::server] notify initialized succeeded in 250.37µs
[2025-09-04T14:34:22Z INFO  sync_ls::server] handling workspace/executeCommand - (1)
[2025-09-04T14:34:22Z INFO  sync_ls::server] handling workspace/executeCommand - (2)
[2025-09-04T14:34:22Z INFO  sync_ls::server] handled  workspace/executeCommand - (1) in 2.29ms
[2025-09-04T14:34:22Z INFO  tinymist::cmd] first manual focusing is coming
[2025-09-04T14:34:22Z INFO  tinymist::input] the task of the primary is changing to TaskInputs { entry: Some(EntryState { root: Some("/root/MySoftware/typst_work"), main: Some(@ws/p0:0.0.0/test.typ) }), inputs: None }
[2025-09-04T14:34:22Z INFO  tinymist::cmd] file focused: Some("/root/MySoftware/typst_work/test.typ")
[2025-09-04T14:34:22Z INFO  sync_ls::server] notifying textDocument/didOpen
[2025-09-04T14:34:22Z INFO  tinymist::lsp] did open file:///root/MySoftware/typst_work/Learning/2025/typst_play/2025.09.03_typst_reference/typst_scripting.typ
[2025-09-04T14:34:22Z INFO  sync_ls::server] handled  workspace/executeCommand - (2) in 859.80µs
[2025-09-04T14:34:22Z INFO  sync_ls::server] notify textDocument/didOpen succeeded in 1.21ms
[2025-09-04T14:34:22Z INFO  sync_ls::server] notifying textDocument/didOpen
[2025-09-04T14:34:22Z INFO  tinymist::lsp] did open file:///root/MySoftware/typst_work/Learning/2025/typst_play/2025.09.03_typst_reference/resources/doc_setup.typ
[2025-09-04T14:34:22Z INFO  sync_ls::server] notify textDocument/didOpen succeeded in 229.91µs
[2025-09-04T14:34:22Z INFO  sync_ls::server] notifying textDocument/didOpen
[2025-09-04T14:34:22Z INFO  tinymist::lsp] did open file:///root/MySoftware/typst_work/test.typ
[2025-09-04T14:34:22Z INFO  sync_ls::server] notify textDocument/didOpen succeeded in 51.99µs
[2025-09-04T14:34:22Z INFO  sync_ls::server] handling workspace/executeCommand - (3)
[2025-09-04T14:34:22Z INFO  sync_ls::server] handled  workspace/executeCommand - (3) in 9.45ms
[2025-09-04T14:34:22Z INFO  tinymist_project::compiler] /root/MySoftware/typst_work/test.typ: compilation succeeded in 12.104237ms
[2025-09-04T14:34:22Z INFO  sync_ls::server] handling textDocument/documentSymbol - (4)
[2025-09-04T14:34:22Z INFO  sync_ls::server] handling textDocument/documentColor - (5)
[2025-09-04T14:34:22Z INFO  sync_ls::server] handled  textDocument/documentSymbol - (4) in 255.07µs
[2025-09-04T14:34:22Z INFO  sync_ls::server] handled  textDocument/documentColor - (5) in 230.89µs
[2025-09-04T14:34:22Z INFO  sync_ls::server] handling textDocument/documentLink - (6)
[2025-09-04T14:34:22Z INFO  sync_ls::server] handled  textDocument/documentLink - (6) in 294.34µs
[2025-09-04T14:34:22Z INFO  sync_ls::server] handling textDocument/foldingRange - (7)
[2025-09-04T14:34:22Z INFO  sync_ls::server] handled  textDocument/foldingRange - (7) in 349.66µs
[2025-09-04T14:34:22Z INFO  sync_ls::server] handling textDocument/codeLens - (8)
[2025-09-04T14:34:22Z INFO  sync_ls::server] handled  textDocument/codeLens - (8) in 437.88µs
[2025-09-04T14:34:22Z INFO  sync_ls::server] handling textDocument/documentSymbol - (9)
[2025-09-04T14:34:22Z INFO  sync_ls::server] handled  textDocument/documentSymbol - (9) in 271.33µs
[2025-09-04T14:34:22Z INFO  sync_ls::server] handling textDocument/foldingRange - (10)
[2025-09-04T14:34:22Z INFO  sync_ls::server] handling textDocument/semanticTokens/full - (11)
[2025-09-04T14:34:22Z INFO  sync_ls::server] handled  textDocument/foldingRange - (10) in 243.62µs
[2025-09-04T14:34:22Z INFO  sync_ls::server] handled  textDocument/semanticTokens/full - (11) in 496.53µs
[2025-09-04T14:34:24Z INFO  sync_ls::server] handling textDocument/hover - (12)
[2025-09-04T14:34:24Z INFO  sync_ls::server] handled  textDocument/hover - (12) in 312.26µs
[2025-09-04T14:34:24Z INFO  sync_ls::server] handling workspace/executeCommand - (13)
[2025-09-04T14:34:24Z INFO  sync_ls::server] handled  workspace/executeCommand - (13) in 280.92µs
[2025-09-04T14:34:24Z INFO  sync_ls::server] handling textDocument/documentHighlight - (14)
[2025-09-04T14:34:24Z INFO  sync_ls::server] handled  textDocument/documentHighlight - (14) in 319.40µs
[2025-09-04T14:34:24Z INFO  sync_ls::server] handling textDocument/codeAction - (15)
[2025-09-04T14:34:24Z INFO  sync_ls::server] handled  textDocument/codeAction - (15) in 370.13µs
[2025-09-04T14:34:25Z INFO  sync_ls::server] notifying textDocument/didChange
[2025-09-04T14:34:25Z INFO  sync_ls::server] notify textDocument/didChange succeeded in 233.04µs
[2025-09-04T14:34:25Z INFO  tinymist_project::compiler] /root/MySoftware/typst_work/test.typ: compilation succeeded in 628.819µs
[2025-09-04T14:34:25Z INFO  sync_ls::server] handling textDocument/foldingRange - (16)
[2025-09-04T14:34:25Z INFO  sync_ls::server] handled  textDocument/foldingRange - (16) in 283.86µs
[2025-09-04T14:34:25Z INFO  sync_ls::server] handling textDocument/codeLens - (17)
[2025-09-04T14:34:25Z INFO  sync_ls::server] handling textDocument/codeAction - (18)
[2025-09-04T14:34:25Z INFO  sync_ls::server] handled  textDocument/codeLens - (17) in 403.91µs
[2025-09-04T14:34:25Z INFO  sync_ls::server] handled  textDocument/codeAction - (18) in 326.94µs
[2025-09-04T14:34:25Z INFO  sync_ls::server] handling textDocument/semanticTokens/full/delta - (19)
[2025-09-04T14:34:25Z INFO  sync_ls::server] handled  textDocument/semanticTokens/full/delta - (19) in 568.11µs
[2025-09-04T14:34:25Z INFO  sync_ls::server] handling textDocument/documentSymbol - (20)
[2025-09-04T14:34:25Z INFO  sync_ls::server] handling textDocument/documentSymbol - (21)
[2025-09-04T14:34:25Z INFO  sync_ls::server] handled  textDocument/documentSymbol - (20) in 420.16µs
[2025-09-04T14:34:25Z INFO  sync_ls::server] handled  textDocument/documentSymbol - (21) in 497.71µs
[2025-09-04T14:34:25Z INFO  sync_ls::server] handling textDocument/foldingRange - (22)
[2025-09-04T14:34:25Z INFO  sync_ls::server] handled  textDocument/foldingRange - (22) in 257.23µs
[2025-09-04T14:34:26Z INFO  sync_ls::server] notifying textDocument/didChange
[2025-09-04T14:34:26Z INFO  sync_ls::server] notify textDocument/didChange succeeded in 236.47µs
[2025-09-04T14:34:26Z INFO  tinymist_project::compiler] /root/MySoftware/typst_work/test.typ: compilation succeeded in 673.078µs
[2025-09-04T14:34:26Z INFO  sync_ls::server] handling textDocument/foldingRange - (23)
[2025-09-04T14:34:26Z INFO  sync_ls::server] handled  textDocument/foldingRange - (23) in 270.15µs
[2025-09-04T14:34:26Z INFO  sync_ls::server] handling textDocument/documentColor - (24)
[2025-09-04T14:34:26Z INFO  sync_ls::server] handling textDocument/codeLens - (25)
[2025-09-04T14:34:26Z INFO  sync_ls::server] handling textDocument/codeAction - (26)
[2025-09-04T14:34:26Z INFO  sync_ls::server] handled  textDocument/documentColor - (24) in 353.28µs
[2025-09-04T14:34:26Z INFO  sync_ls::server] handled  textDocument/codeLens - (25) in 390.88µs
[2025-09-04T14:34:26Z INFO  sync_ls::server] handled  textDocument/codeAction - (26) in 486.55µs
[2025-09-04T14:34:26Z INFO  sync_ls::server] handling textDocument/semanticTokens/full/delta - (27)
[2025-09-04T14:34:26Z INFO  sync_ls::server] handled  textDocument/semanticTokens/full/delta - (27) in 531.88µs
[2025-09-04T14:34:26Z INFO  sync_ls::server] handling textDocument/documentSymbol - (28)
[2025-09-04T14:34:26Z INFO  sync_ls::server] handling textDocument/documentSymbol - (29)
[2025-09-04T14:34:26Z INFO  sync_ls::server] handled  textDocument/documentSymbol - (28) in 293.16µs
[2025-09-04T14:34:26Z INFO  sync_ls::server] handled  textDocument/documentSymbol - (29) in 223.84µs
[2025-09-04T14:34:26Z INFO  sync_ls::server] handling textDocument/foldingRange - (30)
[2025-09-04T14:34:26Z INFO  sync_ls::server] handled  textDocument/foldingRange - (30) in 213.16µs
[2025-09-04T14:34:26Z INFO  sync_ls::server] handling textDocument/formatting - (31)
[2025-09-04T14:34:26Z INFO  sync_ls::server] handled  textDocument/formatting - (31) in 333.90µs
[2025-09-04T14:34:27Z INFO  sync_ls::server] handling textDocument/documentLink - (32)
[2025-09-04T14:34:27Z INFO  sync_ls::server] handled  textDocument/documentLink - (32) in 1.76ms
[2025-09-04T14:34:27Z INFO  tinymist::project] Project: emit compilation again for ProjectInsId("primary"), reason: CompileSignal { by_mem_events: false, by_fs_events: true, by_entry_update: false }
[2025-09-04T14:34:27Z INFO  sync_ls::server] notifying textDocument/didSave
[2025-09-04T14:34:27Z INFO  tinymist::project] Project: skip compilation for ProjectInsId("primary") due to harmless vfs changes
[2025-09-04T14:34:27Z INFO  sync_ls::server] notify textDocument/didSave succeeded in 88.60µs
[2025-09-04T14:34:29Z INFO  sync_ls::server] notifying textDocument/didChange
[2025-09-04T14:34:29Z INFO  sync_ls::server] notify textDocument/didChange succeeded in 131.87µs
[2025-09-04T14:34:29Z INFO  tinymist_project::compiler] /root/MySoftware/typst_work/test.typ: compilation succeeded in 234.954µs
[2025-09-04T14:34:29Z INFO  sync_ls::server] handling textDocument/foldingRange - (33)
[2025-09-04T14:34:29Z INFO  sync_ls::server] handled  textDocument/foldingRange - (33) in 251.89µs
[2025-09-04T14:34:29Z INFO  sync_ls::server] handling textDocument/codeLens - (34)
[2025-09-04T14:34:29Z INFO  sync_ls::server] handling textDocument/codeAction - (35)
[2025-09-04T14:34:29Z INFO  sync_ls::server] handled  textDocument/codeLens - (34) in 302.11µs
[2025-09-04T14:34:29Z INFO  sync_ls::server] handled  textDocument/codeAction - (35) in 394.04µs
[2025-09-04T14:34:29Z INFO  sync_ls::server] handling textDocument/semanticTokens/full/delta - (36)
[2025-09-04T14:34:29Z INFO  sync_ls::server] handled  textDocument/semanticTokens/full/delta - (36) in 364.86µs
[2025-09-04T14:34:30Z INFO  sync_ls::server] handling textDocument/documentSymbol - (37)
[2025-09-04T14:34:30Z INFO  sync_ls::server] handled  textDocument/documentSymbol - (37) in 284.00µs
[2025-09-04T14:34:30Z INFO  sync_ls::server] handling textDocument/documentSymbol - (38)
[2025-09-04T14:34:30Z INFO  sync_ls::server] handled  textDocument/documentSymbol - (38) in 211.85µs
[2025-09-04T14:34:30Z INFO  sync_ls::server] handling textDocument/foldingRange - (39)
[2025-09-04T14:34:30Z INFO  sync_ls::server] handled  textDocument/foldingRange - (39) in 245.04µs
[2025-09-04T14:34:30Z INFO  sync_ls::server] notifying textDocument/didChange
[2025-09-04T14:34:30Z INFO  sync_ls::server] notify textDocument/didChange succeeded in 246.70µs
[2025-09-04T14:34:30Z INFO  tinymist_project::compiler] /root/MySoftware/typst_work/test.typ: compilation succeeded in 373.773µs
[2025-09-04T14:34:30Z INFO  sync_ls::server] handling textDocument/foldingRange - (40)
[2025-09-04T14:34:30Z INFO  sync_ls::server] handled  textDocument/foldingRange - (40) in 316.31µs
[2025-09-04T14:34:30Z INFO  sync_ls::server] handling textDocument/documentColor - (41)
[2025-09-04T14:34:30Z INFO  sync_ls::server] handled  textDocument/documentColor - (41) in 375.14µs
[2025-09-04T14:34:30Z INFO  sync_ls::server] handling textDocument/codeLens - (42)
[2025-09-04T14:34:30Z INFO  sync_ls::server] handling textDocument/codeAction - (43)
[2025-09-04T14:34:30Z INFO  sync_ls::server] handled  textDocument/codeLens - (42) in 367.61µs
[2025-09-04T14:34:30Z INFO  sync_ls::server] handled  textDocument/codeAction - (43) in 261.48µs
[2025-09-04T14:34:30Z INFO  sync_ls::server] handling textDocument/semanticTokens/full/delta - (44)
[2025-09-04T14:34:30Z INFO  sync_ls::server] handled  textDocument/semanticTokens/full/delta - (44) in 526.30µs
[2025-09-04T14:34:30Z INFO  sync_ls::server] handling textDocument/documentSymbol - (45)
[2025-09-04T14:34:30Z INFO  sync_ls::server] handled  textDocument/documentSymbol - (45) in 3.51ms
[2025-09-04T14:34:30Z INFO  sync_ls::server] handling textDocument/documentSymbol - (46)
[2025-09-04T14:34:30Z INFO  sync_ls::server] handled  textDocument/documentSymbol - (46) in 277.83µs
[2025-09-04T14:34:30Z INFO  sync_ls::server] handling textDocument/foldingRange - (47)
[2025-09-04T14:34:30Z INFO  sync_ls::server] handled  textDocument/foldingRange - (47) in 340.59µs
[2025-09-04T14:34:31Z INFO  sync_ls::server] handling textDocument/formatting - (48)
[2025-09-04T14:34:31Z INFO  sync_ls::server] handled  textDocument/formatting - (48) in 351.94µs
[2025-09-04T14:34:31Z INFO  tinymist::project] Project: emit compilation again for ProjectInsId("primary"), reason: CompileSignal { by_mem_events: false, by_fs_events: true, by_entry_update: false }
[2025-09-04T14:34:31Z INFO  sync_ls::server] handling textDocument/documentLink - (49)
[2025-09-04T14:34:31Z INFO  sync_ls::server] handled  textDocument/documentLink - (49) in 465.60µs
[2025-09-04T14:34:32Z INFO  sync_ls::server] notifying textDocument/didSave
[2025-09-04T14:34:32Z INFO  tinymist::project] Project: skip compilation for ProjectInsId("primary") due to harmless vfs changes
[2025-09-04T14:34:32Z INFO  sync_ls::server] notify textDocument/didSave succeeded in 77.93µs
[2025-09-04T14:34:33Z INFO  sync_ls::server] handling workspace/executeCommand - (50)
[2025-09-04T14:34:33Z INFO  tinymist::input] the task of the primary is changing to TaskInputs { entry: Some(EntryState { root: Some("/root/MySoftware/typst_work"), main: None }), inputs: None }
[2025-09-04T14:34:33Z INFO  tinymist_project::compiler] ProjectCompiler: removing diag
[2025-09-04T14:34:33Z INFO  tinymist::cmd] file focused: None
[2025-09-04T14:34:33Z INFO  sync_ls::server] handled  workspace/executeCommand - (50) in 355.47µs

Browser Logs

Paste your logs here

Additional context

No response

medmaca avatar Sep 04 '25 14:09 medmaca

It only estimates your word count so it is expected to have a bit error. For the specific case, it could be improved. Possible reason. The typst sentence:

five,
six

is exported as

five,six

And it counts "five,six" as a single word. Two issues:

  • the newline in the source code is ignored. hard to fix, but may be solved when typst has an official text export.
  • the marker , is counted as the part of a word. can be fixed easily.

Myriad-Dreamin avatar Sep 04 '25 18:09 Myriad-Dreamin