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.

[bug] generator 'MSBuildDeps': 'settings.build_type' doesn't exist

See original GitHub issue

Environment 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:closed
  • Created a year ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
jellespijkercommented, Nov 2, 2022

@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.

conan remove "*@ultimaker*" -f

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.

2reactions
jellespijkercommented, Nov 2, 2022

Hi @parachvte and @memsharded There seems to be a mismatched between recipes of our private cura Artifactory repository and our public cura-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 😉

But in my opinion it would be even better if we can have an option on the Artifactory server which allows me to specify that anonymously users can only download recipes and sources but not binaries. Because that is basically the root issue which I’m trying to solve

Read more comments on GitHub >

github_iconTop 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 >

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