question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Preferred generators are ignored

See original GitHub issue

Fields listed below are ignored. The only way I found to specify a generator is via cmake.generator in settings.json.

Field preferredGenerator in cmake-kits.json is ignored. Field cmake.preferredGenerators is settings.json is ignored.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:25 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
cdcseacavecommented, Dec 16, 2018

I have the same problem trying to select Unix Makefiles over Ninja, I tried everything (together or apart, nothing worked):

{
    "cmake.preferredGenerators":[],
    "cmake.preferredGenerators":[
        "Unix Makefiles",
        "Ninja",
    ],
    "cmake.generator": "Unix Makefiles",
    "cmake.configureArgs": ["-G", "Unix Makefiles"],
}

In the end the only solution that worked for me was to select No active kit.

4reactions
TimYorkecommented, Dec 9, 2018

I had trouble getting the extension to select the Visual Studio generator I’d specified for my kit.

I discovered that there are default values for cmake.preferredGenerators (“Ninja”, “Unix Makefile”) and if either of these is present in the system, it will select them over the one you’ve specified for the kit. I guess the term preferred should have made it obvious to me, but I didn’t notice this setting and also assumed that specifying a generator for a kit would override other “fallback” settings.

In the end I overrode the default value of cmake.preferredGenerators with an empty user setting, and configured the generator explicitly for each kit.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Preferred generators are ignored - - Bountysource
Fields listed below are ignored. The only way I found to specify a generator is via cmake.generator in settings.json .
Read more >
Configuring CMake Tools - vector Of bool
Always prefer to use cmake. ... Set to a string to override CMake Tools' preferred generator logic. If this is set, ... installPrefix...
Read more >
Customization - OpenAPI Generator
OpenAPI Generator supports a .openapi-generator-ignore file, similar to .gitignore or .dockerignore you're probably already familiar with.
Read more >
Unexpected behaviour with a conditional generator expression
There are several possible solutions, I generally prefer not to use "generator expressions" if they aren't iterated over immediately.
Read more >
10 Situations When Ship's Generator Must be Stopped ...
Any abnormal sound, no matter how faint, must never be ignored. In case of an unusual sound, the engine should be immediately stopped...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found