-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
Regression: can no longer specify custom cljs REPL code via variable #2572
Comments
The registration function is meant to be used in your Emacs config, so in .dir-locals you’d just have to set one var as before. The old variable was removed simply because the build tool used and the cljs repl used are completely orthogonal. I’m sorry that this caused some frustration for you, but I think there was no easy way to retain the old behavior and provide the desired behavior at the same time. |
What variable would I set in The old way of doing it would be to add something like this to ((nil . ((cider-cljs-lein-repl . "(do (custom-init) (cljs-repl))")))) But since |
My point was that REPL types should normally be registered globally - e.g. in Currently there’s no way to do exactly what |
I agree it's not likely that a REPL init form will be limited to a single project; however, it is likely that there will be projects where the required REPL init form is not included in CIDER by default. For example, any project that uses Duct (hence my interest!). Before, we could include a So hopefully you can see why I'm so keen on a solution that can fit in a |
Just adding a data point: we need this too. Our solution right now is that our wrapper bash script, which starts the project's clojure app in development, uses emacsclient to add our custom cljs repl type to |
I guess a good option might be to add something called Basically, changing this is simple but we need to decide on the best "API". :-) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
After some consideration I've decided the best approach for this would be adding |
In the end I've decided to just recycle the existing custom repl type:
I think you'll all agree that's simple enough. |
Older versions of CIDER had a
cider-cljs-lein-repl
variable, but this appears to be deprecated in favour of REPL types, leading to a regression in functionality.If we want to specify our own code to initiate a cljs REPL, then we have to use
cider-register-cljs-repl-type
. However, this is not easily useable from.dir-locals.el
. Ideally we want to be able to allow projects to specify their own cljs setup, as was the case in earlier versions of CIDER.A possible solution is to add a
cider-cljs-custom-repl
variable, which when set would be used instead of the REPL types.On Slack "ag" pointed me toward a hacky workaround using
eval
:However, that's not exactly elegant!
While I appreciate the need to improve features and streamline functionality, it's a touch frustrating to grab a new version of CIDER and find out that it breaks my workflow because functionality has been removed.
The text was updated successfully, but these errors were encountered: