Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

Failed to start parse server #1455

Open
wengzilla opened this issue Oct 17, 2024 · 4 comments
Open

Failed to start parse server #1455

wengzilla opened this issue Oct 17, 2024 · 4 comments

Comments

@wengzilla
Copy link

Currently using VSCode Prettier Plugin v10.4.0 + @prettier/plugin-ruby 4.0.2 + prettier 3.0.3.

I'm getting the following error:

Error: Failed to start parse server.
    at Timeout.<anonymous> (file:///.../node_modules/@prettier/plugin-ruby/src/plugin.js:127:16)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)

However, if I run ./node_modules/.bin/prettier --plugin=@prettier/plugin-ruby --write '**/*' it works no problem. What's going on?

@guillaumewrobel
Copy link

Same with @prettier/plugin-ruby 4.0.4 + prettier 3.3.3

@ilya-gritsenko
Copy link

ilya-gritsenko commented Nov 26, 2024

Same error for me in WSL with @prettier/plugin-ruby 4.0.4 + prettier 3.4.0.

@ilya-gritsenko
Copy link

ilya-gritsenko commented Nov 26, 2024

Did a little debugging and noticed that it's failing after 'require "syntax_tree"'. So I just tried to execute "bundle add" instead of "gem install" like this: "bundle add prettier_print syntax_tree syntax_tree-haml syntax_tree-rbs" and now it's working. I'm thinking it's because I'm using rbenv but not sure.

UPD: if I delete Gemfile it's starting to work

@ilya-gritsenko
Copy link

Downgrading to 4.0.2 also helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants