Skip to content

Commit

Permalink
bad keyword namespace, fixes hostname config
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce Hauman committed Jul 16, 2020
1 parent 8e508b3 commit 512ccdb
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/figwheel/main/util.clj
Expand Up @@ -216,22 +216,13 @@

(defn safe-ns->location [ns]
(try (bapi/ns->location ns)
(catch java.lang.IllegalArgumentException e
(catch Throwable t
nil)))

#_(ns->location 'asdf.asdf)
#_(safe-ns->location 'asdf.asdf)

#_(ns->location 'figwheel.main)
#_(safe-ns->location 'figwheel.main)

(defn ns-available? [ns]
(or (try (safe-ns->location ns)
(catch Throwable t))
(or (safe-ns->location ns)
(find-ns-source-in-local-dir ns)))

#_(ns-available? "exproj.core")

(defn source-file-types-in-dir [dir]
(into
#{}
Expand Down Expand Up @@ -278,7 +269,7 @@
(.contains url "[[server-port]]")
(string/replace "[[server-port]]" (str server-port)))))

(defn setup-connect-url [{:keys [::config repl-env-options] :as cfg}]
(defn setup-connect-url [{:keys [:figwheel.main/config repl-env-options] :as cfg}]
(let [port (get-in config [:ring-server-options :port] figwheel.repl/default-port)
host (get-in config [:ring-server-options :host] "localhost")]
(fill-connect-url-template
Expand Down

0 comments on commit 512ccdb

Please sign in to comment.