I can't get tern_for_sublime working on Sublime Text 2 (which I think is running Python 2.6?), Windows 7 x64 SP1. I've installed tern through npm install -g tern, and set the paths as necessary in my user settings:
When I try to edit a Javascript file or get an autocomplete dialog, the console shows errors:
Traceback (most recent call last):
File ".\sublime_plugin.py", line 236, in on_query_completions
File ".\tern.py", line 54, in on_query_completions
File ".\tern.py", line 356, in ensure_completions_cached
File ".\tern.py", line 277, in run_command
File ".\tern.py", line 151, in server_port
File ".\tern.py", line 163, in start_server
TypeError: coercing to Unicode: need string or buffer, list found
Traceback (most recent call last):
File ".\sublime_plugin.py", line 210, in on_deactivated
File ".\sublime_plugin.py", line 154, in run_timed_function
File ".\sublime_plugin.py", line 209, in <lambda>
File ".\tern.py", line 33, in on_deactivated
File ".\tern.py", line 21, in on_deactivated
File ".\tern.py", line 322, in send_buffer
File ".\tern.py", line 151, in server_port
File ".\tern.py", line 163, in start_server
TypeError: coercing to Unicode: need string or buffer, list found
From what I can tell it's trying to convert tern_arguments, which is an empty list (defined on line 16 of tern.py), into a string and failing. Removing the tern_arguments solves the error and Tern works.
I can't get tern_for_sublime working on Sublime Text 2 (which I think is running Python 2.6?), Windows 7 x64 SP1. I've installed tern through
npm install -g tern
, and set the paths as necessary in my user settings:When I try to edit a Javascript file or get an autocomplete dialog, the console shows errors:
From what I can tell it's trying to convert
tern_arguments
, which is an empty list (defined on line 16 oftern.py
), into a string and failing. Removing thetern_arguments
solves the error and Tern works.