Skip to content

[Bug] "Bad CMake executable", even though it's available on the path #4603

@ivancuric

Description

@ivancuric

Brief Issue Summary

I am using mise (https://mise.jdx.dev/) to manage my cmake installation on MacOS.

cmake is available on the path, and is evaluated both in the interactive and non-interactive shells using:

echo 'eval "$(mise activate zsh --shims)"' >> ~/.zprofile # this sets up non-interactive sessions
echo 'eval "$(mise activate zsh)"' >> ~/.zshrc    # this sets up interactive sessions
➜ which cmake
/Users/ivan/.local/share/mise/installs/vfox-cmake/4.0.3/CMake.app/Contents/bin/cmake

CMake Tools Diagnostics

{
  "os": "darwin",
  "vscodeVersion": "1.105.1",
  "cmtVersion": "1.21.36",
  "configurations": [
    {
      "folder": "/Users/ivan/Dev/blinkid-next.worktrees/release/v7.6/packages/blinkid-wasm",
      "cmakeVersion": "unknown",
      "configured": false,
      "generator": "unknown",
      "usesPresets": false,
      "compilers": {}
    }
  ],
  "cpptoolsIntegration": {
    "isReady": false,
    "hasCodeModel": false,
    "activeBuildType": "",
    "buildTypesSeen": [],
    "requests": [],
    "responses": [],
    "partialMatches": [],
    "targetCount": 0,
    "executablesCount": 0,
    "librariesCount": 0,
    "targets": []
  },
  "settings": [
    {
      "communicationMode": "automatic",
      "useCMakePresets": "auto",
      "configureOnOpen": true
    }
  ]
}

Debug Log

[main] Building folder: blinkid-wasm 
[rollbar] Unhandled exception: Unhandled Promise rejection: build Error: Build failed: Unable to configure the project {}
[extension] [2545] cmake.logDiagnostics started
[extension] [2545] cmake.logDiagnostics finished (returned undefined)

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    buga bug in the productmore info neededMore info is needed from the community for us to properly triage and investigate.

    Type

    No type

    Projects

    Status

    Blocked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions