You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiling ...elm: ./Data/Vector/Generic/Mutable.hs:703 (modify): index out of bounds (3,3)
CallStack (from HasCallStack):
error, called at ./Data/Vector/Internal/Check.hs:87:5 in vector-0.12.0.3-FaW0AndQgt0BzgPSs4kvRl:Data.Vector.Internal.Check
Complete compiler output
Compiling ...elm: ./Data/Vector/Generic/Mutable.hs:703 (modify): index out of bounds (3,3)
CallStack (from HasCallStack):
error, called at ./Data/Vector/Internal/Check.hs:87:5 in vector-0.12.0.3-FaW0AndQgt0BzgPSs4kvRl:Data.Vector.Internal.Check
-- ERROR -----------------------------------------------------------------------
I ran into something that bypassed the normal error reporting process! I
extracted whatever information I could from the internal error:
> thread blocked indefinitely in an MVar operation
These errors are usually pretty confusing, so start by asking around on one of
forums listed at https://elm-lang.org/community to see if anyone can get you
unstuck quickly.
-- REQUEST ---------------------------------------------------------------------
If you are feeling up to it, please try to get your code down to the smallest
version that still triggers this message. Ideally in a single Main.elm and
elm.json file.
From there open a NEW issue at https://github.com/elm/compiler/issues with your
reduced example pasted in directly. (Not a link to a repo or gist!) Do not worry
about if someone else saw something similar. More examples is better!
This kind of error is usually tied up in larger architectural choices that are
hard to change, so even when we have a couple good examples, it can take some
time to resolve in a solid way.elm: thread blocked indefinitely in an MVar operation
SSCCE
The simple reproducible example turned out to be pretty obfuscated.
moduleMainexposing (..)
importHtmlexposing (Html)
type alias A={ ap1 :String}type alias B={ bp1 :String}type alias Model={}type Msg=Noopmain:HtmlMsgmain =Html.div [][]f1:Model->Modelf1 model =let( a, b )=List.foldr
(\x ( a2, list )->case x.d ofNothing->( a2, x :: list )Just c ->let
c2 ={ c | p1 = c.p1 +1}
x2 ={ x | c =Just c2 }( a3, x3 )=
f2 a2 x2
in( a3, x3 :: list ))( model.a,[])
model.b
in{ model | a = a, b = b }f2:A->B-> ( A, B )
f2 x y =( x, y )
Elm: 0.19.1
Browser: Well, the error happens before the code can see the browser.
Operating System: macOS Catalina 10.15.7
Additional Details
I found a way around the error, in fact it seems to be caused by the wrong property name in the assignment expression. I can't post the original code though, so although the provided example results in the same error it can't be fixed the same way.
In the original code I had something like { mything | prop = newProp }, where mything didn't have prop.
I realize that this report is super confusing, but atm I don't think I can make it any clearer 🙁.
The text was updated successfully, but these errors were encountered:
Quick Summary:
I stumbled upon this compiler error.
Complete compiler output
SSCCE
The simple reproducible example turned out to be pretty obfuscated.
Additional Details
I found a way around the error, in fact it seems to be caused by the wrong property name in the assignment expression. I can't post the original code though, so although the provided example results in the same error it can't be fixed the same way.
In the original code I had something like
{ mything | prop = newProp }
, wheremything
didn't haveprop
.I realize that this report is super confusing, but atm I don't think I can make it any clearer 🙁.
The text was updated successfully, but these errors were encountered: