添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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

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 Value GPU Status 2d_canvas: enabled
canvas_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

Connection to 'ssh-remote+neo' could not be established

workaround suggested in #3019 (comment)

Quick fix, add to project settings in .vscode/settings.json

"prettier.prettierPath": "./node_modules/prettier"
  epascal, NattakornS, CanhhnaC, theeric36, rlnt, adsonmacedo, felixfon, MichalLytek, AnmSaiful, zarix, and 465 more reacted with thumbs up emoji
  ognjenvucko, JoarDev, andremury, lennart-m, axesilo, victor-pagnozi, mehdi-benhariz, MusicFreak456, bananabrann, josejefferson, and 99 more reacted with hooray emoji
  jhxxs reacted with confused emoji
  hktang, gabrnunes, uragirii, biggyspender, davidsoncarrilho, radium-v, aa-avila, rb-cesar, tehbelinda, ilhamfi27, and 76 more reacted with heart emoji
  punyabz8, tmkasun, rohan-fowlerharper, lucasbazev, bo-hyeon, mostafa-K-raihan, apgrjm, fabioMendez95, Koki-Hoyashita, rowan-lovejoy, and 58 more reacted with rocket emoji
  jhemarcos, koechkevin, and jhsul reacted with eyes emoji
    All reactions
          

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!
PMudra, jdavidferreira, jucdev, yudai-nkt, haltcase, and developomp reacted with thumbs down emoji adnauseum, jeremydthomas, codebycarlos, kevoneil, grentank, and grahamb reacted with laugh emoji All reactions PMudra, jdavidferreira, yudai-nkt, haltcase, jucdev, and developomp reacted with thumbs down emoji mohamadoudou, punyabz8, webdingens, and TheodoreKrypton reacted with laugh emoji NeelDigonto reacted with confused emoji All reactions

Here is a small quickfix.
Create a file in the root of the project; .vscode/settings.json

"prettier.prettierPath": "./node_modules/prettier" ucabiinf, jeremydthomas, lumentut, pomber, 1103409364, CosminHorjea, PMudra, CruelEngine, mrgadotti, TitusKirch, and 19 more reacted with thumbs up emoji TitusKirch, aa-avila, dovidweisz, wiinxt, WalyssonPaiva, and andremiani reacted with heart emoji All reactions

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

PMudra, umstek, jdavidferreira, yudai-nkt, jucdev, and developomp reacted with thumbs down emoji oezguerisbert, Matheus0liveira, 709kyb, baliestri, srph, vasileermicioi, akospaska, CruelEngine, justajwolf, RobertoANavarroC, and 3 more reacted with heart emoji All reactions

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!

Soviut, t7tran, yudai-nkt, haltcase, jucdev, and hyunbinseo reacted with thumbs down emoji TeamWolfyta, mickael-h, and farzadso reacted with laugh emoji All reactions * fix: remove random icon to avoid hydratation error * feat: create start canvas with moving ball * feat: add paddle moves * feat: add request api libs * docs: env example * feat: add api logic with axios * feat: add react query with examples querying * game events initial structure implemented * first ball physics prototype * simple gateway socket connection * feat: add config to allow websocket nextjs * fix: prettier bug in recent version prettier/prettier-vscode/issues/3020 * fix: env logic inside project * feat: moving ball from websocket working * feat: create profile public popover * style: game based on layout * feat: add react hook form into channel creation * feat: create chat context * style: add cursor pointer into close action * feat: use context and adjust resizes * feat: create chat bubbles inside opened channel * feat: add user actions into open channel * feat: remove not used test function --------- Co-authored-by: Guilherme Martinelli <[email protected]>

Hello,

I am currently experiencing an issue with the Prettier module. It appears to have stopped functioning correctly for me starting from version 9.12.0. The plugin is now prompting me to npm install the module either locally or globally.

As a temporary workaround, I have downgraded to version 9.10.4, which has allowed me to continue using the module as usual. However, this is not a long-term solution.

I have attempted to follow the solution suggested by @sumanssaurabh, but unfortunately, it did not resolve the issue for me.

Could anyone provide some insight or assistance on this matter? Any help would be greatly appreciated.

Thank you.

Hello @Soviut,

Thank you for your response. I apologize for any confusion, but I was under the impression that this issue was still open as it doesn't explicitly state that it's closed. Could you kindly clarify why this issue is considered closed? Also, could you please point me to the solution that resolved the original issue? This information will help me understand if my problem is indeed different and warrants a new issue.

Thank you for your assistance.

@Hibrix-net It was closed because the issue was solved in a recent update and the proposed workaround is no longer required.

The latest version is v9.16.0, right? but I'm still encountering the issue. I'm curious, am I the only one still experiencing this problem?

@Hibrix-net

I think it's best to do the follow-up in a separate issue as your issue seems a bit different (asking you to do some sort of npm install). And yes the latest version is v9.16.0.

I also recommend adding logs/screenshots to your issue.

Hello @Soviut,

Thank you for your response. However, I believe there might be a misunderstanding. The issue I'm experiencing is not distinct but rather a continuation of the problem discussed in #3019. If you refer to that thread, you'll notice that the problem described there is identical to mine, including the prompt to install the Prettier module.

Many users in this thread are suggesting the solution from #3019, and this issue is also considered a duplicate of that one. Therefore, I believe my issue is not separate but a persistent instance of the original problem.

I hope this clarifies the situation. I appreciate your understanding and assistance.

Thank you for your response. I apologize for any confusion, but I was under the impression that this issue was still open as it doesn't explicitly state that it's closed.

It's closed in the timeline and says "Closed" at the top of the issue and in the header sticky header.

However, for this issue and #3019 all you need to do is fully restart VSCode after it's been updated to the latest version v1.79.2 (or later) AND the prettier plugin for VSCode has been updated to the latest version v9.16.0 (or later). If this doesn't work for some reason, restart your entire computer.

If it still doesn't work and you see a Prettier in the bottom right corner of VSCode is red, then start a new issue, paste your log and any relevant screenshots.

Thank you for your response. I apologize for any confusion, but I was under the impression that this issue was still open as it doesn't explicitly state that it's closed.

It's closed in the timeline and says "Closed" at the top of the issue and in the header sticky header.

However, for this issue and #3019 all you need to do is fully restart VSCode after it's been updated to the latest version v1.79.2 (or later) AND the prettier plugin for VSCode has been updated to the latest version v9.16.0 (or later). If this doesn't work for some reason, restart your entire computer.

If it still doesn't work and you see a Prettier in the bottom right corner of VSCode is red, then start a new issue, paste your log and any relevant screenshots.

Yes, I already tried what you said several times but didn't worked. If you look at the issue #3019 its seems I'm not the only one who had to downgrade to a previous Prettier version to make it work.

Thanks anyway for your patience.

@Hibrix-net Did you apply the prettier.prettierPath workaround from this issue? If so, remove it: The workaround broke extension version 9.16. This is being tracked in #3041.

Yes, I tried it then removed it but still having the issue with versions above the 9.10.4 + VS Code latest version installed on my Windows 10 machine.