-
Notifications
You must be signed in to change notification settings - Fork 35
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? #129
Comments
We can stick to native Idris2’ REPL behavior for your last three bullet points, at least provisionally. That is:
|
I'm not sure that it is possible to easily implement a |
Wow, I actually completely missed that we have Holding off on resetting the REPL state until we've made sure the file type checked successfully sounds great. Keep the old state if the recent type-checking attempt resulted in errors. |
Another problem is that LSP doesn't have share Idris's concept of a single file loaded at a time. More than one file can be open at a time. In fact, we don't even know which document is currently focused, but we could have editor plugins tell us when focus changes or include the focused document when sending REPL commands. If there is a global REPL, instead of one REPL per file, how would the user specify which file would be loaded when the command is run? |
ATM, I personally think that if someone is interested in developing the idea into a working prototype, it's best to just stick to what's within easy reach based on what's currently offered by the Idris2 api. We've seen that api needs some reconstruction to accommodate all our wishes :) But that's a very long-term venture. |
The issue for Haskell Language Server is haskell/haskell-language-server#477. If they are able to find a solution, we may be able to do something similar. |
Microsoft considers REPL out of scope for LSP, but that doesn't mean we can't implement it anyways. This leaves us a few options:
#eval
in Lean%eval
in Idris:exec
, a code lens to click to run in a terminalQuestions:
The text was updated successfully, but these errors were encountered: