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.

Conan info prints a debug line on Windows

See original GitHub issue

Hi, I am trying use conan info . -j in a script so that I can parse json output. However, in windows it prints this additional line which makes my json parser fail. Could you please look into this?

conan info . <conans.model.options.Options object at 0x0479DFB0>

Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
asanka424commented, Mar 29, 2021

Hi @czoido

Sorry for the delayed reponse. It turns out to be a debug log from one of the custom conan modudles. You can close this ticket. Thanks for your support

0reactions
czoidocommented, Mar 1, 2021

Hi @asanka424, I have checked the code for 1.33.1 and I did not find any lines that could print that output. I think that what is most likely is that the conanfile.py has a print(self.options) anywhere in the code, probably in any of these methods: config_options, configure, requirements, package_id, validate, build_requirements orbuild_id. Could you please check?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Logging — conan 1.56.0 documentation
You can use the CONAN_TRACE_FILE environment variable to log and debug several Conan command execution. Set the CONAN_TRACE_FILE environment variable pointing ...
Read more >
Do Conan Debug and Release Build_Types have Different ...
Every conan install with different configuration (settings, options) depends on different packages. As Conan has conditional dependencies, ...
Read more >
Conan and resolving dependencies in a C++ project
Managing 3rd-party dependencies in a C++ project with Conan: ... _dependencies/glfw/src/CMakeFiles/glfw.dir/window. ... conan info .
Read more >
Introduction to Conan package manager - Kuba Sejdak
Manual installation from command line; Automatic installation with conanfile.txt; Automatic installation with CMake wrapper. Conan cache ...
Read more >
A step-by-step crash course in C++ debugging without IDE
You may have already noticed that program prints to screen can possibly mess up the display of our debugging session, so to clean...
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