8000 get "No goal at cursor" when there is one · Issue #161 · agda/cornelis · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

get "No goal at cursor" when there is one #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jakio6 opened this issue Dec 17, 2024 · 0 comments
Open

get "No goal at cursor" when there is one #161

jakio6 opened this issue Dec 17, 2024 · 0 comments

Comments

@jakio6
Copy link
jakio6 commented Dec 17, 2024

step to reproduce.

  1. with this file
  2. uncomment refl-counterexample
  3. :CornelisLoad
  4. change refl-example = refl to refl-example = ?
  5. :CornelisLoad
  6. :CornelisTypeContext at the ? added above
    • get "No goal at cursor"
  7. repeat 5 and 6, not get the same message.

agda --version used:

Agda version 2.6.4.1
Built with flags (cabal -f)
 - enable-cluster-counting: unicode cluster counting in LaTeX backend using the ICU library
 - optimise-heavily: extra optimisations

I did a little debugging, it shows that I was getting a wrong extmark (doesn't match the cursor position) at step 6.

Here bs_ips might be used before it was updated?

& #bs_ip_exts <>~ M.compose extmap (fmap ip_interval' $ bs_ips bs)

Looks like the interaction points was updated in parallel with the routine above.

Works fine if I always do :CornelisLoad twice though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0