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

Reload a file to a running REPL #70

Open
buzzdan opened this issue Oct 24, 2017 · 3 comments
Open

Reload a file to a running REPL #70

buzzdan opened this issue Oct 24, 2017 · 3 comments

Comments

@buzzdan
Copy link

buzzdan commented Oct 24, 2017

It would be great to have the option to change the code and reload the file to the repl instead of restarting it

Dan

@avli
Copy link
Owner

avli commented Oct 26, 2017

Hi @buzzdan

I'm not sure I understand you correctly. Isn't it possible right now to reload a changed file by evaluating it once again?

@buzzdan
Copy link
Author

buzzdan commented Oct 26, 2017

hi @avli and thanks for the great extension
i'm quite new to clojure so sorry if i got it wrong.

the ways i know to reload it is:
1 - restart the repl
2 - reload the namespace inside the repl

what i ment is to have an easier flow to use:

  • either by using a keybinding to reload the current file (maybe by sending the reload command the to repl ?)
  • or by using a file watcher that reloads the namespace automaticly

is there anything else i might be missing ?

Thanks again
Dan

@avli
Copy link
Owner

avli commented Oct 26, 2017

I think the easiest way to achieve what you want is to use "Clojure: Eval" or "Clojure: Eval and show the result" commands provided by the extension. These commands send the current file to the REPL. The commands are available in the command palette that can be called by Ctrl-P or Command-P if you're using macOS.

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