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.

[package] poco/1.10.1: Options not available / not correctly parsed

See original GitHub issue

Package and Environment Details

  • Package Name/Version: poco/1.10.1
  • Operating System+version: Windows 10 64-bit
  • Compiler+version: Visual Studio 15
  • Conan version: conan 1.22.2
  • Python version: Python 3.7.1

I’m currently setting up a Poco-example project with Conan and I’m basically disabling every option (project only relies on Poco::Foundation). However, when I use a list of options to disable, which also includes

  • poco:enable_encodings=False
  • poco:enable_jwt=False

I get the errors:

ERROR: poco/1.10.1: 'options.enable_encodings' doesn't exist

or

ERROR: poco/1.10.1: 'options.enable_jwt' doesn't exist

Looking at the conanfile.py that totally makes sense since these options are not available. Why is that?

However, If I use upper case options

  • Poco:enable_encodings=False
  • Poco:enable_jwt=False

I don’t get any error; all options that can be disabled are disabled after build and encodings and jwt (as well as depending libraries) are created.

So I guess if poco was written in lower case some kind of “option-check” is performed before building Poco. If Poco was written in upper case the check is not performed but the options are correctly sent to Conan.

Additionally I tested this by adding arbitrary options

  • poco:enable_foobar=False
  • Poco:enable_foobar=False

Both did not make any difference in detecting unsupported options.

I think it would make sense to inform a user

  • if upper case namespace options are not available (Poco:enable_encodings=False)
  • if upper case / lower case options are not available at all (poco:enable_foobar=False)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jgsogocommented, Mar 9, 2020

Hi, @akalali

That is the first part of my question. I would have opened a PR (if this is your preferred workflow) but I wasn’t sure if there might be a reason not to include these options.

Both options will be available soon https://github.com/conan-io/conan-center-index/pull/1021

Second part of the question is about the parsing of the options with regards to lower case / upper case.

Conan 1.x is case-sensitive, so the package Poco and poco are two different packages. When Conan finds a match (in your case the lowercase poco) it will fail if the options are not declared in the recipe, otherwise it will pass all the options upstreams to the requirements, maybe there is a Poco (uppercase) package that will use them.

0reactions
akalalicommented, Mar 2, 2020

That is the first part of my question. I would have opened a PR (if this is your preferred workflow) but I wasn’t sure if there might be a reason not to include these options.

Second part of the question is about the parsing of the options with regards to lower case / upper case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix “There Was a Problem Parsing the Package” on ...
Android's “There was a problem parsing the package” usually appears when you try to install an app via a faulty APK file.
Read more >
POCO C++ Libraries Release Notes
The release source packages do not contain these files. They are available from the pocoproject/openssl repository (Zip archive). You can also provide your ......
Read more >
How to fix “Problem parsing the package error” in Android?
How to fix “Problem parsing the package error” in Android? · 1. Go to settings on your device · 2. Scroll down &...
Read more >
How to Fix There Was A Problem Parsing the Package - iMobie
Just open Google Play Store and select sidebar & choose “Settings” > then find out the clear option to clear the local search...
Read more >
Probability and Computing
it has found a case where FCr) and G(x) disagree. Thus, when the algorithm decides that the two polynomials are not the same....
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