typst / webapp-issues

Issue tracker for Typst's web app.
https://typst.app
13 stars 0 forks source link

Incorrect "Cyclic import" error #254

Closed sevesalm closed 5 days ago

sevesalm commented 10 months ago

Description

Typst Webapp gives an incorrect Cyclic import error in some cases.

How to reproduce:

  1. Start a new project
  2. Rename the initial file to conf.typ (and leave it empty)
  3. Create a new file and name it main.typ
  4. Select main.typ
  5. Paste #import "conf.typ" into the file
  6. See the error Cyclic import line 1

You can switch the preview selector between the files. The error appears when main.typ is being previewed.

Reproduction URL

No response

Browsers

Chrome

OS

macOS

emilyyyylime commented 10 months ago

(As an aside: it's #import, not @import) This seems to go away after a reload

sevesalm commented 10 months ago

(As an aside: it's #import, not @import)

Yes, it was a typo in the bug report, now fixed, thanks for noticing! Tested with the correct symbol 👍🏼 Reload indeed helps so this is nothing critical.