quantified-uncertainty / squiggle

An estimation language
https://squiggle-language.com
MIT License
152 stars 23 forks source link

VSCode extension: blank window #3326

Open domdomegg opened 3 months ago

domdomegg commented 3 months ago

Description

Installing the VSCode extension and creating a very simple example:

example.squiggle:

a = normal(0, 1)

Previewing it results in a blank screen. The debug console outputs the error:

Uncaught SyntaxError: Cannot use 'import.meta' outside a module (at index.js:16046:14691)
Screenshot 2024-07-09 at 19 32 17

Steps to reproduce:

  1. Install the VSCode extension
  2. Preview a simple file

Expected behavior:

Shows a preview of the squiggle file

What I got instead:

Blank page

Debugging details

VS Code details: Version: 1.91.0 Commit: ea1445cc7016315d0f5728f8e8b12a45dc0a7286 Date: 2024-07-01T18:53:23.353Z (1 wk ago) Electron: 29.4.0 ElectronBuildId: 9728852 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Darwin arm64 23.5.0

Squiggle details: Extension version v0.9.5

rbcamp commented 2 months ago

I'm getting this also, on 2 Macbook M1 devices, same software versions as reported above.

I wonder if this is a build issue or one of local configuration not being as expected?