-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no output for --py3k checker with python3 env #2956
Comments
We just discovered this as well, and I am wondering why the syntax errors aren't reported during |
This happens mainly because we use the Python 3's parser module for parsing this Python 2 file. Given you have Python 2 specific syntax, the parser fails to parse the file, resulting in Ideally we should use a Python 2 specific parser, which we can actually expose via the Regarding your question on two versions of |
Alright, that makes sense now, thank you for your answer, I'll try to work on it, and I'll PR when I have a patch :) |
At the very least, pylint should report parse errors properly in
|
Enable syntax errors to properly surface invalid code in py3 porting mode, instead of silently swallowing them and giving the incorrect impression that the code is valid for py3. Fixes pylint-dev#2956
Enable syntax errors to properly surface invalid code in py3 porting mode, instead of silently swallowing them and giving the incorrect impression that the code is valid for py3. Closes pylint-dev#2956
Enable syntax errors to properly surface invalid code in py3 porting mode, instead of silently swallowing them and giving the incorrect impression that the code is valid for py3. Closes pylint-dev#2956
Enable syntax errors to properly surface invalid code in py3 porting mode, instead of silently swallowing them and giving the incorrect impression that the code is valid for py3. Closes pylint-dev#2956
Enable syntax errors to properly surface invalid code in py3 porting mode, instead of silently swallowing them and giving the incorrect impression that the code is valid for py3. Closes pylint-dev#2956
Enable syntax errors to properly surface invalid code in py3 porting mode, instead of silently swallowing them and giving the incorrect impression that the code is valid for py3. Closes #2956
Hello,
I'm testing
pylint --py3k
with a python 3 env (Python 3.5.2) with a basic file but the command is not returning any output:PS.
Python 3.5.2
is the default version on ubuntu xenial.Version
with a python 2 (and
pylint 1.9.4, astroid 1.6.6
) it's working well, except for the exception syntax. (which is already mentioned in #2582)I understand that two different pylint version for two different python versions, but are they maintained separately ? if yes, why ?
Thanks !
The text was updated successfully, but these errors were encountered: