Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C-Support: Lines added for cmake and doxygen in _vimrc give error on gvim startup #33

Closed
aks2161989 opened this issue Oct 1, 2016 · 6 comments

Comments

@aks2161989
Copy link

I am a Windows 10 user and have installed the c-support plugin. As advised in the link, to enable cmake and doxygen, i added the following lines to my _vimrc:

let g:C_UseTool_cmake = 'yes'
let g:C_UseTool_doxygen = 'yes'

Now, when I start up gvim, I get an error dialog box with the message:

Could not load the tool "cmake" (Vim(let):E117: Unknown function: mmtoolbox#make#Interface)- occurred at C:\Users\Satyendra\Vim\vimfiles\autoload\mmtoolbox\cmake.vim, line 219

If I do not add these lines to the _vimrc, I do not get the error message.

@WolfgangMehner
Copy link
Owner

Do you also have the Make-Tool installed? There should be a file named autoload/mmtoolbox/make.vim, found right next to the other files autoload/mmtoolbox/cmake.vim and autoload/mmtoolbox/doxygen.vim.
The CMake-Tool requires it for tab-completion of the make targets.

@WolfgangMehner
Copy link
Owner

Another possibility. Please run this on the Vim-Cmd.-Line:

:MakeSettings

Probably make is not executable, and then the Make-Tool does not get initialized right. I will fix this.

@WolfgangMehner WolfgangMehner changed the title C-support: Lines added for cmake and doxygen in _vimrc give error on gvim startup C-Support: Lines added for cmake and doxygen in _vimrc give error on gvim startup Oct 7, 2016
@aks2161989
Copy link
Author

aks2161989 commented Oct 8, 2016

Yes, there is a C:\Users\Satyendra\vim\vimfiles\autoload\mmtoolbox\make.vim file (I checked it).

When I enter the :MakeSettings command in gVim, I get the following result:

Make-Support settings

plug-in installation : toolbox on windows
make executable : make (not executable)
using toolbox : version 1.2 by Wolfgang Mehner

Make-Tool, Version 1.1 / Wolfgang Mehner / wolfgang-mehner@web.de

@WolfgangMehner
Copy link
Owner

This hopefully fixes the issue: 7bf255e
You can use this repo with a plug-in manager, or download the fix here:
https://raw.githubusercontent.com/WolfgangMehner/vim-plugins/7bf255e51e30d049983358f6667ed45581b5c043/autoload/mmtoolbox/make.vim

Tab-completion of make targets when using :CMake should also work, after the build location has been set appropriately.

@aks2161989
Copy link
Author

I copied the contents of make.vim from your link and pasted it inside the C:\Users\Satyendra\vim\vimfiles\autoload\mmtoolbox\make.vim file. Now, there is no error message when i start up gVim.

Since I am a beginner to gVim and to C++, I don't know how to use :CMake and about tab-completion (I only use compile and run). However, there are no more error messages. Thank you for your help!

@WolfgangMehner
Copy link
Owner

Your welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants