Skip to content

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Sep 11, 2025

JS plugins use raw transfer. Raw transfer does not currently support 32-bit or big-endian platforms.

Exit early with a descriptive error message if --experimental-js-plugins option is used on an unsupported platform. This avoids a panic with a weird error later on when first try to create a raw transfer-compatible allocator.

@github-actions github-actions bot added A-cli Area - CLI C-bug Category - Bug labels Sep 11, 2025
Copy link
Member Author

overlookmotel commented Sep 11, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@overlookmotel overlookmotel force-pushed the 09-11-fix_linter_plugins_more_graceful_exit_for_--experimental-js-plugins_cli_option branch from 736cca4 to c7cc8e3 Compare September 11, 2025 13:09
@overlookmotel overlookmotel force-pushed the 09-11-fix_linter_plugins_exit_early_if_js_plugins_enabled_on_unsupported_platforms branch from d1f2494 to 22aedd3 Compare September 11, 2025 13:09
@overlookmotel overlookmotel marked this pull request as ready for review September 11, 2025 13:12
Copy link
Contributor

@camc314 camc314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we fallback to non-raw transfer at some point?

@graphite-app graphite-app bot changed the base branch from 09-11-fix_linter_plugins_more_graceful_exit_for_--experimental-js-plugins_cli_option to graphite-base/13689 September 11, 2025 13:14
@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Sep 11, 2025
@overlookmotel overlookmotel self-assigned this Sep 11, 2025
Copy link
Member Author

overlookmotel commented Sep 11, 2025

Merge activity

  • Sep 11, 1:15 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Sep 11, 1:15 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Sep 11, 1:16 PM UTC: overlookmotel added this pull request to the Graphite merge queue.
  • Sep 11, 1:20 PM UTC: The Graphite merge queue couldn't merge this PR because it had merge conflicts.
  • Sep 11, 1:21 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Sep 11, 1:30 PM UTC: Merged by the Graphite merge queue.

@graphite-app graphite-app bot changed the base branch from graphite-base/13689 to main September 11, 2025 13:19
@overlookmotel
Copy link
Member Author

overlookmotel commented Sep 11, 2025

should we fallback to non-raw transfer at some point?

We could. But:

  1. It'd be really slow (like 5x slower) and
  2. ESLint's AST has a parent property on every AST node. I think I can implement that with raw transfer without too much difficulty, but it'd be pretty much impossible with JSON-based transfer, as no way to create circular references in JSON (well could walk the AST on JS side to add back-references to every node, but that's a further large perf hit).

I'm hoping to implement (2) as one of the first additions after 1st release. It's quite widely used in custom plugins I've looked at.

I assume we don't need to care that much about big-endian, and it's supporting WASM32 that'd be desirable? How important do you think that is?

@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Sep 11, 2025
@overlookmotel overlookmotel force-pushed the 09-11-fix_linter_plugins_exit_early_if_js_plugins_enabled_on_unsupported_platforms branch from 22aedd3 to 19c6f85 Compare September 11, 2025 13:21
@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Sep 11, 2025
…platforms (#13689)

JS plugins use raw transfer. Raw transfer does not currently support 32-bit or big-endian platforms.

Exit early with a descriptive error message if `--experimental-js-plugins` option is used on an unsupported platform. This avoids a panic with a weird error later on when first try to create a raw transfer-compatible allocator.
@graphite-app graphite-app bot force-pushed the 09-11-fix_linter_plugins_exit_early_if_js_plugins_enabled_on_unsupported_platforms branch from 19c6f85 to a294721 Compare September 11, 2025 13:25
@graphite-app graphite-app bot merged commit a294721 into main Sep 11, 2025
17 checks passed
@graphite-app graphite-app bot deleted the 09-11-fix_linter_plugins_exit_early_if_js_plugins_enabled_on_unsupported_platforms branch September 11, 2025 13:30
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Sep 11, 2025
@camc314
Copy link
Contributor

camc314 commented Sep 12, 2025

I assume we don't need to care that much about big-endian, and it's supporting WASM32 that'd be desirable? How important do you think that is?

Probably not very important. I guess it's just something we should do at some point.

This was referenced Sep 16, 2025
camc314 added a commit that referenced this pull request Sep 16, 2025
## [1.16.0] - 2025-09-16

### 🚀 Features

- 97c8d06 linter: Add `preserve-caught-error` rule (#13748) (孔辉)
- 8c19b18 linter/exhaustive-deps: Implement fixer for dep in global
scope (#13783) (camc314)
- 06bce8f linter/exhaustive-deps: Implement fixer for missing dep
(#13782) (camc314)
- a8675f4 linter: Add eslint/class-methods-use-this rule (#12977) (Peter
Cardenas)
- db33196 parser: Adds typescript rule for empty argument list (#13730)
(Karan Kiri)
- 2751193 linter: Add `eslint/no-useless-computed-key` rule (#13428)
(yefan)
- 9a205d1 regex-parser: Parse simple `TemplateLiterals` (#13265) (Sysix)

### 🐛 Bug Fixes

- a2c91cd linter: Drop `rules` to allow mutable access to `ctx_host` in
`run_external_rules` (#13832) (camc314)
- 3af1e5d linter/no-unsafe-declaration-merging: Always mark first span
as primary (#13830) (camc314)
- 1c43c7c linter: Keep message when merging composite fixes (#13827)
(camc314)
- 26af302 linter/exhaustive-deps: Check stable value is on lhs of
assignment expr (#13815) (camc314)
- 4bc12d0 linter/exhaustive-deps: Remove impossible comparison with
parent kind (#13814) (camc314)
- 12baf5e linter/exhaustive-deps: Respect primary span when identifying
disable directive location (#13781) (camc314)
- fa7400a linter/no-undef: False positive with `arguments` in functions
(#13763) (camc314)
- 50e6e3c editor: Restrict servers paths for `oxc.path.server` (#13740)
(Sysix)
- b45077d editor: Strip leading slash for bin path on windows (#13738)
(Sysix)
- 8fa6227 editor: Don't allow `oxc.path.server` for untrusted workspaces
(#13734) (Sysix)
- 56da114 linter/react/jsx-handler-names: Do not detect the function
name within the inline-function's body block (#13456) (Takuji Shimokawa)
- b2bc5b4 linter/react-perf/jsx-no-new-object-as-prop: Skip as/satisfies
exprs (#13718) (camc314)
- ab51394 raw_transfer: Disable layout assertions on some 32-bit
platforms (#13716) (overlookmotel)
- 09428f6 linter/plugins: Remove outdated comment (#13691)
(overlookmotel)
- a294721 linter/plugins: Exit early if JS plugins enabled on
unsupported platforms (#13689) (overlookmotel)
- 68a2280 linter/plugins: More graceful exit for
`--experimental-js-plugins` CLI option (#13688) (overlookmotel)

### 🚜 Refactor

- 395d40d linter: Derive inmpls for `PartialEq`, `Eq` over manual ones
(#13828) (camc314)
- 8e4cd8f linter/func-names: Use `run_once` over looping over all nodes
(#13798) (camc314)
- 7f4e2fe eslint/func-names: Clean up implementation and improve
documentation (#13601) (Antoine Zanardi)
- 137896a language_server: Split options for linting and formatting
(#13627) (Sysix)
- 7346099 linter: Move `oxlint` application code into separate module
(#13745) (overlookmotel)
- 6dd4107 linter: Remove `#[cfg(test)]` attributes from `tester` module
(#13714) (overlookmotel)
- c40c6ef linter/plugins: Directory for JS plugins-related code (#13701)
(overlookmotel)
- a0022c1 linter/plugins: Improve error messages for JS plugins (#13699)
(overlookmotel)
- 1fd993f napi/oxlint: Rename `napi/oxlint2` to `napi/oxlint` (#13682)
(overlookmotel)

### ⚡ Performance

- 90c8286 linter: Detect node types from `let..else` statements (#13690)
(camchenry)
- 08c05df semantic: Make CFG construction a compile-time feature
(#13678) (Boshen)

### 🎨 Styling

- 99a7638 linter: Add comments + re-organise imports (#13715)
(overlookmotel)

### 🧪 Testing

- 18a1145 linter: Add debug assertions for skipping rules (#13724)
(camc314)
- cb080de linter/no-unused-vars: Add test for non ASCII chars in JSX
components (#13820) (camc314)
- b6eba27 linter/no-undef: Add more test cases for `arguments` (#13764)
(camc314)
- fb2d087 linter: Set CWD for tests (#13722) (overlookmotel)

Co-authored-by: camc314 <18101008+camc314@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants