Conan: [workspaces] Assertion and weird output

Created on 15 Mar 2019  路  4Comments  路  Source: conan-io/conan

Hello,

I'm using the new workspaces feature in 1.13.1 on a side project, and an assertion gets raised:

File "/Users/theo/Library/Python/3.6/lib/python/site-packages/conans/client/output.py", line 119, in write
    assert self.scope != "virtual", "printing with scope==virtual"
AssertionError: printing with scope==virtual

Additionally, there are a lot of redundant build requirement outputs like the following:

mgs_meta/0.1.0@mgs/testing: Applying build-requirement: mgs_cmake/0.1.0@mgs/testing
mgs_meta/0.1.0@mgs/testing: Applying build-requirement: mgs_test_helpers/0.1.0@mgs/testing
mgs_meta/0.1.0@mgs/testing: Applying build-requirement: catch2/2.2.2@bincrafters/stable
mgs_meta/0.1.0@mgs/testing: Applying build-requirement: mgs_cmake/0.1.0@mgs/testing
mgs_meta/0.1.0@mgs/testing: Applying build-requirement: mgs_test_helpers/0.1.0@mgs/testing
mgs_meta/0.1.0@mgs/testing: Applying build-requirement: catch2/2.2.2@bincrafters/stable
mgs_meta/0.1.0@mgs/testing: Applying build-requirement: mgs_cmake/0.1.0@mgs/testing
mgs_meta/0.1.0@mgs/testing: Applying build-requirement: mgs_test_helpers/0.1.0@mgs/testing
mgs_meta/0.1.0@mgs/testing: Applying build-requirement: catch2/2.2.2@bincrafters/stable
mgs_meta/0.1.0@mgs/testing: Applying build-requirement: mgs_cmake/0.1.0@mgs/testing
mgs_meta/0.1.0@mgs/testing: Applying build-requirement: mgs_test_helpers/0.1.0@mgs/testing
mgs_meta/0.1.0@mgs/testing: Applying build-requirement: catch2/2.2.2@bincrafters/stable
mgs_meta/0.1.0@mgs/testing: Applying build-requirement: mgs_cmake/0.1.0@mgs/testing
mgs_meta/0.1.0@mgs/testing: Applying build-requirement: mgs_test_helpers/0.1.0@mgs/testing
mgs_meta/0.1.0@mgs/testing: Applying build-requirement: catch2/2.2.2@bincrafters/stable
mgs_meta/0.1.0@mgs/testing: Applying build-requirement: mgs_cmake/0.1.0@mgs/testing
mgs_meta/0.1.0@mgs/testing: Applying build-requirement: mgs_test_helpers/0.1.0@mgs/testing
mgs_meta/0.1.0@mgs/testing: Applying build-requirement: catch2/2.2.2@bincrafters/stable
mgs_meta/0.1.0@mgs/testing: Applying build-requirement: mgs_cmake/0.1.0@mgs/testing
mgs_meta/0.1.0@mgs/testing: Applying build-requirement: mgs_test_helpers/0.1.0@mgs/testing
mgs_meta/0.1.0@mgs/testing: Applying build-requirement: catch2/2.2.2@bincrafters/stable

Steps to reproduce:

  • git clone https://github.com/theodelrieu/playground --branch workspaces
  • cd playground && mkdir build && cd build && conan workspace install ../conanws.yml

To help us debug your issue please explain:

  • [x] I've read the CONTRIBUTING guide.
  • [x] I've specified the Conan version, operating system version and any tool that can be relevant.
  • [x] I've explained the steps to reproduce the error or the motivation/use case of the question/suggestion.
bug

Most helpful comment

Working on it, confirmed it is a bug, and it is an extremely complicated one. Will update as soon as possible.

All 4 comments

Please @memsharded take a look. I managed to reproduce it easily but looks far from being obvious what is the issue or issues here. Something with the build requires looks very messed up and I really don't understand the "virtual" node assert.

Working on it, confirmed it is a bug, and it is an extremely complicated one. Will update as soon as possible.

Confirmed fixed with the planned fix for 1.13.2

1.13.2 Released!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

uilianries picture uilianries  路  3Comments

niosHD picture niosHD  路  3Comments

tonka3000 picture tonka3000  路  3Comments

mpdelbuono picture mpdelbuono  路  3Comments

petermbauer picture petermbauer  路  3Comments