Skip to content

eval: feed stdin from an empty temporary file to avoid hangs#4963

Open
dschrempf wants to merge 1 commit into
haskell:masterfrom
dschrempf:dom/eval/stdin
Open

eval: feed stdin from an empty temporary file to avoid hangs#4963
dschrempf wants to merge 1 commit into
haskell:masterfrom
dschrempf:dom/eval/stdin

Conversation

@dschrempf

@dschrempf dschrempf commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

This is a followup of #4726.

Feed stdin from an empty file.

The test explains the behavior:

-- 1. Support `stdin`
module TIO where

{- Feed `stdin` with empty data.

Avoid server hangs indefinitely, waiting for `stdin` to terminate.

Shows a clear error message.

>>> getLine >>= print
<stdin>: hGetLine: end of file
-}

@xsebek

Fixes #2913.

@dschrempf dschrempf force-pushed the dom/eval/stdin branch 3 times, most recently from 532cf28 to 91bdc88 Compare June 8, 2026 12:48
@dschrempf dschrempf requested a review from fendor as a code owner June 8, 2026 12:48
@dschrempf dschrempf force-pushed the dom/eval/stdin branch 2 times, most recently from 4911a6e to 6b87429 Compare June 8, 2026 16:36
@dschrempf

Copy link
Copy Markdown
Collaborator Author

Somehow

cabal run func-test -- -p '/eval plugin sends progress reports/'

times out.

Any ideas?

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.

getLine in eval code lens causes connection got disposed

1 participant