Closed langalex closed 2 years ago
I am having the same error on Windows 10 (latest build) when running prettier . --write
using default options. Both ruby
and node
are in the PATH
and on the latest versions. All other prettier
plugins I am using work just fine, this plugin just crashes on every single run. Anyone got some idea what could be causing the issue?
Same issue here.
I am also running into a similar issue. When I run it from the command line it works 99% of the time but when it is ran from the plugin in VS code I get the failed to spawn the parser sever 100% of the time.
Operating system: Arch Linux; Build ID: rolling Ruby version: 2.7.5 Node version: 14.18.1 @prettier/plugin-ruby or prettier gem version: 2.5.0
Hey @langalex thanks for the report. I'm adding a PRETTIER_RUBY_TIMEOUT_MS
environment variable for the next release. Test it out and let me know how it goes.
Running Prettier with the Ruby plugin randomly crashes on CI at
parser/getInfo.js:8
. This line has a 5s timeout, so it seems like the timeout is too small sometimes (but this is just a guess). Would you be open to making the timeout configurable (via ENV?), or any other ideas?Metadata
@prettier/plugin-ruby
orprettier
gem version: 2.0.0rubyArrayLiteral
-true
rubyHashLabel
-true
rubyModifier
-true
rubySingleQuote
-true
rubyToProc
-false
trailingComma
-"none"
Input
yarn run prettier --check .
Output