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] conan inspect throws an error in V2 mode if there is no option in the recipe

See original GitHub issue

Environment Details

  • OS: macOS 12.3.1
  • Xcode: 13.3.1
  • Conan: 1.47.0

Steps to reproduce

create a recipe without an option set the environment to enable ConanV2Mode run conan inspect conanfile.txt

ERROR: Conan v2 incompatible: Declare ‘default_options’ as a dictionary

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
memshardedcommented, Nov 7, 2022

Hi @MarcelRaad @NoWiseMan

Quick question: What is the purpose of running a conan inspect over a conanfile.txt? I guess it is a typo and it meant conanfile.py?

Also a quick note: Since Conan 2.0 has been in alpha, the Conan v2 mode has been no longer maintained, so the set of validations and checks that it implements would be small compared to everything that Conan 2.0 alphas and betas have been providing. It is recommended to start running things against the released betas to check what could be failing, and report possible issues.

0reactions
memshardedcommented, Nov 8, 2022

and want to enable CONAN_V2_MODE globally to catch issues already while developing.

Yes, that is the thing, I don’t think that CONAN_V2_MODE will capture more than 20% of the 2.0 changes, so at some point installing 2.0 (in a python virtualenv, recommended) will be the only way.

But the workaround will do for that.

If the workaround is enough atm, then I will close this issue as “not planned”, but feel free to re-open if necessary. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changelog — conan 1.36.0 documentation
Conan 1.36 shouldn't break any existing 1.0 recipe or command line invocation. If ... #8186; Fix: Throw error when the recipe description is...
Read more >
conan Changelog - pyup.io
Fix: If Conan fails to load a custom command now it fails with a useful error message (https://github.com/conan-io/conan/pull/11720)
Read more >
Troubleshooting Omnibus GitLab installation issues
This error is thrown when /etc/gitlab/gitlab.rb configuration file contains configuration that is invalid or unsupported. Double check that there are no ...
Read more >
Release Notes — scikit-build 0.16.5.dev1+ge82fe46 ...
Including it may slow down the search and force the IDE generator instead, but will at least no longer discover GCC instead. Bug...
Read more >
Troubleshooting AVS Device SDK Common Issues
When you try to run the Alexa Smart Screen SDK sample app on a new device, you see the following error. You have...
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