-
-
Notifications
You must be signed in to change notification settings - Fork 587
Open
Labels
PinnedTickets that are immune to the staleness checksTickets that are immune to the staleness checks
Description
Expected behavior
projectile-configure-project, when run second time in a project, has some way (a prefix arg?) to select a (different) CMake preset again.
Actual behavior
Configure command: cmake . --preset <previously-selected-preset> prompt in minibuffer without completion for presets.
Steps to reproduce the problem
- Have a CMake project with at least two configure presets
s-p C, select one of the presetss-p Cagain, wishing to select the other preset
Environment & Version information
CMake 3.20.4
Projectile version information
Projectile 2.4.0
With a workaround for #1673 applied:
(defun dotfiles--projectile--cmake-all-command-presets (command-type)
"Get CMake user and system COMMAND-TYPE presets."
(projectile-flatten
(mapcar (lambda (filename)
(projectile--cmake-command-presets filename command-type))
'("CMakeUserPresets.json" "CMakePresets.json"))))
(advice-add #'projectile--cmake-all-command-presets :override
#'dotfiles--projectile--cmake-all-command-presets)Emacs version
27.2
Operating system
macOS 11.4
Metadata
Metadata
Assignees
Labels
PinnedTickets that are immune to the staleness checksTickets that are immune to the staleness checks