prettierd icon indicating copy to clipboard operation
prettierd copied to clipboard

Error: ENOENT: no such file or directory,

Open vanarok opened this issue 2 years ago • 6 comments

2022-09-23T17:21:58,130239949+04:00

vanarok avatar Sep 23 '22 13:09 vanarok

prettierd after "prettierd restart" only worked for 1-2 minutes and did not work anymore.

vanarok avatar Sep 23 '22 13:09 vanarok

I not have time to figure out what happened, i rolled back to version 21.1

vanarok avatar Sep 23 '22 13:09 vanarok

Hmm it's weird that it's trying to open a file called 1. Not sure what's going on 🤔

Will leave it open and see if someone else can gather more information to share. Thanks for reporting!

fsouza avatar Sep 23 '22 14:09 fsouza

I'm having a similar issue where running prettierd with 0.22.2 sometime causes TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received an instance of Object

node

$ node -v
v16.17.0

prettierd

$ prettierd --version
prettierd 0.22.2

Doing

pkill prettierd

and then cat package.json| prettierd package.json seems to work. ill observe for a while to see If i can reproduce 🤔

qwexvf avatar Oct 07 '22 11:10 qwexvf

@qwexvf yeah, that one was a one-time thing during the deployment, as 0.22 changed the communication protocol between the client and the server, so after an upgrade a restart of the server was necessary. I have a TODO item on how to detect a difference in version and automatically restart the server.

fsouza avatar Oct 07 '22 16:10 fsouza

@fsouza Cool! after some digging I can confirm that it all I needed was a restart for the server! Thanks for letting me know!

qwexvf avatar Oct 08 '22 02:10 qwexvf

I no longer have this problem on the latest version of prettierd.

vanarok avatar Nov 13 '22 11:11 vanarok