Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command '(Internal) Build a Target by Name' resulted in an error - command 'cmake.buildNamedTarget' not found #3596

Closed
i-ky opened this issue Feb 16, 2024 · 1 comment · Fixed by #3627
Assignees
Labels
bug a bug in the product Feature: extensibility
Milestone

Comments

@i-ky
Copy link
Contributor

i-ky commented Feb 16, 2024

Brief Issue Summary

Attempt to run "(Internal) Build a Target by Name" command which is available from Command Palette:
image
...results in an error:

Command '(Internal) Build a Target by Name' resulted in an error
command 'cmake.buildNamedTarget' not found

image

I understand, that this command is "internal" and is not supposed to be invoked by users, but it is strange that the command is listed in extension's manifest without any implementation under the hood. Looks like implementation was removed, but the manifest and translations were not cleaned up properly.

CMake Tools Diagnostics

{
  "os": "linux",
  "vscodeVersion": "1.86.2",
  "cmtVersion": "1.17.15",
  "configurations": [
    {
      "folder": "/home/dev_user/dev_project",
      "cmakeVersion": "3.27.1",
      "configured": true,
      "generator": "Ninja",
      "usesPresets": true,
      "compilers": {
        "CXX": "/usr/bin/c++"
      }
    }
  ],
  "cpptoolsIntegration": {
    "isReady": false,
    "hasCodeModel": false,
    "activeBuildType": "",
    "buildTypesSeen": [],
    "requests": [],
    "responses": [],
    "partialMatches": [],
    "targetCount": 0,
    "executablesCount": 0,
    "librariesCount": 0,
    "targets": []
  },
  "settings": [
    {
      "communicationMode": "automatic",
      "useCMakePresets": "auto",
      "configureOnOpen": null
    }
  ]
}

Debug Log

No response

Additional Information

No response

@gcampbell-msft
Copy link
Collaborator

@i-ky Thank you for posting this issue! This is almost certainly simply an error on our part. I've confirmed that this isn't a regression from our most recent release, so we will plan to get this fixed in our 1.18 release. Thanks!

@gcampbell-msft gcampbell-msft added bug a bug in the product and removed triage labels Feb 16, 2024
@gcampbell-msft gcampbell-msft moved this from Triage Needed to Pending Prioritization in CMake Tools Feb 16, 2024
@gcampbell-msft gcampbell-msft added this to the 1.18 milestone Feb 16, 2024
@gcampbell-msft gcampbell-msft self-assigned this Mar 1, 2024
@gcampbell-msft gcampbell-msft moved this from Pending Prioritization to In Progress in CMake Tools Mar 1, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Completed in CMake Tools Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug a bug in the product Feature: extensibility
Projects
Status: Completed
Development

Successfully merging a pull request may close this issue.

2 participants