Skip to content

Unable to get synvert-ruby to work on a project #108

@mateusdeap

Description

@mateusdeap

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions