Skip to content

Biome WASM Runtime Error on macOS: "parking not supported on this platform" #1173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
PerishCode opened this issue Apr 14, 2025 · 2 comments

Comments

@PerishCode
Copy link

PerishCode commented Apr 14, 2025

Thanks for the awesome tool first, it perfectly fits my project, and here's some detailed information of the issue.

By the way, 13.0.28 works, maybe reserve prettier as anothor formatter option cuz biome seems unstable ?

Environment

  • OS: macOS Sonoma 15.3.2 (Build 24D81)
  • Kernel Version: Darwin 24.3.0
  • Node.js: v18.19.0
  • Package verison: [email protected]
  • Biome versions:
    • @biomejs/js-api: 0.7.1
    • @biomejs/wasm-nodejs: 1.9.4
    • @biomejs/wasm-bundler: (transitive dependency)
    • @biomejs/wasm-web: (transitive dependency)

Error Description

When trying to run OpenAPI code generation using swagger-typescript-api, the following error occurs:

ℹ Code generator will use the default template for "api"                                                                                                                                                                                                         10:24:49
ℹ Code generator will use the default template for "routetypes"                                                                                                                                                                                                  10:24:49
ℹ try to get swagger by URL "http://localhost:10086/doc/api"                                                                                                                                                                                                     10:24:49
ℹ start generating your typescript api                                                                                                                                                                                                                           10:24:49
panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/parking_lot_core-0.9.9/src/thread_parker/wasm.rs:26:9:
Parking not supported on this platform

Stack:

Error
    at module.exports.__wbg_new_abda76e883ba8a5f (/Users/perish/Projects/cloud-ide-client/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/wasm-nodejs/biome_wasm.js:797:17)
    at wasm://wasm/0365fcc6:wasm-function[12695]:0xb16589
    at wasm://wasm/0365fcc6:wasm-function[7238]:0x9eb62d
# some other stack info


panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/parking_lot_core-0.9.9/src/thread_parker/wasm.rs:26:9:
Parking not supported on this platform

Stack:

Error
    at module.exports.__wbg_new_abda76e883ba8a5f (/Users/perish/Projects/cloud-ide-client/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/wasm-nodejs/biome_wasm.js:797:17)
    at wasm://wasm/0365fcc6:wasm-function[12695]:0xb16589
    at wasm://wasm/0365fcc6:wasm-function[7238]:0x9eb62d
    at wasm://wasm/0365fcc6:wasm-function[10858]:0xaf04d7
    at wasm://wasm/0365fcc6:wasm-function[12683]:0xb160ce
    at wasm://wasm/0365fcc6:wasm-function[3360]:0x7ab6d6
    at wasm://wasm/0365fcc6:wasm-function[493]:0x2e3572
    at wasm://wasm/0365fcc6:wasm-function[3467]:0x7c348f
    at Workspace.closeFile (/Users/perish/Projects/cloud-ide-client/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/wasm-nodejs/biome_wasm.js:517:18)
    at /Users/perish/Projects/cloud-ide-client/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@biomejs/js-api/dist/index.js:82:32

# some other stack info

Failed to generate API client: WasmError
    at WasmError.fromError (/Users/perish/Projects/cloud-ide-client/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@biomejs/js-api/dist/wasm.js:84:16)
    at wrapError (/Users/perish/Projects/cloud-ide-client/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@biomejs/js-api/dist/wasm.js:93:22)
}
@eldiranym
Copy link

Also experiencing this with:
OS: macOS Sequoia 15.4 (Build 24E248)
Kernel Version: Darwin 24.3.0
Node.js: v20.18.2
Package verison: [email protected]
Biome versions:
@biomejs/js-api: 0.7.1
@biomejs/wasm-nodejs: 1.9.4
@biomejs/wasm-bundler: (transitive dependency)
@biomejs/wasm-web: (transitive dependency)

@ch-liuzhide
Copy link

Here's the same error that occurred in my GitHub Action。

Environment details

 node: v18.20.8 x64
  npm: 10.8.2
  yarn: 1.22.22

Error stack print

[info] Code generator will use the default template for "api"
[info] Code generator will use the default template for "routetypes"
[info] try to get swagger by path "/home/runner/work/WhiskerRAG/WhiskerRAG/openapi.json"
[info] start generating your typescript api
panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/parking_lot_core-0.9.9/src/thread_parker/wasm.rs:26:9:
Parking not supported on this platform

Stack:

Error
    at module.exports.__wbg_new_abda76e883ba8a5f (/opt/hostedtoolcache/node/18.20.8/x64/lib/node_modules/swagger-typescript-api/node_modules/@biomejs/wasm-nodejs/biome_wasm.js:797:17)
    at wasm://wasm/0365fcc6:wasm-function[12695]:0xb16[58](https://github.com/petercat-ai/WhiskerRAG/actions/runs/14572486083/job/40872220835#step:5:59)9
    at wasm://wasm/0365fcc6:wasm-function[7238]:0x9eb62d
    at wasm://wasm/0365fcc6:wasm-function[10858]:0xaf04d7
    at wasm://wasm/0365fcc6:wasm-function[12683]:0xb1[60](https://github.com/petercat-ai/WhiskerRAG/actions/runs/14572486083/job/40872220835#step:5:61)ce
    at wasm://wasm/0365fcc6:wasm-function[2947]:0x756e33
    at wasm://wasm/0365fcc6:wasm-function[1[61](https://github.com/petercat-ai/WhiskerRAG/actions/runs/14572486083/job/40872220835#step:5:62)1]:0x5ad021
    at wasm://wasm/0365fcc6:wasm-function[7494]:0x9f9533
    at wasm://wasm/0365fcc6:wasm-function[4342]:0x88afd4
    at wasm://wasm/0365fcc6:wasm-function[245]:0x20c99f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants