microsoft / microsoft/vscode-cmake-tools

cmake.generator fails when casing is incorrect

Open
#917 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement Feature: configure help wanted quick fix
Dominant language
TypeScript
Stars
1.7k
Forks
546
Avg merge
2d 16h
Merged PRs (30d)
32

Description

@bobbrow Thanks for the update. I am still having issues. I now see:

[cms-client] Configuring using the "ninja" CMake generator with plattform "undefined" and toolset {}
[rollbar] Unhandled exception: Unhandled Promise rejection: Post-folder-open [cmake-server] Failed to activate protocol version: Generator "ninja" not supported. {"folder":{"uri":{"$mid":1,"fsPath":"c:\\SVNProj\\zodiac\\branches\\TRY_TML_CMake_3Oct2019","_sep":1,"external":"file:///c%3A/SVNProj/zodiac/branches/TRY_TML_CMake_3Oct2019","path":"/c:/SVNProj/zodiac/branches/TRY_TML_CMake_3Oct2019","scheme":"file"},"name":"TRY_TML_CMake_3Oct2019","index":0}}

I guess the first message is related to #913?

The main issue seems to be:

Failed to activate protocol version: Generator "ninja" not supported. 

I can run Ninja from a cmd prompt (it is in the system path). How can I fix this problem in Code?

Originally posted by @DavidA2014 in https://github.com/microsoft/vscode-cmake-tools/issues/908#issuecomment-553798672

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is named. Start by reproducing the CMake Tools activation failure with the reported "ninja" generator and inspect the generator-handling path; done means generator casing is handled consistently and the reported activation error no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, typescript
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.