<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14053</bug_id>
          
          <creation_ts>2020-09-21 02:54:47 +0000</creation_ts>
          <short_desc>bitbake-layers doesn&apos;t show parse log</short_desc>
          <delta_ts>2020-09-21 02:56:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>3.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>13183</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>JPEWhacker</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88180</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-09-21 02:54:47 +0000</bug_when>
    <thetext>If I end up with an invalid bblayers configuration (for example, I&apos;ve added meta-arm without meta-arm-toolchain, which is a dependency), bitbake-layers doesn&apos;t show the parse warnings but instead just backtraces. The output with some commentary:

$ bitbake-layers add-layer ~/Yocto/meta-arm/meta-arm-bsp/
NOTE: Starting bitbake server...
Traceback (most recent call last):
  File &quot;/home/ross/Yocto/poky/bitbake/bin/bitbake-layers&quot;, line 95, in &lt;module&gt;
    ret = main()
  File &quot;/home/ross/Yocto/poky/bitbake/bin/bitbake-layers&quot;, line 63, in main
    tinfoil.prepare(True)
  File &quot;/home/ross/Yocto/poky/bitbake/lib/bb/tinfoil.py&quot;, line 410, in prepare
    self.run_command(&apos;parseConfiguration&apos;)
  File &quot;/home/ross/Yocto/poky/bitbake/lib/bb/tinfoil.py&quot;, line 466, in run_command
    raise TinfoilCommandFailed(result[1])

This is the client side of tinfoil saying &apos;something failed&apos;.  The user does not need to see a backtrace here.

bb.tinfoil.TinfoilCommandFailed: Traceback (most recent call last):
  File &quot;/home/ross/Yocto/poky/bitbake/lib/bb/command.py&quot;, line 81, in runCommand
    result = command_method(self, commandline)
  File &quot;/home/ross/Yocto/poky/bitbake/lib/bb/command.py&quot;, line 281, in parseConfiguration
    command.cooker.parseConfiguration()
  File &quot;/home/ross/Yocto/poky/bitbake/lib/bb/cooker.py&quot;, line 426, in parseConfiguration
    self.handleCollections(self.data.getVar(&quot;BBFILE_COLLECTIONS&quot;))
  File &quot;/home/ross/Yocto/poky/bitbake/lib/bb/cooker.py&quot;, line 1255, in handleCollections
    raise CollectionError(&quot;Errors during parsing layer configuration&quot;)
bb.cooker.CollectionError: Errors during parsing layer configuration

This is the server side raising an exception and again shouldn&apos;t be shown to the user. The actual error isn&apos;t visible, it presumably went to the parselog instance which wasn&apos;t shown by bitbake-layers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88181</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-09-21 02:56:51 +0000</bug_when>
    <thetext>Duplicate, sorry.

*** This bug has been marked as a duplicate of bug 13183 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>