<?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>14531</bug_id>
          
          <creation_ts>2021-08-30 13:48:54 +0000</creation_ts>
          <short_desc>pydevshell or devpyshell?</short_desc>
          <delta_ts>2021-11-12 18:49:17 +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>OE-Core</product>
          <component>Scripts and Tools</component>
          <version>3.4</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>4.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Opdenacker">michael.opdenacker</reporter>
          <assigned_to name="Michael Opdenacker">michael.opdenacker</assigned_to>
          <cc>michael.opdenacker</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>91304</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-08-30 13:48:54 +0000</bug_when>
    <thetext>There&apos;s a confusing naming inconsistency in OE-core...

The command to invoke the dev shell is:
bitbake &lt;task&gt; -c devpyshell

However, the prompt in the shell is &quot;pydevshell&quot;.

Indeed, you see both names in the code:

$ git grep devpyshell
meta/classes/devshell.bbclass:def devpyshell(d):
meta/classes/devshell.bbclass:python do_devpyshell() {
meta/classes/devshell.bbclass:        devpyshell(d)
meta/classes/devshell.bbclass:addtask devpyshell after do_patch
meta/classes/devshell.bbclass:do_devpyshell[nostamp] = &quot;1&quot;
meta/conf/documentation.conf:do_devpyshell[doc] = &quot;Starts an interactive Python shell for development/debugging&quot;
scripts/oepydevshell-internal.py:histfile = os.path.expanduser(&quot;~/.oedevpyshell-history&quot;)

$ git grep pydevshell
meta/classes/devshell.bbclass:        oe_terminal(&quot;oepydevshell-internal.py %s %d&quot; % (sname, pid), &apos;OpenEmbedded Developer PyShell&apos;, d)
meta/classes/devshell.bbclass:        ps1 = &quot;pydevshell&gt; &quot;
scripts/oepydevshell-internal.py:    print(&apos;oepydevshell-internal.py: error: the following arguments are required: pty, pid\n&apos;
scripts/oepydevshell-internal.py:          &apos;Usage: oepydevshell-internal.py pty pid\n\n&apos;
scripts/oepydevshell-internal.py:          &apos;OpenEmbedded oepydevshell-internal.py - internal script called from meta/classes/devshell.bbclass\n\n&apos;

It&apos;s probably easier to replace &quot;pydevshell&quot; by &quot;devpyshell&quot;, so that the task name doesn&apos;t change.

Note that this will require a documentation update too.

I&apos;ll be happy to propose a patch but I need your opinions first.
Thanks in advance
Michael.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91326</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-09-02 14:36:29 +0000</bug_when>
    <thetext>The vote is to keep pydevshell even if it does break the task name.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91666</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-10-05 08:37:53 +0000</bug_when>
    <thetext>Thanks for the decision!
Proposed a patch to OE-core:
https://lists.openembedded.org/g/openembedded-core/message/156637

If it is accepted, I&apos;ll also have to update the documentation
to fix this bug for good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91775</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-10-18 14:43:41 +0000</bug_when>
    <thetext>The patch was accepted:
https://git.openembedded.org/openembedded-core/commit/?id=958133f4e97275d1f2c74a7e715c4506cca3582f

Will submit a documentation patch soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91776</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-10-18 15:12:01 +0000</bug_when>
    <thetext>Documentation patch posted:
https://lists.yoctoproject.org/g/docs/message/1996</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91997</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-11-12 18:49:17 +0000</bug_when>
    <thetext>Everything is fixed now, both the code and then the documentation.
Marking the bug as &quot;Resolved&quot;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>