Skip to content

On Reinstall: message - "Cannot register 'cmake.cmakePath'. This property is already registered." #132

@drankinatty

Description

@drankinatty

Summary

This is more a cmake.cmakePath "is already set" issue and the extension not knowing it set it earlier before being uninstalled / reinstalled. The extension is working fine, the problem is just the annoying "This extension has reported 1 message" when you are looking at the extension in the extension list. More a curiosity and "small nit" that needs fixing rather than an "it doesn't work" issue. What needs to be done to get rid of the message?

Vscode Build Info

  Version: 1.97.2
  Release: 25045
  Commit: 7211e5a20b57d2e57d119144ac954542a24b547b
  Date: 2025-02-14T18:21:12.766Z
  Electron: 32.2.7
  ElectronBuildId: undefined
  Chromium: 128.0.6613.186
  Node.js: 20.18.1
  V8: 12.8.374.38-electron.0
  OS: Linux x64 6.13.1-1-default

Steps to Reproduce

This is the best of my recollection as to how this message appeared. This extension was installed, but was uninstalled before the vscode-cmake-tools extensions was installed. Finding this extension was the one providing coloration, this extensions was reinstalled. It has likely been this way for several months. I don't spend a lot of time looking at the extension status, but browsing the list, this caught my and I thought I would pass it along. Searching the issue, I found other references to it on the net, but no solution.

Screenshot

Here is a screenshot showing the extensions list and the mouseover dialog showing the message. Alt+mouseover was used to hold the dialog open and move of the 1 message link to display the pop-up you see to the right of the dialog.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions