Comments (9)
not sure why. maybe another "windows-compat" issue. ╮( ̄▽ ̄)╭
a workaround could be setting "target" to >="es2017", to avoid compiling async functions to regenerator.
from kataw.
can you describe how you get this error, and the raw output?
from kataw.
I simply wrote a test and tried to test it. Then the test runner froze and after a few sec that messages pops up. I got confused because '30 if (!(t = _.trys, t = t.length > 0' has nothing to do with Kataw source code or the test runner.
I modified the tests, and it works now except I need to update all the time. Normal testing are broken - always complaining about mismatch.
Anyway. This is common TS issue. I guess related to something in ts-node library
from kataw.
I was wrong. It points to some code in ts-lib. Not ts-node.
Closest I got in tracking it is this issue egoist/bili#280
from kataw.
@aladdin-add It's related to async/await
from kataw.
I tried to run coverage
test/cli.ts:30:111 - error TS2322: Type 'number' is not assignable to type '{ label: number; sent: () => any; trys: any[]; ops: any[]; }'.
30 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
~
at createTSError (D:\x\node_modules\ts-node\src\index.ts:513:12)
at reportTSError (D:\x\node_modules\ts-node\src\index.ts:517:19)
from kataw.
the code was compiled twice? TypeStrong/ts-node#774 (comment)
but why? I was not able to repro on my macos, can you share the command that you used to run?
from kataw.
I only tried to run code coverage. 'npm run coverage'
from kataw.
@aladdin-add is there a fix for this? And what's the test runner update?
from kataw.
Related Issues (20)
- Implement CLI and kataw ignore comment HOT 24
- test runner - printed VALID code is INVALID HOT 19
- Add printer options in test runner HOT 1
- Add REPL HOT 1
- Implement printer options HOT 6
- implement pragma comments HOT 1
- The test runner goes crazy - 100 MB files HOT 6
- Test runner creates random 100 MB files HOT 6
- Test runner playing with backticks HOT 3
- test runner doesn't count to 100% HOT 1
- Implements linting and warnings HOT 3
- test runner - separate diagnostics HOT 8
- test runner - test fuzzer
- "re-design" and improve the reporters HOT 2
- 用 Kataw 替换 ESLint HOT 1
- JSON, YAML or JS ?? HOT 1
- Still in development? HOT 1
- Possible bug parsing destructured arrow function parameters HOT 1
- Possible bug regarding the use of IndexExpression vs. MemberAccessExpression
- Source maps HOT 1
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 kataw.