src/eric7/Plugins/CheckerPlugins/SyntaxChecker/jsCheckSyntax.py

branch
eric7
changeset 11148
15e30f0c76a8
parent 11090
f5f5f5803935
equal deleted inserted replaced
11147:dee6e106b4d3 11148:15e30f0c76a8
156 number, column, code string and the error message. 156 number, column, code string and the error message.
157 @rtype list of dict 157 @rtype list of dict
158 """ 158 """
159 if codestring: 159 if codestring:
160 try: 160 try:
161 import esprima # noqa: I101, I102 161 import esprima # noqa: I-101, I-102
162 except ImportError: 162 except ImportError:
163 error = "esprima not available. Install it via the PyPI interface." 163 error = "esprima not available. Install it via the PyPI interface."
164 return [{"error": (file, 0, 0, "", error)}] 164 return [{"error": (file, 0, 0, "", error)}]
165 165
166 try: 166 try:

eric ide

mercurial