We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
It's pretty simple to reproduce.
When I do dart bin/printWindow.dart, everything is ok.
dart bin/printWindow.dart
But when I call it through pub run my_package:printWindow I get:
pub run my_package:printWindow
Unhandled exception: Uncaught Error: StdoutException: Could not get terminal size, OS Error: Inappropriate ioctl for device, errno = 25 Stack Trace: #0 Stdout._terminalSize (dart:io-patch/stdio_patch.dart:74) #1 Stdout._terminalColumns (dart:io-patch/stdio_patch.dart:68) #2 Stdout.terminalColumns (dart:io/stdio.dart:182) #3 StdioConsoleAdapter.columns (package:console/src/adapter.dart:21:29) #4 Console.columns (package:console/src/base.dart:181:38) #5 Window.draw (package:console/src/curses/window.dart:28:25) #6 UserInterface.draw (package:db_init/src/user_interface.dart:21:15) #7 Window.display (package:console/src/curses/window.dart:42:5) #8 main.<main_async_body> (http://localhost:52545/db_init.dart:17:6) #9 _RootZone.runUnary (dart:async/zone.dart:1166) #10 _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:494) #11 _Future._propagateToListeners (dart:async/future_impl.dart:577) #12 _Future._propagateToListeners.handleWhenCompleteCallback.<anonymous closure> (dart:async/future_impl.dart:560) #13 _RootZone.runUnary (dart:async/zone.dart:1166) #14 _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:494) #15 _Future._propagateToListeners (dart:async/future_impl.dart:577) #16 _Future._completeWithValue (dart:async/future_impl.dart:368) #17 _Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:422) #18 _microtaskLoop (dart:async/schedule_microtask.dart:43) #19 _microtaskLoopEntry (dart:async/schedule_microtask.dart:52) #20 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96) #21 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:149) #0 _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:895) #1 _microtaskLoop (dart:async/schedule_microtask.dart:43) #2 _microtaskLoopEntry (dart:async/schedule_microtask.dart:52) #3 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96) #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:149)
Is it a problem of your library, or from pub run ?
pub run
The text was updated successfully, but these errors were encountered:
It's because of pub run I believe.
Sorry, something went wrong.
You right dart-lang/pub#1204
@kendfinger is there any workaround?
No branches or pull requests
Hello,
It's pretty simple to reproduce.
When I do
dart bin/printWindow.dart
, everything is ok.But when I call it through
pub run my_package:printWindow
I get:Is it a problem of your library, or from
pub run
?The text was updated successfully, but these errors were encountered: