-
-
Notifications
You must be signed in to change notification settings - Fork 502
Open
Labels
help-wantedExtra attention is neededExtra attention is neededtriage-pendingAwaiting initial triageAwaiting initial triage
Description
Summary
In a bun project, I don't have node available in the environment (as I'm using nix to manage my developer environment). This extension seems to invoke the prettier bin directly, which results in the binary failing to run due to the shebang line #!/usr/bin/env node. While prettier should be runtime-agnostic (but understandably probably can't fix this), there should be a setting in the extension that allows you to override the runtime used to run prettier eg bun ./node_modules/.bin/prettier.
Github Repository to Reproduce Issue
https://github.com/cdmistman/bun-plugin-svelte
Steps To Reproduce:
- Initialize a Bun project using
bun init bun add prettier -d- Make
.prettierrcfile - Make some changes to
index.tsthat violate your.prettierrc - Run this extension's formatter
Expected result
The file is formatted
Actual result
The file is not formatted
Additional information
Feel free to attach a screenshot.
VS Code Version:
1.78
Prettier Extension Version:
9.13.0
OS and version:
MacOS 13.1
Prettier Log Output
["INFO" - 11:47:12 AM] Extension Name: esbenp.prettier-vscode.
["INFO" - 11:47:12 AM] Extension Version: 9.13.0.
joulev, osenvosem, Creative-Difficulty, KuhlTime, neemski and 4 moreCopilot
Metadata
Metadata
Assignees
Labels
help-wantedExtra attention is neededExtra attention is neededtriage-pendingAwaiting initial triageAwaiting initial triage