I have several Python solutions created with VS Community 2013 with PTVS 2.1. PyLint works fine in all these projects.
I recently installed VS Community 2015 with PTVS 2.2. I can open and run these VS 2013 projects in VS 2015 with no problems. However, when I run PyLint in VS 2015, I get errors like this (from VS Output window):
No config file found, using default configuration
************* Module spamreport.py
spamreport.py(1,0): warning F0001: No module named spamreport.py [F:fatal]
************* Module spamscan.py
spamscan.py(1,0): warning F0001: No module named spamscan.py [F:fatal]
************* Module spam_logger.py
spam_logger.py(1,0): warning F0001: No module named spam_logger.py [F:fatal]
************* Module utils.py
utils.py(1,0): warning F0001: No module named py in C:\Python34\lib\site-packages\pylint\checkers/['utils', 'py'] [F:fatal]
I can run PyLint from a console no problem.
D:\Users\Clayton\Code\Python\disqus>pylint spamscan.py
Report
======
131 statements analysed.
...
However, if I run PyLint from the wrong directory, I get a similar error:
D:\Users\Clayton\Code\Python>pylint spamscan.py
************* Module spamscan.py
F: 1, 0: No module named spamscan.py (fatal)
This seems to suggest VS 2015 is not using the correct working directory. I've checked the Project Properties and the Project Folder and Project Home entries are correct. I've tried rebuilding the solution from scratch as a VS 2015 solution, but the results are the same.
VS Community 2015 and PTVS 2.2 were both released just a few days ago. Anyone else encountering this issue? Any ideas how to fix this?