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

Shift-Enter: Send-Selected-Lines-To-REPL #113

Closed
bevo009 opened this issue Jan 6, 2019 · 1 comment
Closed

Shift-Enter: Send-Selected-Lines-To-REPL #113

bevo009 opened this issue Jan 6, 2019 · 1 comment
Assignees

Comments

@bevo009
Copy link

bevo009 commented Jan 6, 2019

I'd love to be able to shift-enter send-selected-lines-to-REPL like we can do in Python, Coconut, Julia, F# etc.

Yes I know both our 2 REPLs aren't correct yet, but they are quite convenient for learning Nim. Code Runner can display selected lines, but there's no persistence, and it only displays actual print statements, unlike the REPLs which evaluate and display variables and expression results.

At present the workaround is to rename the file extension to *.py, and the Python plugin lets you shift-enter send to the Nim REPL (just Ctrl-D out of the Python REPL and inim or nim secret back in, then it works fine.)

It'd be great if I could do this instead from a .nim file. Thanks!

@kosz78 kosz78 self-assigned this Jan 15, 2019
@kosz78 kosz78 closed this as completed in 996e8cd Jan 21, 2019
@ghost
Copy link

ghost commented Mar 9, 2019

It seems (at least for windows) it requires "..." around the path to make it work if the nim binary path has some specific chars in it like a space.
Currently it seems the first call is C:\Program Files\Nim\bin\nim.exe secret which is executed in the terminal of vs code and results in an error similar to (translated) command "C:\Program" not found.
Instead it should be "C:\Program Files\Nim\bin\nim.exe" secret

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants