Skip to content
New issue

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

fix(spec_cli): set the default column when there is no terminal #20

Merged
merged 1 commit into from Mar 18, 2022

Conversation

amondnet
Copy link
Contributor

@amondnet amondnet commented Mar 18, 2022

close #19

If no terminal is attached to stdout, a StdoutException is thrown. Set the default columns when there is no terminal.

https://api.dart.dev/stable/2.16.1/dart-io/Stdout/terminalColumns.html
https://api.dart.dev/stable/2.16.1/dart-io/Stdout/hasTerminal.html

dart packages/spec_cli/bin/main.dart --ci > test.log 
Unhandled exception:
StdoutException: Could not get terminal size, OS Error: Inappropriate ioctl for device, errno = 25
#0      Stdout._terminalSize (dart:io-patch/stdio_patch.dart:145:7)
#1      Stdout._terminalColumns (dart:io-patch/stdio_patch.dart:138:35)
#2      Stdout.terminalColumns (dart:io/stdio.dart:205:30)
#3      BacktrackingRenderer.renderFrame (package:spec_cli/src/renderer.dart:141:31)
#4      spec.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:spec_cli/src/command_runner.dart:212:54)
#5      AsyncValueX.when.<anonymous closure> (package:riverpod/src/common.dart:498:24)
#6      AsyncData.map (package:riverpod/src/common.dart:273:16)
#7      AsyncValueX.when (package:riverpod/src/common.dart:497:12)
#8      spec.<anonymous closure>.<anonymous closure> (package:spec_cli/src/command_runner.dart:206:18)
#9      _rootRunBinary (dart:async/zone.dart:1450:47)
#10     _CustomZone.runBinary (dart:async/zone.dart:1342:19)
#11     _CustomZone.runBinaryGuarded (dart:async/zone.dart:1252:7)
#12     ProviderElementBase._notifyListeners.<anonymous closure> (package:riverpod/src/framework/provider_base.dart:557:24)
#13     ResultData.map (package:riverpod/src/framework/provider_base.dart:1130:16)
#14     ProviderElementBase._notifyListeners (package:riverpod/src/framework/provider_base.dart:554:14)
#15     ProviderElementBase._performBuild (package:riverpod/src/framework/provider_base.dart:447:7)
#16     ProviderElementBase.flush (package:riverpod/src/framework/provider_base.dart:415:7)
#17     _ProviderScheduler._performRefresh (package:riverpod/src/framework/scheduler.dart:55:41)
#18     _ProviderScheduler._task (package:riverpod/src/framework/scheduler.dart:41:5)
#19     new Future.<anonymous closure> (dart:async/future.dart:252:37)
#20     _rootRun (dart:async/zone.dart:1418:47)
#21     _CustomZone.run (dart:async/zone.dart:1328:19)
#22     _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#23     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1276:23)
#24     _rootRun (dart:async/zone.dart:1426:13)
#25     _CustomZone.run (dart:async/zone.dart:1328:19)
#26     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1260:23)
#27     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18:15)
#28     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:395:19)
#29     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:426:5)
#30     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)

close amondnet/oss#4

@amondnet amondnet changed the title fix: set the default column when there is no terminal fix(spec_cli): set the default column when there is no terminal Mar 18, 2022
@Salakar Salakar merged commit e6049cb into invertase:main Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix(spec_cli): set the default column when there is no terminal cannot be used with github actions
2 participants