carlitux / deoplete-ternjs

deoplete.nvim source for javascript
MIT License
277 stars 24 forks source link

don't report error message if .tern-project have syntax error #16

Closed butterflyfish closed 8 years ago

butterflyfish commented 8 years ago
{
    "libs": [
        "browser"
    ],
}

tern report message:

tern
Bad JSON in /Users/michael/x/.tern-project: Unexpected token } in JSON at position 41

after removing , after ], completion work.

carlitux commented 8 years ago

This is not a bug.

This is JSON format... this is not a JS file so you can't have a comma after last field-value or array item. Should be in this way:

{
    "libs": [
        "browser"
    ]
}