berry icon indicating copy to clipboard operation
berry copied to clipboard

[Bug?]: pnp + prettier + editor SDK crashes vscode

Open scarf005 opened this issue 7 months ago • 0 comments

Self-service

  • [ ] I'd be willing to implement a fix

Describe the bug

Image Image

yarn pnp, with prettier and vite preset, crashes vscode's extension host consistently.

https://yarnpkg.com/getting-started/editor-sdks

To reproduce

  1. clone https://github.com/issues-repros/prettier-pnp-repro
  2. open it in code-insiders
  3. see extension host crashing

Environment

System:
    OS: macOS 15.4.1
    CPU: (10) arm64 Apple M1 Pro
  Binaries:
    Node: 23.11.0 - /private/var/folders/k0/5cj98r7x29j30wk_zzpsrphr0000gn/T/xfs-a4a27a43/node
    Yarn: 4.8.1 - /private/var/folders/k0/5cj98r7x29j30wk_zzpsrphr0000gn/T/xfs-a4a27a43/yarn
    npm: 10.9.2 - /opt/homebrew/bin/npm
    bun: 1.2.6 - ~/.bun/bin/bun

Additional context

to manually setup:

  1. yarn create vite
  2. select react + typescript preset
  3. add prettier
  4. setup vscode SDK

scarf005 avatar May 22 '25 06:05 scarf005