cdelledonne / vim-cmake

Vim/Neovim plugin for working with CMake projects
MIT License
259 stars 21 forks source link

error CMakeGenerate OS Windows 10/11 #91

Closed ferrerama closed 11 months ago

ferrerama commented 11 months ago

Bug description

It was used on Linux and it works great, but on Windows it generates an error.

To Reproduce

Steps to reproduce the behavior:

  1. On OS Windows use MinGW. For example, I use in windows terminal CMake .. -G "MinGW Makefiles y well.
  2. If Run in Neovim the command CMakeGenerate, its give error, no detect projects and Compiler.

Expected behavior

I use command CMakeGenerate in Linux and run good.

Behavior with minimal .vimrc

...

Screenshots

Run: CMakeClean, because before I use the cmake on windows terminal. it is the result clean. image

following: Run CMakeGenerate and this error show. image

Other info

Additional context

The problem it is command CMakeGenerate, other commands use good,

Content CMakeLists.txt image

cdelledonne commented 11 months ago

Hi, thanks for asking this.

You have to run the :CMakeGenerate command with the same options as you would use to run cmake from the command line. So if you would pass -G "MinGW Makefiles" to cmake, you'd have to call the command as

:CMakeGenerate -G "MinGW Makefiles"

Did you try this already?

cdelledonne commented 11 months ago

By the way, instead of passing this option to :CMakeGenerate all the time, you can also use the configuration option g:cmake_generate_options.

ferrerama commented 11 months ago

Hi, thanks for asking this.

You have to run the :CMakeGenerate command with the same options as you would use to run cmake from the command line. So if you would pass -G "MinGW Makefiles" to cmake, you'd have to call the command as

:CMakeGenerate -G "MinGW Makefiles"

Did you try this already?

It works perfect, thank you. I never thought it was like running such as terminal (the commands).

Please, one dude, is it possible to change the color to transparent of the background (terminal), where the CMake execution is displayed ?

It currently takes the color of the installed scheme.

image

ferrerama commented 11 months ago

By the way, instead of passing this option to :CMakeGenerate all the time, you can also use the configuration option g:cmake_generate_options.

yes, I use: 'g:cmake_generate_options' thanks.

cdelledonne commented 11 months ago

Please, one dude, is it possible to change the color to transparent of the background (terminal), where the CMake execution is displayed ? It currently takes the color of the installed scheme.

Are you asking why the Vim-CMake window does not have the same background color as the other Vim windows? Or something else? I wouldn't know, you'd have to try what happens with a minimal vimrc, and see if the problem lies in your configuration/colorscheme or not.

ferrerama commented 11 months ago

Please, one dude, is it possible to change the color to transparent of the background (terminal), where the CMake execution is displayed ? It currently takes the color of the installed scheme.

Are you asking why the Vim-CMake window does not have the same background color as the other Vim windows? Or something else? I wouldn't know, you'd have to try what happens with a minimal vimrc, and see if the problem lies in your configuration/colorscheme or not.

Yes, no it is important, I will fixing the config colorscheme.

Finally I am using the default theme(colorscheme), it 100% transparent it is nice.