<?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>9332</bug_id>
          
          <creation_ts>2016-03-23 15:27:25 +0000</creation_ts>
          <short_desc>Error message could be improved, for incorrect syntax</short_desc>
          <delta_ts>2016-03-30 20:26:20 +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>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Igor Stoppa">igor.stoppa</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <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>60346</commentid>
    <comment_count>0</comment_count>
    <who name="Igor Stoppa">igor.stoppa</who>
    <bug_when>2016-03-23 15:27:25 +0000</bug_when>
    <thetext>Triggering cause:

I accidentally left an extra space in front of an assignment in local.conf

 APPEND += &quot; igor&quot;
^
Extra space


Outcome:

I got the following error:

ERROR: Unable to parse /home/igor/dev/ostro-os/bitbake/lib/bb/parse/parse_py/ConfHandler.py
Traceback (most recent call last):
  File &quot;/home/igor/dev/ostro-os/bitbake/lib/bb/parse/parse_py/ConfHandler.py&quot;, line 188, in feeder(lineno=334, s=&apos; APPEND += &quot; igor&quot;&apos;, fn=&apos;/home/igor/dev/ostro-os/build/conf/local.conf&apos;, statements=[&lt;bb.parse.ast.DataNode object at 0x7f9d808c3f10&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808c3e90&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808c3ed0&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808c3f90&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808c3f50&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808c3fd0&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea110&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea090&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea0d0&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea150&gt;, &lt;bb.parse.ast.IncludeNode object at 0x7f9d808ea190&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea210&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea1d0&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea290&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea2d0&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea350&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea3d0&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea390&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea450&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea550&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea4d0&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea590&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea610&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea690&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea6d0&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea710&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea750&gt;, &lt;bb.parse.ast.DataNode object at 0x7f9d808ea7d0&gt;]):
     
    &gt;    raise ParseError(&quot;unparsed line: &apos;%s&apos;&quot; % s, fn, lineno);
     
ParseError: ParseError at /home/igor/dev/ostro-os/build/conf/local.conf:334: unparsed line: &apos; APPEND += &quot; igor&quot;&apos;


Expected outcome:
A nicer, more obvious statement, something like:

/home/igor/dev/ostro-os/build/conf/local.conf:334: unparsed line: &apos; APPEND += &quot; igor&quot;&apos;
&quot;line beginning with unexpected whitespace&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60551</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-03-30 20:26:20 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=ddbeb56f4fb69831453f4b91f5410ba4fde9fa56</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>