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] Unexpected message output contaminating conan inspect --raw

See original GitHub issue

We’re using conan inspect --raw ... to programmatically retrieve values from a conanfile. This used to work fine but started to fail some time ago. After some investigation I found that the output now contains an extra message before the line with the actual value:

Removing temporary .tgz files, they are stored in a different location now
8.0.0

This seems to be some kind of informational message regarding migration of .tgz files. I guess it’s usually fine to print this, but in commands like conan inspect which are likely to be used for programmatic evaluation I’d recommend suppressing it.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jasal82commented, Nov 17, 2021

@franramirez688 I’ve already implemented that workaround in our pipeline. @memsharded I agree that using the json output would be the more powerful option, but in our case we’re just trying to read the version, so we would then need a JSON parser in the pipeline to parse the single value from the JSON struct or use a regex. Is the extra message gone in the --json case?

1reaction
memshardedcommented, Nov 17, 2021

A suggestion, the conan inspect contains a --json argument for this purpose: programmatic access. Is there any specific reason why you are not using the json output? It would be way mor convenient than parsing the stdout unstructured output

Read more comments on GitHub >

github_iconTop Results From Across the Web

conan inspect --raw prints status messages #5656 - GitHub
The documentation of conan inspect --raw states: "Print just the value of the requested attribute". However, the command prints not only the ...
Read more >
conan inspect — conan 1.46.2 documentation
Displays conanfile attributes, like name, version, and options. Works locally, in local cache and remote. positional arguments: path_or_reference Path to a ...
Read more >
https://huggingface.co/microsoft/prophetnet-large-...
... 48 swedish avoid extra uncle message covers allows surprise materials fame ... ##ious upset raw phil detective hiding resident vincent ##bly experiences ......
Read more >
SOLUTIONS MANUAL
This manual contains solutions to all of the review questions and homework problems in Cryptography and Network Security, Fourth Edition. If you spot...
Read more >
Testing best practices - GitLab Docs
Test heuristics can help solve this problem. They concisely address many of the common ways bugs manifest themselves in our code. When designing...
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