synvert-ruby icon indicating copy to clipboard operation
synvert-ruby copied to clipboard

Unable to get synvert-ruby to work on a project

Open mateusdeap opened this issue 3 months ago • 0 comments

I know the issue description is generic, but I wasn't able to pinpoint the exact problem and am actually hoping for some guidance or debugging tips.

I'm trying to run the strong_params snippet on a project running ruby 3.3.7. I installed synvert-ruby as instructed in the README and this was the first issue I was faced with:

warning: parser/current is loading parser/ruby33, which recognizes 3.3.0-dev-compliant syntax, but you are running 3.3.7.
Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.

After going through the parser repo, installed the latest version only to get the same warning, but referring to ruby 3.3.9. I got it working by manually installing parser version 3.3.7.4 and uninstalling it's latest version. I know it's related to parser but I feel like it's relevant to post this info.

After that, if I run synvert-ruby -r strong_parameters (I ran with --sync beforehand) I get a error code of 1 but no logs nor explanation as to what went wrong.

Furthermore, if I attempt to run the snippet using its URL, I get that it ran, but no files are edited.

Anyone can maybe give me some guidance on how to debug this?

mateusdeap avatar Oct 01 '25 11:10 mateusdeap