Neomake: Cargo maker not found in rust files

Created on 18 Nov 2016  路  6Comments  路  Source: neomake/neomake

I open a rust file inside of a project that is built with cargo, and run :Neomake! cargo. It outputs:
Neomake: Maker not found: cargo

Expected behavior

I expect the above command to run the cargo maker on my project.

Steps to reproduce

Install neovim and vimplug. Use vimplug to install neomake. Open a rust file, and run :Neomake! cargo.

Output of the ":verb NeomakeInfo" command

Neomake debug information

Async support: 1
Current filetype: rust

Enabled makers

For the current filetype (with :Neomake): ['rustc']
NOTE: you can define g:neomake_rust_enabled_makers to configure it (or b:neomake_rust_enabled_makers).
For the project (with :Neomake!): []
NOTE: you can define g:neomake_enabled_makers to configure it.

Settings


shell: /bin/bash
shellcmdflag: -c
Windows: 0

:version


NVIM 0.1.6
Build type: RelWithDebInfo
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wconversion -O2 -g -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -D_GNU_SOURCE -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.1.6/src -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include
Compiled by builduser

Optional features included (+) or not (-): +acl   +iconv    +jemalloc +tui      
For differences from Vim, see :help vim-differences

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

:messages

"main.rs" 6L, 61C

NVIM 0.1.6
Build type: RelWithDebInfo
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wconversion -O2 -g -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -D_GNU_SOURCE -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.1.6/src -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include
NVIM 0.1.6
Build type: RelWithDebInfo
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wconversion -O2 -g -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -D_GNU_SOURCE -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.1.6/src -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include
1 change; before #21  2 seconds ago
1 change; before #22  1 seconds ago

1 change; before #24  0 seconds ago
1 line less; before #23  2 seconds ago
E475: Invalid argument: +
NVIM 0.1.6
Build type: RelWithDebInfo
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wconversion -O2 -g -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -D_GNU_SOURCE -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.1.6/src -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include

59 more lines
59 fewer lines; before #25  3 seconds ago
bug

Most helpful comment

I just checked, and seem to still have the above issue.

All 6 comments

Yes, that seems to have been broken in https://github.com/neomake/neomake/pull/762#issuecomment-261368337.

Please report back if it's fixed for you now.
Thanks!

The issue is fixed now, thanks.

I just checked, and seem to still have the above issue.

I too have this issue, but I got it after updating with VimPlug. Is there a workaround?

Cargo moved to being a file mode maker, so you have to use Neomake cargo (without the bang).
If it's still an issue for you, please create a new one from the issue template.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cideM picture cideM  路  6Comments

towry picture towry  路  5Comments

sassanh picture sassanh  路  6Comments

iwyg picture iwyg  路  6Comments

nathanajah picture nathanajah  路  6Comments