anoma / juvix

A language for intent-centric and declarative decentralised applications
https://docs.juvix.org
GNU General Public License v3.0
457 stars 53 forks source link

Better error message for name conflict #2965

Open heueristik opened 3 months ago

heueristik commented 3 months ago

I was compiling a test file named Tests/Token.juvix. In the project directory, there is also a Token folder.

This resulted in the following error:

[62 of 62] Compiling /Users/<...>/anoma-app-patterns/Tests/Token.juvix
ld64.lld: error: failed to open /Users/<...>/anoma-app-patterns/Token: Is a directory
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)

We could provide a clearer error message.