summaryrefslogtreecommitdiff
path: root/cider.el
Commit message (Collapse)AuthorAge
* Add a todo about cider-jack-in-default's current position in the codeBozhidar Batsov2018-08-22
|
* [Fix #2424] Fallback to lein on jack-in when clojure is missingBozhidar Batsov2018-08-22
| | | | | | The Clojure CLI tools are not available on Windows yet, so for them `clojure-cli` is a poor default. Now we set the default in a dynamic fashion.
* Rename cider-default-repl-command to cider-jack-in-defaultBozhidar Batsov2018-08-22
|
* Don't be super specific about certain dep versionsBozhidar Batsov2018-08-18
|
* Bump the required clojure-mode versionBozhidar Batsov2018-08-18
|
* [Fix #2419, Fix #2414] Bump sesman versionVitalie Spinu2018-08-17
|
* [Fix #2401] Correctly pass dynamic vars to cider--update-jack-in-cmdVitalie Spinu2018-08-13
|
* Bump the injected piggieback to 0.3.8Bozhidar Batsov2018-08-06
| | | | It's the first version that supports nREPL 0.4+.
* Modify cider-boot-parameters to match the new boot taskAndrea Richiardi2018-08-06
|
* Stop releasing CIDER and cider-nrepl togetherBozhidar Batsov2018-08-06
| | | | | cider-nrepl now has its own release cycle and CIDER introduces `cider-required-middleware-version` to track it.
* Add shadow-select CLJS REPL type (#2397)Andrea Richiardi2018-08-02
| | | | | | | This kind of CLJS REPL is very helpful for cases when you are already watching one or more shadow builds in shadow either after having launched the server in a terminal or from within Cider. This patch also refactors option normalization out of figwheel-main so that it can be reused by every other function.
* Update docstringBozhidar Batsov2018-08-02
|
* Improve session and REPL buffer namingVitalie Spinu2018-07-31
| | | | | | - better abbreviation of directory names - re-create context buffer on every connect instead of `kill-all-local-variables` which could fail
* Provide meaningful default selection in cider-select-cljs-replVitalie Spinu2018-07-31
| | | | .. and add history (cider--select-cljs-repl-history)
* [#2381] Hack dir-locals when :project-dir is part of connect paramsVitalie Spinu2018-07-31
|
* [Fix #2381] Start REPLs in the original jack-in bufferVitalie Spinu2018-07-31
|
* Implement a flexible way to customize session namesVitalie Spinu2018-07-29
| | | | | - new `cider-session-name-template` - new `cider-format-connection-params`
* Improve a docstringBozhidar Batsov2018-07-28
|
* Fix tramp usage for Emacs 26.1 and up (#2390)shlomiv2018-07-27
|
* [Fix #2387] Default to "localhost" in cider-current-hostVitalie Spinu2018-07-27
|
* Bump the piggieback version that gets injected on jack-inBozhidar Batsov2018-07-24
|
* Accept plain figwheel-main build name, normalizing to keyword (#2385)Estevo U.C. Castro2018-07-24
|
* Add the cider command to the cider-start-mapBozhidar Batsov2018-07-23
|
* Give some examples about the expected format for shadow-cljs andBozhidar Batsov2018-07-23
| | | | figwheel-main builds
* Remove a redundant Java 8 checkBozhidar Batsov2018-07-23
| | | | Now Java 8 is our minimum supported Java version.
* Implement uniform jack-in and connect parameter handlingVitalie Spinu2018-07-14
| | | | | | | - all connect and jack-in commands accept PARAMS argument - interactive PARAMS updating happens through the pipeline of specialized functions
* Initialize `sesman-system` in all CIDER modesVitalie Spinu2018-07-13
|
* [Fix #2337] Add `cider-start-map` and bind to `C-c C-x`Vitalie Spinu2018-07-13
|
* Add a note about the usage of clojure over cljBozhidar Batsov2018-07-12
|
* Use cider-jack-in-cljs consistently in the code and documentationBozhidar Batsov2018-07-11
|
* Correctly format shadow command when it is "npx shadow-cljs"dan sutton2018-07-05
| | | | | | | | Previously called `(cider--resolve-command (car (split-string cider-shadow-cljs-command)))` on "npx shadow-cljs" would return "npx" and drop the shadow-cljs. This would lead to the error message that server was not a valid option as the command was "npx [cider-stuff] server" instead of "npx shadow-cljs [cider-stuff] server"
* Fix checkdoc error on emacs 27Vitalie Spinu2018-06-30
|
* Remove sesman.elVitalie Spinu2018-06-30
|
* Fix a few more compilation warningsBozhidar Batsov2018-06-24
|
* [#2203] Move the cider-auto-mode stuff to cider-connection.elBozhidar Batsov2018-06-24
| | | | That's the only place this functionality is used.
* Add cider-jack-in-clj&cljs to cider-connection-init-commandsBozhidar Batsov2018-06-22
|
* Introduce a new command named `cider` (`C-c M-x`)Bozhidar Batsov2018-06-19
| | | | | | | | The command acts as a simple wrapper around all commands for starting/connecting to REPLs. It spares you having to remember a ton of keybindings and pays special homage to the one true `M-x`.
* Fix the link to the manualBozhidar Batsov2018-06-19
|
* Move some code where it belongsBozhidar Batsov2018-06-19
|
* Pass cider-default-cljs-repl value to on-port-callbackVitalie Spinu2018-06-19
|
* Revert "Remove cider-compat.el"Bozhidar Batsov2018-06-18
| | | | | | | This reverts commit b28fbac964907172fdedc3bea56eab905d5fbdbf. This can't be fully removed due to the difference in the signature of `if-let*` and `when-let*` in Emacs 25 and 26.
* Remove some dead codeBozhidar Batsov2018-06-18
|
* Group a few requires a bit betterBozhidar Batsov2018-06-18
|
* Remove cider-compat.elBozhidar Batsov2018-06-18
| | | | It's no longer needed now that we target Emacs 25.
* Rename -cljcljs -> -clj&cljs postfixVitalie Spinu2018-06-18
| | | | This naming convention should scale much better in the future.
* New connection API and jack-in rewrite (#2324)Vitalie Spinu2018-06-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Second attempt on #2069. A brief description of the new functionality follows. 1) __Jack-in/connect__ - User level commands: Create new sessions: C-c M-j: cider-jack-in-clj C-c M-J: cider-jack-in-cljs C-c M-c: cider-connect-clj C-c M-C: cider-connect-cljs Add new REPLs to the current session: C-c M-s: cider-connect-sibling-clj C-c M-S: cider-connect-sibling-cljs - `cider-jack-in-clojurescript` no longer creates two repls, only the cljs repl - clj repl has no longer a special status of the "main" repl. All repls within a session share same server and are siblings of each other. You can create as many clj and cljs siblings as you want from any repl. - Creation of the client is no longer tightly bounded with the nrepl-server startup. The dynamic communication mechanism between jack-in and nrepl-server filter has been replace by a simple `on-port-callback`. 2) __New Connection and Session Management API__ - Connections (aka REPLs) are grouped in [sesman](https://github.com/vspinu/sesman) sessions. Sibling repls are added to the current session. - Cider connection commands (`cider-quit`, `cider-restart`, `cider-display-connection-info`) have been refactored to operate exclusively on the connection level. - Sesman commands operate on the whole session: ![sesman-map](https://user-images.githubusercontent.com/1363467/41355277-6864ffb8-6f21-11e8-9387-3de586477d68.png) - Associations (links) between current context (buffer, directory, project) are governed by sesman and could be formed only on the session level. In a nutshell, session can be linked to projects, directories and buffers. Buffer link have precedence over directory links, and directory have precedence over project links. When a sesman session is registered it's automatically linked with the lowest priority context (project, or directory if no project found). By default (configured with `sesman-1-to-1-links`) multiple sessions can be linked with a project or a directory, but only one session can be linked with a buffer. Cider functionality (eval, completion, repl-switching etc) operate on linked sessions. When there are multiple linked sessions ambiguity is automatically resolved by the recency of the REPL buffers (configured with `sesman-disambiguate-by-relevance`). - Show info on current links with `C-c C-s l`. Show info on current, linked or all sessions with `C-c C-s i`. - Micro-management of the server is not allowed (it's not useful and would complicate UI). All repls within a session share a server. Server can be either remote (`cider-connect`) or local (bootstraped within the emacs during `cider-jack-in-xyz`). In case of the local server, when the last connection is killed the server is automatically killed. `cider-restart` restarts the connection but not the server. `sesman-restart` restarts the server and all the connections. At least two issues I still plan to tackle here: - Restart of SSH tunneled connection has not been tested and probably doesn't work - REPL buffer naming system is no longer adequate. It should be possible to include session name as part of the buffer name and add more flexibility into the customization of buffer name templates. ----- A tot of no longer necessary or questionable functionality has been removed. The goal is to start from scratch and add only what is really necessary. I am listing all the removed functions for the ease of lookup through the github interface. Removed: cider--connection-host, cider--connection-port, cider--connection-project-dir, cider--connection-properties, cider--connection-type, cider--guess-cljs-connection, cider--has-warned-about-bad-repl-type, cider--in-connection-buffer-p, cider--quit-connection, cider--restart-connection, cider-assoc-buffer-with-connection, cider-assoc-project-with-connection, cider-change-buffers-designation, cider-clear-buffer-local-connection, cider-close-nrepl-session, cider-connections (variable), cider-current-connection (variable), cider-current-messages-buffer, cider-current-repl-buffer, cider-default-connection, cider-extract-designation-from-current-repl-buffer, cider-find-connection-buffer-for-project-directory, cider-find-reusable-repl-buffer, cider-make-connection-default, cider-map-connections, cider-other-connection, cider-project-connections, cider-project-connections-types, cider-prompt-for-project-on-connect, cider-read-connection, cider-repl-buffers, cider-replicate-connection, cider-request-dispatch, cider-rotate-default-connection, cider-toggle-buffer-connection, cider-toggle-request-dispatch, nrepl-connection-buffer-name-template, nrepl-create-client-buffer-function, nrepl-post-client-callback nrepl-prompt-to-kill-server-buffer-on-quit, nrepl-use-this-as-repl-buffer, Connection Browser Functionality: cider--connection-browser-buffer-name, cider--connection-ewoc, cider--connection-pp, cider--connections-close-connection, cider--connections-goto-connection, cider--connections-make-default, cider--connections-refresh, cider--connections-refresh-buffer, cider--ewoc-apply-at-point, cider--setup-connection-browser, cider--update-connections-display, cider-client-name-repl-type, cider-connection-browser, cider-connections-buffer-mode, cider-connections-buffer-mode-map cider-connections-close-connection, cider-connections-goto-connection, cider-connections-make-default, cider-display-connected-message, cider-project-name, Renamed: cider-current-session -> cider-nrepl-eval-session cider-current-tooling-session -> cider-nrepl-tooling-session cider-display-connection-info -> cider-describe-current-connection cider-create-sibling-cljs-repl -> cider-connect-sibling-cljs nrepl-connection-buffer-name -> nrepl-repl-buffer-name cider--close-connection-buffer -> cider--close-connection ## repl <> connection overlap cleanup cider-connections -> cider-repls cider-current-connection -> cider-current-repl cider-map-connections -> cider-map-repls cider-connection-type-for-buffer -> cider-repl-type-for-buffer cider-repl-set-type -> cider-set-repl-type
* Update the manual links to use our new domain cider.mxBozhidar Batsov2018-06-17
|
* Add figwheel-main REPL type (#2313)Andrea Richiardi2018-06-08
|
* Bump piggieback to 0.3.6Bozhidar Batsov2018-06-08
| | | | That should fix some nasty issues with figwheel.
* Use a better error when a cljs repl form cannot be foundAndrea Richiardi2018-06-07
| | | | Without this fix cider throws an error but it is not a very clear one.