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

Syntax error #3

Open
jfeldstein opened this issue Aug 24, 2014 · 3 comments
Open

Syntax error #3

jfeldstein opened this issue Aug 24, 2014 · 3 comments

Comments

@jfeldstein
Copy link

/Users/jordan/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': /Users/jordan/.rvm/gems/ruby-2.0.0-p353/gems/spell_checker-0.0.2/lib/spell_checker/dictionary.rb:47: syntax error, unexpected ',', expecting ')' (SyntaxError)
    File.move (@base_file, File.expand_path(File.dirnam...
                          ^
/Users/jordan/.rvm/gems/ruby-2.0.0-p353/gems/spell_checker-0.0.2/lib/spell_checker/dictionary.rb:47: syntax error, unexpected ')', expecting keyword_end
/Users/jordan/.rvm/gems/ruby-2.0.0-p353/gems/spell_checker-0.0.2/lib/spell_checker/dictionary.rb:48: syntax error, unexpected keyword_do_block, expecting keyword_end
.../original_dictionary.txt") ) do |io|
...                               ^
/Users/jordan/.rvm/gems/ruby-2.0.0-p353/gems/spell_checker-0.0.2/lib/spell_checker/dictionary.rb:56: syntax error, unexpected keyword_do_block, expecting keyword_end
    File.open(@base_file, "w") do |io|
                                 ^
/Users/jordan/.rvm/gems/ruby-2.0.0-p353/gems/spell_checker-0.0.2/lib/spell_checker/dictionary.rb:57: syntax error, unexpected keyword_do_block, expecting keyword_end
      dictionary.each do |word|
                        ^
/Users/jordan/.rvm/gems/ruby-2.0.0-p353/gems/spell_checker-0.0.2/lib/spell_checker/dictionary.rb:60: syntax error, unexpected keyword_end, expecting end-of-input
  from /Users/jordan/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  from /Users/jordan/.rvm/gems/ruby-2.0.0-p353/gems/spell_checker-0.0.2/lib/spell_checker.rb:2:in `<top (required)>'
  from /Users/jordan/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require'
  from /Users/jordan/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
  from /Users/jordan/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
  from 1.pull_all_menus.rb:14:in `<main>'

Working on a pull request now.

@jfeldstein
Copy link
Author

Would be nice to note that 'ftools' is required on the system, and isn't installed when you gem install spell_checker

@ahmetabdi
Copy link

Same thing as above ^.

$ ruby -v
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin13]

@landonwilkins
Copy link

+1

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