Comments (21)
Whoops, accidentally commited directly to master instead of sending a PR: 2a3f626
Feedback welcome
from rply.
Why not use the new fix, instead of a workaround?
from rply.
Is there a stacktrace for exactly what lines are triggering this error?
from rply.
@alex yes: hylang/hy#1598 (comment)
from rply.
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.
Actually, I'll write it myself, since I want to refactor something.
from rply.
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.
You can pass cache_id=None
to the constructor to disable it.
from rply.
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.
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.
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.
Is there any way I could bypass this problem, even if it's not the best solution?
from rply.
@alex Could you make a new release of rply soon so we can get this fix into the next release of Hy?
from rply.
from rply.
Sure, I doubt Hy will release before mid-June.
from rply.
from rply.
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.
from rply.
I bet that Lisp is a lot easier to parse than Ruby. :)
from rply.
from rply.
I did a release
from rply.
Related Issues (20)
- Add support for "|" inside productions HOT 5
- fix latest build error HOT 1
- How to read the commands for all lines?
- Any plan to bump the version? HOT 8
- meaning of "Production 'xxx' is not reachable"? HOT 1
- Equivalent of `nonassoc` precedence HOT 4
- How would I separate statements? HOT 13
- Print AST for debugging purposes HOT 1
- An Easy Way to Print Shift/Reduce Conflicts and Corresponding Rules HOT 2
- Parsing functions with multiple arguments HOT 2
- Recursion in parser rules
- Implicit multiplication parsing issues HOT 2
- Getting KeyError: 'var_value' HOT 1
- How can i suppress warning? HOT 1
- No module named 'rply' after installation HOT 1
- I couldn't find a way of quantification in definition for the parser generator HOT 1
- Chaining multiple functions HOT 1
- What is the $end token? HOT 2
- translation failure with rpython in default branch of pypy but success with py3.6 branch
- Link redirection to empty pages in the documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rply.