Enter-tainer / typst-preview

[DEPRECATED] Use tinymist instead

Home Page:https://Enter-tainer.github.io/typst-preview/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can not preview latest Typst version (`v0.11.0`)

alexmodrono opened this issue · comments

Describe the bug
On March 15, 2024, Typst v0.11.0 was released, including many necessary changes to the table function, as well as introducing packages that are a huge improvement of QOL when using Typst.

Be that as it may, it is impossible to use any v0.11.0 package and still be able to use typst-preview given that the following error is raised:

error: package requires typst 0.11.0 or newer (current version is 0.10.0)
  ┌─ /[...]/main.typ:2:8
  │
2 │ #import "@preview/drafting:0.2.0": *
  │         ^^^^^^^^^^^^^^^^^^^^^^^^^

To Reproduce
Steps to reproduce the behavior (Library test):

  1. Open a typst document.
  2. Import any Typst package that requires v0.11.0
  3. The error is raised.

Expected behavior
Preview the document with the new package's functionality.

Package/Software version:

VSCode version (Help → About):

Version: 1.87.2
Commit: 863d2581ecda6849923a2118d93a088b0745d9d6
Date: 2024-03-08T15:20:57.520Z (1 wk ago)
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Darwin arm64 23.1.0

typst-preview extension version: v0.10.10

Logs:

typst-preview server log(Output Panel -> typst-preview):

[2024-03-17T17:46:52Z DEBUG typst_ts_compiler::service::compile] CompileActor: memory event incoming
[2024-03-17T17:46:52Z DEBUG typst_ts_compiler::service::compile] CompileActor: fs event incoming Some(Update(FileChangeSet { removes: [], inserts: [("/[...]/main.typ", FileSnapshot { mtime: SystemTime { tv_sec: 1710697612, tv_nsec: 697234816 }, content: FileContent { len: 593 } })] }))
[2024-03-17T17:46:52Z DEBUG typst_ts_compiler::service::compile] CompileActor: fs event incoming Some(UpstreamUpdate { changeset: FileChangeSet { removes: [], inserts: [] }, upstream_event: Some(UpstreamUpdateEvent { invalidates: ["/[...]/main.typ"], opaque: Any { .. } }) })
[2024-03-17T17:46:52Z INFO  typst_ts_compiler::service::diag::console] /main.typ: compiling ...
    
[2024-03-17T17:46:52Z INFO  typst_ts_compiler::service::diag::console] /main.typ: Compilation failed after 222µs
    
error: package requires typst 0.11.0 or newer (current version is 0.10.0)
  ┌─ /[...]/main.typ:2:8
  │
2 │ #import "@preview/drafting:0.2.0": *
  │         ^^^^^^^^^^^^^^^^^^^^^^^^^

Additional context
First, I'd like to thank you for your amazing work in this extension which has done wonders for me and allowed me to improve my workflow a lot, and I truly appreciate the effort you've put into developing such an amazing tool.

I know this is probably due to the latest version of Typst (v0.11.0) not being fully supported yet, but, I was wondering, is there any possible workaround or alternative approach that would allow me to use Typst v0.11.0 and still benefit from the preview functionality?

In my current project, using the latest v0.11.0 features is crucial due to the specific requirements of a somewhat important document I'm working on.

Regardless, thank you and sorry in advance.

it will be supported today

Thank you!