Integration of Makefile formatter mbake
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- neovim, vim
- Domain
- build-system, tooling
Research direction
Start in ale_linters/make with the shown ale#linter#Define configuration and compare it with the existing ALE handler entry points. Run mbake validate against a Makefile and inspect how ale#handlers#unix#HandleAsWarning processes its output and colouring. Done means mbake lint diagnostics appear correctly in Neovim while the existing formatter continues to work.
Written by the indexing model from the issue text.
Description
I'm trying to integrate the Makefile mbake formatter and validator into ALE to work with Makefiles in Neovim.
I wrote the following custom linter and fixer configuration under ale_linters/make:
" Description: linting using mbake
call ale#linter#Define('make', {
\ 'name': 'mbake',
\ 'executable': 'mbake',
\ 'command': 'mbake validate %s',
\ 'callback': 'ale#handlers#unix#HandleAsWarning',
\})
function! FormatMakefile(buffer) abort
return {
\ 'command': 'mbake format %t',
\ 'read_temporary_file': 1,
\}
endfunction
execute ale#fix#registry#Add('mbakefmt', 'FormatMakefile', ['lua'], 'mbake for makefiles')
let g:ale_fixers = {
\ 'makefile': ['mbakefmt']
}
Formatter works but linter does not. Seems to have an issue with the colouring
- Dominant language
- Vim Script
- Stars
- 14k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dense-analysis/ale
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
dense-analysis/ale#5181 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
dense-analysis/ale#5180 · 1 comment ·
-
new tool
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
dense-analysis/ale#5176 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 75/100
dense-analysis/ale#5174 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
dense-analysis/ale#5158 ·
All issues in dense-analysis/ale
Similar issues
-
could-have reliability
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Lightricks/LTX-2#336 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
[Build] Link IntelJITEvents for prebuilt LLVM on Windows MSVCMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
immortalwrt/immortalwrt#2522 ·