Closed sumanssaurabh closed 11 months ago
+1
This happened to me this morning after I upgraded VS Code to 1.79.0
This also happended to me today, my vs code version is 1.79.0
Same here 1.79.0
Me also happened on vscode 1.79.0.
+1
workaround suggested in https://github.com/prettier/prettier-vscode/issues/3019#issuecomment-1583356998
Quick fix, add to project settings in .vscode/settings.json
"prettier.prettierPath": "./node_modules/prettier"
same problem
The problem started for me after I went from 1.78.2 to 1.79.0.
Same here
+1
I just attempted to report the issue and found this one.
+1
+1 also happens when running vscode in wsl
+1
And my vs code version is 1.79.0
same problem here!!
I've the same issue with vscode 1.79.0
Same problem directly after upgrade VS Code. The fix suggested above by @sumanssaurabh fixed it straight away, no reload/restart required...thanks very much for that! 🙏
+1
Solved with @sumanssaurabh fix, thanks man ❤️
+1 that it started happening when I upgraded my VSCode, but @sumanssaurabh 's fix worked perfectly for me too.
+1 here.... I was going crazy thinking I'd somehow broken my vscode installation.
+1 first time trying the prettier extension and this happened :(
Here is a small quickfix.
Create a file in the root of the project; .vscode/settings.json
{
...
"prettier.prettierPath": "./node_modules/prettier"
}
workaround suggested in #3019 (comment)
Quick fix, add to project settings in .vscode/settings.json
"prettier.prettierPath": "./node_modules/prettier"
Solved with your fix, man!! Tksss
@sumanssaurabh it works ! thanks man.
workaround suggested in #3019 (comment)
Quick fix, add to project settings in .vscode/settings.json
"prettier.prettierPath": "./node_modules/prettier"
This solved here. Thanks!
workaround suggested in #3019 (comment)
Quick fix, add to project settings in .vscode/settings.json
"prettier.prettierPath": "./node_modules/prettier"
thank you so much, fixed it!
It also works by adding it to the VSCode configuration like this:
Looking for Prettier Path and adding ./node_modules/prettier
The correction must be made by vscode, the problem is in the extension installation
This solution doesn't work well if the file is not together with node_modules
workaround suggested in #3019 (comment)
Quick fix, add to project settings in .vscode/settings.json
"prettier.prettierPath": "./node_modules/prettier"
this worked like a charm! thanks a lot
+1
I'll work on this. So please do not post any more +1
comments..
Has anyone had this happen in an environment other than ssh? I could not reproduce this on my local machine (MacOS).
Has anyone had this happen in an environment other than ssh? I could not reproduce this on my local machine (MacOS).
I had that problem in my local WSL2 environment.
Thanks, but I think WSL's VSCode uses ssh internally. Right?
Thanks, but I think WSL's VSCode uses ssh internally. Right?
I'm not sure if you use SSH
.
However, it is inferred from VSCode's connection to work remotely.
./node_modules/prettier
This fixed it, thanks
+1
I have managed to solve it in the following way:
npm install -g prettier
/home/user/.nvm/versions/node/v12.16.1/lib/node_modules/
in my case)npm root -g
/prettier
)I have managed to solve it in the following way:
1. Install Prettier as a global dependency
npm install -g prettier
2. Obtain the installation path of global npm dependencies (`/home/user/.nvm/versions/node/v12.16.1/lib/node_modules/` in my case)
npm root -g
3. Navigate to VSCode Prettier Path configuration section and paste the path + ` /prettier`)
I did the same thing, but didn't comment it as a solution as it's hacky and not documented.
Alguém já viu isso acontecer em um ambiente diferente do ssh? Não consegui reproduzir isso na minha máquina local (MacOS).
Just install Debian or Ubuntu on Windows WSL and try to use prettier with the latest version of VSCODE
I'm also having this happen when using Docker and remote Dev Containers. Host machine is MacOS.
+1 Having the same problem with WSL Ubuntu on a Windows host
Same problem the said temporary fix above doesn't work with npm/pnpm workspace installed prettier.
workaround suggested in #3019 (comment)
Quick fix, add to project settings in .vscode/settings.json
"prettier.prettierPath": "./node_modules/prettier"
Had the same problem with WSL Ubuntu in Windows and the above worked for me
workaround suggested in #3019 (comment)
Quick fix, add to project settings in .vscode/settings.json
"prettier.prettierPath": "./node_modules/prettier"
Thanks! This fixed the issue for me.
Inside a devcontainer:
npm install -g prettier
nvm install XX.xx.yy
← change XX.xx.yy
to the node version to needed.devcontainer/devcontainer.json
set
"prettier.prettierPath": "$NVM_DIR/current/lib/node_modules"
Duplicate of #3019
same problem
lol why you get down-voted hahahhaa ... anyways happened to me as well, going to try one of these fixes
Same problem here
Edited by maintainer
https://github.com/prettier/prettier-vscode/issues/3020#issuecomment-1586703424
Type: Bug
Prettier running in ssh remote gives error vscode TypeError: Cannot read properties of undefined (reading 'uid') at Object.statSync (/home/ubuntu/.vscode-server/bin/b380da4ef1ee00e224a15c1d4d9793e27c2b6302/node_modules/graceful-fs/polyfills.js:313:17)
Extension version: 9.13.0 VS Code version: Code 1.79.0 (b380da4ef1ee00e224a15c1d4d9793e27c2b6302, 2023-06-07T14:26:35.552Z) OS version: Windows_NT x64 10.0.19045 Modes: Connection to 'ssh-remote+neo' could not be established
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz (4 x 2400)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.89GB (8.05GB free)| |Process Argv|| |Screen Reader|no| |VM|0%| Connection to 'ssh-remote+neo' could not be established