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

Template creation via <LocalLeader>d not adding patterns for parameters #10

Open
apriori opened this issue Apr 12, 2014 · 5 comments
Open

Comments

@apriori
Copy link

apriori commented Apr 12, 2014

Test case:

append : Vect n a -> Vect m a -> Vect (n + m) a

Apply \d on append.

Expected something like:

append : Vect n a -> Vect m a -> Vect (n + m) a
append xs ys = ?append_rhs

Got that instead:

append : Vect n a -> Vect m a -> Vect (n + m) a
append = ?append_rhs

Version info:

idris 0.9.12 (cabal)
idris-vim 2586645 (current HEAD)

@victoredwardocallaghan
Copy link

Still occurs in 7a0f64d idris-0.9.15 when did this break, has someone bisected yet?

@edwinb
Copy link
Contributor

edwinb commented Oct 14, 2014

What are the steps to reproduce this? Does it happen every time? Have you tried, for example, deleting all .ibcs and checking that there's no other idris running?

I know there are some issues with interactive editing, but I can't reproduce this one as it is, so I think there must be something different in your environment, and if we can work out what it is then we might be able to fix this. In any case, it is likely an Idris issue rather than a vim mode issue.

@raichoo
Copy link
Member

raichoo commented Oct 14, 2014

This could be related to another plugin interfering with idris-vim. I had a similar issue with syntastic, I fixed it by adding let g:syntastic_check_on_wq = 0 to my .vimrc.

@victoredwardocallaghan
Copy link

Hopefully fixed in vim-syntastic/syntastic#1215

@victoredwardocallaghan
Copy link

OK, after some research this seems to be related to calling idris --check while another idris instance is running. Essentially it looks like non-atomic updates to IBC files from idris --check and idris --client racing one another. Unfortunately I was quickly lost while trying to trace back the function calls in Idris. :/

Hope this is helpful

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

4 participants