closure-linter icon indicating copy to clipboard operation
closure-linter copied to clipboard

Add Python 3 support

Open GoogleCodeExporter opened this issue 10 years ago • 4 comments

What steps will reproduce the problem?
 - Run gjslint.py using Python 3.

What is the expected output?
 - Normal linting over the source files.

What do you see instead?
Traceback (most recent call last):
  File "d:\Programming\repo\node_modules\closure-linter-wrapper\tools\gjslint.py", line 13, in <module>
    from closure_linter import gjslint
  File "d:\Programming\repo\node_modules\closure-linter-wrapper\tools\closure_linter\gjslint.py", line 168
    print '%s: %d' % (path, len(path_errors))
                 ^
SyntaxError: invalid syntax


What version of the product are you using?
 - 2.3.1.2

On what operating system?
 - Windows 7

Original issue reported on code.google.com by [email protected] on 17 Jun 2014 at 2:23

GoogleCodeExporter avatar Jun 17 '15 06:06 GoogleCodeExporter

Any update on this? A year and Python 3 has continued to become used more and 
more. Would love an update on this.

Original comment by [email protected] on 12 Jun 2015 at 7:56

GoogleCodeExporter avatar Jun 17 '15 06:06 GoogleCodeExporter

I have got same error.

C:\Python34\Scripts>gjslint Traceback (most recent call last): File "C:\Python34\Scripts\gjslint-script.py", line 9, in load_entry_point('closure-linter==2.3.13', 'console_scripts', 'gjslint')() File "c:\python34\lib\site-packages\pkg_resources__init__.py", line 558, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "c:\python34\lib\site-packages\pkg_resources__init__.py", line 2682, in load_entry_point return ep.load() File "c:\python34\lib\site-packages\pkg_resources__init__.py", line 2355, in load return self.resolve() File "c:\python34\lib\site-packages\pkg_resources__init__.py", line 2361, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "c:\python34\lib\site-packages\closure_linter\gjslint.py", line 168 print '%s: %d' % (path, len(path_errors)) ^ SyntaxError: invalid syntax

ngvtuan avatar Dec 28 '15 09:12 ngvtuan

Are there any plans to support Python 3 in the near future?

tsauerwein avatar Jan 09 '16 16:01 tsauerwein

There are no such plans. This project is as good as deprecated and not actively developed anymore. We’ll update with more information on alternatives in the near future.

rumpeltux avatar Jan 09 '16 17:01 rumpeltux