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

parser as a runtime dependency? #2

Closed
zverok opened this issue Jan 5, 2018 · 4 comments
Closed

parser as a runtime dependency? #2

zverok opened this issue Jan 5, 2018 · 4 comments

Comments

@zverok
Copy link

zverok commented Jan 5, 2018

Just trying gem install ffast; fast '(something)' something.rb gives 'require': cannot load such file -- parser (LoadError). Which probably should not be this way ;)

@zverok
Copy link
Author

zverok commented Jan 5, 2018

Another one, related to the parser:

$ fast '(something)' something.rb
warning: parser/current is loading parser/ruby23, which recognizes
warning: 2.3.5-compliant syntax, but you are running 2.3.3.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.

Probably should be tuned up/suppressed somehow (I mean, when using fast executable, which I am currently playing with, you totally can grep through Ruby 2.5 files from Ruby 2.1 executable, probably, and vice versa).

@jmks
Copy link
Contributor

jmks commented Jan 21, 2018

I am getting a similar issue, but with coderay:

$ gem install ffast
Fetching: ffast-0.0.1.gem (100%)
Successfully installed ffast-0.0.1
1 gem installed
$ fast '(something)' some_file.rb
warning: parser/current is loading parser/ruby21, which recognizes
warning: 2.1.10-compliant syntax, but you are running 2.1.6.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
$HOME/.rvm/gems/ruby-2.1.6/gems/ffast-0.0.1/bin/fast:6:in `require': cannot load such file -- coderay (LoadError)
	from $HOME/.rvm/gems/ruby-2.1.6/gems/ffast-0.0.1/bin/fast:6:in `<top (required)>'
	from $HOME/.rvm/gems/ruby-2.1.6/bin/fast:23:in `load'
	from $HOME/.rvm/gems/ruby-2.1.6/bin/fast:23:in `<main>'
	from $HOME/.rvm/gems/ruby-2.1.6/bin/ruby_executable_hooks:15:in `eval'
	from $HOME/.rvm/gems/ruby-2.1.6/bin/ruby_executable_hooks:15:in `<main>'

@jonatas
Copy link
Owner

jonatas commented Feb 20, 2018

Sorry for the delay. For some reason, I was not watching my own project.

It's a recurrent issue also with rubocop and I'll try to figure out. I don't want to force any specific Ruby version. Let me try to at least suppress the warning.

jonatas pushed a commit that referenced this issue Feb 20, 2018
@jonatas
Copy link
Owner

jonatas commented Feb 20, 2018

Fixed @zverok. Thanks for reporting.

@jonatas jonatas closed this as completed Feb 20, 2018
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