Skip to content
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

Can't find interaction point 0 #133

Open
JonathanLorimer opened this issue Dec 13, 2023 · 4 comments
Open

Can't find interaction point 0 #133

JonathanLorimer opened this issue Dec 13, 2023 · 4 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@JonathanLorimer
Copy link
Contributor

JonathanLorimer commented Dec 13, 2023

Getting the error Can't find interaction point 0 when I run CornelisRefine

@JonathanLorimer
Copy link
Contributor Author

Seems to be coming from here

@JonathanLorimer
Copy link
Contributor Author

I think it might be an issue with concurrency, and when the interaction point gets inserted in to the interaction points map in BufferStuff:

data BufferStuff = BufferStuff
  { bs_agda_proc  :: Agda
  , bs_ips        :: Map InteractionId (InteractionPoint Identity)
  , bs_ip_exts    :: Map InteractionId Extmark
  , bs_goto_sites :: Map Extmark DefinitionSite
  , bs_goals      :: DisplayInfo
  , bs_info_win   :: InfoBuffer
  , bs_code_map   :: LineIntervals
  }
  deriving Generic

@JonathanLorimer
Copy link
Contributor Author

It also may be that the interaction point state is getting clobbered somehow? If I do CornelisLoad and then CornelisRefine immediately before CornelisLoad has finished, refine seems to work (kind of like buffering a jump in a video game lol)

@carlinigraphy
Copy link

I am also seeing this issue.

Example:

data  : Set where
  zero :suc  :_+_ : ℕ
zero + n = n
suc m + n = suc {! m + n !}

Positioning cursor in the hole, running CornelisRefine gives "Can't find interaction point 0". Though I do note running it 3-4 times will eventually succeed.

Seems to be consistent when I'm using any of

  • CornelisRefine, or
  • CornelisGive, or
  • CornelisElaborate.

@4e554c4c 4e554c4c added bug Something isn't working help wanted Extra attention is needed labels Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants