emmetio / sublime-tern

TernJS plugin for Sublime Text
222 stars 13 forks source link

Python errors when using TernJS plugin #42

Closed vbezruchkin closed 9 years ago

vbezruchkin commented 9 years ago

Hi,

I've just installed ST3 (Sublime Text Build 3065 x64 Setup.exe) on my Windows 8.1 x64. I tried to add TernJS plugin and have some issues:

TernJS: No need to update PyV8
Traceback (most recent call last):
  File "D:\Software\Sublime\sublime_plugin.py", line 157, in on_api_ready
    m.plugin_loaded()
  File "D:\Software\Sublime\Data\Packages\sublime-tern\tern.py", line 609, in plugin_loaded
    init()
  File "D:\Software\Sublime\Data\Packages\sublime-tern\tern.py", line 84, in init
    sync_all_projects()
  File "D:\Software\Sublime\Data\Packages\sublime-tern\tern.py", line 384, in sync_all_projects
    for p in all_projects():
  File "D:\Software\Sublime\Data\Packages\sublime-tern\tern.py", line 327, in all_projects
    proj = copy(project.all_projects())
  File "D:\Software\Sublime\Data\Packages\sublime-tern\ternjs\project.py", line 130, in all_projects
    result = [info(p) for p in projects_from_opened_files()]
  File "D:\Software\Sublime\Data\Packages\sublime-tern\ternjs\project.py", line 130, in <listcomp>
    result = [info(p) for p in projects_from_opened_files()]
  File "D:\Software\Sublime\Data\Packages\sublime-tern\ternjs\project.py", line 136, in info
    config = get_ternjs_config(project_id)
  File "D:\Software\Sublime\Data\Packages\sublime-tern\ternjs\project.py", line 63, in get_ternjs_config
    conf = json.load(open(project))
  File "./json/__init__.py", line 274, in load
  File "./json/__init__.py", line 319, in loads
  File "./json/decoder.py", line 352, in decode
  File "./json/decoder.py", line 368, in raw_decode
ValueError: Expecting property name enclosed in double quotes: line 9 column 5 (char 98)

any chance to get it fixed?

Thanks!

sergeche commented 9 years ago

ValueError: Expecting property name enclosed in double quotes: line 9 column 5 (char 98)

Make sure your *.sublime-project files contain valid JSON

vbezruchkin commented 9 years ago

Yep, thanks a lot.

This line caused error:

// add this! ternjs object

I thought comments don't break files config files. Thanks again!