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

Handle Infinite Loop in Compiler #150

Open
michaelmesser opened this issue Jan 9, 2022 · 1 comment
Open

Handle Infinite Loop in Compiler #150

michaelmesser opened this issue Jan 9, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@michaelmesser
Copy link
Contributor

michaelmesser commented Jan 9, 2022

Given issues like idris-lang/Idris2#2255, we should be prepared for Idris to loop. I can think of two ways we can solve this. Either editor plugins detecting that the LSP hasn't responded or the LSP can have 2 threads so it can detect if it may have froze and send a showMessageRequest asking if the thread should be killed.

@michaelmesser michaelmesser added the enhancement New feature or request label Jan 9, 2022
@michaelmesser michaelmesser added bug Something isn't working and removed enhancement New feature or request labels Apr 26, 2022
@michaelmesser
Copy link
Contributor Author

Using timers or fuel might be another potential option to keep things single threaded.

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

No branches or pull requests

1 participant