Closed siers closed 2 years ago
I am affraid this has nothing to do with nvim-agda
. The haskell file in Malonzo is irrelevant, because the error message is saying that agda cannot find the module named Relation.Binary.PropositionalEquality
. I guess you need to setup correct path to the standard library (in ~/.agda/libraries
and ~/.agda/defaults
) --- this is where the missing module is located. See https://agda.readthedocs.io/en/v2.6.2.2/tools/package-system.html#example-using-the-standard-library for more details on how to do this.
I just randomly tried to check src/plfa/part1/Negation.lagda.md
, and it worked as expected.
The path is probably the issue, I just noticed that the command line command I've been recalling through the shell history includes -i.
, so that probably accounts for the discrepancy between nvim-agda failures and my command line agda's successes.
Sorry for the non-issue and thank you for the feedback!
Solved by adding standard-library
in ~/.agda/defaults
and the -i .
does not make an appearance there and is magically no longer required in command line compiling either though the error that used to be there when compiling from the command line did not suggest why. :tada: :shrug:
Hi @ashinkarov!
I am trying out nvim-agda with agda from nix with standard-library. When I compile my code, it generates a MAlonzo/ directory with some additional libraries that are only found there, e.g.
import Relation.Binary.PropositionalEquality as Eq
which is used in PLFA.nvim-agda
can't find it:It is in
MAlonzo/
however,If you have any clue, I would be delighted to fix this issue, because I think I am nearing the limits of what I can do without "intelligent support" from the editor. :grin: