Browse files

Fix start-server behavior for use with new lighttable.

  • Loading branch information...
1 parent 54accc1 commit 2b3926a0577cf521a9d6053e960335693a32f94c @TeachMeFly TeachMeFly committed Jan 9, 2016
Showing with 1 addition and 6 deletions.
  1. +1 −6 src/lt/plugins/tern.cljs
@@ -435,11 +435,6 @@
(notifos/set-msg! (str "Could not find Tern server executable" file) {:class "error"}))
-(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'.
@@ -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})

0 comments on commit 2b3926a

Please sign in to comment.