Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix start-server behavior for use with new lighttable. #25

Merged
merged 1 commit into from Jan 26, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/lt/plugins/tern.cljs
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