Questions tagged [plugin-ale]

Question about plugin ALE which provides linting hints into Vim sign column.

Filter by
Sorted by
Tagged with
0 votes
1 answer
45 views

How do I disable snake_case naming style warning in ALE?

I want to disable annoying snake_case naming style warning: invalid-name: Variable name "xxx" doesn't conform to snake_case naming style Tried :help and grep snake_case, but didn't get ...
Fisher's user avatar
  • 1,086
2 votes
2 answers
157 views

How to see command lines and output for linters, etc

I've used vim and python for decades, but since Syntastic has been deprecated, I recently switched to ALE. I'm coding in Python 3.11 and running vim 8.1 under Linux Mint, and have created a virtual ...
Michael Scheper's user avatar
0 votes
1 answer
129 views

Unable to import Python packages into Vim

I have to get into some python programs so I thought I'd edit my Vim workflow so that Python is optimally efficient too. I have quite some packages (vim airline, vim ale, ...), a virtual environment ...
Airbornedawn345's user avatar
1 vote
2 answers
185 views

ALE Code Action for python

I have a working linter with the ALE plugin. Plugin 'dense-analysis/ale' let g:ale_virtualtext_cursor = 0 let g:ale_python_flake8_options = '--extend-ignore=E501' nnoremap <leader>ar :ALERename&...
Surya's user avatar
  • 21
0 votes
1 answer
547 views

How to use ALE with clangd and C++20

I want to write code like this in vim (vim 9.0) #include <iostream> #include <string> template <class T1, class T2> concept composable = requires(T1 lhs, T2 rhs) { lhs + rhs; }; ...
FalcoGer's user avatar
  • 149
0 votes
0 answers
154 views

ALE lints but does not fix

I have ALE configured to lint and fix Ruby and Javascript files. Linting works as expected - the tools are found and I get info in the location list, etc. about changes to be made. However, fixing the ...
Matt Rohrer's user avatar
0 votes
1 answer
277 views

How to control the ALE virtual text color?

The ALE virtual text for Error and Warning has the same color than the comment. I would like to have a different colors to identify the ALE error more easily. How to do that?
Vivian De Smedt's user avatar
1 vote
1 answer
310 views

How do I automatically open/close location or quickfix lists when they are populated by ALE?

I'm switching from the syntastic plugin to the ALE plugin. In syntastic there was an option g:syntastic_auto_loc_list that would automatically open the location list after it had been populated. If ...
FalcoGer's user avatar
  • 149
1 vote
1 answer
105 views

ALE remove permanent echo on problem line

Information VIM version VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Mar 16 2023 00:00:00) Included patches: 1-1407 Operating System: Linux (Fedora 38,Gnome) What went wrong From the last update of ...
BaRud's user avatar
  • 481
0 votes
1 answer
341 views

How to set the ALE configuration `g:ale_exclude_highlights`?

I use ALE to check coding style, but I want to ignore the warning type:line too long, like this picture: And I find the related setting g:ale_exclude_highlights, this is its explanation in :help ale :...
theabc50111's user avatar
0 votes
2 answers
2k views

Go to definition with LSP

I'm trying to use Jedi to do "jump-to-definition". For example, if my cursor is on MLPClassifier, I want to be able jump to the place where that class is defined in Python code from the ...
efthimio's user avatar
  • 101
1 vote
0 answers
37 views

lstlisting environment it not treated as verbatim, which results in several false positives

ALE does not treat text inside of listing environments like verbatim, which spawns many whitespace related errors (i.e. space before punctuation marks, etc.). I've found somewhat of an answer on ...
user avatar
1 vote
1 answer
211 views

How to configure ALE to enable autoformatting with elm-format?

I'm trying to enable autoformatting of Elm code (I guess the problem would be the same for any language). In Elm the elm-format program can normally used to format the code. I see that there's an ...
John Smith Optional's user avatar
1 vote
1 answer
588 views

How to jump to the first error when using ALE?

I've installed dense-analysis/ale from this repo: https://github.com/dense-analysis/ale I'm trying to use it to detect errors automatically in my Elm projects. Errors are detected since they are ...
John Smith Optional's user avatar
1 vote
0 answers
732 views

ALE project root for Python

I use ALE to run linters while editing Python code in vim. When working on code in a package, I can't get ALE to respect the pylint configuration in the project root. I've had it in .pylintrc as well ...
Will Brannon's user avatar
1 vote
1 answer
1k views

ale_floating_preview not working

ale does not popup anything automatically. Neovim 0.5.0, windows 10. I wonder whether I configured ale correctly, since nothing related shown in ALEInfo. in init.vim, mouse=a let g:ale_open_list = 0 &...
A117's user avatar
  • 111
1 vote
1 answer
451 views

Write a custom linter for ale to consume the output of command line utility

I am trying to write an ale linter for the norminette program. How can I make it work ? It's a program that checks if C source code files follow the coding norm of the 42 school network and it would ...
cassepipe's user avatar
  • 375
2 votes
1 answer
2k views

Cannot find implementation or library stub for module named "flask"

In a Python file, my first line is: from flask import Flask Which triggers an error in the gutter that shows the following message when I drag the cursor over that line: Cannot find implementation or ...
Bastien's user avatar
  • 123
0 votes
1 answer
268 views

ALE not finding filetype, making linting difficult

when I open a file named i2c-dev.c in vi. Then I enter :let g:ale_linters = {'c': ['clang-tidy']} I am unable to use my installed linter "clang-tidy". I don't see any changes to the status ...
John b's user avatar
  • 103
0 votes
1 answer
737 views

pylint default filepath in ALE

I am trying to set up my pylintrc file in vim, but am having some difficulty getting it to read from the correct path. It seems to work when I have the file in the directory that contains the vim file ...
David542's user avatar
  • 2,415
6 votes
2 answers
669 views

ALE Fix for a visual selection

I am figuring out a way to apply linting to a visual selection of code. For example: I only want to lint run :ALEFix on that section of code, and not the 100s (or 1000s) of lines of other code in the ...
David542's user avatar
  • 2,415
1 vote
0 answers
327 views

Vim ALE seems to be "ignoring" pyright

I'm having issues with setting up ale and pyright. According to the documentation on both repos, everything should work out of the box, but that doesn't seem to be the case for me. I'm guessing it's ...
Farzad's user avatar
  • 119
1 vote
2 answers
500 views

Is it possible to apply formatters only for selected lines using ALE Vim plugin?

I want to format only a part of file and keep the rest unchanged using ALE. I imagine that its kinda possible by providing a fragment of code for example for black formatter and replacing the selected ...
niekas's user avatar
  • 1,555
2 votes
0 answers
200 views

How do I define a custom fixer for ALEFix?

I'm trying to use :ALEFix to run a fixer that is not pre-defined. For example, I might want to run foo -a -b index.html to format index.html with options -a and -b. foo does not read files from stdin, ...
August Janse's user avatar
2 votes
0 answers
99 views

ALE is displaying the errors with ansii escape sequences

I'm facing a strange problem with ALE + eslint and I don't know what is wrong here. Let's say I write this javascript code: async function bootAppli+++cation() { const element = document....
Pablo's user avatar
  • 261
3 votes
1 answer
2k views

my ALE linter is not working for python - shows only style errors

I have an ALE configuration for both shell & python. The shell lint seems to work, but the python only style issues, e.g. for this dummy file: import ..foo # bad import ...
CIsForCookies's user avatar
1 vote
1 answer
1k views

Enabling rubocop linter the right way

I've got a vim VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Sep 17 2020 21:54:53) on ManjaroLinux (Arch + kde) and I'm using rvm to run my rubies. The ruby I am using now is: => ruby-2.7.2 [ ...
kaczor1984's user avatar
1 vote
1 answer
374 views

ALE says packages of my project don't exist

I'm having this problem with ale where in java files, it sometimes gives an error message saying that some packages don't exist. However, I can run without any problems my projects once I compile them,...
Ayhon's user avatar
  • 21
2 votes
1 answer
256 views

A problem when use ALE for syntax checking and gvim for vivado's editor

VIM version: VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Sep 14 2020 22:03:16) OS information: Microsoft Windows 10 Professional version 2004 (OS Version: 10.0.19041) Problem Description: I use gvim ...
panantao's user avatar
6 votes
0 answers
2k views

How do I disable specific warning/error messages using ALE?

I'm currently using ALE to lint my Python code. I'm just curious how to disable specific warning or error messages. I've checked the GitHub repository's FAQ but I only see an option for disabling ...
Sean's user avatar
  • 265
1 vote
1 answer
586 views

Installed Ale linter using Pathogen, but none of the commands are working

I followed the documentation for installing Ale using Pathogen but when I open a Vim file and type :help ale-fix or :ALEFix I get E149: Sorry, no help for ale-fix and E492: Not an editor command: ...
Sean's user avatar
  • 265
1 vote
1 answer
2k views

ALE fails to lint or autofix, (executable check - failure)

i have ALE installed with vundle, but none of the linters seem to be executing, neither automatically nor on demand. vim starts with an error from my .vimrc: E121: Undefined variable: g:...
ludant's user avatar
  • 33
3 votes
0 answers
1k views

Cannot set g:ale_fixers in ALE config on vim

I'm trying to config ALE in my vim and can't config the fixers, them aren't showing on ALEInfo. I'm setting the config for typescript files (with and without react) with prettier and eslint. What i'm ...
Wallace Coelho's user avatar
3 votes
1 answer
612 views

How can I set up ALE to be opt-in?

I'm trying to use ALE for auto-formatting for one specific language, however it has everything turned on for all languages by default and I can't figure out how to configure it so that it's disabled ...
Mason's user avatar
  • 511
2 votes
1 answer
44 views

Markdown toc disappears on save since I installed ALE linter

I am using the markdown extension plasticboy/vim-markdown to navigate inside large markdown files: " :Toc : create a quickfix vertical window navigable table of contents with the headers." Since I ...
Paul Rougieux's user avatar
2 votes
0 answers
168 views

TypeScript: ale vs tsuquyomi?

Ale and tsuquyomi both seem to be Vim Language Servers that can interface with tsserver. Because ale supports multiple languages, is there any reason to use tsuquyomi moving forward? I'm an old time ...
Evan Carroll's user avatar
  • 1,244
2 votes
1 answer
1k views

Disable trailing whitespace lint warnings for Markdown file

I use vim 8 and ALE plugin. On a markdown page, I see the following from ALEInfo Current Filetype: markdown Available Linters: ['alex', 'languagetool', 'markdownlint', 'mdl', 'proselint', 'redpen', '...
Tri Nguyen's user avatar
0 votes
0 answers
1k views

vim 8: C++ syntax highlighting has some minor fault

I'm using vim 8 to code C++11. I've installed the vim plugins: YCM, ALE, vim-code-dark and vim-cpp-enhanced-highlight, however, it seems that there is some error on syntax highlighting. As you see, ...
Yves's user avatar
  • 1,013
1 vote
0 answers
386 views

ale can't update the status line for golang

I've succeeded in configuring a vim-c++ environment based on the plugin YCM and the plugin ale. I use YCM to do the auto-completion and ALE to hint me errors and warnings. I added the config as ...
Yves's user avatar
  • 1,013
0 votes
0 answers
158 views

ALE ale_go_govet_options not working with Shadow command

I've installed: go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow When run on an example script I get the expected output: $ shadow test_shadowing.go test_shadowing.go:10:3: ...
Integralist's user avatar
0 votes
0 answers
124 views

In GVim, preven ALE from changing syntax color, but still underlines errors

I am using gVim and Asynchronous Lint Engine (ALE) for linting Python scripts. I was capable to fully customize my own Python syntax highlighting, with one exception. I can't find a way to prevent ...
ZXiu's user avatar
  • 1
1 vote
1 answer
2k views

Python Language Server Protocol with virtual environment

Can anyone help me get things like "Go to definition" working with Neovim and Python virtual environments? My setup currently uses a specific virtual environment for Neovim (as recommended by :...
LondonRob's user avatar
1 vote
0 answers
675 views

Autocompletion doesn't work when using ALE + deoplete

From my init.vim (I've checked that it doesn't work even with a minimal configuration): call plug#begin() Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } Plug 'dense-analysis/ale' Plug '...
11122345791216212837's user avatar
6 votes
1 answer
797 views

Is it possible to disable the column on the left that is created by ALE?

I installed the ALE plugin, and I really like the highlighting, though the sign column shown in the far left of this image is distracting to me and seems unnecessary given that errors and warnings are ...
Ryan Fredez's user avatar
2 votes
1 answer
393 views

ALE Error and warning highlighting gets disabled when termguicolors is enabled

I have the ALE extension installed, and would like it to highlight errors and warnings, however when :set termguicolors is enabled, the Here's a screenshot of the problem: set termguicolors ...
Ryan Fredez's user avatar
10 votes
2 answers
2k views

How to break-up gutter fights?

There a number of types of plugins use the Vim gutter to display Git status, syntax correctness, linting and code formatting. But how can conflicts be managed when multiple plugins want to update the ...
Mark Stosberg's user avatar
2 votes
1 answer
988 views

How do I configure the parameters that ALE sends to prettier for ruby?

Note: this is a neovim question, not stock vim I have both rbprettier and prettier with the ruby plugin installed on my system. If I pipe a Ruby file into rbprettier, or if I pipe it into prettier --...
Savanni D'Gerinel's user avatar
1 vote
1 answer
907 views

ALE + clangtidy + large file = big delay when linting

I am using ALE plugin with clangtidy linter to lint my C code and whenever I save my file and this linter gets activated it takes around 3-4 seconds for it to check for errors. File in question is ...
Your move creep's user avatar
3 votes
2 answers
276 views

How to disable Ale if PAGER mode is enabled

I use both Ale and VIM pager plugins. But for obvious reasons I want to disable some Vim features and plugins in the "less" mode. But if I put as recommended this piece of code in my .vimrc it still ...
Anton Kochkov's user avatar
2 votes
1 answer
469 views

Switch pyflakes linter from python2 to python3 in ALE

pyflakes (with ALE) automatically defaults to python2 instead of python3 and gives me false errors and there are no variables in ALE documentation letting me change python versions. Thanks for any ...
Your move creep's user avatar