Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Concern about how Qt VS Tools handles entries in CMakePresets.json and CMakeUserPresets.json
Forum Updated to NodeBB v4.3 + New Features

Concern about how Qt VS Tools handles entries in CMakePresets.json and CMakeUserPresets.json

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 55 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • PerdrixP Offline
    PerdrixP Offline
    Perdrix
    wrote last edited by
    #1

    I raised a bug report https://bugreports.qt.io/browse/QTVSADDINBUG-1317 that any changes I made to CMakePresets.json were wiped out by Qt VS Tools the next time I restarted Visual Studio.

    This was marked as a duplicate of another problem report that was effectively closed "working as designed".

    It makes it a more difficult to use, and requires that I replicate the same stuff many times.

    I am certain that with some thought this could be handled so that user changes to this and CMakeUserPresets.json (which also has entries that are overwritten by VS Tools if they are changed) can be accommodated without the need to trample on what the user has done.

    On a related issue, It's arguable that most of the entries that VS Tools places in CMakeUserPresets.json really belong in CMakePresets.json. Why? The former is a per user file that isn't intended to be checked into a version control system, unlike CMakePresets.json which is intended for project scope and should be checked into the VCS. The way that VS Tools currently works, I need to check both files into the VCS.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved