Comments (5)
How are you adding the show-code
option? User.sublime-setting? inline? So this issue is that it is trying to make it a CLI arg, which it isn't, it's a SublimeLinter arg.
from sublimelinter-flake8.
I confirm the error. When the SublimeLinter-flake8 installed, it automatically adds its settings to SublimeLinter.sublime-settings file as shown below. As seen, flake8 has a show-code
option and pylint has show-codes
option. When I add an extra s at the end of flake8 show-code option, it worked but still didn't show Warning Codes in the status bar.
...
"linters": {
"flake8": {
"@disable": false,
"args": [],
"builtins": "",
"excludes": [],
"ignore": "",
"jobs": "2",
"max-complexity": 10,
"max-line-length": null,
"select": "",
"show-code": true
},
"pylint": {
"@disable": true,
"args": [],
"disable": "",
"enable": "",
"excludes": [],
"paths": [],
"rcfile": "",
"show-codes": true
}
},
...
from sublimelinter-flake8.
Confirmed here as well.
from sublimelinter-flake8.
SublimeLinter.sublime-settings:
{
"user": {
"@python": 2.7,
"debug": true,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Circle/Circle.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "background",
"linters": {
"annotations": {
"@disable": false,
"args": [],
"errors": [
"FIXME"
],
"excludes": [],
"warnings": [
"NOTE",
"README",
"TODO",
"XXX",
"@todo"
]
},
"flake8": {
"@disable": false,
"args": [],
"builtins": "",
"excludes": [],
"ignore": "F403,E111,E113,D100,D102,D101",
"jobs": "1",
"max-complexity": 10,
"max-line-length": 120,
"select": "",
"show-code": true
}
},
"mark_style": "outline",
"no_column_highlights_line": false,
"passive_warnings": false,
"paths": {
"linux": [],
"osx": [],
"windows": []
},
"python_paths": {
"linux": [],
"osx": [
"/usr/local/bin/"
],
"windows": []
},
"rc_search_limit": 3,
"shell_timeout": 10,
"show_errors_on_save": false,
"show_marks_in_minimap": true,
"syntax_map": {
"html (django)": "html",
"html (rails)": "html",
"html 5": "html",
"magicpython": "python",
"php": "html",
"python django": "python"
},
"warning_color": "DDB700",
"wrap_find": true
}
}
Console output:
SublimeLinter: debug mode: on
SublimeLinter: temp directory: /var/folders/b6/q82k504x00l9gwzzztpw904h0000gp/T/SublimeLinter3-rzhuzha
SublimeLinter: find_python(version='3', script=None, module=None)
SublimeLinter: find_python: requested version = {'major': 3, 'minor': None}
SublimeLinter: user shell: /usr/local/bin/fish
SublimeLinter: computed PATH using /usr/local/bin/fish:
/Users/rzhuzha/.rbenv/shims
/Users/rzhuzha/.rbenv/bin
/usr/local/bin
/usr/local/sbin
/usr/bin
/bin
/usr/sbin
/sbin
SublimeLinter: find_posix_python: python3 => /usr/local/bin/python3
SublimeLinter: find_python: system python = /usr/local/bin/python3
SublimeLinter: find_python: available version = {'major': 3, 'minor': 5}
SublimeLinter: find_python: <= ('/usr/local/bin/python3', None, 3, 5)
SublimeLinter: sys.path for /usr/local/bin/python3:
/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-20.1.1-py3.5.egg
/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python35.zip
/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5
/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/plat-darwin
/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/lib-dynload
/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages
SublimeLinter: flake8 imported <module 'flake8.engine' from '/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/flake8/engine.py'>
SublimeLinter: annotations activated: <builtin>
SublimeLinter: flake8 version: 2.5.4
SublimeLinter: flake8: (>= 2.2.2) satisfied by 2.5.4
SublimeLinter: flake8 activated: <builtin>
SublimeLinter: annotations activated: <builtin>
SublimeLinter: find_python(version=2.7, script=None, module=<module 'flake8.engine' from '/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/flake8/engine.py'>)
SublimeLinter: find_python: requested version = {'major': 2, 'minor': 7}
SublimeLinter: find_python: available version = {'major': 3, 'minor': 3}
SublimeLinter: find_posix_python: python2.7 => /usr/local/bin/python2.7
SublimeLinter: find_python: system python = /usr/local/bin/python2.7
SublimeLinter: find_python: available version = {'major': 2, 'minor': 7}
SublimeLinter: find_python: <= ('/usr/local/bin/python2.7', None, 2, 7)
SublimeLinter: find_python(version='2.7', script='flake8', module=<module 'flake8.engine' from '/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/flake8/engine.py'>)
SublimeLinter: find_python: requested version = {'major': 2, 'minor': 7}
SublimeLinter: find_python: available version = {'major': 3, 'minor': 3}
SublimeLinter: find_python: system python = /usr/local/bin/python2.7
SublimeLinter: find_python: available version = {'major': 2, 'minor': 7}
SublimeLinter: find_python: 'flake8' path = /usr/local/bin/flake8
SublimeLinter: find_python: <= ('/usr/local/bin/python2.7', '/usr/local/bin/flake8', 2, 7)
SublimeLinter: flake8: send_messages_to_sqs.py ['/usr/local/bin/python2.7', '/usr/local/bin/flake8', '--max-complexity=10', '--jobs=1', '--show-code=True', '--ignore=F403,E111,E113,D100,D102,D101', '--max-line-length=120', '-']
SublimeLinter: flake8 output:
Usage: flake8 [options] input ...
flake8: error: no such option: --show-code
Package Control: Skipping automatic upgrade, last run at 2016-04-01 16:32:02, next run at 2016-04-01 17:32:02 or after
SublimeLinter: annotations activated: <builtin>
reloading Packages/User/SublimeLinter.sublime-settings
SublimeLinter: flake8: send_messages_to_sqs.py ['/usr/local/bin/python2.7', '/usr/local/bin/flake8', '--max-complexity=10', '--jobs=1', '--show-code=True', '--ignore=F403,E111,E113,D100,D102,D101', '--max-line-length=120', '-']
SublimeLinter: flake8 output:
Usage: flake8 [options] input ...
flake8: error: no such option: --show-code
from sublimelinter-flake8.
Should be fixed by #38.
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.