Skip to content

syntax_tree gem uses triple dots Ruby >= 2.7 syntax for method parameters #599

@vittorius

Description

@vittorius

Hey all. I'm getting the following error when running the ruby-lsp extension in VS Code:

bundler: failed to load command: ruby-lsp (/Users/vittorius/.rbenv/versions/2.6.9/bin/ruby-lsp)
/Users/vittorius/.rbenv/versions/2.6.9/lib/ruby/gems/2.6.0/gems/syntax_tree-2.3.1/lib/syntax_tree.rb:9:in `require_relative': /Users/vittorius/.rbenv/versions/2.6.9/lib/ruby/gems/2.6.0/gems/syntax_tree-2.3.1/lib/syntax_tree/formatter.rb:12: syntax error, unexpected ... (SyntaxError)
    def initialize(source, ...)
                           ^~~

My project is Ruby 2.6.9.

This means that although ruby-lsp is able of choosing the right Ruby version via the version manager it is not able to support different Ruby versions by itself

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