yoctoproject / vscode-bitbake

Bitbake language support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=yocto-project.yocto-bitbake
Other
45 stars 10 forks source link

Show in recipes explorer skipped recipes #317

Closed Paullgk closed 2 months ago

Paullgk commented 2 months ago

Currently, when scanning the project the extension prevents to add in recipes explorer the recipe that have been skipped by Bitbake. As an example, if I want to add the the package virt-manager from meta-virtualization (https://git.yoctoproject.org/meta-virtualization/tree/recipes-extended/virt-manager/virt-manager_4.1.0.bb?h=master); it requires by default wayland or x11 distro features, and so will be skipped if the latter are not in the image being built:

pleguendekerneizon@ffde7735d379:~/PROJECTS/SEAPATH/seapath_yocto/build$ bitbake-layers show-recipes | grep virt-mana -C 5
  meta                 9.1.0114
vim-tiny:
  meta                 9.1.0114
virglrenderer:
  meta                 1.0.1 (skipped: missing required distro feature 'opengl' (not in DISTRO_FEATURES))
virt-manager:
  meta-virtualization  4.1.0 (skipped: one of 'x11 wayland' needs to be in DISTRO_FEATURES)
virt-viewer:
  meta-virtualization  11.0 (skipped: one of 'wayland x11' needs to be in DISTRO_FEATURES)
virt-what:
  meta-virtualization  1.21

The behavior of the extension is to not show at all the skipped recipe: image

A nice feature would be to show the skipped recipe and display them maybe with a warning. The fact that recipe is not showing at all may lead to think a bug although this is an expected behavior.

deribaucourt commented 2 months ago

Currently, we discard them from the recipe view. This would indeed allow users to keep browsing their files and determine why it was skipped. The implementation should be simple enough:

deribaucourt commented 2 months ago

Here's a preview that's going to be part of the next release image