summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-04-09rust-analyzer server binary changed nameJon Gjengset
2020-04-02add stdin option for supported vint versionsTim Bedard
2020-03-26Issue 2598: Addtional ^M characters on WindowsJohn Gehrig
Windows may insert carriage return line endings, which ALE does not handle well. These characters should not be displayed. Adds a line to remove these characters for all messages.
2020-03-26Fix code conventionpuritys
2020-03-26Fix code conventionpuritys
2020-03-26To support javaagent on eclipselsppuritys
2020-03-23Fix 2732 - Add bashate supportHoracio Sanson
2020-03-19Fix 345 - update java language server docs.Horacio Sanson
2020-03-17Avoid overriding parsed C/C++ -std=* flagAlex Wang
ALE appends flags from {c,cpp}_{clang,gcc}_options after those found by parsing compile_commands.json or Makefile output. If -std=* flags are present in both the ALE flags and parsed flags, the last one present (i.e., ALE's -std=* flag) will determine the mode the compiler works in. This can result in errors showing up in vim but not in the actual build or vice-versa. For example, say you have foo.cpp: #include <type_traits> int main() { return std::is_same_v<float, int>; } If cpp_clang_options contains -std=c++17 and -std=c++14 is parsed from compile_commands.json, then ALE would end up running something like: clang++ -S -x c++ -fsyntax-only -std=c++14 -std=c++17 - < foo.cpp This would result in no errors showing up in Vim, but the actual build would fail with: <stdin>:3:14: error: no template named 'is_same_v' in namespace 'std'; did you mean 'is_same'? return std::is_same_v<float, int>; ~~~~~^~~~~~~~~ is_same /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits:872:61: note: 'is_same' declared here template <class _Tp, class _Up> struct _LIBCPP_TEMPLATE_VIS is_same : public false_type {}; ^ <stdin>:3:35: error: expected '(' for function-style cast or type construction return std::is_same_v<float, int>; ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 2 errors generated. as the actual build would not have the -std=c++17 flag added by ALE. If cpp_clang_options contains -std=c++14 and -std=c++17 is parsed from compile_commands.json, then the opposite problem would occur. ALE would end up running something like: clang++ -S -x c++ -fsyntax-only -std=c++17 -std=c++14 - < foo.cpp and would show an error on line 3 of foo.cpp: [clang] No template named 'is_same_v' in namespace 'std'; did you mean 'is_same'? (fix available) The actual build, on the other hand, would succeed without any complaints. Removing -std=* from ALE's flags if it is already present in the parsed flags ensures that the wrong -std=* flag is not used. An alternative would have been to switch the order in which parsed flags and ALE flags were concatenated when producing the command to execute, but that could prevent a user from intentionally using ALE's flags to override some other flags, e.g. -W* flags to enable/disable warnings in a project whose flags are not under the developer's control. -std=* flags are also present in cuda/nvcc.vim, objc/clang.vim, objcpp/clang.vim, and vhdl/ghdl.vim, but none of those linters appear to parse compile_commands.json or `make` output.
2020-03-15Fix vim sign priority patch checkStarryLeo
With Vim 8.2 released, the previous check method is not accurate enough.
2020-03-12Fix 2816 - Standard fix does not work.Horacio Sanson
The standard linter --fix fails if the file being input is not relative to the project root (https://github.com/standard/standard/issues/1384). This MR attempts to fix this by changing the command so the input file is relative to the project root and the output is to a temporary file. Preliminary tests with toy javascript projects seem to indicate this works fine.
2020-03-11Fixes #2982 - Implement g:ale_exclude_highlightsw0rp
Particular highlights can now be excluded by providing Lists of regular expressions.
2020-03-06Fix 3011 - not catching kotlinc output on stderrTho Nguyen Duc
2020-03-04Refactor the "s:LoadArgCount()" function (#3025)w0rp
* Refactor the "s:LoadArgCount()" function Previously, this function would always set "v:errmsg" on the first call with a given function. This is because autoloaded functions are not defined on the first call. A number of improvements have been made: - a useless local function ("l:Function") is removed - the "execute()" builtin captures the output, instead of ":redir" - a ":try" block handles the case where a function is not defined - a useless ":if" is removed since ":redir" always defines the var - confusing quoting is re-written (remove double "'" chars) Fixes: #3021
2020-02-25Mention using 'hidden' in combination with ALEGoToDefinitionw0rp
2020-02-22Add default labels to issue templatesw0rp
2020-02-16Alias ps1 filetype to powershellKevin Locke
Rather than requiring users to alias ps1 to powershell themselves, include it in s:default_ale_linter_aliases. Since [vim-ps1] is a popular (the only?) PowerShell ftplugin and there do not appear to be any other uses of ft=ps1 on vim.org, this seems like a safe and reasonable default. [vim-ps1]: http://www.vim.org/scripts/script.php?script_id=1327 Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2020-02-08Merge pull request #2986 from ndrewtl/patch-1Ryan
misc: change email address for @ndrewtl
2020-01-31Add sql-lint as linterJoe Reynolds
2020-01-28misc: change email address for @ndrewtlAndrew Lee
This is kind of a peculiar reason for a PR, but I no longer control the email listed. I want to change it to avoid people getting the wrong email for me. Also, I still control the domain, but if at any point I don't, I want to put down in writing that if you get an email from this, it's not from me.
2020-01-02Merge pull request #2908 from af/patch-1w0rp
Fix for incorrect eslint output parsing for graphql files
2020-01-02Mypy: try to find folder containing mypy.ini to use as cwd. (#2385)Harry Percival
* When deciding which directory to run mypy from, prefer a folder with mypy.ini in it * Add a test for mypy.ini-finding behaviour
2020-01-02Fix the buildw0rp
2020-01-02Fix #2704 - Show mypy notes; can be disabledw0rp
2020-01-01Add TypeScript autoimport support for deoplete (#2779)Jerko Steiner
* Add autoimport support for deoplete * Fix test_deoplete_source.py * Use callback instead of is_async for deoplete Shuogo, the author of Deoplete, does not recommend using the `is_async` option: > I think is_async is not recommended. It is not so useful and broken. > You should use callback system instead. Link: https://github.com/Shougo/deoplete.nvim/issues/1006#issuecomment-526797857 Incidentally, the same thread mentiones an issue started by w0rp: https://github.com/Shougo/deoplete.nvim/issues/976 The deoplete docs also say is_async is deprecated: > is_async (Bool) > If the gather is asynchronous, the source must set > it to "True". A typical strategy for an asynchronous > gather_candidates method to use this flag is to > set is_async flag to True while results are being > produced in the background (optionally, returning them > as they become ready). Once background processing > has completed, is_async flag should be set to False > indicating that this is the last portion of the > candidates. > > Note: The feature is deprecated and not recommended. > You should use callback system by > |deoplete#auto_complete()| instead. Link: https://github.com/Shougo/deoplete.nvim/blob/master/doc/deoplete.txt Co-authored-by: w0rp <w0rp@users.noreply.github.com>
2020-01-01Make it more obvious you can use popup in completeopt noww0rp
2020-01-01Merge pull request #2942 from PsiPhire/masterw0rp
Allow popup to be used instead of preview in completeopt
2020-01-01Merge pull request #2937 from kevinoid/eslint-run-from-project-rootw0rp
Run ESLint from project root dir where possible
2020-01-01Documented g:ale_hover_to_previeww0rp
2020-01-01Merge pull request #2828 from akhilman/hover-to-previeww0rp
Add option to show hover messages in preview.
2019-12-29Add old check for bufline apiJerko Steiner
2019-12-22Allow popup to be used instead of preview in completeoptZander Lee
2019-12-19allow passing custom options to markdownlintdavidsierradz
2019-12-17Run ESLint from project root dir where possibleKevin Locke
ESLint 6 loads all plugins/configs/parsers relative to the project root which, by default, is the directory in which ESLint is invoked, as described in [ESLint RFC 2018-simplified-package-loading]. Therefore, ALE should run ESLint from the project root, when possible, so that dependencies will load. This commit does so. [ESLint RFC 2018-simplified-package-loading]: https://github.com/eslint/rfcs/blob/master/designs/2018-simplified-package-loading/README.md Fixes: #2787 Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2019-12-11Fix Rust linter/fixer listingJon Gjengset
2019-12-05verilog: Add filename to vlog linter outputpatrick96
2019-12-04Fix prettier_standard to respect the configuration fileConrad Irwin
Before this change, prettier_standard would run and ignore any .prettierrc, now it will respect the configuration of the file being linted. This change relies on prettier-standard 16.1.0 for the --stdin-filepath flag, but is backward compatible: older versions of prettier-standard will ignore the unknown flag and continue to run with no configuration file.
2019-12-03Add a Help Wanted message in case people are interestedw0rp
2019-11-27Fix 2913 - checkstyle config file ignored.Horacio Sanson
If checkstyle is configured with custom options that contain "-c" then the checkstyle config file option is ignored. This PR modifies the regular expression when creating the checkstyle command to avoid this.
2019-11-27Merge pull request #2910 from hsanson/2891-fix-eslinter-json-parserw0rp
Fix 2891 - eslint not showing errors.
2019-11-26Fix 2891 - eslint not showing errors.Horacio Sanson
ESLint errors are contained in an array that can contain different stuff other than JSON error messages. This patch iterates over the whole array ignoring any non-json data.
2019-11-24Fix for incorrect eslint output parsing for graphql filesAaron Franks
The output is configured to be JSON, but the handler was parsing it as 'lines'
2019-11-23shell: Make description more accurateEddie Lebow
The shell linter does more than just bash.
2019-11-23ShellDetect: fall back to filetype if no hashbangEddie Lebow
Some files lack a hashbang line but still have an unambiguous filetype. For example, the file `.zshrc` has the filetype `zsh`. Augment ale#handlers#sh#GetShellType to fall back to the filetype if no hashbang line can be found.
2019-11-15Merge pull request #2847 from DonnieWest/allowUserToCustomizeItemsw0rp
Allow user to customize items
2019-11-14Clean up the nimpretty codew0rp
2019-11-14Merge pull request #2660 from YPCrumble/masterw0rp
Add StandardJS linter for TypeScript
2019-11-14Merge pull request #2890 from nhanb/masterw0rp
Add nimpretty fixer for nim-lang
2019-11-14Merge pull request #2889 from zigford/powershell-7-errorvieww0rp
Default errorview in pwsh7 now concise
2019-11-09add nimpretty fixerBùi Thành Nhân