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

Improve hosted nREPL for CIDER users. #52

Merged
merged 2 commits into from
Nov 8, 2016

Conversation

sinistral
Copy link
Contributor

This attempts to make the hosted nREPL more useful to CIDER users by loading user-specific middleware and enabling connection tab completion. Most of this has been shamelessly lifted from Boot's own repl task.

Any feedback is welcome, including thoughts on how to test this.

The same middleware and dependencies that would be loaded for the Boot
`repl` task are also used for the nREPL hosted by the HTTP server.  This
includes the middleware configured in a user's `boot.profile` (assuming
that they've followed the standard recipe of concating additional
dependencies to `boot.repl/*default-dependencies*`;
cf. https://github.com/boot-clj/boot/wiki/Cider-REPL#a-better-way)

It is particularly useful for CIDER users, who require `cider-nrepl` and
associated middleware to be loaded into the nREPL server for CIDER to be
fully functional.
This file enables port tab completion for CIDER users.
sinistral added a commit to sinistral/csm-adapt.sagittariidae-ws that referenced this pull request Sep 28, 2016
* tweak Project and JAR file name
* improved dependency declaration
* tweak source directory location
* tweak primary namespace path
* trivial compojure route to test boot-http CIDER nREPL support (depends
  on pandeiro/boot-http#52)
@pandeiro pandeiro merged commit 3ce96fd into pandeiro:master Nov 8, 2016
@pandeiro
Copy link
Owner

pandeiro commented Nov 8, 2016

Thanks, this is a great change! Re: testing, it would really require some thought. Test coverage really needs to be revamped or even rethought for this and other recent features.

@bhagany bhagany mentioned this pull request Feb 7, 2017
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

Successfully merging this pull request may close these issues.

2 participants