amuletml / amulet

An ML-like functional programming language
https://amulet.works/
BSD 3-Clause "New" or "Revised" License
324 stars 14 forks source link

Include the library path on missing imports #270

Closed SquidDev closed 4 years ago

SquidDev commented 4 years ago

Example output:

tests/amc/files/import.ml[1:6 ..1:23]: error (E1010)
  Cannot resolve "my_lib.ml"
  │ 
1 │ open import "my_lib.ml"
  │      ^^^^^^^^^^^^^^^^^^

  Searched in:
    • /home/squiddev/programming/amulet/lib/my_lib.ml
    • /home/squiddev/programming/amulet/.stack-work/blah/blugh/lib/my_lib.ml
    • /home/squiddev/programming/amulet/.stack-work/blah/lib/my_lib.ml
SquidDev commented 4 years ago

Mostly done so I could actually understand why my lsp configuration was broken. But I still think it's useful.

The previous error message in Emacs

SquidDev commented 4 years ago

Tests should be working as of 26ec59db6b6c9e45974ce2e779f572bf4b282e59 - it's not a problem with this PR.