Skip to content

Commit

Permalink
Merge pull request #25 from TeachMeFly/fix-tern-start
Browse files Browse the repository at this point in the history
Fix start-server behavior for use with new lighttable.
  • Loading branch information
Armaklan committed Jan 26, 2016
2 parents 54accc1 + 2b3926a commit eb60aff
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/lt/plugins/tern.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,6 @@
(notifos/set-msg! (str "Could not find Tern server executable" file) {:class "error"}))
exists))

(defn node-exe []
(if (platform/win?)
"/plugins/node/node.exe"
"/plugins/node/node"))

(behavior ::send
:triggers #{:send!}
:doc "Accepts a lt object 'this' and any type 'message'.
Expand All @@ -459,7 +454,7 @@
(notifos/working (str "Connecting to: " (:name @this)))
(let [cp (js/require "child_process")
config (object/create ::tern.config)
worker (.fork cp ternserver-path #js ["--harmony"] #js {:execPath (files/lt-home (node-exe))
worker (.fork cp ternserver-path #js ["--harmony"] #js {:execPath (.-executable js/process)
:silent true
:env #js {:NODE_PATH (files/join plugin-dir "node_modules")}
:cwd files/pwd})
Expand Down

0 comments on commit eb60aff

Please sign in to comment.