You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,12 @@ Create your xontrib step by step from [xontrib-template](https://github.com/xons
95
95
* History backends are in `xonsh/history/`.
96
96
* Environment variables are in `xonsh/environ.py`.
97
97
98
+
### Exceptions
99
+
100
+
#### `Bad file descriptor` or `I/O operation on closed file.`
101
+
102
+
If you catch this when using callable alias first of all remember that callable alias runs in asynchronous thread and it's not needed to trace exactly this error. Instead of this you need to trace how executing is working and when descriptor is opened and when it closed. The common case is when main thread closes descriptor but child thread uses it later or vice versa. See also [5482](https://github.com/xonsh/xonsh/issues/5482).
0 commit comments