Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Commit fefd3af

Browse files
committed
Add connection troubleshooting section - close LightTable/LightTable#1971
1 parent 59b1a73 commit fefd3af

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
##Clojure for Light Table
22

3-
The official Clojure language plugin for Light Table.
3+
The official Clojure(Script) language plugin for Light Table.
44

55
## Supported Clojure versions
66

@@ -75,6 +75,18 @@ For projects using Clojure >= 1.7.0, `X.X.X` refers to the latest version of `le
7575

7676
[![Clojars Project](http://clojars.org/lein-light-nrepl/latest-version.svg)](http://clojars.org/lein-light-nrepl)
7777

78+
## Connection Troubleshooting
79+
80+
If your Clojure(Script) project fails to connect to LightTable, try these troubleshooting steps:
81+
82+
* If you have uberjar'ed your project, try deleting target/ or `lein clean` and reconnecting. See [this example issue](https://github.com/LightTable/LightTable/issues/1880)
83+
* A Clojure connection [has the following dependencies](https://github.com/LightTable/Clojure/blob/8da0a05e998917d1d67d58c7bed9f95b6abad5c9/lein-light-nrepl/project.clj#L6-L13)
84+
that can conflict with your project's dependencies. If your project.clj has conflicting dependencies, try upgrading them to at least the same version Light Table has.
85+
* Leiningen has a couple of ways of adding dependencies outside of project.clj. If you have a `~/.lein/profiles.clj` or a local `profiles.clj` try moving it out e.g. `mv ~/.lein/profiles.clj{,.bak}`. Also move out any local [checkouts/](https://github.com/technomancy/leiningen/blob/d40fdd4da363a21e9e2e469fd4418697e61c06b3/doc/TUTORIAL.md#checkout-dependencies).
86+
* It's possible a dependency of a dependency can conflict. To see these conflicts run `lein deps :tree` in your project's root directory.
87+
Try resolving conflicts as suggested by output that starts with `Consider using these exclusions:`.
88+
* If still unable to connect, make sure you've moved out Leiningen's dependency-altering files and file an issue with the full failure message, your project's project.clj and other standard [bug information](https://github.com/LightTable/LightTable/blob/master/CONTRIBUTING.md#bugs).
89+
7890
## License
7991

8092
Distributed under the MIT License, see license.md for the full text.

0 commit comments

Comments
 (0)