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

Commit d987039

Browse files
committed
Merge branch 'pr/51'
2 parents ea0eafc + d65c092 commit d987039

5 files changed

Lines changed: 17 additions & 5 deletions

File tree

lein-light-nrepl/project.clj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
[org.clojure/tools.reader "0.7.10"]
1111
[ibdknox/analyzer "0.0.2"]
1212
[clj-stacktrace "0.2.7"]
13-
[fs "1.3.3"]
1413
[org.clojure/clojurescript "0.0-2202"
1514
:exclusions [org.apache.ant/ant]]
1615
[clojure-complete "0.2.3"]

lein-light-nrepl/src/lighttable/nrepl/cljs.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[clojure.pprint :refer [pprint]]
44
[clojure.test :as test]
55
[clojure.string :as string]
6-
[fs.core :as fs]
6+
[lighttable.nrepl.fs :as fs]
77
[lighttable.nrepl.eval :as eval]
88
[lighttable.nrepl.core :as core]
99
[lighttable.nrepl.exception :as exception]

lein-light-nrepl/src/lighttable/nrepl/core.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[clojure.tools.nrepl.middleware :refer [set-descriptor!]]
88
[cheshire.core :as cheshire]
99
[clj-stacktrace.repl :refer [pst+]]
10-
[fs.core :as fs]
10+
[lighttable.nrepl.fs :as fs]
1111
[clojure.repl :as repl]))
1212

1313
(def ^{:dynamic true} *ltmsg* nil)
@@ -18,7 +18,7 @@
1818
(def old-*out* *out*)
1919
(def old-*err* *err*)
2020
(def my-settings (atom {:name "clj"
21-
:dir (fs/absolute-path fs/*cwd*)
21+
:dir (fs/absolute-path fs/cwd)
2222
:type "lein-light-nrepl"
2323
:commands [:editor.eval.clj
2424
:editor.clj.doc
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
(ns lighttable.nrepl.fs
2+
"Minimal implementation of fs 1.3.3"
3+
(:require [clojure.java.io :as io]))
4+
5+
(defn exists? [path]
6+
(.exists (io/file path)))
7+
8+
(defn absolute-path [path]
9+
(.getAbsolutePath (io/file path)))
10+
11+
(defn mod-time [path]
12+
(.lastModified (io/file path)))
13+
14+
(def cwd (.getCanonicalFile (io/file ".")))

lein-light-nrepl/src/lighttable/nrepl/handler.clj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
[lighttable.nrepl.doc :as doc]
1313
lighttable.nrepl.auto-complete
1414
[clj-stacktrace.repl :as stack :refer [pst+]]
15-
[fs.core :as fs]
1615
[clojure.repl :as repl]))
1716

1817
(defn with-lt-data [msg]

0 commit comments

Comments
 (0)