-
Notifications
You must be signed in to change notification settings - Fork 640
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 checker hangs and errors #4690
Comments
Hi, let me add to to this that we looked with a number of people at the problem (cc @FabrizioRomanoGenovese @clayrat @andrevidela @epost and IIRC @fredrikNordvallForsberg) and we cannot seem to get it to terminate. Please let us know how if we can provide further information or insights. Thanks a lot! |
To allow an easier debugging process, I collected all the relevant code in a single file (https://gist.github.com/marcosh/6631e3de6243782bf74838ef0b97fd9c) I'm also pasting here the whole code
I noticed that if I comment out some pieces of the code, it actually compiles. Anyway, this issue still remains pretty much a mystery to me. Any hint would be highly appreciated |
You can also try it out on https://glot.io/snippets/fbmhggly7t |
It would be good to know which code being removed makes the issue go away. |
@jfdm thanks for your answer For example the code compiles (in almost 10 seconds) by removing the |
Hi @jfdm , you see it in effect if you remove the
The compiler works without this definition, but keeps running if you add it. |
Any updates on this? |
We're working on a library formalising (monoidal) categories and we reached a point where the type checker hangs while elaborating a type and, after more or less an hour without printing anything on the logs, it errors. I'm really at a loss here, because the code really looks correct and I am out of clues on how to proceed on this.
I isolated the issue as much as possible. It is described in an issue of the project itself, where I linked also the output of the compiler logs. In short, the issue emerges while compiling this file. I created a branch where I tried to remove a lot of noise, which could be used to try to debug the problem.
You should be able to reproduce the issue just by trying to compile the above mentioned file.
I tried looking at the logs, but the were not very helpful for me to debug the problem.
I tried compiling with the
--nocoverage
flag, but that does not seem to solve the issue.I am using version 1.3.1 of Idris
Any hint on how to solve this issue would be extremely valuable
The text was updated successfully, but these errors were encountered: