-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StandardJS "fix" doesn't work. #2816
Comments
Anyone other information than, "doesn't work?" |
Yes, linter Standard for JS works fine, but ALEFix or fix on save - zero reaction. It's all. It is not just "plugin conflict" or something else, just no reaction. Another "fixers" works, for JS or whatever. Only standard with this behavior. |
Thanks! But if ale has "fix", why need other dependencies. I'll just will use integrate fix from vim-lsp language server. |
I have a same problem. It worked perfectly when I used the standard version 12.0.1. Then it doesn't work when using 13.1.0 and 14.3.1. |
Same here. Fix does nothing. It seems the temp file folder isn't created. |
Probabily i have the same problem. I noticed stardard fixer works fine only if you open vim instance in /tmp folder.. maybe some path problem? |
Same as @nack43 for me. Using 14.3.1 fails, but 12.0.1 works fine. |
I'm having this problem, but I don't think it's ale related. So when I look at
Which suggests to me that ale has copied my file to a temporary folder before running
So maybe it's something with standard. Like @imtyM , I'm also using 14.3.1 ETA: I think it's related to this issue: standard/standard#1384 |
FWIW a workaround is to downgrade to standard@12 which doesn't exhibit this problem. |
@theimpostor thanks, works with standard 12.0 |
Having the same issue with 14.3.1 but... I need 14.3.1 :s Any solution or workaround beside downgrading ? |
I've merged #3046 now, which I hear fixes this. I recommend everyone use ESLint instead of |
Debian 10, last vim from git(vim/src/ make, sudo make install). Another "fixers", for example: "prettier" - works fine.
.bashrc
NPM_PACKAGES="${HOME}/.local/.npm"
export PATH="$NPM_PACKAGES/bin:$PATH"
export MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
npm -g install standard
let g:ale_fixers = {'c': ['clang-format'], 'javascript': ['standard']}
I've tried ALEFix - no result.
Info:
Current Filetype: javascript
Available Linters: ['eslint', 'fecs', 'flow', 'flow-language-server', 'jscs', 'jshint', 'standard', 'tsserver', 'xo']
Enabled Linters: ['standard', 'tsserver']
Suggested Fixers:
'eslint' - Apply eslint --fix to a file.
'fecs' - Apply fecs format to a file.
'importjs' - automatic imports for javascript
'prettier' - Apply prettier to a file.
'prettier_eslint', 'prettier-eslint' - Apply prettier-eslint to a file.
'prettier_standard', 'prettier-standard' - Apply prettier-standard to a file.
'remove_trailing_lines' - Remove all blank lines at the end of a file.
'standard' - Fix JavaScript files using standard --fix
'trim_whitespace' - Remove all trailing whitespace characters at the end of every line.
'xo' - Fix JavaScript/TypeScript files using xo --fix.
Linter Variables:
let g:ale_javascript_standard_executable = 'standard'
let g:ale_javascript_standard_options = ''
let g:ale_javascript_standard_use_global = 0
let g:ale_javascript_tsserver_config_path = ''
let g:ale_javascript_tsserver_executable = 'tsserver'
let g:ale_javascript_tsserver_use_global = 0
Global Variables:
let g:ale_cache_executable_check_failures = v:null
let g:ale_change_sign_column_color = 0
let g:ale_command_wrapper = ''
let g:ale_completion_delay = v:null
let g:ale_completion_enabled = 0
let g:ale_completion_max_suggestions = v:null
let g:ale_echo_cursor = 1
let g:ale_echo_msg_error_str = 'Error'
let g:ale_echo_msg_format = '%code: %%s'
let g:ale_echo_msg_info_str = 'Info'
let g:ale_echo_msg_warning_str = 'Warning'
let g:ale_enabled = 1
let g:ale_fix_on_save = 1
let g:ale_fixers = {'c': ['clang-format'], 'javascript': ['standard']}
let g:ale_history_enabled = 1
let g:ale_history_log_output = 1
let g:ale_keep_list_window_open = 0
let g:ale_lint_delay = 200
let g:ale_lint_on_enter = 1
let g:ale_lint_on_filetype_changed = 1
let g:ale_lint_on_insert_leave = 1
let g:ale_lint_on_save = 1
let g:ale_lint_on_text_changed = 'normal'
let g:ale_linter_aliases = {}
let g:ale_linters = {'javascript': ['standard', 'tsserver']}
let g:ale_linters_explicit = 0
let g:ale_list_vertical = 0
let g:ale_list_window_size = 10
let g:ale_loclist_msg_format = '%code: %%s'
let g:ale_lsp_root = {}
let g:ale_max_buffer_history_size = 20
let g:ale_max_signs = -1
let g:ale_maximum_file_size = v:null
let g:ale_open_list = 0
let g:ale_pattern_options = v:null
let g:ale_pattern_options_enabled = v:null
let g:ale_set_balloons = 0
let g:ale_set_highlights = 1
let g:ale_set_loclist = 1
let g:ale_set_quickfix = 0
let g:ale_set_signs = 1
let g:ale_sign_column_always = 0
let g:ale_sign_error = '>>'
let g:ale_sign_info = '--'
let g:ale_sign_offset = 1000000
let g:ale_sign_style_error = '>>'
let g:ale_sign_style_warning = '--'
let g:ale_sign_warning = '--'
let g:ale_sign_highlight_linenrs = 0
let g:ale_statusline_format = v:null
let g:ale_type_map = {}
let g:ale_use_global_executables = v:null
let g:ale_virtualtext_cursor = 0
let g:ale_warn_about_trailing_blank_lines = 1
let g:ale_warn_about_trailing_whitespace = 1
Command History:
(executable check - success) standard
(finished - exit code 1) ['/bin/bash', '-c', '''standard'' --stdin ''/home/pavel/JS/main.js'' < ''/tmp/veY6zf4/1/main.js''']
<<>>
:1:10: 'range' is defined but never used.
:1:15: Missing space before function parentheses.
:2:7: 'array' is never reassigned. Use 'const' instead.
:2:17: Extra semicolon.
:4:53: Extra semicolon.
:6:59: Extra semicolon.
:8:15: Extra semicolon.
:11:10: 'sum' is defined but never used.
:11:13: Missing space before function parentheses.
:12:16: Extra semicolon.
:13:12: 'value' is never reassigned. Use 'const' instead.
:14:19: Extra semicolon.
:16:15: Extra semicolon.
:19:10: 'reverseArray' is defined but never used.
:19:22: Missing space before function parentheses.
:20:1: Expected indentation of 2 spaces but found 4.
:20:9: 'result' is never reassigned. Use 'const' instead.
:20:20: Extra semicolon.
:21:1: Expected indentation of 2 spaces but found 4.
:21:70: Extra semicolon.
:22:1: Expected indentation of 2 spaces but found 7.
:22:21: Extra semicolon.
:25:10: 'reverseArrayInPlace' is defined but never used.
:25:29: Missing space before function parentheses.
:27:9: 'old' is never reassigned. Use 'const' instead.
:27:23: Extra semicolon.
:28:43: Extra semicolon.
:29:38: Extra semicolon.
:31:15: Extra semicolon.
:34:10: 'arrayToList' is defined but never used.
:34:21: Missing space before function parentheses.
:35:18: Extra semicolon.
:37:43: Extra semicolon.
:39:14: Extra semicolon.
:42:10: 'listToArray' is defined but never used.
:42:21: Missing space before function parentheses.
:43:7: 'result' is never reassigned. Use 'const' instead.
:43:18: Extra semicolon.
:44:72: Extra semicolon.
:45:16: Extra semicolon.
:48:10: 'prepend' is defined but never used.
:48:17: Missing space before function parentheses.
:49:38: Extra semicolon.
:52:10: 'nth' is defined but never used.
:52:13: Missing space before function parentheses.
:53:30: Extra semicolon.
:54:14: Expected '===' and instead saw '=='.
:54:37: Extra semicolon.
:55:36: Extra semicolon.
:58:10: 'deepEqual' is defined but never used.
:58:19: Missing space before function parentheses.
:59:27: Extra semicolon.
:60:29: Expected '!==' and instead saw '!='.
:61:27: Expected '!==' and instead saw '!='.
:61:52: Extra semicolon.
:62:3: Split initialized 'let' declarations into multiple statements.
:62:7: 'keysA' is never reassigned. Use 'const' instead.
:62:31: 'keysB' is never reassigned. Use 'const' instead.
:62:53: Extra semicolon.
:63:50: Extra semicolon.
:64:12: 'key' is never reassigned. Use 'const' instead.
<<>>
(executable check - success) tsserver
(started) ['/bin/bash', '-c', '''tsserver''']
The text was updated successfully, but these errors were encountered: