-
-
Notifications
You must be signed in to change notification settings - Fork 448
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
Regression on package.json finding behavior for globally installed prettier with vscode extension #3045
Comments
experiencing this even on local installation |
I am experiencing the same issue on Windows with globally installed prettier Version: 1.79.2 (user setup) Prettier version v9.16.0
|
I think this might be the change that broke it: d04b294 |
It also broke for me in 9.16 with the same error message (windows). 9.15 works. |
The change d04b294 from 9.16 was reverted. 9.19 is rolling out now. Thanks for reporting. |
9.19 is still broken. 9.15 is still good. |
Still broken |
@ntotten Appears to still be broken on 9.19, requesting re-open of the issue. Just tested. and it's throwing the same error. |
Yes, same here. Still broken. |
@ntotten Can you reopen the issue? |
still broken! |
Workaround: just return to previous version by VSIX example for python-ext |
is it now working for anyone? i still can't use it |
@ntotten Please reopen this issue |
Same pb here |
I'm facing this issue on v10.1.0 |
This seems to do the trick : #3100 (comment) |
same pb here |
same problem |
1 similar comment
same problem |
Folks, please use 👍 reaction instead of ‘+1 comments’. The latter clutter Notifications for other devs and don’t any value. |
Please reopen this issue. |
This did the trick for me:
|
@madaxen86 thanks, it works. {
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.formatOnPaste": true,
"prettier.enable": true,
"prettier.withNodeModules": true,
"prettier.requireConfig": false,
# using nodejs-lts from scoop
"prettier.prettierPath": "C:/Users/Admin/scoop/persist/nodejs-lts/bin/node_modules/prettier/index.cjs",
}
|
For fnm users: {
"prettier.prettierPath": "~/.fnm/aliases/default/lib/node_modules/prettier/index.cjs"
} |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
The prettier vscode extension seems to have had a behavior regression in version 9.16.0. It is no longer able to load the package.json for a globally installed prettier on macOS
Steps To Reproduce:
Expected result
The file is formatted with prettier
Actual result
The document is not formatted and the prettier extension throws an error.
Additional information
Behavior works as expected on extension version 9.15.0. Additionally, prettier is present in the path and can be run as expected from the command line.
I have not checked if this behavior regression is also present on Windows or Linux.
EDIT: as per this reply to the issue, it appears to also effect windows
Here's the ls of the prettier install location ( /usr/local/lib/node_modules/prettier )
All the correct files appear to be present
VS Code Version:
Version: 1.77.3
Commit: 704ed70d4fd1c6bd6342c436f1ede30d1cff4710
Date: 2023-04-12T09:19:37.325Z (2 mos ago)
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Darwin x64 22.3.0
Sandboxed: No
Prettier Extension Version:
v9.16.0
OS and version:
macOS Ventura Version 13.2.1 (22D68)
Prettier Log Output
The text was updated successfully, but these errors were encountered: