aaaaaaaaaa
aaaaaaaaaa
DDeno
Created by darkelf on 11/24/2024 in #help
VIM - ALE - import-prefix-missing: Relative import path
Hi, I think I was having the same issue as you. For me, ALE was not finding deno imports in vim. I noticed that you may have a syntax error in your vimrc here:
let g:ale_linters = {
\ 'typescript': ['deno'],
\ 'javascript': ['deno']
}

let g:ale_fixer = {
\ 'typescript': ['deno'],
}
let g:ale_linters = {
\ 'typescript': ['deno'],
\ 'javascript': ['deno']
}

let g:ale_fixer = {
\ 'typescript': ['deno'],
}
The trailing comma was giving me errors (in vim 9), so I changed it to this and it worked:
let g:ale_linters = { 'typescript': ['deno'], 'javascript': ['deno'] }
let g:ale_fixer = { 'typescript': ['deno'] }
let g:ale_linters = { 'typescript': ['deno'], 'javascript': ['deno'] }
let g:ale_fixer = { 'typescript': ['deno'] }
This fixed the problem for me. When I used the command :ALEInfo, it said that I was using tsserver and not deno. When I added your snippet, ALE correctly uses deno now. Hope this helps!
2 replies