在sublime text 3中设置额外路径错误预期逗号或结束括号

时间:2017-11-05 15:29:17

标签: python-2.7 sublimetext3 anaconda sublimetext sublime-anaconda

我试图在anaconda设置中为sublime添加额外的路径,但是我得到了这个错误,我在设置上做错了什么?

也许我错过了昏迷,但我不明白这种格式......任何想法?

{

    "auto_formatting": false,
    "autoformat_ignore":
    [
        "E309",
        "E501"

    ],
    "pep8_ignore":
    [
        "E309",
        "E501",
        "E302",
        "E265",
        "E305",
        "E702",
        "E231",
        "E221",
        "E303"
    ],
    "pyflakes_explicit_ignore":
    [
        "UnusedImport"
    ],
    "anaconda_linter_underlines": false,
    "anaconda_linter_mark_style": "none",
    "display_signatures": false,
    "disable_anaconda_completion": false


    ],
    "extra_paths":
    [
        "C:/Program Files/Autodesk/Maya2016/Python/Lib/site-packages"
    ],

}

1 个答案:

答案 0 :(得分:1)

上面给出的sublime文本配置是JSON格式。

配置问题是它有额外的] 和尾随

以下是语法更正的配置文件。

{  
  "auto_formatting":false,
   "autoformat_ignore":[  
      "E309",
      "E501"
   ],
   "pep8_ignore":[  
      "E309",
      "E501",
      "E302",
      "E265",
      "E305",
      "E702",
      "E231",
      "E221",
      "E303"
   ],
   "pyflakes_explicit_ignore":[  
      "UnusedImport"
   ],
   "anaconda_linter_underlines":false,
   "anaconda_linter_mark_style":"none",
   "display_signatures":false,
   "disable_anaconda_completion":false,
   "extra_paths":[  
      "C:/Program Files/Autodesk/Maya2016/Python/Lib/site-packages"
   ]
}