Ale: Unknown function ale#linter#Define

Created on 16 Apr 2020  路  2Comments  路  Source: dense-analysis/ale

I was trying to configure ALE and my ocaml linter like this:

call ale#linter#Define('ocaml', {
\   'name': 'ocaml-lsp',
\   'lsp': 'stdio',
\   'executable': function('s:executable_callback'),
\   'command': function('s:get_command'),
\   'language': function('s:get_language'),
\   'project_root': function('s:get_project_root')
\})

but I get the following error on startup:

line  353:                                                                                              
E117: Unknown function: ale#linter#Define                                                                

Information

Neovim

MacOSX

What went wrong

I was adding some linters to my ALE configuration

Reproducing the bug

I opened Neovim from the terminal.

bug

Most helpful comment

Hey @creativenull! I totally forgot I opened this issue! I can't remember exactly what I did to fix it, though I wouldn't be surprised if what you suggested was indeed the fix.

I'll close this out for now.

All 2 comments

Hey @dylanirlbeck

Did you try calling the define function after you load all your plugins? I also had this issue, after calling the define function after loading all my plugins did the trick.

Hey @creativenull! I totally forgot I opened this issue! I can't remember exactly what I did to fix it, though I wouldn't be surprised if what you suggested was indeed the fix.

I'll close this out for now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

glepnir picture glepnir  路  3Comments

sublee picture sublee  路  3Comments

trevordmiller picture trevordmiller  路  4Comments

ilyakopy picture ilyakopy  路  4Comments

kronos29296 picture kronos29296  路  4Comments