Comments (4)
Try the hotfix I described in #38
from sublimelinter-flake8.
Hey,
I just extracted the Package using PackageResourceViewer
and patched the linter.py
like you suggested.
It works now.
Please merge #38 as soon as possible 😄
Thanks for the hint.
from sublimelinter-flake8.
Just a little follow-up to #41
I just installed the latest version from PackageControl (and removed my patched version first) - it works again.
Now I'm a happy user again 😸
Thank you all!
from sublimelinter-flake8.
Not to resurrect an old thread, but #41 is the wrong fix for this.
SublimeLinter tries to use your system's python version, which in your case seems to be 2. If you want to use flake8 with a version that's not your system default, you need to either set the version to 3 in the global settings, or do that that in per-project basis with a .sublimelinterrc
file, like this very project does:
https://github.com/SublimeLinter/SublimeLinter-flake8/blob/master/.sublimelinterrc#L2
PR #41 will lock flake8 to ST's internal python version, which is 3, for everyone, and will ignore the version defined in the settings.
This means you can no longer choose a different version, and even worse, you cannot define a virtual environment binary (virtualenv which can contain libraries that your system does not, but are required to avoid "module not found" errors).
from sublimelinter-flake8.
Related Issues (20)
- recent update triggers ImportError of configparser module HOT 4
- Does not work at all in Sublime 3.1.1 HOT 3
- F401 handling trips on star imports HOT 3
- No linting errors reported but there should be
- Can't find this package in Package control HOT 3
- .flake8 in a subdirectory HOT 4
- can get E,W type errors, but no F type errors HOT 7
- Error: 'selector' is mandatory in 'cls.defaults' HOT 3
- Is --per-file-ignores supported for flake8 >= 3.7.0? HOT 11
- Package not showing in packaging control anymore HOT 1
- Shows E251 for function definitions having type annotations HOT 2
- Args seem to be getting ignored HOT 1
- Extend "E501 line too long" match till end of line HOT 1
- AttributeError: 'int' object has no attribute 'rstrip' HOT 3
- W type errors not showing HOT 1
- SublimeText 4 Support HOT 2
- Using per-file-ignores argument in settings causes an error HOT 4
- TypeError: expected str, bytes or os.PathLike object, not TextIOWrapper. Why extra " -" is being added after `flake8 --format default`? HOT 6
- plugin_host-3.3 has exited unexpectedly HOT 6
- List unpack operator in assignment triggers false positive HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sublimelinter-flake8.