Comments (2)
It's writeFile, isn't it? Since we don't write files in the test, dead code elimination removes it before it causes problems
from effekt.
I'm quite alarmed that the test in stdlib/io/files/async_file_io.effekt
didn't catch this 🤔
https://github.com/effekt-lang/effekt/blob/cd741e8a4576c62ab318efd48fc0831958ba7e8d/examples/stdlib/io/files/async_file_io.effekt
EDIT: I tried running the LLVM stdlib tests and it appears that the test in question passes:
effekt.StdlibLLVMTests:
+ examples/stdlib/bytes/bytes.effekt (llvm) 2.928s
+ examples/stdlib/io/promise.effekt (llvm) 1.146s
+ examples/stdlib/io/files/async_file_io.effekt (llvm) 1.416s
The test works when ran directly:
$ effekt --backend=llvm examples/stdlib/io/files/async_file_io.effekt
Running program
Done
Some contents
{ msg: "Hello World!" }
done reading files.
but I don't understand why 😔
Well, the test only uses the readFile
function and not the readFile
operation which is then handled with filesystem
. If I had to guess, the renaming is OK in one of them and not in the other...
from effekt.
Related Issues (20)
- `x!=y` interpreted as `x! = y` due to `!` being allowed in identifiers HOT 9
- Misleading error message on a nested non-exhaustive pattern match HOT 1
- Don't treat the unit value as a literal
- Avoid camel case in command line switches
- Inconsistent file names in output directory HOT 1
- LSP code actions for pattern-matching
- Block types are pretty printed with superfluous `Option` HOT 1
- REPL throws an error when attempting to show a term HOT 2
- Tests for `exception` stdlib. HOT 1
- [To be discussed] Allow match guards as boolean expressions
- Rename constructors of collections HOT 1
- String-related problems on the LLVM backend HOT 5
- Top-level constants in the LLVM backend
- `equals` does not work properly in chez Backends
- Convention for error reporting and aborting HOT 1
- Store string literals in their unescaped form HOT 6
- Functions outside of the event loop segfault on LLVM
- Overeager JS inliner forgets to parenthesize HOT 1
- Consistently name generated ML binary
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 effekt.