elm / compiler

Compiler for Elm, a functional language for reliable webapps.
https://elm-lang.org/
BSD 3-Clause "New" or "Revised" License
7.56k stars 662 forks source link

Compiler error naming module `Matrix` when using a linear-algebra dependency #2135

Open hansdejong opened 4 years ago

hansdejong commented 4 years ago

Just starting Elm. Renamed the Ports-example to "Matrix", and ran "elm install jonathanfishbein1/linear-algebra" in the terminal. Then running "elm make src/Matrix.elm --optimize --output=matrix.js" resulted in a hefty errormessage, culminating in a request to report it here.

"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: Error from Matrix should have been reported already. CallStack (from HasCallStack): error, called at builder/src/Build.hs:1233:29 in main:Build

When I renamed all "Matrix"-es to "MatrixCalc" the problem was over, so it probably was just a namingconflict with the lib.

github-actions[bot] commented 4 years ago

Thanks for reporting this! To set expectations:

Finally, please be patient with the core team. They are trying their best with limited resources.