[bug] Order of options in profile is important(?)
- Dominant language
- C++
- Stars
- 125
- Forks
- 382
- Avg merge
- 22h 39m
- Merged PRs (30d)
- 21
Description
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]
```
2) Check that installation works on any package
`conan install -r conancenter utfcpp/3.2.1@ -pr:b=default -pr:h=default`
3) 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
```
4) 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
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.