{"action":"created","issue":{"url":"https://api.github.com/repos/ternjs/tern/issues/256","repository_url":"https://api.github.com/repos/ternjs/tern","labels_url":"https://api.github.com/repos/ternjs/tern/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/ternjs/tern/issues/256/comments","events_url":"https://api.github.com/repos/ternjs/tern/issues/256/events","html_url":"https://github.com/ternjs/tern/issues/256","id":23271370,"number":256,"title":"[emacs plugin] Windows compatibility","user":{"login":"kimgronqvist","id":3421067,"avatar_url":"https://avatars.githubusercontent.com/u/3421067?v=3","gravatar_id":"","url":"https://api.github.com/users/kimgronqvist","html_url":"https://github.com/kimgronqvist","followers_url":"https://api.github.com/users/kimgronqvist/followers","following_url":"https://api.github.com/users/kimgronqvist/following{/other_user}","gists_url":"https://api.github.com/users/kimgronqvist/gists{/gist_id}","starred_url":"https://api.github.com/users/kimgronqvist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimgronqvist/subscriptions","organizations_url":"https://api.github.com/users/kimgronqvist/orgs","repos_url":"https://api.github.com/users/kimgronqvist/repos","events_url":"https://api.github.com/users/kimgronqvist/events{/privacy}","received_events_url":"https://api.github.com/users/kimgronqvist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":27,"created_at":"2013-11-25T20:34:08Z","updated_at":"2016-04-25T10:00:16Z","closed_at":null,"body":"Using Windows 7 64-bit, I had to take the following steps to get Tern to run properly in Emacs:\r\n\r\n1. Windows can't start the tern binary directly using start-process. I added the tern binary directory to my PATH and created this bat-file called tern.bat:\r\n\r\n       @echo off\r\n       cd /d %~dp0\r\n       node tern %*\r\n\r\n2. In my Emacs-config, I manually set tern-command like so\r\n\r\n       (setq tern-command '(\"tern\" \"--no-port-file\" \"--persistent\"))\r\n\r\nI'm unsure if it's possible to create a proper fix for this, as processes and the command line just work so differently on Windows.\r\n\r\nAnyway, this workaround should probably be mentioned in the documentation. \r\n"},"comment":{"url":"https://api.github.com/repos/ternjs/tern/issues/comments/214242955","html_url":"https://github.com/ternjs/tern/issues/256#issuecomment-214242955","issue_url":"https://api.github.com/repos/ternjs/tern/issues/256","id":214242955,"user":{"login":"svatem1","id":17679188,"avatar_url":"https://avatars.githubusercontent.com/u/17679188?v=3","gravatar_id":"","url":"https://api.github.com/users/svatem1","html_url":"https://github.com/svatem1","followers_url":"https://api.github.com/users/svatem1/followers","following_url":"https://api.github.com/users/svatem1/following{/other_user}","gists_url":"https://api.github.com/users/svatem1/gists{/gist_id}","starred_url":"https://api.github.com/users/svatem1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svatem1/subscriptions","organizations_url":"https://api.github.com/users/svatem1/orgs","repos_url":"https://api.github.com/users/svatem1/repos","events_url":"https://api.github.com/users/svatem1/events{/privacy}","received_events_url":"https://api.github.com/users/svatem1/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T10:00:16Z","updated_at":"2016-04-25T10:00:16Z","body":"i think the problem is with ` (if (eq system-type 'windows-nt) (cons \"node\" tern-itself) tern-itself))` part of tern.el ; on windows it's by default set to something like (\"node\" \"tern\"), which incorrectly looks in current dir"}}