jscheid / prettier.el

Prettier code formatting for Emacs.
GNU General Public License v3.0
168 stars 12 forks source link

yarn2 warning disrupts protocol #64

Closed jscheid closed 3 years ago

jscheid commented 3 years ago

Seeing this in *prettier*:

[Warning] The runtime detected new informations in a PnP file; reloading the API instance (/some/path/to/.pnp.js)
jscheid commented 3 years ago

To reproduce:

cd /tmp
mkdir test
cd test
echo '{}' > package.json
yarn set version berry
yarn add prettier
echo 'x=0' > test.js
# Open test.js in Emacs and ensure prettier-mode is active for it
yarn add foo # or any other package
# Make a change to test.js and try saving it -- should hang

At this point, visiting *prettier (local)* should look something like this:

[Warning] The runtime detected new informations in a PnP file; reloading the API instance (/private/tmp/test/.pnp.js)
Pc
bWVyaXlhaA==
V8
Mi4yLjE=
D1
M1
I4
IA==
M1
I4
IA==
M1
I4
Ow==
T17689d5c4ac
T17689d5c477
C0
Z0