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

Possible issue with Ruby 2.2.1 #438

Closed
justin808 opened this issue Apr 26, 2015 · 4 comments
Closed

Possible issue with Ruby 2.2.1 #438

justin808 opened this issue Apr 26, 2015 · 4 comments
Labels

Comments

@justin808
Copy link

NoMethodError: private method `color' called for "app/assets/stylesheets/_feedbacker-overrides.scss":String

For some reason the rainbow mixin on strings is not working. This seems to only happen for me when running bundle exec rake scss_lint

I'm initializing the rake task like:

  require "scss_lint/rake_task"

  SCSSLint::RakeTask.new do |t|
    t.files = ["app/assets/stylesheets/", "client/assets/stylesheets/"]
  end

Running scss-lint on the command line works fine.

@sds
Copy link
Owner

sds commented Apr 26, 2015

Hey @justin808, thanks for the report.

I'm having trouble reproducing this locally (even with Ruby 2.2.1). You're right that the Rainbow string extensions aren't getting loaded, but that doesn't seem to make sense since we explicitly require 'scss-lint/cli' in the Rake task, which runs require 'rainbow/ext/string'.

Does your Gemfile.lock list rainbow (2.0.0) in it, or some other version? If everything looks fine I might have to lean on you to submit a pull request that fixes the problem on your end, though at this point it seems like it's likely a local issue.

@sds sds added the invalid label May 2, 2015
@sds
Copy link
Owner

sds commented May 2, 2015

Closing due to lack of response. Feel free to reopen if more information can be provided!

@sds sds closed this as completed May 2, 2015
@justin808
Copy link
Author

@sds Sorry about the slow response. The issue was rubocop/rubocop#1839

@sds
Copy link
Owner

sds commented May 3, 2015

Thanks for the clarification, @justin808.

I would like to remove scss-lint's dependency on the rainbow gem once we address #364, so this should no longer be an issue once that's complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants