agda-vim icon indicating copy to clipboard operation
agda-vim copied to clipboard

(Seemingly) fail to handle multiple responses from Agsy

Open favonia opened this issue 8 years ago • 4 comments

I noticed that when Agsy seems to synthesize solutions to multiple holes (possibly due to some hole being a parameter to the type of another hole), agda-vim appears no be surprised and may put the generated terms into wrong holes or ignore some of them. (Sorry I have not spent the time debugging, verifying the raw output from Agsy or studying the relevant code.)

favonia avatar Sep 20 '16 15:09 favonia

I'm pretty sure I don't handle this because I don't think I've seen this happen. Can you provide a simple example and the version of Agda you're using? It doesn't need to be a minimal example, just preferably something that's reasonably self-contained.

derekelkins avatar Sep 20 '16 17:09 derekelkins

Yes I will (should) try to create an example. In the meanwhile I vaguely remember the message looks like this: https://github.com/agda/agda/blob/master/src/full/Agda/Auto/Auto.hs#L335. Hope this helps.

favonia avatar Sep 20 '16 17:09 favonia

Sorry it seems I failed to preserve the work in progress that would trigger the message. (Those files were finished and putting holes back now has not been successful.) I will come back if I see the message again.

favonia avatar Sep 21 '16 14:09 favonia

Okay, I'll try to reverse engineer an example based on what the Agda/Agsy code is.

derekelkins avatar Sep 21 '16 17:09 derekelkins

Closing this as I'm no longer using this great plug-in and no one else is reporting the same problem.

favonia avatar Nov 27 '22 09:11 favonia