Comments (12)
Simply disable Lint On Save
in the settings of the main linter
package. linter-flake8
has no control over when it is ran, it only provides a service that is consumed by the linter
package.
If you also have Lint on fly disabled you would then need to manually trigger the lint from your command palette.
from linter-flake8.
I don't see a Lint On Save in the main linter package? Do you mean Lint on Fly
?
I switched that off but it does not help.
from linter-flake8.
@michaelaye You need to contact author of that repo and tell them to set modifiesBuffer:true
on the linter object, that way their linter will no longer conflict with any other packages and will be run before anything else, it will also be run in series instead of parallel to avoid those race-conditioned-buffer-modification scenarios.
from linter-flake8.
but the clash only exists because of linter-flake8 decides to do linting on-save, despite not being supported by the linter package? So, by definition of the linter-package, this should never occur.
from linter-flake8.
@michaelaye We have two types of linter, those who modify buffers and those who don't, the package you mentioned modifies buffer and it will conflict with packages unless it sets those param in it's linter object.
from linter-flake8.
ah, I did not realize that you talk about the autopep8 package, did not understand that as a linter, thanks.
from linter-flake8.
@steelbrain I don't think he is using a linter package, I'm guessing either https://github.com/markbaas/atom-python-autopep8 or the support built into AtomBeautify?
from linter-flake8.
@Arcanemagus He should, if that package author wants to avoid conflicts with linters. 'cause there's no other way :)
from linter-flake8.
I'm using the former, python-autopep8
from linter-flake8.
As @steelbrain said, there really isn't a way to avoid a conflict here as the packages have no idea what the other is doing. Your only solution @michaelaye would be to make one of the packages only do stuff when you ask it to. I would think that autopep8 would be the ideal candidate for that myself, but I guess that would be a personal preference.
Unfortunately it looks like currently the linter
package will always trigger a lint on the save event so you can't avoid that in any case. Unless I'm mistaken @steelbrain?
from linter-flake8.
@Arcanemagus You are right, it always tries to lint on save (unless there's a previous lint operation in progress)
from linter-flake8.
So @michaelaye the simplest thing would be to trigger the autopep8
run manually, it looks like Ctrl+Alt+S
is the default keybinding for that in the package.
from linter-flake8.
Related Issues (20)
- Support for PEP 484 - Type Hints HOT 1
- Flake8 rule 'B950' reported an invalid point HOT 1
- Uncaught Error: Cannot find module 'atom-package-deps'Require stack:- $ATOM_HOME/packages\linte...
- Possible error with flake8 address HOT 2
- Linter-Flake8 doesn't work HOT 1
- Uncaught Error: Cannot find module '$ATOM_HOME/packages\linter-flake8\node_modules\underscore-plu...
- Fixing Linter-flake8 HOT 1
- Trying to install linter-flake8 and atom is saying flake8 is not installed on the path HOT 1
- Error: ~/.config/flake8 ignored by linter-flake8
- syntax error
- Linter-Flake8 keeps on crashing HOT 1
- Dependency Dashboard
- Unique issue of using PyScaffold that can cause linter-flake8 settings to 'not work'
- Problem with lines where colon is used: invalid point HOT 1
- Unsure of how to check that everything is installed properly
- linter-flake8 with python 3 only in Majaro Qonos (21.2.6)
- Failed to activate the linter-flake8 package HOT 1
- I think I have found out the problem in my box. The flake8 count unicode characters in a different way. My code contains several unicode lines, and when flake8 reports error, it returns the column number that is much bigger than the actual line length returned by js .length() function. I guess flake8 count a unicode character as 2 while js count it as 1.
- Fail to install linter-flake8
- Flake8 rule 'E999' reported an invalid point
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 linter-flake8.