[bug] generator 'MSBuildDeps': 'settings.build_type' doesn't exist
See original GitHub issueEnvironment Details (include every applicable attribute)
- Operating System+version: Windows 2022 GitHub runner
- Compiler+version: N/A
- Conan version: 1.52.0
- Python version: 3.10.6
Steps to reproduce (Include if Applicable)
Performing a conan install with the msbuilddeps as generator on a Windows setup with conan 1.52.0
(Will update this ticket with more relevant information later today, for now it is a placeholder, to reference it on our commits)
Logs (Executed commands with output) (Include/Attach if Applicable)
See the full output of the failed runner: https://github.com/Ultimaker/Cura/runs/8185049789?check_suite_focus=true
File "C:\hostedtoolcache\windows\Python\3.10.6\x64\lib\site-packages\conans\client\generators\__init__.py", line 177, in write_generators
generator = generator_class(conanfile)
File "C:\hostedtoolcache\windows\Python\3.10.6\x64\lib\site-packages\conan\tools\microsoft\msbuilddeps.py", line 95, in __init__
self.configuration = conanfile.settings.build_type
File "C:\hostedtoolcache\windows\Python\3.10.6\x64\lib\site-packages\conans\model\settings.py", line 266, in __getattr__
self._check_field(field)
File "C:\hostedtoolcache\windows\Python\3.10.6\x64\lib\site-packages\conans\model\settings.py", line 262, in _check_field
raise undefined_field(self._name, field, self.fields, self._parent_value)
conans.errors.ConanException: 'settings.build_type' doesn't exist
'settings' possible configurations are none
ERROR: Error in generator 'MSBuildDeps': 'settings.build_type' doesn't exist
'settings' possible configurations are none
JSON file created at 'D:\a\Cura\Cura\cura_inst/conan_install_info.json'
Issue Analytics
- State:
- Created a year ago
- Comments:12 (10 by maintainers)
Top Results From Across the Web
conan.tools.microsoft — conan 1.53.0 documentation
This generator translates the current package configuration, settings, and options, into MSBuild properties files syntax. Important. This class will require ...
Read more >How to change the build type to Release mode in cmake?
I am setting the variable CMAKE_BUILD_TYPE to "Release" in CMakeLists.txt . But it is still building the project in debug mode. When I...
Read more >Code Generation in a Build Process - Visual Studio (Windows)
Learn how text transformation can be invoked as part of the build process of a Visual Studio solution.
Read more >Problem: Unable to resolve dependencies of NuGet packages
The cause for this error is that NuGet cache conflicts with the build of the site. Solution. To resolve the problem, perform the...
Read more >Master Index CMake 2.8.12
CMake is a cross-platform build system generator. Projects specify their build ... Don't find variables that are declared on the command line, but...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@parachvte The issue should be resolved now. Try the instructions on our Wiki https://github.com/Ultimaker/Cura/wiki/Running-Cura-from-Source/
It might be a good idea to clear your conan cache first.
I hope the see some nice PRs coming our way. Let me known if you run into other troubles and don’t hesitate to open a ticket for a question or an issue on the Cura repo.
Hi @parachvte and @memsharded There seems to be a mismatched between recipes of our private
cura
Artifactory repository and our publiccura-ce
Artfiactory repository. Which has gone unnoticed because the CI pipelines and devs are all working from our private repo. We just ran into this issue because our community manager @MariMakes tries to install the Cura development environment as described in our Wiki.I will double check the potential recipes in the different repo’s against each other. But I think it is save to say that this is not a Conan specific bug.
This also seems like a good time to gently remind @memsharded of the benefits of having something like https://github.com/conan-io/conan/issues/12024#issuecomment-1237287633 😉