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

Type-errors in modules imported in REPL could lead to infinite loop #83

Closed
ppolesiuk opened this issue May 5, 2024 · 0 comments · Fixed by #90
Closed

Type-errors in modules imported in REPL could lead to infinite loop #83

ppolesiuk opened this issue May 5, 2024 · 0 comments · Fixed by #90
Labels
bug Something isn't working

Comments

@ppolesiuk
Copy link
Member

The buggy behavior can be reproduced, by the two following files.
Good.dbl:

(* empty *)

Bad.dbl:

import Good
// some type error:
let _ = () ()

When in REPL we import bad, we would fall into infinite loop.

> import Bad ;;
./Bad.dbl:3:9-10: fatal error: This expression has type Unit. It is not a function and cannot be applied
./Bad.dbl:3:9-10: fatal error: This expression has type Unit. It is not a function and cannot be applied
./Bad.dbl:3:9-10: fatal error: This expression has type Unit. It is not a function and cannot be applied
...

As suggested by @forell in #80, resolving the issue #82 could help to fix this bug.

@ppolesiuk ppolesiuk added the bug Something isn't working label May 5, 2024
@ppolesiuk ppolesiuk linked a pull request May 7, 2024 that will close this issue
ppolesiuk added a commit that referenced this issue May 7, 2024
This commit also fixes buggy behavior of `import` in REPL (#83)

---------

Co-authored-by: Piotr Polesiuk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant