grafluxe / pylinter Goto Github PK
View Code? Open in Web Editor NEWA Python linter for Adobe Brackets. This extension lints Python code on save (with Pylint). It works like JSLint, but for Python.
License: MIT License
A Python linter for Adobe Brackets. This extension lints Python code on save (with Pylint). It works like JSLint, but for Python.
License: MIT License
Hi.
I did a clean install of python, after I installed the pip and after the pylint.
All of them running without problems in command line prompt and after installed this extension in my Brackets I inserted the pylint location in the brackets.json configuration file like this:
"pylinter.pylintPath": "C:\\Users\\leand\\AppData\\Local\\Programs\\Python\\Python36-32\\Scripts\\pylint.exe",
"pylinter.outputPattern": "{msg_id} > {msg} [{symbol} @ {line},{column}]",
after I did it no more error messages of extension running fail but when I open a .py file is not showing nothing about pylint.
I run the pylint from command line in the same file and it showed messages, but it still not working in Brackets.
My Brackets version:
sprint 8 version 1.8.0-17108 (alf_localization_release_1.8 3af64fae4)
timestamp version: Wed Nov 02 2016 12:07:29 GMT+0000
Thanks.
I tried following instruction from the pylint site. simply typing "pip install pylint" didnt work first time. Through the web i found some other code. Then found this code, AtomLinter/linter-pylint#30 (comment)
After that i did do "pip install pylint" and the code run but i then get this error.
Why is all the info on how to do this properly hidden??? Im not ax experienced coder, know some basics. But installing all of this seems like a hell of a job and an only guru's pull it off properly
I ran into a beginner issue (due to semantics) that I solved myself but I wanted to provide it for anyone newcomers running into the same issue. After installing the Brackets extension and opening a Python file you get this error immediately:
"Brackets" Pylint can't be found! Please confirm you have Pylint installed and that the property 'pylint.pulintPath' in your Brackets preference file is correct. Once you edit your preference file, please restart Brackets
The reason: Your path is wrong or left as default
The solution: In Brackets, Debug > Open Preferences File. Edit the brackets.json file
"pylinter.pylintPath": "path\\to\\pylint"
Change that path to the correct one
Making sure everything is correct:
Find the Path: In Windows, to find the python path click the windows button type Python, right click the program and go to Open File Location. If it bring's you to a shortcut right click that and do the same. If it's Python 3.7 it will be around here: "C:\Users[your user]\AppData\Local\Programs\Python\Python37-32".
Go to the Scripts folder. If a pylint file is not inside it that means it's not installed. if it is go to step 4.
Install Pylint: Windows button > CMD, right click and run as administrator. cd C:\Users\[your user]\AppData\Local\Programs\Python\[Python version]\Scripts
then follow the instructions here. You will probably have to do python -m pip install --upgrade pip
then likely python -m pip install pylint
4. Getting the path correct: Go back to editing the brackets.json file and change the code "path\\to\\pylint"
to "C:\\Users\\[your user]\\AppData\\Local\\Programs\\Python\\[Python version]\\Scripts\\pylint.exe"
.
@grafluxe I think most people could figure this problem out if an example was added to the Configure section the the ReadMe. I didn't know / in the filepath had to be changed to // and that pylint.exe was necessary to include in the path. I'll gladly remove this issue if there's another place I can spell this out for others looking for answers. Thank you for all your hard work on the Linter.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.