cognitive-engineering-lab / aquascope

Interactive visualizations of Rust at compile-time and run-time
https://cognitive-engineering-lab.github.io/aquascope/
MIT License
1.93k stars 43 forks source link

Building from source fails on Biome JS post install script #134

Open rlorenzoleal opened 1 month ago

rlorenzoleal commented 1 month ago

I'm following the installation from source from the read me. The Biome JS post install script fails with:

[cargo-make] INFO - Running Task: install-aquascope
ws/pnpm
│ Scope: all 4 workspace projects
│ Lockfile is up to date, resolution step is skipped
│ Progress: resolved 1, reused 0, downloaded 0, added 0
│ Packages: +494
│ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
│ Progress: resolved 494, reused 283, downloaded 0, added 0
│ Progress: resolved 494, reused 494, downloaded 0, added 492
│ Progress: resolved 494, reused 494, downloaded 0, added 494, done
│ .../node_modules/puppeteer postinstall$ node install.js
│ .../node_modules/@biomejs/biome postinstall$ node scripts/postinstall.js
│ .../node_modules/@biomejs/biome postinstall: /home/rlorenzoleal/Code/rust/aquascope/frontend/node_modules/.pnpm/@biomejs+biome@1.8.3/node_modules/@biomejs/biome/scripts/postinstall.js:41
│ .../node_modules/@biomejs/biome postinstall:      ? PLATFORMS?.["linux-musl"]?.[arch]
│ .../node_modules/@biomejs/biome postinstall:                  ^
│ .../node_modules/@biomejs/biome postinstall: SyntaxError: Unexpected token '.'
│ .../node_modules/@biomejs/biome postinstall:     at wrapSafe (internal/modules/cjs/loader.js:915:16)
│ .../node_modules/@biomejs/biome postinstall:     at Module._compile (internal/modules/cjs/loader.js:963:27)
│ .../node_modules/@biomejs/biome postinstall:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
│ .../node_modules/@biomejs/biome postinstall:     at Module.load (internal/modules/cjs/loader.js:863:32)
│ .../node_modules/@biomejs/biome postinstall:     at Function.Module._load (internal/modules/cjs/loader.js:708:14)
│ .../node_modules/@biomejs/biome postinstall:     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
│ .../node_modules/@biomejs/biome postinstall:     at internal/main/run_main_module.js:17:47
│ .../node_modules/@biomejs/biome postinstall: Failed
│  ELIFECYCLE  Command failed with exit code 1.
└─ finished
Depot failed with the error: Process `pnpm` exited with non-zero exit code: 1
Preparing a sysroot for Miri (target: x86_64-unknown-linux-gnu)...
A sysroot for Miri is now available in `/home/rlorenzoleal/.cache/miri`.
error: `/home/rlorenzoleal/Code/rust/aquascope/frontend/crates/aquascope_front` is not a directory. --path must point to a directory containing a Cargo.toml file.
Error while executing command, exit code: 101

I'm running on Ubuntu 22.04.4 LTS in a x86 machine

willcrichton commented 1 month ago

If you run ~/.local/bin/pnpm install inside the frontend directory, does that work?

rlorenzoleal commented 1 month ago

Same issue

~/C/r/aquascope/frontend main ❱ ~/.local/bin/pnpm install
Scope: all 4 workspace projects
Lockfile is up to date, resolution step is skipped
Packages: +494
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

   ╭─────────────────────────────────────────────────────────────────╮
   │                                                                 │
   │                Update available! 9.1.1 → 9.6.0.                 │
   │   Changelog: https://github.com/pnpm/pnpm/releases/tag/v9.6.0   │
   │         Run a script from: https://pnpm.io/installation         │
   │                                                                 │
   │     Follow @pnpmjs for updates: https://twitter.com/pnpmjs      │
   │                                                                 │
   ╰─────────────────────────────────────────────────────────────────╯

Progress: resolved 494, reused 494, downloaded 0, added 0, done
node_modules/.pnpm/puppeteer@19.6.0/node_modules/puppeteer: Running postinstall script...
node_modules/.pnpm/@biomejs+biome@1.8.3/node_modules/@biomejs/biome: Running postinstall script, failed in 60ms
.../node_modules/@biomejs/biome postinstall$ node scripts/postinstall.js
│ /home/rlorenzoleal/Code/rust/aquascope/frontend/node_modules/.pnpm/@biomejs+biome@1.8.3/node_modules/@biomejs/biome/scripts/postinstall.js:41
│       ? PLATFORMS?.["linux-musl"]?.[arch]
│                   ^
│ SyntaxError: Unexpected token '.'
│     at wrapSafe (internal/modules/cjs/loader.js:915:16)
│     at Module._compile (internal/modules/cjs/loader.js:963:27)
│     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
│     at Module.load (internal/modules/cjs/loader.js:863:32)
│     at Function.Module._load (internal/modules/cjs/loader.js:708:14)
│     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
│     at internal/main/run_main_module.js:17:47
└─ Failed in 61ms at /home/rlorenzoleal/Code/rust/aquascope/frontend/node_modules/.pnpm/@biomejs+biome@1.8.3/node_modules/@biomejs/biome
 ELIFECYCLE  Command failed with exit code 1.