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 · 3 comments
Open

Can't find interaction point 0 #133

JonathanLorimer opened this issue Dec 13, 2023 · 3 comments

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)

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