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

changeDirectory() doesn't work with Idris 2 #255

Open
memoryallocator opened this issue Mar 25, 2022 · 2 comments
Open

changeDirectory() doesn't work with Idris 2 #255

memoryallocator opened this issue Mar 25, 2022 · 2 comments

Comments

@memoryallocator
Copy link

The idris2's :cd command requires a quoted string, but the changeDirectory() function does not surround the dir variable with quotes. As a result of this, there are the errors:

Expected string begin.

(Interactive):1:5--1:6
 1 | :cd /home/demo/Documents/Idris2

More than that, if the directory path contains a quote (for example, /"tmp), the plugin hangs at Idris: opening REPL ....

@jmanuel1
Copy link
Contributor

@jmanuel1
Copy link
Contributor

jmanuel1 commented Feb 21, 2024

I think the compiler is restarted every time any of the compilerOptions change, including the source directory, which makes the invocation of :cd redundant. And currently, I can't reproduce this bug, even though I've hit it before. In fact, I can't tell if that code path is even executed.

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

2 participants