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

REPL for lidr ? #36

Open
TimRichter opened this issue Apr 3, 2015 · 4 comments
Open

REPL for lidr ? #36

TimRichter opened this issue Apr 3, 2015 · 4 comments

Comments

@TimRichter
Copy link

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. r , nothing happens. What am I doing wrong?

@ctford
Copy link
Contributor

ctford commented Mar 20, 2017

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.

@melted
Copy link
Contributor

melted commented Mar 20, 2017

@ctford
Copy link
Contributor

ctford commented Mar 21, 2017

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

@ctford
Copy link
Contributor

ctford commented Mar 27, 2017

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.

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

3 participants