Comments (11)
Yeah, that's what I meant by "I see some async code that's not being awaited". It should have been awaited and forgot to because we don't have floating promise detection in deno lint (kind of annoying and wish we had it). I updated the code now so this issue and those unawaited promises should be fixed.
(I'm going to do a release later tonight probably)
from dax.
What version of Deno are you running the tests with?
from dax.
linux
deno 1.29.1+7ce2b58 (canary, x86_64-unknown-linux-gnu)
v8 10.9.194.5
typescript 4.9.4
from dax.
Also, what's the full call stack at src/console/utils.ts#L166?
from dax.
I added log(new Error().stack!;)
there
Error
at getStaticText (file:///home/mrcool/dev/deno/others/dax/src/console/utils.ts:166:17)
at refresh (file:///home/mrcool/dev/deno/others/dax/src/console/logger.ts:19:28)
at Object.setItems (file:///home/mrcool/dev/deno/others/dax/src/console/logger.ts:15:10)
at forceRender (file:///home/mrcool/dev/deno/others/dax/src/console/progress/interval.ts:52:10)
at ProgressBar.forceRender (file:///home/mrcool/dev/deno/others/dax/src/console/progress/mod.ts:132:5)
at file:///home/mrcool/dev/deno/others/dax/mod.test.ts:885:6
at testStepSanitizer (deno:cli/js/40_testing.js:448:13)
at asyncOpSanitizer (deno:cli/js/40_testing.js:147:15)
at resourceSanitizer (deno:cli/js/40_testing.js:374:13)
at Object.exitSanitizer [as fn] (deno:cli/js/40_testing.js:431:15)
from dax.
Ok thanks! I see some async code that's not being awaited. I will look into it.
from dax.
That makes no sense it ends up there because forceRender
will exit if !isInteractiveConsole
. Maybe the debugger makes stdin a tty somehow so that changes the behaviour. How are you running the tests?
from dax.
Oh, maybe I need to check that stderr is a tty as well. That will probably fix it. I'll open a PR
from dax.
I tested it and that fixes it
from dax.
just one more javascript question, so this doesn't need to be awaited
dax/src/console/progress/interval.ts
Line 52 in 043be64
Line 18 in 043be64
from dax.
I see, thanks for fixing it so quickly!
because we don't have floating promise detection in deno lint
definitely would be a nice upgrade
from dax.
Related Issues (20)
- Logging object as argument should not print [object Object]
- Upgrade dependency deno_task_shell to 0.14.2
- Merged streams make it unable to access streams HOT 1
- Panic on stderr redirect
- Make it easier to pipe to files HOT 3
- Patch for deprecation warnings in console/utils.ts HOT 2
- Redesign command and internal streams
- Ability to cancel a request HOT 1
- Support for subshells breaks escaped parentheses HOT 1
- Rename `PathRef` to `Path`
- Support providing a `CommandBuilder` to a template literal expr HOT 1
- built-in 'cat' command does not work with absolute paths
- Add `.linesIter()`
- Support glob expansion
- Path - Copy dir recursive
- Strict typing for arguments HOT 1
- Strange issue when upgrading Deno HOT 3
- $.prompt doesn't support utf-8? HOT 1
- add command for `tar` HOT 2
- imagemagick hangs 😞
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 dax.