Coder Social home page Coder Social logo

Comments (15)

nitinsingh25 avatar nitinsingh25 commented on June 23, 2024 1

@mathieujobin Please check these warnings are creating chaos in my current application. Is there any plan to fix those?

from apipie-rails.

mathieujobin avatar mathieujobin commented on June 23, 2024 1

Those warning are gone with ruby 3.0 and 3.1

and 2.7 goes EOL at the end of the month... I'd say its not worth fixing...

from apipie-rails.

mathieujobin avatar mathieujobin commented on June 23, 2024

Thanks a lot for reporting.

What version are you using?

I am wondering if it isn't one of the recent refactor by @PanosCodes ?

Easiest would be to compare a few versions to find out.

I am mostly using ruby 3 everywhere. But I had never noticed those.

Thanks again

from apipie-rails.

nitinsingh25 avatar nitinsingh25 commented on June 23, 2024

I am using ruby 2.7.7 & rails 5.2.4.1 with latest apipie gem.

from apipie-rails.

nitinsingh25 avatar nitinsingh25 commented on June 23, 2024

raised this PR - #836

from apipie-rails.

PanosCodes avatar PanosCodes commented on June 23, 2024

Thanks a lot for reporting.

What version are you using?

I am wondering if it isn't one of the recent refactor by @PanosCodes ?

Easiest would be to compare a few versions to find out.

I am mostly using ruby 3 everywhere. But I had never noticed those.

Thanks again

It seems unlikely, but I'll look into it 👀

from apipie-rails.

PanosCodes avatar PanosCodes commented on June 23, 2024

In orders to expose these warnings you need to run ruby in verbose warning level(2) ex RUBYOPT=-W2 rails test and from what I see they do not seem to be relevant to any recent merges (checked with v0.8.0 tag and are present there too)

from apipie-rails.

nitinsingh25 avatar nitinsingh25 commented on June 23, 2024

In orders to expose these warnings you need to run ruby in verbose warning level(2) ex RUBYOPT=-W2 rails test and from what I see they do not seem to be relevant to any recent merges (checked with v0.8.0 tag and are present there too)

Yes Try to run test cases with $VERBOSE=true.

from apipie-rails.

mathieujobin avatar mathieujobin commented on June 23, 2024

Thanks for looking into it @PanosCodes, I didn't have anytime until now.
they seems pretty harmless. I agree warnings can be pretty annoying. I don't have this verbose flag on myself...

@nitinsingh25 Can you try if this branch fix your issue?

#838

I have not tested it, only modified the code.

Thanks

from apipie-rails.

nitinsingh25 avatar nitinsingh25 commented on June 23, 2024

@mathieujobin Thank you for your quick response. I have tested my changes with #838 and added comment there. Can we quickly fix all these warnings and quickly release next patch version?
This will be super helpful & reduce ~21K lines of warnings in my project due to this gem only.

from apipie-rails.

nitinsingh25 avatar nitinsingh25 commented on June 23, 2024

@mathieujobin Any update on above?

from apipie-rails.

nitinsingh25 avatar nitinsingh25 commented on June 23, 2024

Those warning are gone with ruby 3.0 and 3.1

and 2.7 goes EOL at the end of the month... I'd say its not worth fixing...

Okay. Let me find out some other way to silent this gem specific warnings in my application because Ruby 3 upgrade is not in our pipeline as of now. We are just upgrading to ruby 2.7 only.

from apipie-rails.

mathieujobin avatar mathieujobin commented on June 23, 2024

you can use my branch I made for #838, or cherry-pick the changes... but I'm not ready to release those changes just yet...

from apipie-rails.

mathieujobin avatar mathieujobin commented on June 23, 2024

closed by mistake, I don't mind keeping it open

from apipie-rails.

mathieujobin avatar mathieujobin commented on June 23, 2024

I changed my mind, I suggest you switch to $VERBOSE=false until you can upgrade to ruby 3.0

from apipie-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.