Civitasv/cmake-tools.nvim

Command: CMakeStopRunner not working when using toggleterm.

n-cho opened this issue · 1 comments

Bug description

CMakeStopRunner does not kill the process when using toggleterm as runner & executor.

Steps to reproduce

  1. Set cmake_executor = { name = "toggleterm" } and cmake_runner = { name = "toggleterm" } in opts
  2. Generate CMake project with the following CMakeLists.txt and a blank main.cpp file.
cmake_minimum_required(VERSION 3.13)
project(TESTPROJECT)
set(CMAKE_CXX_STANDARD 14)

set(SOURCE_FILES main.cpp)

add_executable(TESTPROJECT ${SOURCE_FILES})
  1. Run a program in main.cpp that doesn't end automatically. For example ...
#include <iostream>;

int main() {
  char s[] = "";
  std::cin >> s;
  return 0;
}
  1. Try to use CMakeStopRunner to kill the process before it finishes.
Minimal configuration
  • Use NvChad v2.5.
  • Install toggleterm and cmake-tools using lazy.nvim.

Expected behavior

The command does not kill the process.

Screenshots

screenshot0 screenshot1 screenshot2

Environment

  • OS: macOS Sonoma v14.3.1
  • Desktop environment:
  • Plugins commit hash:

Contents in the *cmake-tools* buffer

Use the latest commit, I've fixed it.