You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and it correctly beautify it. Then I have installed your python library and tested against the same js but this result in an error:
>>> res = jsbeautifier.beautify_file('beautify.js')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/jsbeautifier-1.5.1-py2.7.egg/jsbeautifier/__init__.py", line 231, in beautify_file
return beautify(''.join(stream.readlines()), opts);
File "/usr/local/lib/python2.7/dist-packages/jsbeautifier-1.5.1-py2.7.egg/jsbeautifier/__init__.py", line 223, in beautify
return b.beautify(string, opts)
File "/usr/local/lib/python2.7/dist-packages/jsbeautifier-1.5.1-py2.7.egg/jsbeautifier/__init__.py", line 352, in beautify
self.input = self.unpack(s, self.opts.eval_code)
File "/usr/local/lib/python2.7/dist-packages/jsbeautifier-1.5.1-py2.7.egg/jsbeautifier/__init__.py", line 419, in unpack
return unpackers.run(source, evalcode)
File "/usr/local/lib/python2.7/dist-packages/jsbeautifier-1.5.1-py2.7.egg/jsbeautifier/unpackers/__init__.py", line 45, in run
source = unpacker.unpack(source)
File "/usr/local/lib/python2.7/dist-packages/jsbeautifier-1.5.1-py2.7.egg/jsbeautifier/unpackers/packer.py", line 27, in unpack
payload, symtab, radix, count = _filterargs(source)
File "/usr/local/lib/python2.7/dist-packages/jsbeautifier-1.5.1-py2.7.egg/jsbeautifier/unpackers/packer.py", line 49, in _filterargs
args = re.search(argsregex, source, re.DOTALL).groups()
AttributeError: 'NoneType' object has no attribute 'groups'
Is there any way to solve this problem?
Thanks in advance
The text was updated successfully, but these errors were encountered:
Hi, thanks for the great job.
I tried your online beautifier against this code
and it correctly beautify it. Then I have installed your python library and tested against the same js but this result in an error:
Is there any way to solve this problem?
Thanks in advance
The text was updated successfully, but these errors were encountered: