Myriad-Dreamin / tinymist

Tinymist [ˈtaɪni mɪst] is an integrated language service for Typst [taɪpst].
https://myriad-dreamin.github.io/tinymist
Apache License 2.0
278 stars 11 forks source link

[vscode plugin]: Unhandled request: experimental/onEnter #333

Closed RungeCC closed 2 weeks ago

RungeCC commented 2 weeks ago

Describe the bug Can not enter "enter" when tinymist is activated.

Package/Software version:

VSCode version(Help -> About):

Version: 1.88.1
Release: 24104
Commit: 0d01a72525276e5e3771fe5851b9c83de0de1e2b
Date: 2024-04-13T01:53:59.491Z
Electron: 28.2.8
ElectronBuildId: undefined
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Linux x64 6.6.32

tinymist extension version: v0.11.0. Get it by tinymist --version in terminal.

tinymist 
Build Timestamp:     1980-01-01T00:00:00.000000000Z
Build Git Describe:  VERGEN_IDEMPOTENT_OUTPUT
Commit SHA:          VERGEN_IDEMPOTENT_OUTPUT
Commit Date:         None
Commit Branch:       None
Cargo Target Triple: x86_64-unknown-linux-gnu
Typst Version:       0.11.1

Logs:

tinymist server log(Output Panel -> tinymist):

[2024-06-18T17:07:17Z WARN tinymist::server::lsp] unhandled request: experimental/onEnter ```plain [2024-06-18T17:07:10Z INFO tinymist] starting generic LSP server: LspArgs { mirror: MirrorArgs { mirror: "", replay: "", }, font: FontArgs { font_paths: [], no_system_fonts: false, }, } [2024-06-18T17:07:10Z INFO tinymist::harness] handling initialize - (0) at Instant { tv_sec: 110630, tv_nsec: 970060732 } [2024-06-18T17:07:10Z INFO tinymist::server::lsp_init] initialized with const_config ConstConfig { position_encoding: Utf16, cfg_change_registration: 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 } [2024-06-18T17:07:10Z INFO tinymist::server::lsp_init] initialized with config Config { notify_compile_status: false, compile: CompileConfig { roots: ["/home/runge/writings/phys-notes/gauge-cpt"], output_path: "", export_pdf: Auto, root_path: None, font_opts: CompileFontOpts { font_profile_cache_path: "", font_paths: [], no_system_fonts: false }, system_fonts: Some(true), font_paths: [], fonts: OnceCell(Uninit), notify_compile_status: true, periscope_args: None, typst_extra_args: Some(CompileExtraOpts { root_dir: None, entry: None, inputs: {}, font_paths: [] }), preferred_theme: None, has_default_entry_path: false }, semantic_tokens: Enable, formatter: Disable, formatter_print_width: 120 } [2024-06-18T17:07:10Z INFO tinymist::server::compiler_init] creating SharedFontResolver with CompileFontOpts { font_profile_cache_path: "", font_paths: [], no_system_fonts: false } [2024-06-18T17:07:10Z INFO tinymist::actor::format] formatting thread with config: FormatConfig { mode: Disable, width: 120, } [2024-06-18T17:07:10Z INFO tinymist::actor] TypstActor: creating server for primary, entry: Workspace { root: "/home/runge/writings/phys-notes/gauge-cpt", main: None }, inputs: {} [2024-06-18T17:07:10Z INFO tinymist::harness] handled initialize - (0) in 1.75ms [2024-06-18T17:07:10Z INFO tinymist::harness] waiting for initialized notification [2024-06-18T17:07:10Z INFO tinymist::server::lsp] server initialized [2024-06-18T17:07:10Z INFO tinymist::server::lsp] notifying textDocument/didOpen - at Instant { tv_sec: 110630, tv_nsec: 976798443 } [2024-06-18T17:07:10Z INFO tinymist::server::lsp] did open Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/home/runge/writings/phys-notes/gauge-cpt/main.typ", query: None, fragment: None } [2024-06-18T17:07:10Z INFO tinymist::state] create source: "/home/runge/writings/phys-notes/gauge-cpt/main.typ" [2024-06-18T17:07:11Z INFO tinymist::actor::typ_client] the entry file of TypstActor(primary) is changing to Workspace { root: "/home/runge/writings/phys-notes/gauge-cpt", main: Some(/main.typ) } [2024-06-18T17:07:11Z INFO typst_ts_compiler::service::diag::console] /main.typ: compiling ... [2024-06-18T17:07:11Z INFO tinymist::state] file focused[implicit,o]: Some("/home/runge/writings/phys-notes/gauge-cpt/main.typ") [2024-06-18T17:07:11Z INFO tinymist::server::lsp] notifing textDocument/didOpen succeeded in 1.06s [2024-06-18T17:07:11Z INFO tinymist::actor::export] RenderActor: document is not ready [2024-06-18T17:07:11Z INFO tinymist::harness] handling workspace/executeCommand - (1) at Instant { tv_sec: 110632, tv_nsec: 34771663 } [2024-06-18T17:07:11Z INFO tinymist::server::lsp] first manual focusing is coming [2024-06-18T17:07:11Z INFO tinymist::harness] handled workspace/executeCommand - (1) in 18.18µs [2024-06-18T17:07:11Z INFO tinymist::harness] handling textDocument/documentColor - (2) at Instant { tv_sec: 110632, tv_nsec: 34829327 } [2024-06-18T17:07:11Z INFO typst_ts_compiler::service::diag::console] /main.typ: Compilation succeeded in 57.745023ms [2024-06-18T17:07:11Z INFO tinymist::actor::editor] received diagnostics from primary: diag(Some(0)) [2024-06-18T17:07:11Z INFO tinymist::actor::typ_server] CompileServerActor: evict compilation cache in 23.216µs [2024-06-18T17:07:11Z INFO typst_ts_compiler::service::diag::console] /main.typ: compiling ... [2024-06-18T17:07:11Z INFO typst_ts_compiler::service::diag::console] /main.typ: Compilation succeeded in 1.218177ms [2024-06-18T17:07:11Z INFO tinymist::actor::editor] received diagnostics from primary: diag(Some(0)) [2024-06-18T17:07:11Z INFO tinymist::actor::typ_server] CompileServerActor: evict compilation cache in 16.894µs [2024-06-18T17:07:11Z INFO tinymist::harness] handled textDocument/documentColor - (2) in 59.06ms [2024-06-18T17:07:11Z INFO tinymist::harness] handling textDocument/hover - (3) at Instant { tv_sec: 110632, tv_nsec: 93903896 } [2024-06-18T17:07:11Z INFO tinymist::harness] handled textDocument/hover - (3) in 59.62µs [2024-06-18T17:07:11Z INFO tinymist::server::lsp] notifying $/cancelRequest - at Instant { tv_sec: 110632, tv_nsec: 93967168 } [2024-06-18T17:07:11Z WARN tinymist::server::lsp] unhandled notification: $/cancelRequest [2024-06-18T17:07:11Z INFO tinymist::harness] handling textDocument/codeAction - (4) at Instant { tv_sec: 110632, tv_nsec: 93979919 } [2024-06-18T17:07:11Z INFO tinymist::harness] handled textDocument/codeAction - (4) in 26.48µs [2024-06-18T17:07:11Z INFO tinymist::server::lsp] notifying $/setTrace - at Instant { tv_sec: 110632, tv_nsec: 94009267 } [2024-06-18T17:07:11Z WARN tinymist::server::lsp] unhandled notification: $/setTrace [2024-06-18T17:07:11Z INFO tinymist::server::lsp] notifying workspace/didChangeConfiguration - at Instant { tv_sec: 110632, tv_nsec: 94016500 } [2024-06-18T17:07:11Z INFO tinymist::server::lsp] notifing workspace/didChangeConfiguration succeeded in 20.64µs [2024-06-18T17:07:11Z INFO tinymist::server::lsp] notifying $/cancelRequest - at Instant { tv_sec: 110632, tv_nsec: 94039571 } [2024-06-18T17:07:11Z WARN tinymist::server::lsp] unhandled notification: $/cancelRequest [2024-06-18T17:07:11Z INFO tinymist::harness] handling textDocument/codeAction - (5) at Instant { tv_sec: 110632, tv_nsec: 94047436 } [2024-06-18T17:07:11Z INFO tinymist::harness] handled textDocument/codeAction - (5) in 13.53µs [2024-06-18T17:07:11Z INFO tinymist::server::lsp] notifying $/cancelRequest - at Instant { tv_sec: 110632, tv_nsec: 94063771 } [2024-06-18T17:07:11Z WARN tinymist::server::lsp] unhandled notification: $/cancelRequest [2024-06-18T17:07:11Z INFO tinymist::harness] handling textDocument/codeAction - (6) at Instant { tv_sec: 110632, tv_nsec: 94072581 } [2024-06-18T17:07:11Z INFO tinymist::harness] handled textDocument/codeAction - (6) in 14.78µs [2024-06-18T17:07:11Z INFO tinymist::server::lsp] notifying $/setTrace - at Instant { tv_sec: 110632, tv_nsec: 94090404 } [2024-06-18T17:07:11Z WARN tinymist::server::lsp] unhandled notification: $/setTrace [2024-06-18T17:07:11Z INFO tinymist::server::lsp] notifying workspace/didChangeConfiguration - at Instant { tv_sec: 110632, tv_nsec: 94096910 } [2024-06-18T17:07:11Z INFO tinymist::server::lsp] notifing workspace/didChangeConfiguration succeeded in 8.73µs [2024-06-18T17:07:11Z INFO tinymist::harness] handling textDocument/documentSymbol - (7) at Instant { tv_sec: 110632, tv_nsec: 94107743 } [2024-06-18T17:07:11Z INFO tinymist_query::syntax::lexical_hierarchy] lexical hierarchy analysis took 136.667µs [2024-06-18T17:07:11Z INFO tinymist::harness] handled textDocument/documentSymbol - (7) in 387.47µs [2024-06-18T17:07:11Z INFO tinymist::harness] handling textDocument/foldingRange - (8) at Instant { tv_sec: 110632, tv_nsec: 94500743 } [2024-06-18T17:07:11Z INFO tinymist_query::syntax::lexical_hierarchy] lexical hierarchy analysis took 145.987µs [2024-06-18T17:07:11Z INFO tinymist::harness] handled textDocument/foldingRange - (8) in 245.34µs [2024-06-18T17:07:11Z INFO tinymist::harness] handling textDocument/codeLens - (9) at Instant { tv_sec: 110632, tv_nsec: 94749449 } [2024-06-18T17:07:11Z INFO tinymist::harness] handled textDocument/codeLens - (9) in 38.40µs [2024-06-18T17:07:11Z INFO tinymist::harness] handling textDocument/semanticTokens/full - (10) at Instant { tv_sec: 110632, tv_nsec: 94790819 } [2024-06-18T17:07:11Z INFO tinymist::harness] handled textDocument/semanticTokens/full - (10) in 436.36µs [2024-06-18T17:07:11Z INFO tinymist::server::lsp] notifying $/cancelRequest - at Instant { tv_sec: 110632, tv_nsec: 95232476 } [2024-06-18T17:07:11Z WARN tinymist::server::lsp] unhandled notification: $/cancelRequest [2024-06-18T17:07:11Z INFO tinymist::harness] handling textDocument/codeAction - (11) at Instant { tv_sec: 110632, tv_nsec: 95241194 } [2024-06-18T17:07:11Z INFO tinymist::harness] handled textDocument/codeAction - (11) in 17.26µs [2024-06-18T17:07:11Z INFO tinymist::server::lsp] notifying $/cancelRequest - at Instant { tv_sec: 110632, tv_nsec: 95322490 } [2024-06-18T17:07:11Z WARN tinymist::server::lsp] unhandled notification: $/cancelRequest [2024-06-18T17:07:11Z INFO tinymist::harness] handling textDocument/codeAction - (12) at Instant { tv_sec: 110632, tv_nsec: 95330280 } [2024-06-18T17:07:11Z INFO tinymist::harness] handled textDocument/codeAction - (12) in 12.94µs [2024-06-18T17:07:11Z INFO tinymist::server::lsp] notifying $/cancelRequest - at Instant { tv_sec: 110632, tv_nsec: 95346048 } [2024-06-18T17:07:11Z WARN tinymist::server::lsp] unhandled notification: $/cancelRequest [2024-06-18T17:07:11Z INFO tinymist::harness] handling textDocument/codeLens - (13) at Instant { tv_sec: 110632, tv_nsec: 95350166 } [2024-06-18T17:07:11Z INFO tinymist::harness] handled textDocument/codeLens - (13) in 22.71µs [2024-06-18T17:07:11Z INFO typst_ts_compiler::service::diag::console] /main.typ: compiling ... [2024-06-18T17:07:11Z INFO tinymist::server::compiler] new settings applied [2024-06-18T17:07:11Z INFO tinymist::server::lsp] new settings applied [2024-06-18T17:07:11Z INFO typst_ts_compiler::service::diag::console] /main.typ: Compilation succeeded in 962.279µs [2024-06-18T17:07:11Z INFO tinymist::actor::editor] received diagnostics from primary: diag(Some(0)) [2024-06-18T17:07:11Z INFO tinymist::actor::typ_server] CompileServerActor: evict compilation cache in 21.851µs [2024-06-18T17:07:11Z INFO tinymist::server::compiler] new settings applied [2024-06-18T17:07:11Z INFO tinymist::server::lsp] new settings applied [2024-06-18T17:07:12Z INFO tinymist::harness] handling textDocument/codeAction - (14) at Instant { tv_sec: 110632, tv_nsec: 993320994 } [2024-06-18T17:07:12Z INFO tinymist::harness] handled textDocument/codeAction - (14) in 90.84µs [2024-06-18T17:07:12Z INFO tinymist::harness] handling textDocument/documentSymbol - (15) at Instant { tv_sec: 110632, tv_nsec: 994238860 } [2024-06-18T17:07:12Z INFO tinymist_query::syntax::lexical_hierarchy] lexical hierarchy analysis took 122.363µs [2024-06-18T17:07:12Z INFO tinymist::harness] handled textDocument/documentSymbol - (15) in 241.18µs [2024-06-18T17:07:13Z INFO tinymist::harness] handling textDocument/codeAction - (16) at Instant { tv_sec: 110633, tv_nsec: 476393477 } [2024-06-18T17:07:13Z INFO tinymist::harness] handled textDocument/codeAction - (16) in 131.44µs [2024-06-18T17:07:16Z INFO tinymist::harness] handling textDocument/codeLens - (17) at Instant { tv_sec: 110636, tv_nsec: 694650315 } [2024-06-18T17:07:16Z INFO tinymist::harness] handled textDocument/codeLens - (17) in 218.63µs [2024-06-18T17:07:16Z INFO tinymist::harness] handling experimental/onEnter - (18) at Instant { tv_sec: 110636, tv_nsec: 950703174 } [2024-06-18T17:07:16Z WARN tinymist::server::lsp] unhandled request: experimental/onEnter [2024-06-18T17:07:17Z INFO tinymist::harness] handling experimental/onEnter - (19) at Instant { tv_sec: 110637, tv_nsec: 398337333 } [2024-06-18T17:07:17Z WARN tinymist::server::lsp] unhandled request: experimental/onEnter [2024-06-18T17:07:17Z INFO tinymist::harness] handling experimental/onEnter - (20) at Instant { tv_sec: 110637, tv_nsec: 558261604 } [2024-06-18T17:07:17Z WARN tinymist::server::lsp] unhandled request: experimental/onEnter [2024-06-18T17:07:17Z INFO tinymist::harness] handling experimental/onEnter - (21) at Instant { tv_sec: 110637, tv_nsec: 721348318 } [2024-06-18T17:07:17Z WARN tinymist::server::lsp] unhandled request: experimental/onEnter [2024-06-18T17:07:17Z INFO tinymist::harness] handling experimental/onEnter - (22) at Instant { tv_sec: 110637, tv_nsec: 894950175 } [2024-06-18T17:07:17Z WARN tinymist::server::lsp] unhandled request: experimental/onEnter [2024-06-18T17:07:18Z INFO tinymist::harness] handling experimental/onEnter - (23) at Instant { tv_sec: 110638, tv_nsec: 115158193 } [2024-06-18T17:07:18Z WARN tinymist::server::lsp] unhandled request: experimental/onEnter [2024-06-18T17:07:22Z INFO tinymist::harness] handling textDocument/codeLens - (24) at Instant { tv_sec: 110642, tv_nsec: 180639526 } [2024-06-18T17:07:22Z INFO tinymist::harness] handled textDocument/codeLens - (24) in 97.01µs [2024-06-18T17:07:41Z INFO tinymist::harness] handling workspace/executeCommand - (25) at Instant { tv_sec: 110661, tv_nsec: 648435151 } [2024-06-18T17:07:41Z INFO tinymist::actor::typ_client] the entry file of TypstActor(primary) is changing to Workspace { root: "/home/runge/writings/phys-notes/gauge-cpt", main: None } [2024-06-18T17:07:41Z INFO tinymist::actor::typ_client] TypstActor: removing diag [2024-06-18T17:07:41Z INFO tinymist::server::lsp] file focused: None [2024-06-18T17:07:41Z INFO tinymist::harness] handled workspace/executeCommand - (25) in 115.52µs [2024-06-18T17:07:41Z INFO tinymist::actor::editor] received diagnostics from primary: diag(None) [2024-06-18T17:08:21Z INFO tinymist::harness] handling workspace/executeCommand - (26) at Instant { tv_sec: 110701, tv_nsec: 328072922 } [2024-06-18T17:08:21Z INFO tinymist::harness] handled workspace/executeCommand - (26) in 28.91µs ```

tinymist client log(Help -> Toggle Developer Tools -> Console):

[Extension Host] validate tinymist args 

Additional context

Myriad-Dreamin commented 2 weeks ago

did you override an old binary?

RungeCC commented 2 weeks ago

Well, I didn't.

However since the system is NixOS so perhaps they did.

I'm no sure where's the root of this problem.

Myriad-Dreamin commented 2 weeks ago

From the log, some commits before 0.11.11 are not applied when building this binary, like https://github.com/Myriad-Dreamin/tinymist/commit/340410fe63325060b5f2bc654013b8fce012512c.

RungeCC commented 2 weeks ago

You are right, since the version is v0.11.10 but not v0.11.11.

Thank you, I will close this since I've switched to v0.11.11 and this issue is solved.