Giter Club home page Giter Club logo

Comments (21)

alex avatar alex commented on August 15, 2024 1

Whoops, accidentally commited directly to master instead of sending a PR: 2a3f626

Feedback welcome

from rply.

Kodiologist avatar Kodiologist commented on August 15, 2024 1

Why not use the new fix, instead of a workaround?

from rply.

alex avatar alex commented on August 15, 2024

Is there a stacktrace for exactly what lines are triggering this error?

from rply.

dsevero avatar dsevero commented on August 15, 2024

@alex yes: hylang/hy#1598 (comment)

from rply.

alex avatar alex commented on August 15, 2024

Whoops, missed that it wasn't unfurled by default.

If someone wants to write a patch to catch OSError and check if e.errno == errno.EROFS I'd accept that patch.

from rply.

alex avatar alex commented on August 15, 2024

Actually, I'll write it myself, since I want to refactor something.

from rply.

Kodiologist avatar Kodiologist commented on August 15, 2024

As well, I would be inclined to add an argument to builds to disable the cache in case it isn't desired in the first place.

from rply.

alex avatar alex commented on August 15, 2024

You can pass cache_id=None to the constructor to disable it.

from rply.

Kodiologist avatar Kodiologist commented on August 15, 2024

You can pass cache_id=None to the constructor to disable it.

Oh, I missed that, thanks.

Feedback welcome

Shouldn't the calls to tempfile.NamedTemporaryFile and os.rename be guarded, too?

from rply.

alex avatar alex commented on August 15, 2024

In case the directory exists, but is on a read-only file system?

My inclination is that if you have an rply directory in your user cache dir, but now that's on a read-only-fs, it's probably a bug and I'd rather be noise.

from rply.

Kodiologist avatar Kodiologist commented on August 15, 2024

I'm not sure what the exact scenario would be, but IO carries inherent risk (race conditions etc.) and this isn't an essential operation (if cache writing fails, everything else about rply can still work), so I would catch all IO and OS errors here, perhaps with a warning. Similarly, it probably isn't enough to catch only errno.EROFS for directory creation. I don't think AWS Lambda raises that errno, for example.

from rply.

dsevero avatar dsevero commented on August 15, 2024

Is there any way I could bypass this problem, even if it's not the best solution?

from rply.

Kodiologist avatar Kodiologist commented on August 15, 2024

@alex Could you make a new release of rply soon so we can get this fix into the next release of Hy?

from rply.

alex avatar alex commented on August 15, 2024

from rply.

Kodiologist avatar Kodiologist commented on August 15, 2024

Sure, I doubt Hy will release before mid-June.

from rply.

alex avatar alex commented on August 15, 2024

from rply.

Kodiologist avatar Kodiologist commented on August 15, 2024

Actually, I've made a Hy PR to disable the cache (hylang/hy#1615) because it doesn't seem to give a noticeable performance boost, anyway. So, this should be a non-issue.

from rply.

alex avatar alex commented on August 15, 2024

from rply.

Kodiologist avatar Kodiologist commented on August 15, 2024

I bet that Lisp is a lot easier to parse than Ruby. :)

from rply.

alex avatar alex commented on August 15, 2024

from rply.

alex avatar alex commented on August 15, 2024

I did a release

from rply.

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.