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

Fix ReadMe Stub for Leiningen Jack-In with REBL #543

Merged
merged 2 commits into from
Jan 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changes to Calva.
## [Unreleased]
- [Fix Windows documentation for Evaluate current form](https://github.com/BetterThanTomorrow/calva/issues/533)
- [Fix repl-window history issue](https://github.com/BetterThanTomorrow/calva/issues/491)
- [Fix documentation for Calva jack-in with REBL and Leiningen](https://github.com/BetterThanTomorrow/calva/issues/542)

## [2.0.73] - 2019-12-25
- [Add Paredit drag up/down commands](https://github.com/BetterThanTomorrow/calva/issues/500)
Expand Down
51 changes: 47 additions & 4 deletions docs/readthedocs/source/rebl.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ To use this extension with REBL do the following.
:main-opts ["-e" "((requiring-resolve,'cognitect.rebl/ui))" "-m" "nrepl.cmdline" "--middleware" "[nrebl.middleware/wrap-nrebl]" "-I"]}
```

Check out the [REBL github page](https://github.com/cognitect-labs/REBL-distro) for more info
Check out the [REBL github page](https://github.com/cognitect-labs/REBL-distro) for more info

2. Create a Calva custom connect sequence for your VSCode editor

Expand All @@ -50,15 +50,58 @@ Check out the [REBL github page](https://github.com/cognitect-labs/REBL-distro)
"rebl",
"rebl-12",
"nrebl"
],
]
}
}
]
}
```
## Leiningen (TBD)
## Leiningen

TBD. If you know how to do it, please update this page.
1. Add rebl profiles to your [user-wide profiles](https://github.com/technomancy/leiningen/blob/stable/doc/PROFILES.md#declaring-profiles) so that they will be available for all your projects.
A sample user profile (located at `~/.lein/profiles.clj` on mac)
```clojure
{:user {:plugins [[lein-ancient "0.6.15"]]}
;; REBL Base
:rebl {:resource-paths ["/Users/ozimos/REBL/latest/REBL.jar"]
:dependencies [[org.clojure/core.async "0.4.490"]
[org.clojure/data.csv "0.1.4"]
[org.clojure/data.json "0.2.3"]
[cljfmt "0.6.4"]
[org.yaml/snakeyaml "1.23"]]}

;; REBL 12 for JDK 12.0.1. Swap out for your JDK vaersion
:rebl-12 {:dependencies [[org.openjfx/javafx-fxml "12.0.1"]
[org.openjfx/javafx-controls "12.0.1"]
[org.openjfx/javafx-graphics "12.0.1"]
[org.openjfx/javafx-media "12.0.1"]
[org.openjfx/javafx-swing "12.0.1"]
[org.openjfx/javafx-base "12.0.1"]
[org.openjfx/javafx-web "12.0.1"]]}
;; NREBL https://github.com/RickMoynihan/nrebl.middleware
:nrebl {:repl-options {:nrepl-middleware [nrebl.middleware/wrap-nrebl]}
:dependencies [[rickmoynihan/nrebl.middleware "0.3.1"]]}}
```
[More info here](https://github.com/eccentric-j/lein-rebl-example)

2. Create a Calva custom connect sequence for your VSCode editor

* Read [Custom REPL Connect Sequences](connect-sequences.md) if you haven't
* Add the following to your vscode settings.json
```json
{
"calva.replConnectSequences": [
{
"name": "Lein REBL",
"projectType": "Leiningen",
"menuSelections": {
"leinProfiles": ["rebl", "rebl-12", ":nrebl"]
},
"afterCLJReplJackInCode": "((requiring-resolve 'cognitect.rebl/ui))"
}
]
}
```

## shadow-cljs (TBD)

Expand Down
48 changes: 27 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1716,7 +1716,7 @@
"lodash": "^4.17.14",
"lodash.isequal": "4.5.0",
"net": "1.0.2",
"npm": "^6.13.1",
"npm": "^6.13.4",
"open": "^6.3.0",
"paredit.js": "^0.3.6",
"parinfer": "^3.12.0",
Expand Down