cornelis icon indicating copy to clipboard operation
cornelis copied to clipboard

Syntax is lost after go-to-def (or editing a file)

Open 4e554c4c opened this issue 2 years ago • 8 comments

After loading an agda file, and opening another file with :CornelisGoToDefinition, the syntax information in the original agda file is lost and goto def will no longer work. This appears to also occur if an agda file is opened (e.g. through :e).

4e554c4c avatar Apr 05 '23 10:04 4e554c4c

I can't reproduce this

isovector avatar Apr 13 '23 06:04 isovector

@isovector have you verified that go-to def is working? The file still appears to be loaded (it is colored) but actions do not work

4e554c4c avatar Apr 13 '23 08:04 4e554c4c

https://asciinema.org/a/TwY5W0vbjBYKh1iOdHckHiwEO this is the functionality on my end

isovector avatar Apr 13 '23 17:04 isovector

Perhaps a step was left out of the original description.

If I jump to a file, load that file, then jump back, the information seems gone from the original file. E.G. trying to immediately do the same jump just says "No syntax under cursor."

I would guess it's because information for only one file is loaded at a time? So loading the second file replaces the first? And possibly that's by design. I just thought I'd leave information on how to (possibly) reproduce the situation.

dolio avatar Oct 28 '24 05:10 dolio

@isovector could we re-open this since we have more people seeing the issue?

4e554c4c avatar Nov 21 '24 17:11 4e554c4c

For what it's worth, this project is mostly unmaintained these days, since I'm no longer actively using Agda and surprisingly busy at work!

isovector avatar Nov 22 '24 21:11 isovector

makes sense. maybe it would make sense to transfer control of this repo to an organization (they usually have better long-term maintainership ability, since you can have multiple owners)

i wonder if the agda organization would be able to host cornelis

4e554c4c avatar Nov 22 '24 21:11 4e554c4c

I'm all for it if someone is willing to make the introduction

isovector avatar Nov 22 '24 21:11 isovector