syntax_suggest icon indicating copy to clipboard operation
syntax_suggest copied to clipboard

Searching for unexpected `end` syntax errors takes a lot of time. Let this gem do it for you!

Results 9 syntax_suggest issues
Sort by recently updated
recently updated
newest added

The syntax_suggest CLI that ships in Ruby 3.3.0 and Ruby 3.2.3 fails: ``` $ /usr/local/bin/syntax_suggest33 -h /usr/local/lib/ruby/gems/3.3/gems/syntax_suggest-2.0.0/exe/syntax_suggest:3:in `require_relative': cannot load such file -- /usr/local/lib/ruby/gems/3.3/gems/syntax_suggest-2.0.0/lib/syntax_suggest/api (LoadError) from /usr/local/lib/ruby/gems/3.3/gems/syntax_suggest-2.0.0/exe/syntax_suggest:3:in `' from /usr/local/bin/syntax_suggest33:25:in...

I don't know if we can improve this but I hit this syntax error today when writing rspec: ``` Unmatched keyword, missing `end' ? 2 describe "something" do > 3...

The error produced by this (invalid) code is confusing and not helpful: ``` def run_build_script( workspace_dir: ARGV[0], output_dir: ARGV[1], cache_dir: ARGV[2], stack: ENV.fetch("STACK"), ruby_version: ENV.fetch("STACK"), io: STDOUT, ) end ```...

Allows me to use a more recent version of bundler locally without needing to drop CI for Ruby 2.5 (though it's EOL, there's no immediate need to drop it).

skip changelog

Ruby 2.7 goes EOL in March. Let’s rev a major version and drop support for everything prior to 3.0. Also set a minimum Ruby version so people on older rubies...

I wrote a sample RSpec code to test syntax_suggest and Ruby 3.2.0rc1: https://github.com/JunichiIto/syntax_suggest_sandbox I have a wrong spec file: https://github.com/JunichiIto/syntax_suggest_sandbox/blob/main/spec/sample_spec.rb ```ruby RSpec.describe 'sample' do exampledo expect(1 + 1).to eq 2...

This effort was originally started in response to #118 which I kept a log on experiments there for some time. The core goal is more performance. With a lot of...

This is a failing test: https://github.com/zombocom/dead_end/tree/schneems/partition. The file is nine thousand lines and it takes a tad over 1 second to parse which means it hits the timeout. We are...

## Problem To run this against multiple files developers want to run: ``` $ dead_end **/*.rb ``` This doesn't work today due to terminal globbing, which we don't yet support....