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

Extra {0} output message when having preset with circular inherits #2118

Closed
linquize opened this issue Sep 10, 2021 · 3 comments
Closed

Extra {0} output message when having preset with circular inherits #2118

linquize opened this issue Sep 10, 2021 · 3 comments
Assignees
Labels
bug a bug in the product Feature: presets
Milestone

Comments

@linquize
Copy link

Extra {0} output message when having preset with circular inherits.

Expected:

Output panel

[preset] circular.inherits.in.config.preset Circular inherits in configure preset my-preset

Apparent Behavior:

Output panel

[preset] circular.inherits.in.config.preset Circular inherits in configure preset {0} my-preset

Platform and Versions

  • Operating System: Windows
  • CMake Version: 3.12.18081601
  • VSCode Version: 1.60
  • CMake Tools Extension Version: 1.8.1
  • Compiler/Toolchain: Visual C++ 2017
@linquize
Copy link
Author

log.error('circular.inherits.in.config.preset', 'Circular inherits in configure preset {0}', preset.name);

log.error('circular.inherits.in.config.preset', 'Circular inherits in configure preset {0}', preset.name);

log.error('circular.inherits.in.build.preset', 'Circular inherits in build preset {0}', preset.name);

log.error('circular.inherits.in.test.preset', 'Circular inherits in test preset {0}', preset.name);

log.error('circular.inherits.in.build.preset', 'Circular inherits in build preset {0}', preset.name);

log.error('circular.inherits.in.test.preset', 'Circular inherits in test preset {0}', preset.name);

@bobbrow
Copy link
Member

bobbrow commented Sep 10, 2021

Good catch. @xisui-MSFT it looks like log.error is being called as if it were the localize API. Can you fix this?

@andreeis
Copy link
Contributor

This fix is included in the 1.9.0 CMake Tools release. Please upgrade your extension in VSCode and let us know if you encounter any other issues.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug a bug in the product Feature: presets
Projects
None yet
Development

No branches or pull requests

4 participants