go2sh / cmake-integration-vscode

CMake Server Interface for VSCode.
https://go2sh.github.io/cmake-integration-vscode/
Other
19 stars 11 forks source link

the reconfigure on change can not always working #38

Closed Raysuner closed 5 years ago

Raysuner commented 5 years ago

hi,I met some problems with the extension

cmake version: 3.10.2

extension version: 0.61

I have selected the "Reconfigure on change" and "Auto save" options, but when I change the CMakeLists.txt file from right to error, the extension will reconfigure. In turn,it does not work

for example

cmake_minimum_required(VERSION 3.10.2)

project(Learning)

set(CMAKE_CXX_STANDARD 14)

add_executable(Learning src/main.cpp)

I remove "src" that in CMakeLists.txt, it will create a red underline below fouth row. when I add the "src" at same position, it has no effect. I must using the command of "configure current project" if i want to reconfigure the project.

Am I clear?

go2sh commented 5 years ago

Are you using the server backend? The cmake server code for change detection is quite buggy. I'll have to come up with some VSCode based solution. In the meantime you can just hit build (F7) and CMake on build will detect, if the CMake source has changed. I hope that helps.

Raysuner commented 5 years ago

Thanks a lot. It's not that bad,I can accept it.