-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
Reimplement the "Require REPL Utilities" command #453
Conversation
This shouldn't be necessary, right? Whatever is required in the namespace is shared. Or, are there any dynamic vars or something that gets set when loading the utilities? |
Thanks for making this change @cfehse!
Yeah I don't think that should be necessary either, because the editor and REPL window share a REPL session (or at least they should, from my understanding). |
Perhaps it shouldn't - and well sharing the same session: the REPL Window session is a clone of the editor session. Means this "sharing" the same session? |
No, they have different sessions alright. But if you What is not shared between sessions are dynamic variable bindings, like |
In fact this is not necessary. I simplified the implementation which works for me in Brandon's test project but in a more real life project there seems to be a timing problem. It sometimes does not work the first time the command is executed. |
I thought it might be a timing issue as well when I first started looking into it, because the results (when it worked and did not work) seemed to be very random, which could indicate some kind of race condition / timing issue. |
What has Changed?
a. Set the REPL window to the namespace of the file
b. Evaluate the require form in the REPL window session
Fixes #451
My Calva PR Checklist
I have:
dev
branch. (Or have specific reasons to target some other branch.)master
. (Sorry for the nagging.)ci/circleci: build
test. (For now you'll need to opt in to the CircleCI New Experience UI to see the Artifacts tab, because bug.)[Unreleased]
entry inCHANGELOG.md
, linking the issue(s) that the PR is addressing.The Calva Team PR Checklist:
Before merging we (at least one of us) have:
dev
branch (unless reasons).Ping @PEZ, @kstehn, @cfehse