idris-vim icon indicating copy to clipboard operation
idris-vim copied to clipboard

REPL for lidr ?

Open TimRichter opened this issue 9 years ago • 4 comments

I'm not sure whether this is an issue with idris-vim or just with my setup, please bear with me.

When editing .lidr (literate idris) files, and doing the key combinations that should call the REPL, i.e. <Localleader> r , nothing happens. What am I doing wrong?

TimRichter avatar Apr 03 '15 12:04 TimRichter

I have the same problem. To work around it, try :set filetype=idris when you're editing a .lidr file. It looks like idris-vim isn't recognising the filetype.

ctford avatar Mar 20 '17 19:03 ctford

Hmmm, there is support: https://github.com/idris-hackers/idris-vim/blob/master/ftdetect/lidris.vim

melted avatar Mar 20 '17 21:03 melted

That sets filetype to "lidris" not "idris". Seems that the repl depends on "idris".

ctford avatar Mar 21 '17 13:03 ctford

When I try :set filetype=idris I can evaluate the buffer once, but when I do it a second time I get the following error popping up in the REPL:

Idris> Symbol "idris_mkFileError" not found
idris: user error (Could not call foreign function "idris_mkFileError" with args [prim__vm (prim__TheWorld)])

I guess that simply forcing vim to see literate files as regular ones gets it confused somehow, perhaps because the .ibc file isn't properly created.

ctford avatar Mar 27 '17 19:03 ctford