Skip to content

[bug] Order of options in profile is important(?) #3054

@Nekto89

Description

@Nekto89

I don't know whether this is a bug or feature. For me this behavior looks strange. Reordering options in profile ([settings] section) may lead to ERROR.

Environment Details (include every applicable attribute)

  • Operating System+version: Windows 11
  • Compiler+version: Visual Studio 17
  • Conan version: 1.53.0
  • Python version: 3.9.1

Steps to reproduce (Include if Applicable)

  1. check that default profile contains compiler and compiler version
[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=Visual Studio
compiler.version=17
build_type=Release
[options]
[build_requires]
[env]
  1. Check that installation works on any package
    conan install -r conancenter utfcpp/3.2.1@ -pr:b=default -pr:h=default

  2. Remove compiler from profile and add the same value. Conan will add this option to the end

conan profile remove settings.compiler default
conan profile update "settings.compiler=Visual Studio" default
  1. Try installation with same options again
conan install -r conancenter utfcpp/3.2.1@ -pr:b=default -pr:h=default
ERROR: compiler not defined for compiler.version
Please define compiler value first too

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions