-
Notifications
You must be signed in to change notification settings - Fork 133
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
deprecation warning at 'rails s' #122
Comments
Same problem already solved on sass-rails gem: rails/sass-rails#381 Diff: rails/sass-rails@v5.0.5...v5.0.6 ✌️ |
+1 |
i've seen simi has self-assigned this issue.. bye, |
Yup, I'm fighting Rails 5 support removing this deprecation message in https://github.com/metaskills/less-rails/tree/rails5 branch. Not ready yet. |
thank you for your time!!! bye |
+1 |
Just to help others, I'm using the branch rails5 and still get the warnings:
|
Any update on this one @simi ? |
+1 |
I have something prepared. But I can't reach all Sprockets compatibility. I think new version dropping older version of Sprockets will be easy way how to solve this, but it will force users to update Sprockets for older rails. I'm still thinking how to solve this. Any ideas? |
I'll try something this weekend if my family duties will permit.... Regards |
PS: May you give me a preview of your changes into init routine?!? |
@coppolaf it is in rails5 branch. Latest commit is WIP. I'll probably need to study Sprockets to be able to rewrite |
Ok... Bye Francesco Il 26/ago/2016 09:54 PM, "Josef Šimánek" notifications@github.com ha
|
Josef, done some testing.... using 'raw' your code, i receive an error (see: the pull request author (manzikhov) has revealed the same issue and here you'll find my version, feel free to choose the one you evaluate more flexible (extracted from unable to actually find solution to the second deprecation warning.... bye francesco On 26/08/2016 21:54, Josef Šimánek wrote:
|
Thanks a lot! I'll inspect this tomorrow and let you know. |
Ok... Good night!! F. Il 30/ago/2016 11:09 PM, "Josef Šimánek" notifications@github.com ha
|
Josef, Have you inspected my code?! Pls let me know your opinion about the solution i've applied to solve the Waiting news... Francesco Il 30/ago/2016 11:09 PM, "Josef Šimánek" notifications@github.com ha
|
Damn, I totally forgot about this. I'm really busy right now, but I'll do my best to take a look A$AP. maybe @maxd is around |
No problem... As i said i've not implementeranno any testing so build test Waiting news!! Francesco Il 08/set/2016 12:47 PM, "Josef Šimánek" notifications@github.com ha
|
What is the status of this? I have this issue too. Thanks |
Is this issue solved? |
Why it's so hard to fix? Something strange =\ |
For the time being, the issue is avoided by adding |
still a thing.
fixed the problem, but if you use |
Hi everyone, just wondering if you could test this fork to see if it fixes your deprecation errors: https://github.com/brendon/less-rails/tree/fix-sprockets-loading. It should support Sprockets 2, 3, and 4 though looking at the |
@brendon I can confirm that this fix completely removes the warnings for me. |
@brendon upon further investigation, I've found that running my application with less-rails pointing to your fork results in a slew of parser errors. I have not had an opportunity to figure out why but I thought you might want to be alerted. |
Thanks @tmking. That's interesting. If you could give me some more details that would be helpful. |
@brendon what happened was that the majority of my feature specs threw a Less::ParserError because of an undefined variable. Other specs failed because of a Sprockets::FileNotFound exception. The app threw the same Less::ParseError exception when accessed normally in the browser. I briefly looked into upgrading libv8 to a more recent version but my app also uses therubyracer, which has a dependency on libv8 ~> 3.16.14.15. I did confirm that everything works as expected when the gem is pointed to the master branch. By the way, the app is running on Rails 4.2.7 and Ruby 2.2.5. |
Yes that's strange. Can you grab my fork and branch locally then try removing the Use the local copy in your app and see if it stops failing at any point. You'll probably still get the deprecation warnings but hopefully we can track down which exact change is causing problems. |
@brendon I think the issue is that the variable is defined in a .less.erb file. It looks like a separate transformer needs to be registered for processing erb. |
Ah yes, I think the reason for |
Ok, I've added |
Hey, guys. Here is my code to solve the "deprecated processor interface Less::Rails::ImportProcessor" warning. For my case, CODE IS BELOW
You should do monkey patch, whatever. or see use https://github.com/jyfcrw/less-rails |
@brendon that change worked for me. All my specs are passing now and the deprecation warnings are gone. |
Not sure about the history of the project but this is @metaskills ' repo, right? Maybe he can merge? |
Hello. Sorry for lack of my response. Is there any patch solving this deprecation for all supported Sprockets versions? Or maybe we can drop old Sprockets support. I'm not sure how to proceed here. |
Hi @simi, please check out this PR: #137. It solves the deprecation for versions 2 and 3. Version 4 of sprockets hasn't actually be released yet. The test suite currently fails on 4beta but it more because of changes to the manifest logic and accessing assets for testing purposes. Someone here has reported it works with sprockets 4 in a project I think. My PR supports both the old and new sprockets methods. |
`rails s` still yield the deprecation warning: * See issue: metaskills/less-rails#122 * PR pending: metaskills/less-rails#137 * Workaround: `gem 'less-rails', github: 'brendon/less-rails', branch: 'fix-sprockets-loading'
I've been following this for the past 6 months. Can I do anything to help? |
Unfortunately, it all rests on @simi now to review my PR and hopefully accept it. You could try using my fork to see if everything works correctly for you (css code is generated correctly etc...) in the meantime. |
@brendon nice work. I left few comments in your PR. I'm ready to merge and release and to finally close this issue. @StanBoyet I'm sorry, but I had no time to fix this (I tried 3 times already) and I was waiting for PR aiming on both 2 and 3 Sprockets version. |
@simi I don't add anything to the conversation but I'd like to add: don't get me wrong, I'm really grateful for your work and all the contributors. I don't like coming in here without bringing anything to the table, hence the proposition to help. Glad to see an end to it though. Thanks again ;-) |
The warning is: ``` DEPRECATION WARNING: Sprockets method `register_engine` is deprecated. Please register a mime type using `register_mime_type` then use `register_compressor` or `register_transformer`. ``` This problem is really a less-rails error, and is documented in this issue of that repo: metaskills/less-rails#122 It was fixed with this PR, merged Oct 2017: metaskills/less-rails#137 Bumping our less-rails dependency to 3.0.0 will give us the updates in that PR. Version 3.0.0 is the next version after 2.8.0, so there are very few other changes to worry about. You can view all of the less-rails code changes between 2.8.0 and 3.0.0 here: metaskills/less-rails@05186eb...7bb14e5 They are almost all test and/or README changes. So this update should be low risk.
`rails s` still yield the deprecation warning: * See issue: metaskills/less-rails#122 * PR pending: metaskills/less-rails#137 * Workaround: `gem 'less-rails', github: 'brendon/less-rails', branch: 'fix-sprockets-loading'
guys,
when i start app in development mode i receive this deprecation warnings
actually all seems to run fine, but not production deployment tests have been done yet!!
i think something is running bad during initialization against sprocket v.3.7.0...
available to give you more info if needed....
waiting your suggestions
regards
francesco
The text was updated successfully, but these errors were encountered: