-
Notifications
You must be signed in to change notification settings - Fork 173
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
Hang when dealing with some pieces of code #738
Comments
Hey! Thanks for reporting this! I’m assuming that Carp chokes on the redefinition of an autogenerated |
I'm renaming that issue because I encountered it with a piece of code not using references at all : (deftype MyType [v Int])
(defmodule MyType
(sig delete (Fn [MyType] ()))
(defn delete [o]
(do
(IO.println "in delete")
())))
(defn main []
(let [v (MyType.init 0)]
(IO.println "in let"))) Doing When I try reordering the statements :
I obtain the same error when using a file with the reordered code. When i tried with Some more info that could be useful (based on the example given in that comment) :
|
I've encountered this before. I could be wrong, but I think the same hang happens for sumtypes + modules too. |
I suspect this might have to do with some of the eval or constraint generation loops or solving loops since it seems to have some kind of relationship with struct/sumtypes. Or it has to do with lookups happening somewhere that enter in a loop somehow 🤔 |
This code, when doing
(load "test.carp")
hangs and consume all of my memory (16Gb). But, if i do(MyType.delete (MyWrapper.inner w))
(removing the&
) then it loads correctly.I have no idea how i can debug this (i have no knowledge of Haskell) so don't hesitate to ask for more info.
The text was updated successfully, but these errors were encountered: